gherkin
Version:
18 lines (17 loc) • 543 B
TypeScript
import { messages } from 'cucumber-messages';
import GherkinLine from './GherkinLine';
import { TokenType } from './Parser';
export default class Token {
readonly line: GherkinLine;
readonly location: messages.ILocation;
isEof: boolean;
matchedText?: string;
matchedType: TokenType;
matchedItems: GherkinLine[];
matchedKeyword: string;
matchedIndent: number;
matchedGherkinDialect: string;
constructor(line: GherkinLine, location: messages.ILocation);
getTokenValue(): string;
detach(): void;
}