Skip to content

7.8.34: Make Packages First-class Citizens in Scope Delegation#97

Merged
mathias-pfeiffer merged 5 commits intorelease/7.8.xfrom
Resolving-Hidden-Symbols-Generic
Apr 16, 2026
Merged

7.8.34: Make Packages First-class Citizens in Scope Delegation#97
mathias-pfeiffer merged 5 commits intorelease/7.8.xfrom
Resolving-Hidden-Symbols-Generic

Conversation

@MKZaito
Copy link
Copy Markdown
Collaborator

@MKZaito MKZaito commented Apr 13, 2026

Changelog

  • Problem:
    • Standard resolution keeps the searched name unchanged while ascending scopes, only composing fully qualified names at the artifact boundary (Java-like resolution).
    • SysMLv2 models can nest packages as model elements. These internal packages define effective namespaces that were previously ignored during upward delegation.

Example Model:

package Wrapper{
    package A{
        part def B;
    }
    part def C : A::B;
}
  • Solution:
    • Implemented package-aware symbol resolution where the resolver now recognizes when it leaves a package scope and qualifies the searched name with that package’s name (e.g., Wrapper.A.B). This ensures that the GlobalScope receives the necessary context for segment-wise resolution.

@MKZaito MKZaito changed the title 7.8.34: Fixed Resolving for hidden Symbols 7.8.34: Fixed Resolving for hidden Symbols (Generic) Apr 13, 2026
@MKZaito MKZaito marked this pull request as ready for review April 14, 2026 12:54
@MKZaito MKZaito changed the title 7.8.34: Fixed Resolving for hidden Symbols (Generic) 7.8.34: Make Packages First-class Citizens in Scope Delegation Apr 14, 2026
@mathias-pfeiffer mathias-pfeiffer merged commit 3c12c20 into release/7.8.x Apr 16, 2026
4 checks passed
@mathias-pfeiffer mathias-pfeiffer deleted the Resolving-Hidden-Symbols-Generic branch April 16, 2026 10:09
mathias-pfeiffer added a commit that referenced this pull request Apr 30, 2026
…ges aligning with current package (#116)

* Forwardporting: Make Packages First-class Citizens in Scope Delegation (#97)

* Forwardporting: Import resolving and tests for SysMLScopes

* Forwardporting: SysMLScopes resolve for functions, variables and types

* Forwardporting: fix to only resolve first match of enclosing scope, documentation

* removed unused scopes genitor

* Apply suggestion from @mathias-pfeiffer

* Apply suggestion from @mathias-pfeiffer

---------

Co-authored-by: Mike <127297267+mkzaito@users.noreply.github.com>
Co-authored-by: Justus R <justdevcode@gmail.com>
Co-authored-by: mathias-pfeiffer <73698357+mathias-pfeiffer@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants