Share via


SemanticEdit Constructors

Definition

Overloads

SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Boolean)
Obsolete.

Initializes an instance of SemanticEdit.

SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Boolean, MethodInstrumentation)
Obsolete.

Initializes an instance of SemanticEdit.

SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Func<SyntaxNode,Nullable<RuntimeRudeEdit>>, MethodInstrumentation)

Initializes an instance of SemanticEdit.

SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Boolean)

Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs

Caution

Use other overload

Initializes an instance of SemanticEdit.

public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol oldSymbol, Microsoft.CodeAnalysis.ISymbol newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode> syntaxMap = default, bool preserveLocalVariables = false);
public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol? oldSymbol, Microsoft.CodeAnalysis.ISymbol? newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode?>? syntaxMap = default, bool preserveLocalVariables = false);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use other overload")]
public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol? oldSymbol, Microsoft.CodeAnalysis.ISymbol? newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode?>? syntaxMap, bool preserveLocalVariables);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol? oldSymbol, Microsoft.CodeAnalysis.ISymbol? newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode?>? syntaxMap, bool preserveLocalVariables);
new Microsoft.CodeAnalysis.Emit.SemanticEdit : Microsoft.CodeAnalysis.Emit.SemanticEditKind * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ISymbol * Func<Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SyntaxNode> * bool -> Microsoft.CodeAnalysis.Emit.SemanticEdit
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use other overload")>]
new Microsoft.CodeAnalysis.Emit.SemanticEdit : Microsoft.CodeAnalysis.Emit.SemanticEditKind * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ISymbol * Func<Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SyntaxNode> * bool -> Microsoft.CodeAnalysis.Emit.SemanticEdit
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
new Microsoft.CodeAnalysis.Emit.SemanticEdit : Microsoft.CodeAnalysis.Emit.SemanticEditKind * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ISymbol * Func<Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SyntaxNode> * bool -> Microsoft.CodeAnalysis.Emit.SemanticEdit
Public Sub New (kind As SemanticEditKind, oldSymbol As ISymbol, newSymbol As ISymbol, Optional syntaxMap As Func(Of SyntaxNode, SyntaxNode) = Nothing, Optional preserveLocalVariables As Boolean = false)
Public Sub New (kind As SemanticEditKind, oldSymbol As ISymbol, newSymbol As ISymbol, syntaxMap As Func(Of SyntaxNode, SyntaxNode), preserveLocalVariables As Boolean)

Parameters

kind
SemanticEditKind

The type of edit.

oldSymbol
ISymbol

The symbol from the earlier compilation, or null if the edit represents an addition.

newSymbol
ISymbol

The symbol from the later compilation, or null if the edit represents a deletion.

syntaxMap
Func<SyntaxNode,SyntaxNode>

A map from syntax node in the later compilation to syntax node in the previous compilation, or null if preserveLocalVariables is false and the map is not needed or the source of the current method is the same as the source of the previous method.

preserveLocalVariables
Boolean

True if the edit is an update of an active method and local values should be preserved; false otherwise.

Attributes

Exceptions

oldSymbol or newSymbol is null and the edit isn't a Insert or Delete, respectively.

kind is not a valid kind.

Applies to

SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Boolean, MethodInstrumentation)

Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs
Source:
SemanticEdit.cs

Caution

Use other overload

