1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

ExpressionCaseClause went away

This commit is contained in:
Patrick Thomson 2019-09-17 12:22:35 -04:00
parent 50e3f684ef
commit 044fbbbc20

View File

@ -405,13 +405,13 @@ expressionCase :: Assignment Term
expressionCase = makeTerm <$> symbol ExpressionCase <*> (Statement.Pattern <$> children expressions <*> expressions)
expressionCaseClause :: Assignment Term
expressionCaseClause = symbol ExpressionCaseClause *> children (expressionCase <|> defaultExpressionCase)
expressionCaseClause = children (expressionCase <|> defaultExpressionCase)
expressionList :: Assignment Term
expressionList = symbol ExpressionList *> children expressions
expressionSwitchStatement :: Assignment Term
expressionSwitchStatement = makeTerm <$> symbol ExpressionSwitchStatement <*> children (Statement.Match <$> (makeTerm <$> location <*> manyTermsTill expression (void (symbol ExpressionCaseClause)) <|> emptyTerm) <*> expressions)
expressionSwitchStatement = makeTerm <$> symbol ExpressionSwitchStatement <*> children (Statement.Match <$> (makeTerm <$> location <*> manyTermsTill expression (void (symbol ExpressionCase)) <|> emptyTerm) <*> expressions)
fallThroughStatement :: Assignment Term
fallThroughStatement = makeTerm <$> symbol FallthroughStatement <*> (Statement.Pattern <$> (makeTerm <$> location <*> (Syntax.Identifier . name <$> source)) <*> emptyTerm)