Simplifier.ReduceAsync 方法

定义

重载

ReduceAsync(Document, OptionSet, CancellationToken)

减少在文档中找到的所有子树 Annotation 。 批注节点和所有子节点将减少。

ReduceAsync(Document, SyntaxAnnotation, OptionSet, CancellationToken)

减少用指定的子树标识的子树中发现的批 Annotation 注子树 annotation。 批注节点和所有子节点将减少。

ReduceAsync(Document, TextSpan, OptionSet, CancellationToken)

减少指定跨度内发现的批注 Annotation 子树。 批注节点和所有子节点将减少。

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

减少指定跨度内找到的 Annotation 子树。 批注节点和所有子节点将减少。

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

减少在文档中找到的所有子树 Annotation 。 批注节点和所有子节点将减少。

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)

参数

document
Document
optionSet
OptionSet
cancellationToken
CancellationToken

返回

适用于

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

减少用指定的子树标识的子树中发现的批 Annotation 注子树 annotation。 批注节点和所有子节点将减少。

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)

参数

document
Document
annotation
SyntaxAnnotation
optionSet
OptionSet
cancellationToken
CancellationToken

返回

适用于

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

减少指定跨度内发现的批注 Annotation 子树。 批注节点和所有子节点将减少。

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)

参数

document
Document
span
TextSpan
optionSet
OptionSet
cancellationToken
CancellationToken

返回

适用于

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

减少指定跨度内找到的 Annotation 子树。 批注节点和所有子节点将减少。

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)

参数

document
Document
optionSet
OptionSet
cancellationToken
CancellationToken

返回

适用于