Generic AST Traversal #5

Merged
cosmonaut merged 2 commits from venko/wraith-lang:traversal into generics_retry 2021-05-26 22:25:26 +00:00

Implements Recurse helper function for generically traversing along all the nodes of an AST, applying a void function at each node. Used for when a function should be applied to the AST in its entirety but only performs an action/mutation on certain nodes based on their SyntaxKind. I expect this pattern will come up frequently during static analysis passes.

For an example of this pattern in use, see changes to ConvertASTCustomsToGenerics.

Implements `Recurse` helper function for generically traversing along all the nodes of an AST, applying a void function at each node. Used for when a function should be applied to the AST in its entirety but only performs an action/mutation on certain nodes based on their `SyntaxKind`. I expect this pattern will come up frequently during static analysis passes. For an example of this pattern in use, see changes to `ConvertASTCustomsToGenerics`.
venko added 2 commits 2021-05-26 21:58:50 +00:00
cosmonaut merged commit 4f8f4fbe9e into generics_retry 2021-05-26 22:25:26 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cosmonaut/wraith-lang#5
There is no content yet.