Skip to content

parser options should be a part of collected metadata#1529

Open
Janther wants to merge 4 commits intomainfrom
trimming-options
Open

parser options should be a part of collected metadata#1529
Janther wants to merge 4 commits intomainfrom
trimming-options

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Apr 22, 2026

This way we can standardise all constructor signatures and depollute the class instantiations.

The changes are very repetitive:

  • removing type imports and options from constructors across slang-nodes.
  • replacing options with collected.options whenever we actually need to access this info (only 7 times) In the constructors only.
  • cleaned up the createNonterminalVariantCreator function and types associated to reflect the constructor calls.
  • updated slangSolidityParser initial creation of SourceUnit to reflect the change.
  • updated the CollectedMetadata interface.

…all constructor signatures and depollute the class instantiations
@Janther Janther requested a review from fvictorio April 22, 2026 20:00
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.

1 participant