AuthoringSink::StartName Method (TextSpan, String^)

 

Called when an identifier is parsed.

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

public:
virtual void StartName(
	TextSpan span,
	String^ name
)

Parameters

span
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

[in] A TextSpan object indicating the location of the identifier.

name
Type: System::String^

[in] The name of the identifier.

If the FindNames property returns true, this method is called to add the identifier's name and its location to internal lists. This method is typically called while parsing a method's parameter list.

The base method validates the TextSpan object and then if the identifier's location contains the starting point of the parse operation, adds the name and location to two internal lists called Names and SourceLocations, respectively.

Return to top
Show: