From b5403f051c2c293b1bd89cab09747a4bfe5bb466 Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 21 Aug 2017 19:05:07 -0400 Subject: [PATCH] An object can contain a shorthand property identifier --- src/Language/TypeScript/Syntax.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/TypeScript/Syntax.hs b/src/Language/TypeScript/Syntax.hs index edb63413c..923c25a28 100644 --- a/src/Language/TypeScript/Syntax.hs +++ b/src/Language/TypeScript/Syntax.hs @@ -560,7 +560,7 @@ class' = makeClass <$> symbol Class <*> children ((,,,) <$> expression <*> (many makeClass loc (expression, typeParams, superclass', statements) = makeTerm loc (Declaration.Class typeParams expression superclass' statements) object :: Assignment -object = makeTerm <$> symbol Object <*> children (Literal.Hash <$> many (pair <|> spreadElement <|> methodDefinition <|> assignmentPattern <|> shorthandReservedIdentifier)) +object = makeTerm <$> symbol Object <*> children (Literal.Hash <$> many (pair <|> spreadElement <|> methodDefinition <|> assignmentPattern <|> shorthandPropertyIdentifier)) array :: Assignment array = makeTerm <$> symbol Array <*> children (Literal.Array <$> many (expression <|> spreadElement))