Skip to content

Commit

Permalink
added Token.DEFAULT_CHANNEL and Token.HIDDEN_CHANNEL (#4516)
Browse files Browse the repository at this point in the history
* added DEFAULT_CHANNEL and HIDDEN_CHANNEL constants

based on:
https://github.com/antlr/antlr4/blob/ebb511a04a60ae5a605aba65471c07dd854e9303/runtime/JavaScript/src/antlr4/Token.js#L59

https://github.com/antlr/antlr4/blob/ebb511a04a60ae5a605aba65471c07dd854e9303/runtime/JavaScript/src/antlr4/Token.js#L65
Signed-off-by: Robert Einhorn <robert.einhorn.hu@gmail.com>

* added DEFAULT_CHANNEL and HIDDEN_CHANNEL constants

#4110 (comment)
Signed-off-by: Robert Einhorn <robert.einhorn.hu@gmail.com>

---------

Signed-off-by: Robert Einhorn <robert.einhorn.hu@gmail.com>
  • Loading branch information
RobEin committed Jan 21, 2024
1 parent ebb511a commit d0440f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/JavaScript/src/antlr4/Token.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import {CharStream} from "./CharStream";
export declare class Token {

static EOF: number;

static DEFAULT_CHANNEL: number;
static HIDDEN_CHANNEL: number;

tokenIndex: number;
line: number;
Expand Down

0 comments on commit d0440f4

Please sign in to comment.