MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / nodes_are_equal

Function nodes_are_equal

src/codetext/parser/language_parser.py:32–33  ·  view source on GitHub ↗
(n1, n2)

Source from the content-addressed store, hash-verified

30 return [match_from_span(token, blob) for token in tokens if nodes_to_exclude is None or token not in nodes_to_exclude]
31
32def nodes_are_equal(n1, n2):
33 return n1.type == n2.type and n1.start_point == n2.start_point and n1.end_point == n2.end_point
34
35def parent_and_previous_sibling(tree, node):
36 """Merge `node_parent` and `previous_sibling` function

Callers 3

previous_siblingFunction · 0.85
node_parentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected