mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Assign fall through statements
This commit is contained in:
parent
fa274a5a41
commit
328e6f69cf
@ -104,6 +104,7 @@ expressionChoices =
|
||||
, expressionCaseClause
|
||||
, expressionList
|
||||
, expressionSwitchStatement
|
||||
, fallThroughStatement
|
||||
, fieldDeclaration
|
||||
, fieldIdentifier
|
||||
, functionDeclaration
|
||||
@ -330,6 +331,9 @@ expressionSwitchStatement = makeTerm <$> symbol ExpressionSwitchStatement <*> ch
|
||||
where
|
||||
expressionCaseClauses = makeTerm <$> location <*> many expressionCaseClause
|
||||
|
||||
fallThroughStatement :: Assignment
|
||||
fallThroughStatement = makeTerm <$> symbol FallthroughStatement <*> (Statement.Pattern <$> (makeTerm <$> location <*> (Syntax.Identifier <$> source)) <*> emptyTerm)
|
||||
|
||||
variadicArgument :: Assignment
|
||||
variadicArgument = makeTerm <$> symbol VariadicArgument <*> children (Go.Syntax.Variadic <$> pure [] <*> expression)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user