Ejemplo n.º 1
0
        [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);
        }
Ejemplo n.º 2
0
 internal NameSyntaxComparer(IComparer <SyntaxToken> tokenComparer)
 {
     _tokenComparer = tokenComparer;
     TypeComparer   = new TypeSyntaxComparer(tokenComparer, this);
 }