185 references to Identifier
Microsoft.AspNetCore.App.CodeFixes (3)
Authorization\AddAuthorizationBuilderFixer.cs (1)
81
SyntaxFactory.
Identifier
("AddAuthorizationBuilder"));
Http\HeaderDictionaryAddFixer.cs (1)
91
invocation = invocationExpression.ReplaceToken(identifierToken, SyntaxFactory.
Identifier
("Append"));
RouteParameterUnusedParameterFixer.cs (1)
89
var newParameter = SyntaxFactory.Parameter(SyntaxFactory.
Identifier
(routeParameterName!)).WithType(type);
Microsoft.CodeAnalysis.CSharp (7)
Syntax\RecordDeclarationSyntax.cs (1)
48
return RecordDeclaration(keyword,
Identifier
(identifier));
Syntax\SyntaxFactory.cs (5)
1539
return 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)
104
return SyntaxFactory.TypeDeclaration(kind, SyntaxFactory.
Identifier
(identifier));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
187
parameterList, parameterList.WithParameters(parameters.Insert(0, Parameter(
Identifier
("@this")).WithType(thisParameter.Type.GenerateTypeSyntax()))));
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
157
Identifier
(type),
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
163
e => 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));
256
var name = element.IsImplicitlyDeclared ? default :
Identifier
(element.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
39
return 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)
32508
type: SyntaxFactory.IdentifierName(SyntaxFactory.
Identifier
("var")),
32509
designation: SyntaxFactory.SingleVariableDesignation(SyntaxFactory.
Identifier
("x1")));
Microsoft.CodeAnalysis.CSharp.Features (18)
AddImport\CSharpAddImportFeatureService.cs (1)
426
return (ExternAliasDirective(
Identifier
(val))
ChangeSignature\CSharpChangeSignatureService.cs (1)
657
Identifier
(addedParameter.Name),
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (1)
55
Identifier
("_"),
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
365
.ReplaceToken(xmlElement.Name.LocalName,
Identifier
("see").WithTriviaFrom(xmlElement.Name.LocalName))
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
559
=>
Identifier
(name);
798
return
Identifier
(nameGenerator.CreateUniqueMethodName(scope, GenerateMethodNameFromUserPreference()));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
40
return SyntaxFactory.
Identifier
(nameGenerator.CreateUniqueMethodName(containingScope, methodName));
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (2)
161
?
Identifier
(propertyName)
374
newName = 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)
90
Identifier
(itemString),
SpellCheck\CSharpSpellcheckCodeFixProvider.cs (1)
57
=> SyntaxFactory.
Identifier
(newName).WithTriviaFrom(nameToken);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
187
parameterList, parameterList.WithParameters(parameters.Insert(0, Parameter(
Identifier
("@this")).WithType(thisParameter.Type.GenerateTypeSyntax()))));
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
157
Identifier
(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)
195
var newLocalName = SyntaxFactory.
Identifier
(localName)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
729
TypeSyntax 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)
22
var node1 = SyntaxFactory.Parameter(SyntaxFactory.
Identifier
("a"));
23
var node2 = SyntaxFactory.Parameter(SyntaxFactory.
Identifier
("b"));
Syntax\StructuredTriviaTests.cs (2)
42
SyntaxFactory.
Identifier
(name)),
49
SyntaxFactory.
Identifier
(name)),
Syntax\SyntaxFactoryTests.cs (8)
61
var n = SyntaxFactory.NamespaceDeclaration(name: SyntaxFactory.IdentifierName(SyntaxFactory.
Identifier
("goo")));
81
var c = SyntaxFactory.ClassDeclaration(identifier: SyntaxFactory.
Identifier
("goo"));
183
SyntaxFactory.
Identifier
("text");
496
SyntaxFactory.
Identifier
("P"))
519
SyntaxFactory.
Identifier
("P"))
566
identifier: SyntaxFactory.
Identifier
("M"),
604
default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.
Identifier
("R"), null, null, null, default, default);
613
default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.
Identifier
("R"), null, null, null, default,
Syntax\SyntaxNodeOrTokenListTests.cs (2)
21
var node1 = SyntaxFactory.Parameter(SyntaxFactory.
Identifier
("a"));
22
var node2 = SyntaxFactory.Parameter(SyntaxFactory.
Identifier
("b"));
Syntax\SyntaxNodeTests.cs (4)
684
var identifier = SyntaxFactory.
Identifier
("x");
1377
var def = SyntaxFactory.DefineDirectiveTrivia(SyntaxFactory.
Identifier
("GOO"), false);
3713
var idToken = SyntaxFactory.
Identifier
("goo");
3763
SyntaxNodeOrToken nodeOrToken = SyntaxFactory.
Identifier
("goo");
Syntax\SyntaxNormalizerTests.cs (1)
3565
SyntaxFactory.
Identifier
("a"), false), """
Syntax\SyntaxRewriterTests.cs (2)
339
var newRoot = tree.GetCompilationUnitRoot().ReplaceToken(tokenT, SyntaxFactory.
Identifier
("U"));
794
return SyntaxFactory.ClassDeclaration(SyntaxFactory.
Identifier
("class"));
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1761
SyntaxFactory.
Identifier
(typeParameter.Name));
Simplification\CSharpSimplificationService.Expander.cs (1)
260
var identifier =
Identifier
(inferredName);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
67
return SyntaxFactory.
Identifier
(specialType == SpecialType.System_IntPtr ? "nint" : "nuint");
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
161
=> FunctionPointerUnmanagedCallingConvention(
Identifier
(identifier));
256
var name = element.IsImplicitlyDeclared ? default :
Identifier
(element.Name);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\StringExtensions.cs (1)
39
return 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)
1210
Identifier
("DoSomething"))
1248
Identifier
("IGeneral"))
1256
Identifier
("x"))
1261
Identifier
("y"))
1294
Identifier
("IGeneral"))
1306
Identifier
("x"))
1341
Identifier
("Num"))
1361
Identifier
("Num"))
1391
Identifier
("index"))
1417
Identifier
("index"))
1441
Identifier
("Event"))
Formatting\FormattingElasticTriviaTests.cs (5)
57
Identifier
("assembly")),
67
Identifier
("My"),
79
identifier:
Identifier
("B"),
155
identifier:
Identifier
("MyProperty"),
175
identifier:
Identifier
("PropertyTest"),
Formatting\FormattingTests.cs (1)
4644
SyntaxFactory.
Identifier
("Prop"),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
341
var 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)
35
var node = SyntaxFactory.IdentifierName(SyntaxFactory.
Identifier
("Test"));
46
var node = SyntaxFactory.IdentifierName(SyntaxFactory.
Identifier
("Test"));
SyntaxNodeTests.cs (1)
36
return Task.FromResult<SyntaxNode>(decl.WithIdentifier(SyntaxFactory.
Identifier
("Y")));
SyntaxPathTests.cs (2)
21
var node = SyntaxFactory.IdentifierName(SyntaxFactory.
Identifier
("Hi"));
31
var node = SyntaxFactory.IdentifierName(SyntaxFactory.
Identifier
("Hi"));
Microsoft.Gen.Logging.Unit.Tests (2)
ParserUtilitiesTests.cs (2)
27
SyntaxFactory.
Identifier
("Identifier_1"),
37
SyntaxFactory.
Identifier
("Identifier_2"),
Microsoft.Interop.ComInterfaceGenerator (13)
ComClassGenerator.cs (1)
194
Parameter(
Identifier
(countIdentifier))
ComInterfaceGenerator.cs (1)
374
ImmutableArray.Create(FunctionPointerUnmanagedCallingConvention(
Identifier
("MemberFunction"))));
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
57
Identifier
("GetInstance"),
Marshallers\ObjectUnwrapperResolver.cs (1)
52
GenericName(
Identifier
("GetObjectForUnmanagedWrapper"))
Marshallers\StructAsHResultMarshallerFactory.cs (2)
46
GenericName(
Identifier
("BitCast"),
64
GenericName(
Identifier
("BitCast"),
VirtualMethodPointerStubGenerator.cs (5)
56
Identifier
(NativeThisParameterIdentifier)),
58
Identifier
(VirtualMethodTableIdentifier))}))),
70
SingleVariableDesignation(
Identifier
(VirtualMethodTarget))),
293
callingConventions.Add(FunctionPointerUnmanagedCallingConvention(
Identifier
("SuppressGCTransition")));
308
callingConventions.Add(FunctionPointerUnmanagedCallingConvention(
Identifier
(callConvSymbol.Name.Substring("CallConv".Length))));
VtableIndexStubGenerator.cs (2)
32
Identifier
("Native"),
445
Parameter(
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)
144
MemberDeclarationSyntax wrappperMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)),
Identifier
(wrapperName))
149
Parameter(
Identifier
("__arguments_buffer")).WithType(PointerType(ParseTypeName(Constants.JSMarshalerArgumentGlobal))))))
239
VariableDeclarator(
Identifier
("initialized")))))
244
MemberDeclarationSyntax method = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)),
Identifier
(initializerName))
250
MemberDeclarationSyntax initializerMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)),
Identifier
(trimmingPreserveName))
JSImportCodeGenerator.cs (4)
170
VariableDeclaration(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)
119
Parameter(
Identifier
("__delegate_arg_arg"+(i+1)))
122
Parameter(
Identifier
("__delegate_arg"+(i+1)))
134
Parameter(
Identifier
("__delegate_arg_arg"+(i+1)))
137
Parameter(
Identifier
("__delegate_arg"+(i+1)))
Marshaling\TaskJSGenerator.cs (4)
106
Parameter(
Identifier
("__task_result_arg"))
109
Parameter(
Identifier
("__task_result"))
129
Parameter(
Identifier
("__task_result_arg"))
132
Parameter(
Identifier
("__task_result"))
Microsoft.Interop.SourceGeneration (15)
GeneratedStatements.cs (1)
170
CatchDeclaration(TypeSyntaxes.System_Exception,
Identifier
(managed)),
Marshalling\BlittableMarshaller.cs (1)
52
VariableDeclarator(
Identifier
(nativeIdentifier))
Marshalling\CharMarshaller.cs (2)
60
VariableDeclarator(
Identifier
(PinnedIdentifier(info.InstanceIdentifier)))
64
IdentifierName(
Identifier
(managedIdentifier)))
Marshalling\DelegateMarshaller.cs (1)
70
GenericName(
Identifier
("GetDelegateForFunctionPointer"))
Marshalling\ElementsMarshalling.cs (2)
235
Identifier
("Cast"),
441
Identifier
(managedSpanIdentifier))
Marshalling\MarshallingGeneratorExtensions.cs (2)
95
return Parameter(
Identifier
(identifierName))
106
ParameterSyntax param = Parameter(
Identifier
(identifier))
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
83
VariableDeclarator(
Identifier
(nativeIdentifier))
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
65
Identifier
(context.GetAdditionalIdentifier(TypeInfo, OwnershipTrackingHelpers.OwnOriginalValueIdentifier)),
SignatureContext.cs (1)
45
yield return Parameter(
Identifier
(typeInfo.InstanceIdentifier))
Utils\SyntaxFactoryExtensions.cs (3)
80
private static readonly SyntaxToken _span =
Identifier
(TypeNames.System_Span);
83
private static readonly SyntaxToken _readonlySpan =
Identifier
(TypeNames.System_ReadOnlySpan);
126
Identifier
(indexerIdentifier))
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
879
var newIdentifier = SyntaxFactory.
Identifier
(name);
1703
SyntaxFactory.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)
190
newMethod = newMethod.ReplaceToken(newMethod.Identifier, SyntaxFactory.
Identifier
(methodName).WithAdditionalAnnotations(RenameAnnotation.Create()));