MCPcopy Create free account
hub / github.com/congo-cc/congo-parser-generator / close_node_scope

Method close_node_scope

examples/rust/testfiles/ast.rs:990–1026  ·  view source on GitHub ↗

Closes the current node scope with a boolean condition. If `condition` is true, all nodes in the scope become children of the scope's production node, and that node is pushed onto the enclosing scope. If false, nodes remain on the stack and the scope is discarded. Returns `true` if the node was created (condition was true).

(&mut self, condition: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

parse_rootMethod · 0.80
parse_blockMethod · 0.80
parse_statementMethod · 0.80
parse_assignmentMethod · 0.80
parse_doblockMethod · 0.80
parse_gotostatementMethod · 0.80
parse_forstatementMethod · 0.80
parse_ifstatementMethod · 0.80
parse_repeatstatementMethod · 0.80

Calls 5

add_child_toMethod · 0.80
popMethod · 0.45
is_emptyMethod · 0.45
lenMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected