SyntaxFactory.AreEquivalent 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AreEquivalent(SyntaxTree, SyntaxTree, Boolean) |
确定两棵树是否相同,忽略琐碎差异。 |
AreEquivalent(SyntaxNode, SyntaxNode, Func<SyntaxKind,Boolean>) |
确定两个语法节点是否相同,忽略琐碎差异。 |
AreEquivalent(SyntaxToken, SyntaxToken) |
确定两个语法令牌是否相同,忽略琐碎差异。 |
AreEquivalent(SyntaxTokenList, SyntaxTokenList) |
确定两个令牌列表是否相同,忽略琐碎差异。 |
AreEquivalent(SyntaxNode, SyntaxNode, Boolean) |
确定两个语法节点是否相同,忽略琐碎差异。 |
AreEquivalent<TNode>(SeparatedSyntaxList<TNode>, SeparatedSyntaxList<TNode>, Func<SyntaxKind,Boolean>) |
确定两个语法节点列表是否相同,忽略琐碎差异。 |
AreEquivalent<TNode>(SyntaxList<TNode>, SyntaxList<TNode>, Func<SyntaxKind,Boolean>) |
确定两个语法节点列表是否相同,忽略琐碎差异。 |
AreEquivalent(SyntaxTree, SyntaxTree, Boolean)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两棵树是否相同,忽略琐碎差异。
public:
static bool AreEquivalent(Microsoft::CodeAnalysis::SyntaxTree ^ oldTree, Microsoft::CodeAnalysis::SyntaxTree ^ newTree, bool topLevel);
public static bool AreEquivalent (Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree newTree, bool topLevel);
static member AreEquivalent : Microsoft.CodeAnalysis.SyntaxTree * Microsoft.CodeAnalysis.SyntaxTree * bool -> bool
Public Shared Function AreEquivalent (oldTree As SyntaxTree, newTree As SyntaxTree, topLevel As Boolean) As Boolean
参数
- oldTree
- SyntaxTree
原始树。
- newTree
- SyntaxTree
新树。
- topLevel
- Boolean
如果忽略方法、运算符、构造函数和访问器主体内节点的任何差异,以及字段和自动属性初始值设定项,则所有节点和令牌都必须等效。
返回
适用于
AreEquivalent(SyntaxNode, SyntaxNode, Func<SyntaxKind,Boolean>)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两个语法节点是否相同,忽略琐碎差异。
public static bool AreEquivalent (Microsoft.CodeAnalysis.SyntaxNode oldNode, Microsoft.CodeAnalysis.SyntaxNode newNode, Func<Microsoft.CodeAnalysis.VisualBasic.SyntaxKind,bool> ignoreChildNode = default);
static member AreEquivalent : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * Func<Microsoft.CodeAnalysis.VisualBasic.SyntaxKind, bool> -> bool
Public Shared Function AreEquivalent (oldNode As SyntaxNode, newNode As SyntaxNode, Optional ignoreChildNode As Func(Of SyntaxKind, Boolean) = Nothing) As Boolean
参数
- oldNode
- SyntaxNode
旧节点。
- newNode
- SyntaxNode
新的节点。
- ignoreChildNode
- Func<SyntaxKind,Boolean>
如果为每个子语法节点指定了调用, (不是在比较期间访问的令牌) 。 它返回 true,子级递归访问,否则子树及其子树被忽略。
返回
适用于
AreEquivalent(SyntaxToken, SyntaxToken)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两个语法令牌是否相同,忽略琐碎差异。
public:
static bool AreEquivalent(Microsoft::CodeAnalysis::SyntaxToken oldToken, Microsoft::CodeAnalysis::SyntaxToken newToken);
public static bool AreEquivalent (Microsoft.CodeAnalysis.SyntaxToken oldToken, Microsoft.CodeAnalysis.SyntaxToken newToken);
static member AreEquivalent : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> bool
Public Shared Function AreEquivalent (oldToken As SyntaxToken, newToken As SyntaxToken) As Boolean
参数
- oldToken
- SyntaxToken
旧令牌。
- newToken
- SyntaxToken
新令牌。
返回
适用于
AreEquivalent(SyntaxTokenList, SyntaxTokenList)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两个令牌列表是否相同,忽略琐碎差异。
public:
static bool AreEquivalent(Microsoft::CodeAnalysis::SyntaxTokenList oldList, Microsoft::CodeAnalysis::SyntaxTokenList newList);
public static bool AreEquivalent (Microsoft.CodeAnalysis.SyntaxTokenList oldList, Microsoft.CodeAnalysis.SyntaxTokenList newList);
static member AreEquivalent : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SyntaxTokenList -> bool
Public Shared Function AreEquivalent (oldList As SyntaxTokenList, newList As SyntaxTokenList) As Boolean
参数
- oldList
- SyntaxTokenList
旧令牌列表。
- newList
- SyntaxTokenList
新的令牌列表。
返回
适用于
AreEquivalent(SyntaxNode, SyntaxNode, Boolean)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两个语法节点是否相同,忽略琐碎差异。
public:
static bool AreEquivalent(Microsoft::CodeAnalysis::SyntaxNode ^ oldNode, Microsoft::CodeAnalysis::SyntaxNode ^ newNode, bool topLevel);
public static bool AreEquivalent (Microsoft.CodeAnalysis.SyntaxNode oldNode, Microsoft.CodeAnalysis.SyntaxNode newNode, bool topLevel);
static member AreEquivalent : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * bool -> bool
Public Shared Function AreEquivalent (oldNode As SyntaxNode, newNode As SyntaxNode, topLevel As Boolean) As Boolean
参数
- oldNode
- SyntaxNode
旧节点。
- newNode
- SyntaxNode
新的节点。
- topLevel
- Boolean
如果忽略方法、运算符、构造函数和访问器主体内节点的任何差异,以及字段和自动属性初始值设定项,则所有节点和令牌都必须等效。
返回
适用于
AreEquivalent<TNode>(SeparatedSyntaxList<TNode>, SeparatedSyntaxList<TNode>, Func<SyntaxKind,Boolean>)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两个语法节点列表是否相同,忽略琐碎差异。
public static bool AreEquivalent<TNode> (Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> oldList, Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> newList, Func<Microsoft.CodeAnalysis.VisualBasic.SyntaxKind,bool> ignoreChildNode = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member AreEquivalent : Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Func<Microsoft.CodeAnalysis.VisualBasic.SyntaxKind, bool> -> bool (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function AreEquivalent(Of TNode As SyntaxNode) (oldList As SeparatedSyntaxList(Of TNode), newList As SeparatedSyntaxList(Of TNode), Optional ignoreChildNode As Func(Of SyntaxKind, Boolean) = Nothing) As Boolean
类型参数
- TNode
参数
- oldList
- SeparatedSyntaxList<TNode>
旧列表。
- newList
- SeparatedSyntaxList<TNode>
新列表。
- ignoreChildNode
- Func<SyntaxKind,Boolean>
如果为每个子语法节点指定了调用, (不是在比较期间访问的令牌) 。 它返回 true,子级递归访问,否则子树及其子树将被忽略。
返回
适用于
AreEquivalent<TNode>(SyntaxList<TNode>, SyntaxList<TNode>, Func<SyntaxKind,Boolean>)
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
- Source:
- SyntaxFactory.vb
确定两个语法节点列表是否相同,忽略琐碎差异。
public static bool AreEquivalent<TNode> (Microsoft.CodeAnalysis.SyntaxList<TNode> oldList, Microsoft.CodeAnalysis.SyntaxList<TNode> newList, Func<Microsoft.CodeAnalysis.VisualBasic.SyntaxKind,bool> ignoreChildNode = default) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member AreEquivalent : Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Func<Microsoft.CodeAnalysis.VisualBasic.SyntaxKind, bool> -> bool (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function AreEquivalent(Of TNode As SyntaxNode) (oldList As SyntaxList(Of TNode), newList As SyntaxList(Of TNode), Optional ignoreChildNode As Func(Of SyntaxKind, Boolean) = Nothing) As Boolean
类型参数
- TNode
参数
- oldList
- SyntaxList<TNode>
旧列表。
- newList
- SyntaxList<TNode>
新列表。
- ignoreChildNode
- Func<SyntaxKind,Boolean>
如果为每个子语法节点指定了调用, (不是在比较期间访问的令牌) 。 它返回 true,子级递归访问,否则子树及其子树将被忽略。