LexicalStateIdProviderBase Class
Represents an abstract base class for an object that provides static IDs for the lexical states of an ISyntaxLanguage.
public abstract class LexicalStateIdProviderBase : ILexicalStateIdProvider, IIdProvider
- Inheritance:
- object object
- Derived:
- CSharpLexicalStateId JavaScriptLexicalStateId PythonLexicalStateId VBLexicalStateId XmlLexicalStateId
- Implements:
- ILexicalStateIdProvider IIdProvider
Constructors
LexicalStateIdProviderBase()
Initializes an instance of the class.
protected LexicalStateIdProviderBase()
Properties
MaxId
The maximum ID returned by this provider.
MinId
The minimum ID returned by this provider.
Methods
ContainsId(int)
Returns whether the specified ID value is valid for this ID provider.
public abstract bool ContainsId(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID to examine. |
Returns
- bool:
trueif the ID value is valid; otherwise,false
GetDescription(int)
Returns the actual string representation for the specified ID.
public abstract string? GetDescription(int id)
| Parameter | Type | Description |
|---|---|---|
| id | int | The ID to examine. |
Returns
GetKey(int)
Returns the string-based key for the specified ID.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()