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

Merge pull request #1236 from github/fix-ruby-empty-statement

Try to take some source for Ruby EmptyStatement in assignment
This commit is contained in:
Timothy Clem 2017-07-21 09:46:53 -07:00 committed by GitHub
commit a4180bc41b

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