-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Francisco Rodriguez Elorza <francisco.rodriguez.elorza@oracle.com>
- Loading branch information
Francisco Rodriguez Elorza
committed
Nov 15, 2024
1 parent
75befab
commit 0232d59
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
runtime/JavaScript/src/antlr4/error/DiagnosticErrorListener.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import {ATNConfigSet} from "../atn"; | ||
import {BitSet} from "../misc/BitSet"; | ||
import {DFA} from "../dfa"; | ||
import {ErrorListener} from "./ErrorListener"; | ||
import {Recognizer} from "../Recognizer"; | ||
import {RecognitionException} from "./RecognitionException"; | ||
|
||
export declare class DiagnosticErrorListener<TSymbol> implements ErrorListener<TSymbol> { | ||
reportAmbiguity(recognizer: Recognizer<TSymbol>, dfa: DFA, startIndex: number, stopIndex: number, exact: boolean, ambigAlts: BitSet, configs: ATNConfigSet): void; | ||
|
||
reportAttemptingFullContext(recognizer: Recognizer<TSymbol>, dfa: DFA, startIndex: number, stopIndex: number, conflictingAlts: BitSet, configs: ATNConfigSet): void; | ||
|
||
reportContextSensitivity(recognizer: Recognizer<TSymbol>, dfa: DFA, startIndex: number, stopIndex: number, prediction: number, configs: ATNConfigSet): void; | ||
|
||
syntaxError(recognizer: Recognizer<TSymbol>, offendingSymbol: TSymbol, line: number, column: number, msg: string, e: RecognitionException | undefined): void; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
import {Recognizer} from "../Recognizer"; | ||
import {RecognitionException} from "./RecognitionException"; | ||
import { ATNConfigSet } from "../atn"; | ||
import { BitSet } from '../misc/BitSet'; | ||
import { DFA } from "../dfa"; | ||
import { Recognizer } from "../Recognizer"; | ||
import { RecognitionException } from "./RecognitionException"; | ||
|
||
export declare class ErrorListener<TSymbol> { | ||
reportAmbiguity(recognizer: Recognizer<TSymbol>, dfa: DFA, startIndex: number, stopIndex: number, exact: boolean, ambigAlts: BitSet, configs: ATNConfigSet): void; | ||
|
||
reportAttemptingFullContext(recognizer: Recognizer<TSymbol>, dfa: DFA, startIndex: number, stopIndex: number, conflictingAlts: BitSet, configs: ATNConfigSet): void; | ||
|
||
reportContextSensitivity(recognizer: Recognizer<TSymbol>, dfa: DFA, startIndex: number, stopIndex: number, prediction: number, configs: ATNConfigSet): void; | ||
|
||
syntaxError(recognizer: Recognizer<TSymbol>, offendingSymbol: TSymbol, line: number, column: number, msg: string, e: RecognitionException | undefined): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export declare class BitSet { | ||
private data: Uint32Array; | ||
readonly length: number; | ||
|
||
constructor(); | ||
|
||
set(index: number): void; | ||
|
||
get(index: number): number; | ||
|
||
clear(index: number): void; | ||
|
||
or(set: BitSet): void; | ||
|
||
values(): Array<number>; | ||
|
||
minValue(): number; | ||
|
||
hashCode(): number; | ||
|
||
equals(): boolean; | ||
|
||
toString(): string; | ||
|
||
_resize(index: number): void; | ||
|
||
static _checkIndex(index: number): void; | ||
|
||
static _bitCount(l: number): number; | ||
} |