1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

Assign keyed elements

This commit is contained in:
Rick Winfrey 2017-10-24 14:16:15 -07:00
parent 4fe2ad2609
commit bddb35ce28

View File

@ -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)