Skip to content

Conversation

@florian1345
Copy link

@florian1345 florian1345 commented Apr 12, 2022

Just an informal collection of problems I encountered and fixed locally.
Sorry for not presenting it in a more organized way.
Feel free to modify/integrate it however you like.

  • Added name field to TypeDefinition nodes
  • Added isVirtual and isOverride fields to ModifierDefinition nodes
  • Added support for parsing for FunctionCallOptions (of the form fn{key=value}(args))
  • Added support for parsing IndexRangeAccesses (of the form array[from:to])
  • Added proper nodes for the ReturnStatement, BreakStatement, and ContinueStatement (which were previously rendered as the return expression or just ';' for expression-less statements)
  • Fixed parser discarding all variable declarations in a variable declaration list if one is None
  • Fixed parser failing if an assembly member's identifier is a list (not quite sure where that was a problem TBH)
  • Fixed parser failing an assembly assignment to a member

I added some more fixes with commit eb548d1 on 2022-05-12:

  • Added isDeclaredImmutable to variable declaration, similar to isDeclaredConst
  • Rendered omitted loop expressions in for loops as None instead of an ExpressionStatement with None as its expression
  • Added storageLocation field to variable declarations inside a variable declaration list

- Added `name` field to `TypeDefinition` nodes
- Added `isVirtual` and `isOverride` fields to `ModifierDefinition` nodes
- Added support for parsing for `FunctionCallOptions` (of the form `fn{key=value}(args)`)
- Added support for parsing `IndexRangeAccess`es (of the form `array[from:to]`)
- Fixed parser discarding all variable declarations in a variable declaration list if one is `None`
- Fixed parser failing if an assembly member's identifier is a list
- Fixed parser failing an assembly assignment to a member
- Added proper nodes for the `ReturnStatement`, `BreakStatement`, and `ContinueStatement`
@CLAassistant
Copy link

CLAassistant commented Apr 12, 2022

CLA assistant check
All committers have signed the CLA.

- Added "isDeclaredImmutable" to variable declaration, similar to "isDeclaredConst"
- Rendered omitted loop expressions in for loops as None instead of an ExpressionStatement with None as its expression
- Added storageLocation field to variable declarations inside a variable declaration list
@nodablock
Copy link

Would that be okay to review and merge this PR @tintinweb ?

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.

3 participants