Click or drag to resize

BaseTreeAdaptorCreateToken Method (Int32, String)

Tell me how to create a token for use with imaginary token nodes. For example, there is probably no input symbol associated with imaginary token DECL, but you need to create it as a payload or whatever for the DECL node as in ^(DECL type ID).

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime.Tree
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
public abstract IToken CreateToken(
	int tokenType,
	string text
)

Parameters

tokenType
Type: SystemInt32

[Missing <param name="tokenType"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.BaseTreeAdaptor.CreateToken(System.Int32,System.String)"]

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.BaseTreeAdaptor.CreateToken(System.Int32,System.String)"]

Return Value

Type: IToken

[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.BaseTreeAdaptor.CreateToken(System.Int32,System.String)"]

Remarks
If you care what the token payload objects' type is, you should override this method and any other createToken variant.
See Also