Exemplo n.º 1
0
 protected override bool IsEquivalentToCore(SyntaxNode node, bool topLevel = false)
 {
     return(SyntaxFactory.AreEquivalent(this, (CSharpSyntaxNode)node, topLevel));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determines if two trees are the same, disregarding trivia differences.
 /// </summary>
 /// <param name="tree">The tree to compare against.</param>
 /// <param name="topLevel">
 /// If true then the trees are equivalent if the contained nodes and tokens declaring metadata visible symbolic information are equivalent,
 /// ignoring any differences of nodes inside method bodies or initializer expressions, otherwise all nodes and tokens must be equivalent.
 /// </param>
 public override bool IsEquivalentTo(SyntaxTree tree, bool topLevel = false)
 {
     return(SyntaxFactory.AreEquivalent(this, tree, topLevel));
 }