Share via


Simplifier.ReduceAsync Method

Definition

Overloads

ReduceAsync(Document, OptionSet, CancellationToken)

Reduce all sub-trees annotated with Annotation found within the document. The annotated node and all child nodes will be reduced.

ReduceAsync(Document, SyntaxAnnotation, OptionSet, CancellationToken)

Reduce the sub-trees annotated with Annotation found within the subtrees identified with the specified annotation. The annotated node and all child nodes will be reduced.

ReduceAsync(Document, TextSpan, OptionSet, CancellationToken)

Reduce the sub-trees annotated with Annotation found within the specified span. The annotated node and all child nodes will be reduced.

ReduceAsync(Document, IEnumerable<TextSpan>, OptionSet, CancellationToken)

Reduce the sub-trees annotated with Annotation found within the specified spans. The annotated node and all child nodes will be reduced.

ReduceAsync(Document, OptionSet, CancellationToken)

Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs

Reduce all sub-trees annotated with Annotation found within the document. The annotated node and all child nodes will be reduced.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Options.OptionSet optionSet = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Options.OptionSet? optionSet = default, System.Threading.CancellationToken cancellationToken = default);
static member ReduceAsync : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Options.OptionSet * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
Public Shared Function ReduceAsync (document As Document, Optional optionSet As OptionSet = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Document)

Parameters

document
Document
optionSet
OptionSet
cancellationToken
CancellationToken

Returns

Applies to

ReduceAsync(Document, SyntaxAnnotation, OptionSet, CancellationToken)

Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs

Reduce the sub-trees annotated with Annotation found within the subtrees identified with the specified annotation. The annotated node and all child nodes will be reduced.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxAnnotation annotation, Microsoft.CodeAnalysis.Options.OptionSet optionSet = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxAnnotation annotation, Microsoft.CodeAnalysis.Options.OptionSet? optionSet = default, System.Threading.CancellationToken cancellationToken = default);
static member ReduceAsync : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.SyntaxAnnotation * Microsoft.CodeAnalysis.Options.OptionSet * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
Public Shared Function ReduceAsync (document As Document, annotation As SyntaxAnnotation, Optional optionSet As OptionSet = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Document)

Parameters

document
Document
annotation
SyntaxAnnotation
optionSet
OptionSet
cancellationToken
CancellationToken

Returns

Applies to

ReduceAsync(Document, TextSpan, OptionSet, CancellationToken)

Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs

Reduce the sub-trees annotated with Annotation found within the specified span. The annotated node and all child nodes will be reduced.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Microsoft.CodeAnalysis.Options.OptionSet optionSet = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Microsoft.CodeAnalysis.Options.OptionSet? optionSet = default, System.Threading.CancellationToken cancellationToken = default);
static member ReduceAsync : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Text.TextSpan * Microsoft.CodeAnalysis.Options.OptionSet * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
Public Shared Function ReduceAsync (document As Document, span As TextSpan, Optional optionSet As OptionSet = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Document)

Parameters

document
Document
span
TextSpan
optionSet
OptionSet
cancellationToken
CancellationToken

Returns

Applies to

ReduceAsync(Document, IEnumerable<TextSpan>, OptionSet, CancellationToken)

Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs
Source:
Simplifier.cs

Reduce the sub-trees annotated with Annotation found within the specified spans. The annotated node and all child nodes will be reduced.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan> spans, Microsoft.CodeAnalysis.Options.OptionSet optionSet = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReduceAsync (Microsoft.CodeAnalysis.Document document, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan> spans, Microsoft.CodeAnalysis.Options.OptionSet? optionSet = default, System.Threading.CancellationToken cancellationToken = default);
static member ReduceAsync : Microsoft.CodeAnalysis.Document * seq<Microsoft.CodeAnalysis.Text.TextSpan> * Microsoft.CodeAnalysis.Options.OptionSet * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
Public Shared Function ReduceAsync (document As Document, spans As IEnumerable(Of TextSpan), Optional optionSet As OptionSet = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Document)

Parameters

document
Document
optionSet
OptionSet
cancellationToken
CancellationToken

Returns

Applies to