1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00

Remove conditional assignment

This commit is contained in:
joshvera 2017-08-21 18:55:27 -04:00
parent abeb3af999
commit 855006a1aa

View File

@ -937,9 +937,6 @@ binary = symbol Binary >>= \ loc -> children $ expression >>= \ lexpression -> g
where mk s constr = makeTerm loc <$> (symbol s *> (constr lexpression <$> expression))
mkNot s constr = makeTerm loc <$ symbol s <*> (Expression.Not <$> (makeTerm <$> location <*> (constr lexpression <$> expression)))
conditional :: Assignment
conditional = makeTerm <$> symbol Conditional <*> children (Statement.If <$> expression <*> expression <*> expression)
emptyStatement :: Assignment
emptyStatement = makeTerm <$> symbol EmptyStatement <*> (Syntax.Empty <$ source <|> pure Syntax.Empty)