SemanticEdit 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
注意
Use other overload
初始化 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)
参数
- kind
- SemanticEditKind
编辑的类型。
- oldSymbol
- ISymbol
早期编译中的符号;如果编辑表示加法,则为 null。
- newSymbol
- ISymbol
来自后续编译的符号;如果编辑表示删除,则为 null。
- syntaxMap
- Func<SyntaxNode,SyntaxNode>
从以后编译中的语法节点到上一次编译中的语法节点的映射;如果 preserveLocalVariables
为 false 且不需要映射,或者当前方法的源与上一方法的源相同,则为 null。
- preserveLocalVariables
- Boolean
如果编辑是活动方法的更新并且应保留本地值,则为 True;否则为 false。
- 属性
例外
kind
不是有效的类型。
适用于
SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Boolean, MethodInstrumentation)
- Source:
- SemanticEdit.cs
- Source:
- SemanticEdit.cs
- Source:
- SemanticEdit.cs
- Source:
- SemanticEdit.cs
- Source:
- SemanticEdit.cs
注意
Use other overload
初始化 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)
参数
- kind
- SemanticEditKind
编辑的类型。
- oldSymbol
- ISymbol
早期编译中的符号;如果编辑表示加法,则为 null。
- newSymbol
- ISymbol
来自后续编译的符号;如果编辑表示删除,则为 null。
- syntaxMap
- Func<SyntaxNode,SyntaxNode>
从以后编译中的语法节点到上一次编译中的语法节点的映射;如果 preserveLocalVariables
为 false 且不需要映射,或者当前方法的源与上一方法的源相同,则为 null。
- preserveLocalVariables
- Boolean
如果编辑是活动方法的更新并且应保留本地值,则为 True;否则为 false。
- instrumentation
- MethodInstrumentation
要应用于方法的检测更新。
- 属性
例外
kind
不是有效的类型。
适用于
SemanticEdit(SemanticEditKind, ISymbol, ISymbol, Func<SyntaxNode,SyntaxNode>, Func<SyntaxNode,Nullable<RuntimeRudeEdit>>, MethodInstrumentation)
- Source:
- SemanticEdit.cs
- Source:
- SemanticEdit.cs
初始化 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)
参数
- kind
- SemanticEditKind
编辑的类型。
- oldSymbol
- ISymbol
早期编译中的符号;如果编辑表示加法,则为 null。
- syntaxMap
- Func<SyntaxNode,SyntaxNode>
从以后编译中的语法节点映射到上一编译中的语法节点;如果方法状态 (局部变量、闭包等,则为 null,) 不需要保留。
- runtimeRudeEdit
- Func<SyntaxNode,Nullable<RuntimeRudeEdit>>
- instrumentation
- MethodInstrumentation
要应用于方法的检测更新。
例外
kind
不是有效的类型。