LanguageService::GetScanner Method (IVsTextLines^)

 

Returns a single instantiation of a parser.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual IScanner^ GetScanner(
	IVsTextLines^ buffer
) abstract

Parameters

buffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

[in] An IVsTextLines representing the lines of source to parse.

Return Value

Type: Microsoft.VisualStudio.Package::IScanner^

If successful, returns an IScanner object; otherwise, returns a null value.

This method must be implemented in a class derived from the LanguageService class. The parser that is returned is used in the colorizer and can be used in all other parsing operations.

Return to top
Show: