LexicalScopeTokenData Class
Provides IToken lexer data based on a token ID and an ILexicalScope.
public class LexicalScopeTokenData : IMergeableTokenLexerData
- Inheritance:
- object object
- Implements:
- IMergeableTokenLexerData
Constructors
LexicalScopeTokenData(ILexicalScope, int)
Provides IToken lexer data based on a token ID and an ILexicalScope.
public LexicalScopeTokenData(ILexicalScope lexicalScope, int tokenId)
| Parameter | Type | Description |
|---|---|---|
| lexicalScope | ILexicalScope | The ILexicalScope that contains the token. |
| tokenId | int | The ID of the token. |
Properties
ClassificationType
The IClassificationType assigned to the token.
Lexer
The IMergeableLexer that created the token.
LexicalScope
The ILexicalScope, if any, that defines the token.
public ILexicalScope? LexicalScope { get; }
Property Value
Remarks
If this value is null, the token was not defined by a lexical scope.
LexicalState
The ILexicalState that contains the token.
TokenId
The token ID assigned to the token.
TokenKey
The token key assigned to the token, if it is known.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)