Class RawToken
Contains all information about a token. The main properties are the token content, and the token place (line and index)
Inheritance
System.Object
RawToken
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SqlDotNet.Compiler
Assembly: SqlDotNet.dll
Syntax
public class RawToken
Constructors
| Improve this Doc View SourceRawToken(String, Tuple<Int32, Int32>, Tuple<Int32, Int32>)
Create new token
Declaration
public RawToken(string content, Tuple<int, int> line, Tuple<int, int> index)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | Token content |
System.Tuple<System.Int32, System.Int32> | line | Start and end position of the token (line) |
System.Tuple<System.Int32, System.Int32> | index | Start and end position of the token (index/chars) |
Properties
| Improve this Doc View SourceContent
Token content
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
System.String |
Index
Start and end index of the token.
Declaration
public Tuple<int, int> Index { get; }
Property Value
Type | Description |
---|---|
System.Tuple<System.Int32, System.Int32> |
Line
Start and end line of the token
Declaration
public Tuple<int, int> Line { get; }
Property Value
Type | Description |
---|---|
System.Tuple<System.Int32, System.Int32> |
Type
Defines the type of the token
Declaration
public TokenType Type { get; set; }
Property Value
Type | Description |
---|---|
TokenType |