Skip to content

fix CoCo error 0x10AA1 - imported and quoted PartDef resolution#153

Open
linggd wants to merge 3 commits into
release/7.8.xfrom
ln/apollo-coco-0x10AA1
Open

fix CoCo error 0x10AA1 - imported and quoted PartDef resolution#153
linggd wants to merge 3 commits into
release/7.8.xfrom
ln/apollo-coco-0x10AA1

Conversation

@linggd

@linggd linggd commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

The Apollo-11 models can already be parsed #146 . The symbol resolution and CoCos are adapted so that the models also pass the CoCos.

2 of 5 CoCo errors addressed

0x10AA1 — PartDef resolution

Apollo introduced several cases that were not covered by the previous models:

  • PartUsages with both : typing and :> specialization. The CoCo incorrectly checked both as PartDefs.,
  • Imported PartDefs. Import-aware resolution existed for resolveType(), but not for resolvePartDef().,
  • Imports declared in the current package scope. The existing logic only checked the enclosing scope and therefore missed these imports.,
  • Quoted names containing dots, such as 'Roger B. Chaffee'. The dots were incorrectly interpreted as qualification separators.,

These cases exposed missing or incorrect behavior in the PartDef resolution.

Changelog

Fix

  • Override continuePartDefWithEnclosingScope() and add import-aware PartDef resolution.
  • Collect imports from the current scope before continuing resolution in the enclosing scope.
  • Check only ASTSysMLTyping, which represents the actual type introduced by :.
  • Added support for quoted PartDef names containing dots, by resolving the imported package and matching the complete local symbol name.

@linggd linggd marked this pull request as ready for review June 22, 2026 22:47
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