ProgrammaticLexicalScopeMatch Delegate
Represents the method that will handle token matching callbacks for ProgrammaticLexicalScope objects.
public delegate MergableLexerResult ProgrammaticLexicalScopeMatch(ITextBufferReader reader, ILexicalScope lexicalScope)
Parameters
| Name | Type | Description |
|---|---|---|
| reader | ITextBufferReader | An ITextBufferReader that is reading a text source. |
| lexicalScope | ILexicalScope | The ILexicalScope that specifies the lexical scope to check. |
Returns
| Type | Description |
|---|---|
| MergableLexerResult | A MergableLexerResult indicating the lexer result. |
Constructors
ProgrammaticLexicalScopeMatch(object, nint)
public ProgrammaticLexicalScopeMatch(object @object, nint method)
| Parameter | Type | Description |
|---|---|---|
| object | object | |
| method | nint |
Methods
BeginInvoke(ITextBufferReader, ILexicalScope, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ITextBufferReader reader, ILexicalScope lexicalScope, AsyncCallback callback, object @object)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | |
| lexicalScope | ILexicalScope | |
| callback | AsyncCallback | |
| object | object |
Returns
EndInvoke(IAsyncResult)
public virtual MergableLexerResult EndInvoke(IAsyncResult result)
| Parameter | Type | Description |
|---|---|---|
| result | IAsyncResult |
Returns
Invoke(ITextBufferReader, ILexicalScope)
public virtual MergableLexerResult Invoke(ITextBufferReader reader, ILexicalScope lexicalScope)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | |
| lexicalScope | ILexicalScope |