ProgrammaticLexicalScopeMatch Delegate
Represents the method that will handle token matching callbacks for ProgrammaticLexicalScope objects.
public delegate MergeableLexerResult 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 |
|---|---|
| MergeableLexerResult | A MergeableLexerResult 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 MergeableLexerResult EndInvoke(IAsyncResult result)
| Parameter | Type | Description |
|---|---|---|
| result | IAsyncResult |
Returns
Invoke(ITextBufferReader, ILexicalScope)
public virtual MergeableLexerResult Invoke(ITextBufferReader reader, ILexicalScope lexicalScope)
| Parameter | Type | Description |
|---|---|---|
| reader | ITextBufferReader | |
| lexicalScope | ILexicalScope |