ControlFlowGraph.Create 方法

定义

重载

Create(IAttributeOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 attribute创建 。

Create(IBlockOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 body创建 。

Create(IConstructorBodyOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 constructorBody创建 。

Create(IFieldInitializerOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 initializer创建 。

Create(IMethodBodyOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 methodBody创建 。

Create(IParameterInitializerOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 initializer创建 。

Create(IPropertyInitializerOperation, CancellationToken)

ControlFlowGraph为给定的可执行代码块 initializer创建 。

Create(SyntaxNode, SemanticModel, CancellationToken)

ControlFlowGraph为给定的可执行代码块根 node创建 。

Create(IAttributeOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 attribute创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IAttributeOperation attribute, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IAttributeOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (attribute As IAttributeOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

attribute
IAttributeOperation

根属性操作,该操作必须具有 null 父级。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(IBlockOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 body创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IBlockOperation body, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IBlockOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (body As IBlockOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

body
IBlockOperation

根操作块,必须具有 null 父级。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(IConstructorBodyOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 constructorBody创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IConstructorBodyOperation constructorBody, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IConstructorBodyOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (constructorBody As IConstructorBodyOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

constructorBody
IConstructorBodyOperation

根构造函数主体操作,该操作必须具有 null 父级。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(IFieldInitializerOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 initializer创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IFieldInitializerOperation initializer, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IFieldInitializerOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (initializer As IFieldInitializerOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

initializer
IFieldInitializerOperation

根字段初始值设定项操作,该操作必须具有 null 父项。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(IMethodBodyOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 methodBody创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IMethodBodyOperation methodBody, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IMethodBodyOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (methodBody As IMethodBodyOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

methodBody
IMethodBodyOperation

根方法正文操作,该操作必须具有 null 父级。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(IParameterInitializerOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 initializer创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IParameterInitializerOperation initializer, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IParameterInitializerOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (initializer As IParameterInitializerOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

initializer
IParameterInitializerOperation

根参数初始值设定项操作,该操作必须具有 null 父项。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(IPropertyInitializerOperation, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块 initializer创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.Operations.IPropertyInitializerOperation initializer, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.Operations.IPropertyInitializerOperation * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (initializer As IPropertyInitializerOperation, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

initializer
IPropertyInitializerOperation

根属性初始值设定项操作,该操作必须具有 null 父项。

cancellationToken
CancellationToken

可选取消令牌。

返回

适用于

Create(SyntaxNode, SemanticModel, CancellationToken)

Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs
Source:
ControlFlowGraph.cs

ControlFlowGraph为给定的可执行代码块根 node创建 。

public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph Create (Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph? Create (Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.SemanticModel semanticModel, System.Threading.CancellationToken cancellationToken = default);
static member Create : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SemanticModel * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.FlowAnalysis.ControlFlowGraph
Public Shared Function Create (node As SyntaxNode, semanticModel As SemanticModel, Optional cancellationToken As CancellationToken = Nothing) As ControlFlowGraph

参数

node
SyntaxNode

可执行代码块的根语法节点。

semanticModel
SemanticModel

包含 的语法树的 node语义模型。

cancellationToken
CancellationToken

可选取消令牌。

返回

如果 GetOperation(SyntaxNode, CancellationToken) 为给定 node 的 和 semanticModel返回 null,则返回 null。 否则,为 ControlFlowGraph 可执行代码块返回 。

适用于