185 references to Identifier
Microsoft.AspNetCore.App.CodeFixes (3)
Authorization\AddAuthorizationBuilderFixer.cs (1)
81SyntaxFactory.Identifier("AddAuthorizationBuilder"));
Http\HeaderDictionaryAddFixer.cs (1)
91invocation = invocationExpression.ReplaceToken(identifierToken, SyntaxFactory.Identifier("Append"));
RouteParameterUnusedParameterFixer.cs (1)
89var newParameter = SyntaxFactory.Parameter(SyntaxFactory.Identifier(routeParameterName!)).WithType(type);
Microsoft.CodeAnalysis.CSharp (7)
Syntax\RecordDeclarationSyntax.cs (1)
48return RecordDeclaration(keyword, Identifier(identifier));
Syntax\SyntaxFactory.cs (5)
1539return IdentifierName(Identifier(name)); 2881=> SyntaxFactory.ClassDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.ClassKeyword), SyntaxFactory.Identifier(identifier), null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2908=> SyntaxFactory.StructDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.StructKeyword), SyntaxFactory.Identifier(identifier), null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2926=> SyntaxFactory.InterfaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier(identifier), null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2938=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier(identifier), null, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
Syntax\TypeDeclarationSyntax.cs (1)
104return SyntaxFactory.TypeDeclaration(kind, SyntaxFactory.Identifier(identifier));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
187parameterList, parameterList.WithParameters(parameters.Insert(0, Parameter(Identifier("@this")).WithType(thisParameter.Type.GenerateTypeSyntax()))));
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
157Identifier(type),
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
163e => SingleVariableDesignation(Identifier(e.Name.EscapeIdentifier())))]));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
61(token, _) => Identifier(name).WithTriviaFrom(token));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
161=> FunctionPointerUnmanagedCallingConvention(Identifier(identifier)); 256var name = element.IsImplicitlyDeclared ? default : Identifier(element.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
39return SyntaxFactory.Identifier(escaped);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
77=> SyntaxFactory.Identifier(identifier);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\OutVarTests.cs (2)
32508type: SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("var")), 32509designation: SyntaxFactory.SingleVariableDesignation(SyntaxFactory.Identifier("x1")));
Microsoft.CodeAnalysis.CSharp.Features (18)
AddImport\CSharpAddImportFeatureService.cs (1)
426return (ExternAliasDirective(Identifier(val))
ChangeSignature\CSharpChangeSignatureService.cs (1)
657Identifier(addedParameter.Name),
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (1)
55Identifier("_"),
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
365.ReplaceToken(xmlElement.Name.LocalName, Identifier("see").WithTriviaFrom(xmlElement.Name.LocalName))
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
559=> Identifier(name); 798return Identifier(nameGenerator.CreateUniqueMethodName(scope, GenerateMethodNameFromUserPreference()));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
40return SyntaxFactory.Identifier(nameGenerator.CreateUniqueMethodName(containingScope, methodName));
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (2)
161? Identifier(propertyName) 374newName = IdentifierName(Identifier(propertyName));
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.ConvertValueToParamRewriter.cs (1)
22=> name.ReplaceToken(name.LocalName, SyntaxFactory.Identifier("param"));
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.ConvertValueToReturnsRewriter.cs (1)
22=> name.ReplaceToken(name.LocalName, SyntaxFactory.Identifier("returns"));
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
90Identifier(itemString),
SpellCheck\CSharpSpellcheckCodeFixProvider.cs (1)
57=> SyntaxFactory.Identifier(newName).WithTriviaFrom(nameToken);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
187parameterList, parameterList.WithParameters(parameters.Insert(0, Parameter(Identifier("@this")).WithType(thisParameter.Type.GenerateTypeSyntax()))));
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
157Identifier(type),
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
61(token, _) => Identifier(name).WithTriviaFrom(token));
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
184=> attributeList.WithTarget(AttributeTargetSpecifier(Identifier(SyntaxFacts.GetText(SyntaxKind.FieldKeyword)), ColonToken.WithTrailingTrivia(Space)));
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
195var newLocalName = SyntaxFactory.Identifier(localName)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
729TypeSyntax speculate = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("A"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (58)
Generated\Syntax.Test.xml.Generated.cs (37)
10230=> SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Identifier")); 10236=> SyntaxFactory.GenericName(SyntaxFactory.Identifier("Identifier"), GenerateTypeArgumentList()); 10269=> SyntaxFactory.FunctionPointerUnmanagedCallingConvention(SyntaxFactory.Identifier("Name")); 10449=> SyntaxFactory.FromClause(SyntaxFactory.Token(SyntaxKind.FromKeyword), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName()); 10452=> SyntaxFactory.LetClause(SyntaxFactory.Token(SyntaxKind.LetKeyword), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.EqualsToken), GenerateIdentifierName()); 10455=> SyntaxFactory.JoinClause(SyntaxFactory.Token(SyntaxKind.JoinKeyword), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.OnKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.EqualsKeyword), GenerateIdentifierName(), default(JoinIntoClauseSyntax)); 10458=> SyntaxFactory.JoinIntoClause(SyntaxFactory.Token(SyntaxKind.IntoKeyword), SyntaxFactory.Identifier("Identifier")); 10476=> SyntaxFactory.QueryContinuation(SyntaxFactory.Token(SyntaxKind.IntoKeyword), SyntaxFactory.Identifier("Identifier"), GenerateQueryBody()); 10545=> SyntaxFactory.InterpolationAlignmentClause(SyntaxFactory.Identifier("CommaToken"), GenerateIdentifierName()); 10548=> SyntaxFactory.InterpolationFormatClause(SyntaxFactory.Identifier("ColonToken"), SyntaxFactory.Token(SyntaxKind.InterpolatedStringTextToken)); 10557=> SyntaxFactory.LocalFunctionStatement(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10566=> SyntaxFactory.VariableDeclarator(SyntaxFactory.Identifier("Identifier"), default(BracketedArgumentListSyntax), default(EqualsValueClauseSyntax)); 10572=> SyntaxFactory.SingleVariableDesignation(SyntaxFactory.Identifier("Identifier")); 10587=> SyntaxFactory.LabeledStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.ColonToken), GenerateBlock()); 10617=> SyntaxFactory.ForEachStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock()); 10683=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.Token(SyntaxKind.ExternKeyword), SyntaxFactory.Token(SyntaxKind.AliasKeyword), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 10698=> SyntaxFactory.AttributeTargetSpecifier(SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.ColonToken)); 10716=> SyntaxFactory.TypeParameter(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.Identifier("Identifier")); 10719=> SyntaxFactory.ClassDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ClassKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10722=> SyntaxFactory.StructDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.StructKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10725=> SyntaxFactory.InterfaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10728=> SyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Keyword"), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10731=> SyntaxFactory.EnumDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier("Identifier"), default(BaseListSyntax), default(SyntaxToken), new SeparatedSyntaxList<EnumMemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10734=> SyntaxFactory.DelegateDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.DelegateKeyword), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 10737=> SyntaxFactory.EnumMemberDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Identifier"), default(EqualsValueClauseSyntax)); 10779=> SyntaxFactory.MethodDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10788=> SyntaxFactory.ConstructorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(ConstructorInitializerSyntax), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10794=> SyntaxFactory.DestructorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.TildeToken), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10797=> SyntaxFactory.PropertyDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(EqualsValueClauseSyntax), default(SyntaxToken)); 10803=> SyntaxFactory.EventDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EventKeyword), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(SyntaxToken)); 10821=> SyntaxFactory.Parameter(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), default(EqualsValueClauseSyntax)); 10875=> SyntaxFactory.XmlName(default(XmlPrefixSyntax), SyntaxFactory.Identifier("LocalName")); 10878=> SyntaxFactory.XmlPrefix(SyntaxFactory.Identifier("Prefix"), SyntaxFactory.Token(SyntaxKind.ColonToken)); 10926=> SyntaxFactory.BadDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool()); 10929=> SyntaxFactory.DefineDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.DefineKeyword), SyntaxFactory.Identifier("Name"), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool()); 10932=> SyntaxFactory.UndefDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.UndefKeyword), SyntaxFactory.Identifier("Name"), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
Syntax\SeparatedSyntaxListTests.cs (2)
22var node1 = SyntaxFactory.Parameter(SyntaxFactory.Identifier("a")); 23var node2 = SyntaxFactory.Parameter(SyntaxFactory.Identifier("b"));
Syntax\StructuredTriviaTests.cs (2)
42SyntaxFactory.Identifier(name)), 49SyntaxFactory.Identifier(name)),
Syntax\SyntaxFactoryTests.cs (8)
61var n = SyntaxFactory.NamespaceDeclaration(name: SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("goo"))); 81var c = SyntaxFactory.ClassDeclaration(identifier: SyntaxFactory.Identifier("goo")); 183SyntaxFactory.Identifier("text"); 496SyntaxFactory.Identifier("P")) 519SyntaxFactory.Identifier("P")) 566identifier: SyntaxFactory.Identifier("M"), 604default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.Identifier("R"), null, null, null, default, default); 613default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.Identifier("R"), null, null, null, default,
Syntax\SyntaxNodeOrTokenListTests.cs (2)
21var node1 = SyntaxFactory.Parameter(SyntaxFactory.Identifier("a")); 22var node2 = SyntaxFactory.Parameter(SyntaxFactory.Identifier("b"));
Syntax\SyntaxNodeTests.cs (4)
684var identifier = SyntaxFactory.Identifier("x"); 1377var def = SyntaxFactory.DefineDirectiveTrivia(SyntaxFactory.Identifier("GOO"), false); 3713var idToken = SyntaxFactory.Identifier("goo"); 3763SyntaxNodeOrToken nodeOrToken = SyntaxFactory.Identifier("goo");
Syntax\SyntaxNormalizerTests.cs (1)
3565SyntaxFactory.Identifier("a"), false), """
Syntax\SyntaxRewriterTests.cs (2)
339var newRoot = tree.GetCompilationUnitRoot().ReplaceToken(tokenT, SyntaxFactory.Identifier("U")); 794return SyntaxFactory.ClassDeclaration(SyntaxFactory.Identifier("class"));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1761SyntaxFactory.Identifier(typeParameter.Name));
Simplification\CSharpSimplificationService.Expander.cs (1)
260var identifier = Identifier(inferredName);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
67return SyntaxFactory.Identifier(specialType == SpecialType.System_IntPtr ? "nint" : "nuint");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
161=> FunctionPointerUnmanagedCallingConvention(Identifier(identifier)); 256var name = element.IsImplicitlyDeclared ? default : Identifier(element.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
39return SyntaxFactory.Identifier(escaped);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
77=> SyntaxFactory.Identifier(identifier);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (17)
CodeGeneration\SyntaxGeneratorTests.cs (11)
1210Identifier("DoSomething")) 1248Identifier("IGeneral")) 1256Identifier("x")) 1261Identifier("y")) 1294Identifier("IGeneral")) 1306Identifier("x")) 1341Identifier("Num")) 1361Identifier("Num")) 1391Identifier("index")) 1417Identifier("index")) 1441Identifier("Event"))
Formatting\FormattingElasticTriviaTests.cs (5)
57Identifier("assembly")), 67Identifier("My"), 79identifier: Identifier("B"), 155identifier: Identifier("MyProperty"), 175identifier: Identifier("PropertyTest"),
Formatting\FormattingTests.cs (1)
4644SyntaxFactory.Identifier("Prop"),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
341var newDecl = decl.WithIdentifier(CS.SyntaxFactory.Identifier("Pogrom").WithLeadingTrivia(decl.Identifier.LeadingTrivia).WithTrailingTrivia(decl.Identifier.TrailingTrivia));
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
CodeCleanup\CodeCleanupTests.cs (1)
366=> CSharp.SyntaxFactory.MethodDeclaration(CSharp.SyntaxFactory.ParseTypeName(returnType), CSharp.SyntaxFactory.Identifier(methodName));
Simplifier\SimplifierTests.cs (2)
35var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Test")); 46var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Test"));
SyntaxNodeTests.cs (1)
36return Task.FromResult<SyntaxNode>(decl.WithIdentifier(SyntaxFactory.Identifier("Y")));
SyntaxPathTests.cs (2)
21var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Hi")); 31var node = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("Hi"));
Microsoft.Gen.Logging.Unit.Tests (2)
ParserUtilitiesTests.cs (2)
27SyntaxFactory.Identifier("Identifier_1"), 37SyntaxFactory.Identifier("Identifier_2"),
Microsoft.Interop.ComInterfaceGenerator (13)
ComClassGenerator.cs (1)
194Parameter(Identifier(countIdentifier))
ComInterfaceGenerator.cs (1)
374ImmutableArray.Create(FunctionPointerUnmanagedCallingConvention(Identifier("MemberFunction"))));
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
57Identifier("GetInstance"),
Marshallers\ObjectUnwrapperResolver.cs (1)
52GenericName(Identifier("GetObjectForUnmanagedWrapper"))
Marshallers\StructAsHResultMarshallerFactory.cs (2)
46GenericName(Identifier("BitCast"), 64GenericName(Identifier("BitCast"),
VirtualMethodPointerStubGenerator.cs (5)
56Identifier(NativeThisParameterIdentifier)), 58Identifier(VirtualMethodTableIdentifier))}))), 70SingleVariableDesignation(Identifier(VirtualMethodTarget))), 293callingConventions.Add(FunctionPointerUnmanagedCallingConvention(Identifier("SuppressGCTransition"))); 308callingConventions.Add(FunctionPointerUnmanagedCallingConvention(Identifier(callConvSymbol.Name.Substring("CallConv".Length))));
VtableIndexStubGenerator.cs (2)
32Identifier("Native"), 445Parameter(Identifier(vtableParameter))
Microsoft.Interop.JavaScript.JSImportGenerator (22)
JSExportCodeGenerator.cs (3)
107.WithDeclaration(CatchDeclaration(IdentifierName(Constants.ExceptionGlobal)).WithIdentifier(Identifier("ex"))) 184.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentException)) 190.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentReturn))
JSExportGenerator.cs (5)
144MemberDeclarationSyntax wrappperMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier(wrapperName)) 149Parameter(Identifier("__arguments_buffer")).WithType(PointerType(ParseTypeName(Constants.JSMarshalerArgumentGlobal)))))) 239VariableDeclarator(Identifier("initialized"))))) 244MemberDeclarationSyntax method = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier(initializerName)) 250MemberDeclarationSyntax initializerMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier(trimmingPreserveName))
JSImportCodeGenerator.cs (4)
170VariableDeclaration(GenericName(Identifier(Constants.SpanGlobal)).WithTypeArgumentList( 172.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentsBuffer)) 178.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentException)) 188.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentReturn))
JSImportGenerator.cs (1)
122.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(stub.BindingName)))))
Marshaling\BaseJSGenerator.cs (1)
53.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(argName))
Marshaling\FuncJSGenerator.cs (4)
119Parameter(Identifier("__delegate_arg_arg"+(i+1))) 122Parameter(Identifier("__delegate_arg"+(i+1))) 134Parameter(Identifier("__delegate_arg_arg"+(i+1))) 137Parameter(Identifier("__delegate_arg"+(i+1)))
Marshaling\TaskJSGenerator.cs (4)
106Parameter(Identifier("__task_result_arg")) 109Parameter(Identifier("__task_result")) 129Parameter(Identifier("__task_result_arg")) 132Parameter(Identifier("__task_result"))
Microsoft.Interop.SourceGeneration (15)
GeneratedStatements.cs (1)
170CatchDeclaration(TypeSyntaxes.System_Exception, Identifier(managed)),
Marshalling\BlittableMarshaller.cs (1)
52VariableDeclarator(Identifier(nativeIdentifier))
Marshalling\CharMarshaller.cs (2)
60VariableDeclarator(Identifier(PinnedIdentifier(info.InstanceIdentifier))) 64IdentifierName(Identifier(managedIdentifier)))
Marshalling\DelegateMarshaller.cs (1)
70GenericName(Identifier("GetDelegateForFunctionPointer"))
Marshalling\ElementsMarshalling.cs (2)
235Identifier("Cast"), 441Identifier(managedSpanIdentifier))
Marshalling\MarshallingGeneratorExtensions.cs (2)
95return Parameter(Identifier(identifierName)) 106ParameterSyntax param = Parameter(Identifier(identifier))
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
83VariableDeclarator(Identifier(nativeIdentifier))
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
65Identifier(context.GetAdditionalIdentifier(TypeInfo, OwnershipTrackingHelpers.OwnOriginalValueIdentifier)),
SignatureContext.cs (1)
45yield return Parameter(Identifier(typeInfo.InstanceIdentifier))
Utils\SyntaxFactoryExtensions.cs (3)
80private static readonly SyntaxToken _span = Identifier(TypeNames.System_Span); 83private static readonly SyntaxToken _readonlySpan = Identifier(TypeNames.System_ReadOnlySpan); 126Identifier(indexerIdentifier))
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
879var newIdentifier = SyntaxFactory.Identifier(name); 1703SyntaxFactory.AttributeTargetSpecifier(SyntaxFactory.Identifier(target))); 1766? SyntaxFactory.AttributeTargetSpecifier(SyntaxFactory.Identifier(target), 1808=> SyntaxFactory.Parameter(SyntaxFactory.Identifier(name)).WithType(SyntaxFactory.ParseTypeName(type));
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
190newMethod = newMethod.ReplaceToken(newMethod.Identifier, SyntaxFactory.Identifier(methodName).WithAdditionalAnnotations(RenameAnnotation.Create()));