Simplifier.Expand 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Expand(SyntaxToken, SemanticModel, Workspace, Func<SyntaxNode,Boolean>, CancellationToken) |
展开指定子树的限定部分,使用 Annotation 批注对部件进行批注。 |
Expand<TNode>(TNode, SemanticModel, Workspace, Func<SyntaxNode,Boolean>, Boolean, CancellationToken) |
展开指定子树的限定部分,使用 Annotation 批注对部件进行批注。 |
Expand(SyntaxToken, SemanticModel, Workspace, 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
展开指定子树的限定部分,使用 Annotation 批注对部件进行批注。
public static Microsoft.CodeAnalysis.SyntaxToken Expand (Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.Workspace workspace, Func<Microsoft.CodeAnalysis.SyntaxNode,bool> expandInsideNode = default, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.SyntaxToken Expand (Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.Workspace workspace, Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? expandInsideNode = default, System.Threading.CancellationToken cancellationToken = default);
static member Expand : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.Workspace * Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SyntaxToken
Public Shared Function Expand (token As SyntaxToken, semanticModel As SemanticModel, workspace As Workspace, Optional expandInsideNode As Func(Of SyntaxNode, Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As SyntaxToken
参数
- token
- SyntaxToken
- semanticModel
- SemanticModel
- workspace
- Workspace
- expandInsideNode
- Func<SyntaxNode,Boolean>
- cancellationToken
- CancellationToken
返回
适用于
Expand<TNode>(TNode, SemanticModel, Workspace, 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
展开指定子树的限定部分,使用 Annotation 批注对部件进行批注。
public static TNode Expand<TNode> (TNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.Workspace workspace, Func<Microsoft.CodeAnalysis.SyntaxNode,bool> expandInsideNode = default, bool expandParameter = false, System.Threading.CancellationToken cancellationToken = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
public static TNode Expand<TNode> (TNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.Workspace workspace, Func<Microsoft.CodeAnalysis.SyntaxNode,bool>? expandInsideNode = default, bool expandParameter = false, System.Threading.CancellationToken cancellationToken = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member Expand : 'Node * Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.Workspace * Func<Microsoft.CodeAnalysis.SyntaxNode, bool> * bool * System.Threading.CancellationToken -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function Expand(Of TNode As SyntaxNode) (node As TNode, semanticModel As SemanticModel, workspace As Workspace, Optional expandInsideNode As Func(Of SyntaxNode, Boolean) = Nothing, Optional expandParameter As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As TNode
类型参数
- TNode
参数
- node
- TNode
- semanticModel
- SemanticModel
- workspace
- Workspace
- expandInsideNode
- Func<SyntaxNode,Boolean>
- expandParameter
- Boolean
- cancellationToken
- CancellationToken
返回
TNode