Simplifier.ReduceAsync Method
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.
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 |
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. |
- 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
- 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
Roslyn 4.13.0 dan versi lain
Produk | Versi |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
- 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
- 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
Roslyn 4.13.0 dan versi lain
Produk | Versi |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
- 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
- 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
Roslyn 4.13.0 dan versi lain
Produk | Versi |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
- 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
- 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
- spans
- IEnumerable<TextSpan>
- optionSet
- OptionSet
- cancellationToken
- CancellationToken
Returns
Applies to
Roslyn 4.13.0 dan versi lain
Produk | Versi |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
.NET maklum balas
.NET ialah projek sumber terbuka. Pilih pautan untuk memberikan maklum balas: