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:
parent
abeb3af999
commit
855006a1aa
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user