コード例 #1
0
            public override SyntaxNode VisitIdentifierName(IdentifierNameSyntax node)
            {
                IAliasSymbol aliasSymbol = SemanticModel.GetAliasInfo(node, CancellationToken);

                if (SymbolEqualityComparer.Default.Equals(aliasSymbol, AliasSymbol))
                {
                    return(Replacement
                           .WithTriviaFrom(node)
                           .WithSimplifierAnnotation());
                }

                return(base.VisitIdentifierName(node));
            }