UNPKG

antlr4ng

Version:

Alternative JavaScript/TypeScript runtime for ANTLR4

25 lines (24 loc) 830 B
import { LexerAction } from "./LexerAction.js"; import { Lexer } from "../Lexer.js"; /** * Implements the `channel` lexer action by calling * {@link Lexer.setChannel} with the assigned channel. * Constructs a new `channel` action with the specified channel value. * * @param channel The channel value to pass to {@link Lexer.setChannel} */ export declare class LexerChannelAction implements LexerAction { readonly channel: number; readonly actionType: number; isPositionDependent: boolean; private cachedHashCode; constructor(channel: number); /** * This action is implemented by calling {@link Lexer.setChannel} with the * value provided by {@link getChannel}. */ execute(lexer: Lexer): void; hashCode(): number; equals(other: unknown): boolean; toString(): string; }