[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] //// used to hide from code coverage tools. public static IComparer <TypeSyntax> Create(IComparer <SyntaxToken> tokenComparer) { var nameComparer = new NameSyntaxComparer(tokenComparer); var typeComparer = new TypeSyntaxComparer(tokenComparer); nameComparer.TypeComparer = typeComparer; typeComparer.NameComparer = nameComparer; return(typeComparer); }
internal NameSyntaxComparer(IComparer <SyntaxToken> tokenComparer) { _tokenComparer = tokenComparer; TypeComparer = new TypeSyntaxComparer(tokenComparer, this); }