Generic AST Traversal #5
			
				
			
		
		
		
	
		Loading…
	
		Reference in New Issue
	
	
	There is no content yet.
		
		Delete Branch "venko/wraith-lang:traversal"
	
	Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Implements
Recursehelper 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 theirSyntaxKind. I expect this pattern will come up frequently during static analysis passes.For an example of this pattern in use, see changes to
ConvertASTCustomsToGenerics.