mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Add statements assignment
This commit is contained in:
parent
3f1ceeed8b
commit
cea3b03a9c
@ -320,6 +320,9 @@ import' = makeTerm <$> symbol ImportStatement <*> children (Declaration.Import <
|
||||
importFrom :: Assignment
|
||||
importFrom = makeTerm <$> symbol ImportFromStatement <*> children (Declaration.Import <$> many expression)
|
||||
|
||||
statements :: Assignment
|
||||
statements = makeTerm <$> location <*> many statement
|
||||
|
||||
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