QueryToken Class
Represents a token in the query syntax tree.
public sealed class QueryToken : QueryNodeOrToken- Inheritance
QueryNodeOrTokenQueryToken
Properties
| Name | Description |
|---|---|
| Kind | Gets the kind of this token. |
| QueryText | Gets the full query text. |
| Span | Gets the text span covered by this token. |
| Text | Gets the text of this token extracted from the query text. |
| Value | Gets the parsed value of this token, or null if the token has no value. |
Kind
QueryToken.csQueryText
QueryToken.csSpan
QueryToken.csText
QueryToken.csValue
QueryToken.csMethods
| Name | Description |
|---|---|
| AsText() | Converts this token to a text token. |
| GetChildren() | Gets the child elements of this token (always empty for tokens). |
| ToString() |
AsText()
QueryToken.csConverts this token to a text token.
public QueryToken AsText()Returns
QueryToken A text token representing the same text.
GetChildren()
QueryToken.csGets the child elements of this token (always empty for tokens).
public override QueryNodeOrToken[] GetChildren()Returns
QueryNodeOrToken[] An empty array.