Provides IToken lexer data based on a token ID and an ILexical
- Inheritance:
- object object
- Implements:
-
IMergable
Token Lexer Data
Constructors
LexicalScopeTokenData(ILexicalScope, int)
Initializes a new instance of the LexicalScopeTokenData
class.
Parameter | Type | Description |
---|---|---|
lexicalScope | ILexical |
The ILexical |
tokenId | int | The ID of the token. |
Properties
ClassificationType
Gets the IClassification
Property Value
- IClassification
Type : The IClassification
Type assigned to the token.
Lexer
Gets the IMergable
Property Value
- IMergable
Lexer : The IMergable
Lexer that contains the token.
LexicalScope
Gets the ILexical
Property Value
- ILexical
Scope : The ILexical
Scope , if any, that defines the token.
Remarks
If this value is null
, the token was not defined by a lexical scope.
LexicalState
Gets the ILexical
Property Value
- ILexical
State : The ILexical
State that contains the token.
TokenId
Gets the token ID assigned to the token.
Property Value
- int:
The token ID assigned to the token.
TokenKey
Gets the token key assigned to the token, if it is known.
Property Value
- string:
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
.
Parameter | Type | Description |
---|---|---|
obj | object | The |
Returns
- bool:
true
if the specifiedObject
is equal to the currentObject
; otherwise,false
.
GetHashCode()
Returns a hash code for this object.
Returns
- int:
An integer value that specifies a hash value for this object.