ControlFlowGraph.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(IAttributeOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(IBlockOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(IConstructorBodyOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(IFieldInitializerOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(IMethodBodyOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(IParameterInitializerOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(IPropertyInitializerOperation, CancellationToken) |
ControlFlowGraph为给定的可执行代码块 |
Create(SyntaxNode, SemanticModel, CancellationToken) |
ControlFlowGraph为给定的可执行代码块根 |
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 可执行代码块返回 。