Initializes an instance of SemanticEdit.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use other overload")]
public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol? oldSymbol, Microsoft.CodeAnalysis.ISymbol? newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode?>? syntaxMap, bool preserveLocalVariables, Microsoft.CodeAnalysis.Emit.MethodInstrumentation instrumentation);
public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol? oldSymbol, Microsoft.CodeAnalysis.ISymbol? newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode?>? syntaxMap = default, bool preserveLocalVariables = false, Microsoft.CodeAnalysis.Emit.MethodInstrumentation instrumentation = default);
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use other overload")>]
new Microsoft.CodeAnalysis.Emit.SemanticEdit : Microsoft.CodeAnalysis.Emit.SemanticEditKind * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ISymbol * Func<Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SyntaxNode> * bool * Microsoft.CodeAnalysis.Emit.MethodInstrumentation -> Microsoft.CodeAnalysis.Emit.SemanticEdit
new Microsoft.CodeAnalysis.Emit.SemanticEdit : Microsoft.CodeAnalysis.Emit.SemanticEditKind * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ISymbol * Func<Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SyntaxNode> * bool * Microsoft.CodeAnalysis.Emit.MethodInstrumentation -> Microsoft.CodeAnalysis.Emit.SemanticEdit
Public Sub New (kind As SemanticEditKind, oldSymbol As ISymbol, newSymbol As ISymbol, syntaxMap As Func(Of SyntaxNode, SyntaxNode), preserveLocalVariables As Boolean, instrumentation As MethodInstrumentation)
Public Sub New (kind As SemanticEditKind, oldSymbol As ISymbol, newSymbol As ISymbol, Optional syntaxMap As Func(Of SyntaxNode, SyntaxNode) = Nothing, Optional preserveLocalVariables As Boolean = false, Optional instrumentation As MethodInstrumentation = Nothing)

Parameters

kind
SemanticEditKind

The type of edit.

oldSymbol
ISymbol

The symbol from the earlier compilation, or null if the edit represents an addition.

newSymbol
ISymbol

The symbol from the later compilation, or null if the edit represents a deletion.

syntaxMap
Func<SyntaxNode,SyntaxNode>

A map from syntax node in the later compilation to syntax node in the previous compilation, or null if preserveLocalVariables is false and the map is not needed or the source of the current method is the same as the source of the previous method.

preserveLocalVariables
Boolean

True if the edit is an update of an active method and local values should be preserved; false otherwise.

instrumentation
MethodInstrumentation

Instrumentation update to be applied to a method.

Attributes

Exceptions

oldSymbol or newSymbol is null and the edit isn't a Insert or Delete, respectively.

kind is not a valid kind.

Applies to

SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Func<SyntaxNode,Nullable<RuntimeRudeEdit>>, MethodInstrumentation)

Source:
SemanticEdit.cs
Source:
SemanticEdit.cs

Initializes an instance of SemanticEdit.

public SemanticEdit (Microsoft.CodeAnalysis.Emit.SemanticEditKind kind, Microsoft.CodeAnalysis.ISymbol? oldSymbol, Microsoft.CodeAnalysis.ISymbol? newSymbol, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.SyntaxNode?>? syntaxMap = default, Func<Microsoft.CodeAnalysis.SyntaxNode,Microsoft.CodeAnalysis.Emit.RuntimeRudeEdit?>? runtimeRudeEdit = default, Microsoft.CodeAnalysis.Emit.MethodInstrumentation instrumentation = default);
new Microsoft.CodeAnalysis.Emit.SemanticEdit : Microsoft.CodeAnalysis.Emit.SemanticEditKind * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ISymbol * Func<Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SyntaxNode> * Func<Microsoft.CodeAnalysis.SyntaxNode, Nullable<Microsoft.CodeAnalysis.Emit.RuntimeRudeEdit>> * Microsoft.CodeAnalysis.Emit.MethodInstrumentation -> Microsoft.CodeAnalysis.Emit.SemanticEdit
Public Sub New (kind As SemanticEditKind, oldSymbol As ISymbol, newSymbol As ISymbol, Optional syntaxMap As Func(Of SyntaxNode, SyntaxNode) = Nothing, Optional runtimeRudeEdit As Func(Of SyntaxNode, Nullable(Of RuntimeRudeEdit)) = Nothing, Optional instrumentation As MethodInstrumentation = Nothing)

Parameters

kind
SemanticEditKind

The type of edit.

oldSymbol
ISymbol

The symbol from the earlier compilation, or null if the edit represents an addition.

newSymbol
ISymbol

The symbol from the later compilation, or the symbol of the containing type from the later compilation if kind is Delete.

syntaxMap
Func<SyntaxNode,SyntaxNode>

A map from syntax node in the later compilation to syntax node in the previous compilation, or null if the method state (locals, closures, etc.) doesn't need to be preserved.

instrumentation
MethodInstrumentation

Instrumentation update to be applied to a method.

Exceptions

oldSymbol or newSymbol is null and the edit isn't a Insert or Delete, respectively.

kind is not a valid kind.

Applies to