Skip to content

Commit c813bf9

Browse files
committed
[test_parse.py] add comments
1 parent 798c5ba commit c813bf9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_parse.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ def parse(tmp_path, file_contents):
1010
with open(source_path, "w") as f:
1111
f.write(str(file_contents))
1212

13-
tree = Parse(source_path, ARGS).get_tree()
14-
tree_paths = tree.paths_to_leaves()
13+
tree = Parse(source_path, ARGS).get_tree() # parse the file into an AST
14+
tree_paths = (
15+
tree.paths_to_leaves()
16+
) # a list of list of nodes, representing paths from the root node to each leaf
1517

1618
return tree, tree_paths
1719

0 commit comments

Comments
 (0)