We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 798c5ba commit c813bf9Copy full SHA for c813bf9
1 file changed
tests/test_parse.py
@@ -10,8 +10,10 @@ def parse(tmp_path, file_contents):
10
with open(source_path, "w") as f:
11
f.write(str(file_contents))
12
13
- tree = Parse(source_path, ARGS).get_tree()
14
- tree_paths = tree.paths_to_leaves()
+ tree = Parse(source_path, ARGS).get_tree() # parse the file into an AST
+ tree_paths = (
15
+ tree.paths_to_leaves()
16
+ ) # a list of list of nodes, representing paths from the root node to each leaf
17
18
return tree, tree_paths
19
0 commit comments