LanguageService.GetScanner(IVsTextLines) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a single instantiation of a parser.
public:
abstract Microsoft::VisualStudio::Package::IScanner ^ GetScanner(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer);
public:
abstract Microsoft::VisualStudio::Package::IScanner ^ GetScanner(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer);
abstract Microsoft::VisualStudio::Package::IScanner GetScanner(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & buffer);
public abstract Microsoft.VisualStudio.Package.IScanner GetScanner (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines buffer);
abstract member GetScanner : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> Microsoft.VisualStudio.Package.IScanner
Public MustOverride Function GetScanner (buffer As IVsTextLines) As IScanner
Parameters
- buffer
- IVsTextLines
[in] An IVsTextLines representing the lines of source to parse.
Returns
If successful, returns an IScanner object; otherwise, returns a null value.
Remarks
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.