Compartir a través de


ControlFlowGraph.Create Método

Definición

Sobrecargas

Create(IAttributeOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque attributede código ejecutable determinado .

Create(IBlockOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque bodyde código ejecutable determinado .

Create(IConstructorBodyOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque constructorBodyde código ejecutable determinado .

Create(IFieldInitializerOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque initializerde código ejecutable determinado .

Create(IMethodBodyOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque methodBodyde código ejecutable determinado .

Create(IParameterInitializerOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque initializerde código ejecutable determinado .

Create(IPropertyInitializerOperation, CancellationToken)

Crea un ControlFlowGraph para el bloque initializerde código ejecutable determinado .

Create(SyntaxNode, SemanticModel, CancellationToken)

Crea un ControlFlowGraph para la raíz nodedel bloque de código ejecutable determinado.

Create(IAttributeOperation, CancellationToken)

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

Crea un ControlFlowGraph para el bloque attributede código ejecutable determinado .

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

Parámetros

attribute
IAttributeOperation

Operación de atributo raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para el bloque bodyde código ejecutable determinado .

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

Parámetros

body
IBlockOperation

Bloque de operación raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para el bloque constructorBodyde código ejecutable determinado .

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

Parámetros

constructorBody
IConstructorBodyOperation

Operación de cuerpo del constructor raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para el bloque initializerde código ejecutable determinado .

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

Parámetros

initializer
IFieldInitializerOperation

Operación de inicializador de campo raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para el bloque methodBodyde código ejecutable determinado .

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

Parámetros

methodBody
IMethodBodyOperation

Operación de cuerpo del método raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para el bloque initializerde código ejecutable determinado .

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

Parámetros

initializer
IParameterInitializerOperation

Operación de inicializador de parámetro raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para el bloque initializerde código ejecutable determinado .

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

Parámetros

initializer
IPropertyInitializerOperation

Operación de inicializador de propiedad raíz, que debe tener un elemento primario nulo.

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Se aplica a

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

Crea un ControlFlowGraph para la raíz nodedel bloque de código ejecutable determinado.

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

Parámetros

node
SyntaxNode

Nodo de sintaxis raíz para un bloque de código ejecutable.

semanticModel
SemanticModel

Modelo semántico para el árbol de sintaxis que contiene .node

cancellationToken
CancellationToken

Token de cancelación opcional.

Devoluciones

Devuelve null si GetOperation(SyntaxNode, CancellationToken) devuelve null para los valores especificados node y semanticModel. De lo contrario, devuelve un ControlFlowGraph para el bloque de código ejecutable.

Se aplica a