You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lexer.addErrorListener for some reason need number as generic.
Argument of type ConsoleErrorListener is not assignable to parameter of type ErrorListener<number>
export declare class Recognizer<TSymbol> {
state: number;
removeErrorListeners(): void;
addErrorListener(listener: ErrorListener<TSymbol>): void; <--- For what we need this generic?
getErrorListener(): ErrorListener<TSymbol>;
getLiteralNames(): string[];
getSymbolicNames(): string[];
}
Thanks.
The text was updated successfully, but these errors were encountered:
target Java and TypeScript
Hi,
Could you explain why ErrorListner in TS needs Generic in class ? Maybe I missed something
export declare class ErrorListener<TSymbol>
For example Java doesn't have it
public interface ANTLRErrorListener
The issue is that I can't use same custom ErrorListener in Lexer and Parser.
lexer.addErrorListener for some reason need number as generic.
Argument of type ConsoleErrorListener is not assignable to parameter of type ErrorListener<number>
Thanks.
The text was updated successfully, but these errors were encountered: