Skip to content

fix(Sources): CompilationUnit w/ source + Recursive lookup - #266

Merged
Gabriel-Darbord merged 1 commit into
v4from
fix-missing-source-on-inner-entities
Jul 27, 2026
Merged

fix(Sources): CompilationUnit w/ source + Recursive lookup#266
Gabriel-Darbord merged 1 commit into
v4from
fix-missing-source-on-inner-entities

Conversation

@Gabriel-Darbord

Copy link
Copy Markdown
Member

Fixes #263

Reusing FamixTHasImmediateSource from Famix is practical, but the contract doesn't hold for FAST: only the root entity has the source.
This fix is a bit of a shim: we override sourceText on entities that use the trait to lookup on parent when it doesn't have the source.

Some unfortunate Tonel noise in FAST-Java-Model-Extension package...

@Gabriel-Darbord

Copy link
Copy Markdown
Member Author

Had to patch with moosetechnology/FAST#131 to make it work on Moose 12.

@Gabriel-Darbord
Gabriel-Darbord merged commit bcd34f3 into v4 Jul 27, 2026
5 of 9 checks passed
@Gabriel-Darbord
Gabriel-Darbord deleted the fix-missing-source-on-inner-entities branch July 27, 2026 17:31
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.

Missing source on inner entities

1 participant