From 73446d5d7b6a898dc68563b9dc208e2fa153d2d4 Mon Sep 17 00:00:00 2001 From: Nuno Nobre Date: Thu, 30 Oct 2025 16:10:00 +0000 Subject: [PATCH 1/2] Add module interfaces to the set of module provided entities (#487) --- src/fparser/one/statements.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fparser/one/statements.py b/src/fparser/one/statements.py index 6ac77911..987ffe16 100644 --- a/src/fparser/one/statements.py +++ b/src/fparser/one/statements.py @@ -1345,6 +1345,7 @@ def analyze(self): # pylint: disable=invalid-name renames = [split_comma(item, comma="=>") for item in self.items if "=>" in item] norenames = [item for item in self.items if "=>" not in item] all_mod_provides = dict(module.a.module_provides) + all_mod_provides.update(module.a.module_interface) all_mod_provides.update(module.a.use_provides) if self.isonly: # populate use_provides with items/renames only. From c2235b1c2c51c94ab2df3ac636f02068eafba723 Mon Sep 17 00:00:00 2001 From: Andrew Porter Date: Mon, 15 Dec 2025 15:49:48 +0000 Subject: [PATCH 2/2] #487 update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1935d3f4..3bffdcfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Modifications by (in alphabetical order): * P. Hill, University of York, UK * I. Kavcic, UK Met Office * A. Morvan, Bull S. A. S., France +* N. M. Nobre, Science & Technology Facilities Council, UK * A. R. Porter, Science & Technology Facilities Council, UK * B. Reuter, ECMWF, UK * S. Siso, Science & Technology Facilities Council, UK @@ -20,6 +21,10 @@ Modifications by (in alphabetical order): * P. Vitt, University of Siegen, Germany * A. Voysey, UK Met Office +15/12/2025 PR #487. Adds interfaces to the set of things a module provides. + Fixes fparser1 errors such as "fparser.common.utils.AnalyzeError: + entity name 'dummy_code' is not in module 'dummy_mod'" + 25/11/2025 PR #488 for #483. Do not recognize inline comments as Directives. 31/10/2025 PR #486 for #483. Recognize any comment that begins ``!$``, ``c$`` or ``*$`` followed by