Simplifier.ExpandAsync Method

Definition

Overloads

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

Expand qualifying parts of the specified subtree, annotating the parts using the Annotation annotation.

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

Expand qualifying parts of the specified subtree, annotating the parts using the Annotation annotation.

ExpandAsync(SyntaxToken, Document, Func<SyntaxNode,Boolean>, 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
Source:
Simplifier.cs
Source:
Simplifier.cs

Expand qualifying parts of the specified subtree, annotating the parts using the Annotation annotation.

C#
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);
C#
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);

Parameters

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

Returns

Applies to

Roslyn 4.13.0 and other versions
Product Versions
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

ExpandAsync<TNode>(TNode, Document, Func<SyntaxNode,Boolean>, Boolean, 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
Source:
Simplifier.cs
Source:
Simplifier.cs

Expand qualifying parts of the specified subtree, annotating the parts using the Annotation annotation.

C#
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;
C#
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;

Type Parameters

TNode

Parameters

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

Returns

Task<TNode>

Applies to

Roslyn 4.13.0 and other versions
Product Versions
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