Skip to content

Commit

Permalink
fix(ts): fix abstract error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 17, 2022
1 parent 1dd814b commit 1d6feaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,14 @@ constructorDeclaration
;

propertyMemberDeclaration
: propertyMemberBase propertyName '!'? '?'? typeAnnotation? initializer? # PropertyDeclarationExpression
: abstractDeclaration # AbstractMemberDeclaration
| propertyMemberBase propertyName '!'? '?'? typeAnnotation? initializer? # PropertyDeclarationExpression
| propertyMemberBase propertyName callSignature ( ('{' functionBody '}')) # MethodDeclarationExpression
| propertyMemberBase (getAccessor | setAccessor) # GetterSetterDeclarationExpression
| abstractDeclaration # AbstractMemberDeclaration
;

abstractDeclaration
: Abstract (identifierName '?'? callSignature | variableStatement)
: Abstract (identifierName '?'? typeAnnotation? callSignature? | variableStatement)
;

//propertyMember
Expand Down

0 comments on commit 1d6feaa

Please sign in to comment.