1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Add statements assignment

This commit is contained in:
Rick Winfrey 2017-06-12 10:37:51 -07:00
parent 3f1ceeed8b
commit cea3b03a9c

View File

@ -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)