diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg index aded57fc..6349c16b 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg @@ -860,7 +860,7 @@ _prevctx = _localctx; >> recRuleSetPrevCtx() ::= << -if (this._parseListeners != null) { +if (this._parseListeners !== null) { this.triggerExitRuleEvent(); } _prevctx = _localctx;