AuthoringSink.CodeSpan(TextSpan) Method

Definition

CodeSpan is in support of IVsLanguageDebugInfo.ValidateBreakpointLocation. It is called for each region that contains "executable" code. This is used to validate breakpoints. Comments are automatically taken care of based on TokenInfo returned from scanner. Normally this method is called when a procedure is started/ended.

public:
 virtual void CodeSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public:
 virtual void CodeSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
 virtual void CodeSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan span);
public virtual void CodeSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
abstract member CodeSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> unit
override this.CodeSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan -> unit
Public Overridable Sub CodeSpan (span As TextSpan)

Parameters

span
TextSpan

[in] A TextSpan object indicating the section of code to add to the list.

Remarks

The spans stored in the list by this method are used to validate breakpoints. If you want to support this functionality, you must derive a class from the AuthoringSink class and implement this method and the associated internal list. This list can then be used to implement the language service's ValidateBreakpointLocation method. You must supply the method needed to retrieve the code span from your version of the AuthoringSink class.

The base method does nothing.

Applies to