mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add antlr4 definitions/types * Update the tsconfig.json for the antlr4 types * Update the tsconfig.json for the antlr4 types. Use files instead of includes. * Remove antlr4-test.ts to antlr4-tests.ts, for the antlr4 types * Remove the c-parser.ts, for the antlr4 types. As this is not allowed in the antlr4-test.ts * Fix antlr4 types test lint failure * Update the linting and the tslint.json * Update the tslint.json, for antlr4 types
35 lines
752 B
TypeScript
35 lines
752 B
TypeScript
import { ParseTreeVisitor, RuleNode } from './tree/Tree';
|
|
import { Interval } from './IntervalSet';
|
|
import { ParserRuleContext } from './ParserRuleContext';
|
|
|
|
export class RuleContext extends RuleNode {
|
|
readonly invokingState: number;
|
|
readonly parentCtx: ParserRuleContext;
|
|
|
|
constructor(parent: any, invokingState: number);
|
|
|
|
depth(): number;
|
|
|
|
isEmpty(): boolean;
|
|
|
|
getSourceInterval(): Interval;
|
|
|
|
getRuleContext(): RuleContext;
|
|
|
|
getPayload(): RuleContext;
|
|
|
|
getText(): string;
|
|
|
|
getAltNumber(): number;
|
|
|
|
setAltNumber(altNumber: number): void;
|
|
|
|
getChild(i: number): any;
|
|
|
|
getChildCount(): number;
|
|
|
|
accept(visitor: ParseTreeVisitor): void;
|
|
|
|
toStringTree(ruleNames: string[], recog: any): string;
|
|
}
|