mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +03:00
Assign keyed elements
This commit is contained in:
parent
4fe2ad2609
commit
bddb35ce28
@ -110,6 +110,7 @@ expressionChoices =
|
||||
, interfaceType
|
||||
, interpretedStringLiteral
|
||||
, intLiteral
|
||||
, keyedElement
|
||||
, labelName
|
||||
, literalValue
|
||||
, mapType
|
||||
@ -404,6 +405,9 @@ elseClause = symbol ElseClause *> children expression
|
||||
incStatement :: Assignment
|
||||
incStatement = makeTerm <$> symbol IncStatement <*> children (Statement.PostIncrement <$> expression)
|
||||
|
||||
keyedElement :: Assignment
|
||||
keyedElement = makeTerm <$> symbol KeyedElement <*> children (Literal.KeyValue <$> expression <*> expression)
|
||||
|
||||
labelName :: Assignment
|
||||
labelName = makeTerm <$> symbol LabelName <*> (Syntax.Identifier <$> source)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user