Udostępnij za pośrednictwem


ControlFlowGraph.Create Method

Definition

Overloads

Create(IAttributeOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block attribute.

Create(IBlockOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block body.

Create(IConstructorBodyOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block constructorBody.

Create(IFieldInitializerOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block initializer.

Create(IMethodBodyOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block methodBody.

Create(IParameterInitializerOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block initializer.

Create(IPropertyInitializerOperation, CancellationToken)

Creates a ControlFlowGraph for the given executable code block initializer.

Create(SyntaxNode, SemanticModel, CancellationToken)

Creates a ControlFlowGraph for the given executable code block root node.

Create(IAttributeOperation, CancellationToken)

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

attribute
IAttributeOperation

Root attribute operation, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

body
IBlockOperation

Root operation block, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

constructorBody
IConstructorBodyOperation

Root constructor body operation, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

initializer
IFieldInitializerOperation

Root field initializer operation, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

methodBody
IMethodBodyOperation

Root method body operation, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

initializer
IParameterInitializerOperation

Root parameter initializer operation, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block 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

Parameters

initializer
IPropertyInitializerOperation

Root property initializer operation, which must have a null parent.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Applies to

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

Creates a ControlFlowGraph for the given executable code block root 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

Parameters

node
SyntaxNode

Root syntax node for an executable code block.

semanticModel
SemanticModel

Semantic model for the syntax tree containing the node.

cancellationToken
CancellationToken

Optional cancellation token.

Returns

Returns null if GetOperation(SyntaxNode, CancellationToken) returns null for the given node and semanticModel. Otherwise, returns a ControlFlowGraph for the executable code block.

Applies to