Freigeben über


PatternMatch.WithMatchedSpans(ImmutableArray<Span>) Method

Definition

Get a PatternMatch object with additional spans added to it. This is an optimization to avoid having to call the whole constructor.

public:
 Microsoft::VisualStudio::Text::PatternMatching::PatternMatch WithMatchedSpans(System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Text::Span> matchedSpans);
public Microsoft.VisualStudio.Text.PatternMatching.PatternMatch WithMatchedSpans (System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Text.Span> matchedSpans);
member this.WithMatchedSpans : System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Text.Span> -> Microsoft.VisualStudio.Text.PatternMatching.PatternMatch
Public Function WithMatchedSpans (matchedSpans As ImmutableArray(Of Span)) As PatternMatch

Parameters

matchedSpans
ImmutableArray<Span>

Spans to associate with this PatternMatch.

Returns

A new instance of a PatternMatch with the specified spans.

Applies to