PatternMatch.WithMatchedSpans(ImmutableArray<Span>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.