mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
Assign wildcard (*) in import from statements
This commit is contained in:
parent
bf0f835823
commit
d6e1017117
@ -133,6 +133,7 @@ statement = assertStatement
|
||||
<|> returnStatement
|
||||
<|> tryStatement
|
||||
<|> whileStatement
|
||||
<|> wildcardImport
|
||||
<|> withStatement
|
||||
|
||||
expressionStatement :: Assignment
|
||||
@ -358,6 +359,9 @@ importFrom = makeTerm <$> symbol ImportFromStatement <*> children (Declaration.I
|
||||
importAlias :: Assignment
|
||||
importAlias = makeTerm <$> symbol AliasedImport <*> children (flip Statement.Let <$> expression <*> expression <*> emptyTerm)
|
||||
|
||||
wildcardImport :: Assignment
|
||||
wildcardImport = makeTerm <$> symbol WildcardImport <*> (Syntax.Identifier <$> source)
|
||||
|
||||
assertStatement :: Assignment
|
||||
assertStatement = makeTerm <$ symbol AssertStatement <*> location <*> children (Expression.Call <$> (makeTerm <$> symbol AnonAssert <*> (Syntax.Identifier <$> source)) <*> many expression)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user