protected override bool IsEquivalentToCore(SyntaxNode node, bool topLevel = false) { return(SyntaxFactory.AreEquivalent(this, (CSharpSyntaxNode)node, topLevel)); }
/// <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)); }