Click or drag to resize

BaseRecognizerGetTokenErrorDisplay Method

How should a token be displayed in an error message? The default is to display just the text, but during development you might want to have a lot of information spit out. Override in that case to use t.ToString() (which, for CommonToken, dumps everything about the token). This is better than forcing you to override a method in your token objects because you don't have to go modify your lexer so that it creates a new Java type.

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
public virtual string GetTokenErrorDisplay(
	IToken t
)

Parameters

t
Type: Stimulsoft.Data.Expressions.Antlr.RuntimeIToken

[Missing <param name="t"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetTokenErrorDisplay(Stimulsoft.Data.Expressions.Antlr.Runtime.IToken)"]

Return Value

Type: String

[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.GetTokenErrorDisplay(Stimulsoft.Data.Expressions.Antlr.Runtime.IToken)"]

See Also