AuthoringSink::QualifyName Method (TextSpan, TextSpan, String^)
Visual Studio 2015
Called to note the location of a member reference.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: virtual void QualifyName( TextSpan selectorContext, TextSpan nameContext, String^ name )
Parameters
- selectorContext
-
Type:
Microsoft.VisualStudio.TextManager.Interop::TextSpan
[in] A TextSpan object indicating the selector (for example, "." or "->").
- nameContext
-
Type:
Microsoft.VisualStudio.TextManager.Interop::TextSpan
[in] A TextSpan object indicating the member name.
- name
-
Type:
System::String^
[in] The member name as indicated by nameContext.
If the FindNames property returns true, this method is called to add the specified name to a list of identifiers and a list of source locations.
The base method validates the two TextSpan objects, which includes insuring the nameContext follows the selectorContext, and then adds the name and its location to internal lists if the name's location contains the starting line of the parsing operation. These internal lists are called Names and SourceLocations, respectively.
Show: