Browse Source

Bug in PropagatePositions when supplying a reducing transformer

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.2
Erez Shinan 7 years ago
parent
commit
3ac32fa5f0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/parse_tree_builder.py

+ 1
- 1
lark/parse_tree_builder.py View File

@@ -27,7 +27,7 @@ class PropagatePositions:
def __call__(self, children):
res = self.node_builder(children)

if children:
if children and isinstance(res, Tree):
for a in children:
if isinstance(a, Tree):
res.meta.line = a.meta.line


Loading…
Cancel
Save