From 2bdd1617eefc52d2179211efa05d076f61c45642 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Sat, 9 Apr 2022 16:59:31 +0800 Subject: [PATCH] fix: fix imports --- chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4 b/chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4 index 41bda160..1ea0b5b1 100644 --- a/chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4 +++ b/chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4 @@ -728,6 +728,7 @@ propertyAssignment | setAccessor # PropertySetter | generatorMethod # MethodProperty | identifierOrKeyWord # PropertyShorthand + | defaultKeyWord # PropertyShorthand | restParameter # RestParameterInObject ; @@ -908,11 +909,14 @@ identifierOrKeyWord | TypeAlias | Require | Module - | Default | Lodash Lodash? | Any ; +defaultKeyWord + : Default + ; + reservedWord : keyword | NullLiteral @@ -943,7 +947,7 @@ keyword | This | Is | With - | Default +// | Default | If | Throw | Delete