mirror of
https://github.com/github/semantic.git
synced 2025-01-03 21:16:12 +03:00
Fix definition of plainImport since dotted names can have many expressions
This commit is contained in:
parent
d8e5555b0e
commit
c1e8ce39e2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user