共用方式為


Simplifier.ExpandAsync 方法

定義

多載

ExpandAsync(SyntaxToken, Document, Func<SyntaxNode,Boolean>, CancellationToken)

展開指定子樹的限定部分,並使用 Annotation 注釋標注元件。

ExpandAsync<TNode>(TNode, Document, Func<SyntaxNode,Boolean>, Boolean, CancellationToken)

展開指定子樹的限定部分,並使用 Annotation 注釋標注元件。

ExpandAsync(SyntaxToken, Document, Func<SyntaxNode,Boolean>, CancellationToken)

來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs

展開指定子樹的限定部分,並使用 Annotation 注釋標注元件。

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxToken> ExpandAsync (Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.Document document, Func<Microsoft.CodeAnalysis.SyntaxNode,bool> expandInsideNode = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxToken> ExpandAsync (Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.Document document, Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? expandInsideNode = default, System.Threading.CancellationToken cancellationToken = default);
static member ExpandAsync : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.Document * Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxToken>
Public Shared Function ExpandAsync (token As SyntaxToken, document As Document, Optional expandInsideNode As Func(Of SyntaxNode, Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxToken)

參數

token
SyntaxToken
document
Document
expandInsideNode
Func<SyntaxNode,Boolean>
cancellationToken
CancellationToken

傳回

適用於

ExpandAsync<TNode>(TNode, Document, Func<SyntaxNode,Boolean>, Boolean, CancellationToken)

來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs
來源:
Simplifier.cs

展開指定子樹的限定部分,並使用 Annotation 注釋標注元件。

public static System.Threading.Tasks.Task<TNode> ExpandAsync<TNode> (TNode node, Microsoft.CodeAnalysis.Document document, Func<Microsoft.CodeAnalysis.SyntaxNode,bool> expandInsideNode = default, bool expandParameter = false, System.Threading.CancellationToken cancellationToken = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
public static System.Threading.Tasks.Task<TNode> ExpandAsync<TNode> (TNode node, Microsoft.CodeAnalysis.Document document, Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? expandInsideNode = default, bool expandParameter = false, System.Threading.CancellationToken cancellationToken = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member ExpandAsync : 'Node * Microsoft.CodeAnalysis.Document * Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function ExpandAsync(Of TNode As SyntaxNode) (node As TNode, document As Document, Optional expandInsideNode As Func(Of SyntaxNode, Boolean) = Nothing, Optional expandParameter As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TNode)

類型參數

TNode

參數

node
TNode
document
Document
expandInsideNode
Func<SyntaxNode,Boolean>
expandParameter
Boolean
cancellationToken
CancellationToken

傳回

Task<TNode>

適用於