Condividi tramite


AuthoringSink.QualifyName(TextSpan, TextSpan, String) Method

Definition

QualifyName is called for each qualification with both the text span of the selector (e.g. ".") and the text span of the name ("WriteLine").

public:
 virtual void QualifyName(Microsoft::VisualStudio::TextManager::Interop::TextSpan selectorContext, Microsoft::VisualStudio::TextManager::Interop::TextSpan nameContext, System::String ^ name);
public:
 virtual void QualifyName(Microsoft::VisualStudio::TextManager::Interop::TextSpan selectorContext, Microsoft::VisualStudio::TextManager::Interop::TextSpan nameContext, Platform::String ^ name);
 virtual void QualifyName(Microsoft::VisualStudio::TextManager::Interop::TextSpan selectorContext, Microsoft::VisualStudio::TextManager::Interop::TextSpan nameContext, std::wstring const & name);
public virtual void QualifyName (Microsoft.VisualStudio.TextManager.Interop.TextSpan selectorContext, Microsoft.VisualStudio.TextManager.Interop.TextSpan nameContext, string name);
abstract member QualifyName : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan * string -> unit
override this.QualifyName : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan * string -> unit
Public Overridable Sub QualifyName (selectorContext As TextSpan, nameContext As TextSpan, name As String)

Parameters

selectorContext
TextSpan

[in] A TextSpan object indicating the selector (for example, "." or "->").

nameContext
TextSpan

[in] A TextSpan object indicating the member name.

name
String

[in] The member name as indicated by nameContext.

Remarks

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.

Applies to