From c1e8ce39e25d084701ad736d72d5635768c29c6e Mon Sep 17 00:00:00 2001 From: joshvera Date: Tue, 13 Feb 2018 11:57:40 -0500 Subject: [PATCH] Fix definition of plainImport since dotted names can have many expressions --- src/Language/Python/Assignment.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/Python/Assignment.hs b/src/Language/Python/Assignment.hs index e9a655787..7515d3cc9 100644 --- a/src/Language/Python/Assignment.hs +++ b/src/Language/Python/Assignment.hs @@ -379,7 +379,7 @@ import' = makeTerm'' <$> symbol ImportStatement <*> children (manyTerm (aliased wildCard = makeTerm <$> symbol WildcardImport <*> (Syntax.Identifier <$> source) aliasedImport = makeTerm <$> symbol AliasedImport <*> children (Declaration.Import <$> expression <*> expression <*> pure []) - plainImport = makeTerm <$> symbol DottedName <*> children (Declaration.Import <$> expression <*> emptyTerm <*> pure []) + plainImport = makeTerm <$> symbol DottedName <*> children (Declaration.Import <$> (makeTerm <$> location <*> manyTerm expression) <*> emptyTerm <*> pure []) assertStatement :: Assignment assertStatement = makeTerm <$> symbol AssertStatement <*> children (Expression.Call <$> pure [] <*> (makeTerm <$> symbol AnonAssert <*> (Syntax.Identifier <$> source)) <*> manyTerm expression <*> emptyTerm)