Skip to content

Commit

Permalink
Clean up tslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dberlin committed Apr 7, 2019
1 parent de17e6b commit f4025ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/IncrementalParserData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export enum TokenChangeType {
}
export interface TokenChange {
changeType: TokenChangeType;
oldToken?: CommonToken;
newToken?: CommonToken;
oldToken?: CommonToken;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ RuleFunction(currentRule,args,code,locals,ruleCtx,altLabelCtxs,namedActions,fina
// @RuleVersion(<namedActions.version; null="0">)
<if(currentRule.modifiers)><currentRule.modifiers:{f | <f> }><else>public <endif><currentRule.name>(<args; separator=",">): <currentRule.ctxType> {
<if(file.factory.grammar.ast.cmdLineOptions.("incremental"))>
// 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, <parser.name>.RULE_<currentRule.name>) as <currentRule.ctxType>;
// If we found an existing context that is valid, return it.
if (guardResult) {
Expand Down Expand Up @@ -418,7 +418,7 @@ LeftRecursiveRuleFunction(currentRule,args,code,locals,ruleCtx,altLabelCtxs,
let _parentctx: ParserRuleContext = this._ctx;
let _parentState: number = this.state;
<if(file.factory.grammar.ast.cmdLineOptions.("incremental"))>
// 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, <parser.name>.RULE_<currentRule.name>) as <currentRule.ctxType>;
// If we found an existing context that is valid, return it.
if (guardResult) {
Expand Down

0 comments on commit f4025ed

Please sign in to comment.