Source::CreateAuthoringSink Method (ParseReason, Int32, Int32)
Visual Studio 2015
Creates an instance of an AuthoringSink object for use in parsing operations.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: virtual AuthoringSink^ CreateAuthoringSink( ParseReason reason, int line, int col )
Parameters
- reason
-
Type:
Microsoft.VisualStudio.Package::ParseReason
A value from the ParseReason enumeration describing the reason for the parse operation.
- line
-
Type:
System::Int32
The line index where the parsing is to start.
- col
-
Type:
System::Int32
The column index where the parsing is to start.
This method is called from the CreateParseRequest method in the LanguageService class. If you need to derive a class from the AuthoringSink class, you need to derive a class from the Source class and override this method to instantiate your version of the AuthoringSink class.
The base method always returns a new instance of the AuthoringSink class.
Show: