1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

Try to take some source for EmptyStatement

This commit is contained in:
Timothy Clem 2017-07-20 11:06:34 -07:00
parent 2880052c15
commit 19eb8f2706

View File

@ -382,7 +382,7 @@ conditional :: Assignment
conditional = makeTerm <$> symbol Conditional <*> children (Statement.If <$> statement <*> statement <*> statement)
emptyStatement :: Assignment
emptyStatement = makeTerm <$> symbol EmptyStatement <*> pure Syntax.Empty
emptyStatement = makeTerm <$> symbol EmptyStatement <*> (Syntax.Empty <$ source <|> pure Syntax.Empty)
-- Helper functions