mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Assign decStatements
This commit is contained in:
parent
63f2588e0e
commit
453d9afd0d
@ -37,6 +37,7 @@ type Syntax =
|
||||
, Expression.Boolean
|
||||
, Expression.Call
|
||||
, Expression.Comparison
|
||||
, Expression.Decrement
|
||||
, Expression.Increment
|
||||
, Expression.MemberAccess
|
||||
, Literal.Array
|
||||
@ -87,6 +88,7 @@ expressionChoices =
|
||||
, compositeLiteral
|
||||
, constVarDeclaration
|
||||
, constVarSpecification
|
||||
, decStatement
|
||||
, element
|
||||
, expressionList
|
||||
, fieldDeclaration
|
||||
@ -346,6 +348,9 @@ parameterDeclaration = symbol ParameterDeclaration *> children expressions
|
||||
breakStatement :: Assignment
|
||||
breakStatement = makeTerm <$> symbol BreakStatement <*> children (Statement.Break <$> labelName)
|
||||
|
||||
decStatement :: Assignment
|
||||
decStatement = makeTerm <$> symbol DecStatement <*> children (Expression.Decrement <$> expression)
|
||||
|
||||
incStatement :: Assignment
|
||||
incStatement = makeTerm <$> symbol IncStatement <*> children (Expression.Increment <$> expression)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user