Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 669ffa6

Browse files
committed
Don’t make nodes for blocks if we don’t have to.
1 parent d7fedfd commit 669ffa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Python/Assignment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ expressions :: Assignment Term
200200
expressions = makeTerm'' <$> location <*> manyTerm expression
201201

202202
block :: Assignment Term
203-
block = symbol Block *> children (makeTerm <$> location <*> manyTerm expression)
203+
block = symbol Block *> children (makeTerm'' <$> location <*> manyTerm expression)
204204

205205
expressionStatement :: Assignment Term
206206
expressionStatement = makeTerm'' <$> symbol ExpressionStatement <*> children (someTerm expression)

0 commit comments

Comments
 (0)