Skip to main content

node_to_insert_before

Function node_to_insert_before 

Source
fn node_to_insert_before(target_node: SyntaxNode) -> SyntaxNode
Expand description

Finds where to put the new enum definition. Tries to find the ast node at the nearest module or at top-level, otherwise just returns the input node.