Export (0) Print
Expand All

IScanner.SetSource Method

Sets the line to be parsed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

void SetSource(
	string source,
	int offset
)

Parameters

source
Type: System.String

[in] The line to be tokenized.

offset
Type: System.Int32

[in] The character offset into the line to start parsing. You must pay attention to this value.

Language service scanning is always done on a line-by-line basis. This method is called to set the line to be parsed by subsequent calls to the ScanTokenAndProvideInfoAboutIt method.

Show:
© 2014 Microsoft