From f4025ed3d650cde0dcb2ff0fdc30f4a4f5a40e9f Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 7 Apr 2019 13:07:19 -0700 Subject: [PATCH] Clean up tslint errors --- src/IncrementalParserData.ts | 2 +- .../antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IncrementalParserData.ts b/src/IncrementalParserData.ts index 2fe6c48e..f28f3c4b 100644 --- a/src/IncrementalParserData.ts +++ b/src/IncrementalParserData.ts @@ -85,8 +85,8 @@ export enum TokenChangeType { } export interface TokenChange { changeType: TokenChangeType; - oldToken?: CommonToken; newToken?: CommonToken; + oldToken?: CommonToken; } /** 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 8b9c1c0e..4b5c19e9 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 @@ -294,7 +294,7 @@ RuleFunction(currentRule,args,code,locals,ruleCtx,altLabelCtxs,namedActions,fina // @RuleVersion() }>public (): { - // Check whether we need to execute this rule. + // Check whether we need to execute this rule. let guardResult = this.guardRule(this._ctx as IncrementalParserRuleContext, this.state, .RULE_) as ; // If we found an existing context that is valid, return it. if (guardResult) { @@ -418,7 +418,7 @@ LeftRecursiveRuleFunction(currentRule,args,code,locals,ruleCtx,altLabelCtxs, let _parentctx: ParserRuleContext = this._ctx; let _parentState: number = this.state; - // Check whether we need to execute this rule. + // Check whether we need to execute this rule. let guardResult = this.guardRule(this._ctx as IncrementalParserRuleContext, _parentState, .RULE_) as ; // If we found an existing context that is valid, return it. if (guardResult) {