In This Article

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, IntPtr)

public ProgrammaticLexicalScopeMatch(object @object, IntPtr method)
Parameter Type Description
object object
method IntPtr

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

IAsyncResult

EndInvoke(IAsyncResult)

public virtual MergableLexerResult EndInvoke(IAsyncResult result)
Parameter Type Description
result IAsyncResult

Returns

MergableLexerResult

Invoke(ITextBufferReader, ILexicalScope)

public virtual MergableLexerResult Invoke(ITextBufferReader reader, ILexicalScope lexicalScope)
Parameter Type Description
reader ITextBufferReader
lexicalScope ILexicalScope

Returns

MergableLexerResult