92 references to IdentifierName
Microsoft.CodeAnalysis.CSharp (5)
Syntax.xml.Syntax.Generated.cs (1)
66var newNode = SyntaxFactory.IdentifierName(identifier);
Syntax\SyntaxFactory.cs (4)
1538return IdentifierName(Identifier(name)); 2296return SyntaxFactory.BinaryExpression(expression.Kind(), max.Expression, max.OperatorToken, SyntaxFactory.IdentifierName(gn.Identifier)); 2304return SyntaxFactory.QualifiedName(qn.Left, qn.DotToken, SyntaxFactory.IdentifierName(gn.Identifier)); 2312return SyntaxFactory.AliasQualifiedName(an.Alias, an.ColonColonToken, SyntaxFactory.IdentifierName(gn.Identifier));
Microsoft.CodeAnalysis.CSharp.Analyzers (2)
MetaAnalyzers\Fixers\CSharpPreferIsKindFix.cs (2)
52SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("IsKind")))); 84return memberAccessExpression.WithName(SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("IsKind")));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
40SyntaxFactory.IdentifierName(name)));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
128EqualsValueClause(IdentifierName(property.Identifier.WithoutTrivia())))
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
140(node, generator) => IdentifierName(parameter.Name.ToIdentifierToken()).WithTriviaFrom(node));
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
70var propertyIdentifierName = IdentifierName(property.Identifier.WithoutTrivia());
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
306return argumentNode.WithNameColon(argumentNode.NameColon.WithName(IdentifierName(newParameter.Identifier)));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
569var parameterNameNode = IdentifierName(ParseToken(parameterName));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
301ExpressionSyntax result = IdentifierName(GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
71IdentifierName(GlobalKeyword), 97IdentifierName(GlobalKeyword),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
216=> IdentifierName(GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
58=> SyntaxFactory.IdentifierName(identifier.ToIdentifierToken());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
82var replacementNode = IdentifierName(discardToken); 252left: IdentifierName(variable.Identifier),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\OutVarTests.cs (1)
32508type: SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("var")),
Microsoft.CodeAnalysis.CSharp.Features (26)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
220var aliasNode = aliasQualifier?.ToIdentifierName() ?? IdentifierName(GlobalKeyword);
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
100SyntaxKind.PostIncrementExpression, IdentifierName(indexVariable))],
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
238selectExpression: SyntaxFactory.IdentifierName(forEachInfo.ForEachStatement.Identifier),
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (2)
70IdentifierName(identifiers.Single()), 80identifier => Argument(IdentifierName(identifier)))]);
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (6)
136expression1 = IdentifierName(variable); 181expression2 = IdentifierName(variable); 451variableLocal = IdentifierName(symbolName); 470IdentifierName(variableDeclarator.Identifier), 500variable = IdentifierName(symbolName); 597var localFunctionInvocation = InvocationExpression(IdentifierName(localFunctionToken)).WithAdditionalAnnotations(Simplifier.Annotation);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (3)
311? IdentifierName(_methodName) 626SyntaxKind.SimpleAssignmentExpression, IdentifierName(identifier), variableDeclaration.Initializer.Value))); 723replacements.Add(declaration, IdentifierName(designation.Identifier)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (2)
40? MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, ParseName(typeDisplayString), IdentifierName(newNameToken)) 41: (ExpressionSyntax)IdentifierName(newNameToken);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
45var newLocalName = IdentifierName(newLocalNameToken);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (1)
33var newLocalName = SyntaxFactory.IdentifierName(newLocalNameToken);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
374newName = IdentifierName(Identifier(propertyName));
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
315NameMemberCref(IdentifierName(identifierToken), parameterList));
src\Analyzers\CSharp\CodeFixes\AddAnonymousTypeMemberName\CSharpAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
40SyntaxFactory.IdentifierName(name)));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
128EqualsValueClause(IdentifierName(property.Identifier.WithoutTrivia())))
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
140(node, generator) => IdentifierName(parameter.Name.ToIdentifierToken()).WithTriviaFrom(node));
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
70var propertyIdentifierName = IdentifierName(property.Identifier.WithoutTrivia());
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
306return argumentNode.WithNameColon(argumentNode.NameColon.WithName(IdentifierName(newParameter.Identifier)));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
569var parameterNameNode = IdentifierName(ParseToken(parameterName));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
729TypeSyntax speculate = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("A"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Diagnostics\LocationsTests.cs (2)
554var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier(SyntaxFactory.TriviaList(SyntaxFactory.Whitespace(" ")), "x", default(SyntaxTriviaList))); 586var nodeWithBadError = SyntaxFactory.IdentifierName(new SyntaxToken(node.Node.WithDiagnosticsGreen(new DiagnosticInfo[] { new SyntaxDiagnosticInfo(10, 10, ErrorCode.ERR_NoBaseClass) })));
Generated\Syntax.Test.xml.Generated.cs (1)
10364=> SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Identifier"));
Syntax\StructuredTriviaTests.cs (1)
74var identExpr = SyntaxFactory.IdentifierName(ident);
Syntax\SyntaxFactoryTests.cs (1)
61var n = SyntaxFactory.NamespaceDeclaration(name: SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("goo")));
Syntax\SyntaxNodeTests.cs (4)
686var name = SyntaxFactory.IdentifierName(identifier); 687var missingName = SyntaxFactory.IdentifierName(missingIdentifier); 1950var someNode = SyntaxFactory.IdentifierName(someToken); 1987var someNode = SyntaxFactory.IdentifierName(someToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (18)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
37SyntaxFactory.IdentifierName(SyntaxFactory.ParseToken("nameof")); 3501SyntaxFactory.IdentifierName(GlobalKeyword), 3683=> SyntaxFactory.IdentifierName(identifier);
Simplification\CSharpSimplificationService.Expander.cs (3)
265.WithNameColon(NameColon(IdentifierName(identifier))) 335.WithNameEquals(NameEquals(IdentifierName(identifier)) 910IdentifierName(GlobalKeyword),
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
374? SyntaxFactory.IdentifierName(token)
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
152replacementNode = SyntaxFactory.IdentifierName(
Simplification\Simplifiers\NameSimplifier.cs (3)
88replacementNode = IdentifierName(genericName.Identifier) 136replacementNode = IdentifierName(identifierToken); 531replacementNode = IdentifierName(newIdentifierToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
301ExpressionSyntax result = IdentifierName(GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
71IdentifierName(GlobalKeyword), 97IdentifierName(GlobalKeyword),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
216=> IdentifierName(GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
58=> SyntaxFactory.IdentifierName(identifier.ToIdentifierToken());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
82var replacementNode = IdentifierName(discardToken); 252left: IdentifierName(variable.Identifier),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1406IdentifierName(
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Simplifier\SimplifierTests.cs (2)
35var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Test")); 46var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Test"));
SyntaxPathTests.cs (2)
21var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Hi")); 31var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Hi"));
Microsoft.Interop.ComInterfaceGenerator (2)
VirtualMethodPointerStubGenerator.cs (1)
147IdentifierName(methodStub.StubMethodSyntaxTemplate.Identifier)));
VtableIndexStubGenerator.cs (1)
432.WithBaseList(BaseList(SingletonSeparatedList((BaseTypeSyntax)SimpleBaseType(IdentifierName(context.ContainingSyntax[0].Identifier)))))
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSImportGenerator.cs (1)
320.Select(p => ExpressionElement(IdentifierName(p.Identifier)))));
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
330SyntaxFactory.Argument(SyntaxFactory.IdentifierName(
Microsoft.Interop.SourceGeneration (1)
Marshalling\CharMarshaller.cs (1)
64IdentifierName(Identifier(managedIdentifier)))
Roslyn.Diagnostics.CSharp.Analyzers (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
301ExpressionSyntax result = IdentifierName(GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (2)
71IdentifierName(GlobalKeyword), 97IdentifierName(GlobalKeyword),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
216=> IdentifierName(GlobalKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
58=> SyntaxFactory.IdentifierName(identifier.ToIdentifierToken());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (2)
82var replacementNode = IdentifierName(discardToken); 252left: IdentifierName(variable.Identifier),