858 references to Token
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
376
loggerParam = parameterSyntax.WithModifiers(SyntaxFactory.TokenList(SyntaxFactory.
Token
(SyntaxKind.ThisKeyword)));
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
83
var publicModifier = SyntaxFactory.
Token
(SyntaxKind.PublicKeyword);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
83
var publicModifier = SyntaxFactory.
Token
(SyntaxKind.PublicKeyword);
Microsoft.CodeAnalysis.CSharp (72)
Syntax\AnonymousMethodExpressionSyntax.cs (1)
44
Token
(SyntaxKind.DelegateKeyword),
Syntax\DestructorDeclarationSyntax.cs (2)
46
SyntaxFactory.
Token
(SyntaxKind.TildeToken),
80
SyntaxFactory.
Token
(SyntaxKind.TildeToken),
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
242
return CSharp.SyntaxFactory.
Token
(SyntaxKind.CommaToken);
Syntax\InterpolatedStringExpressionSyntax.cs (2)
12
=> InterpolatedStringExpression(stringStartToken,
Token
(SyntaxKind.InterpolatedStringEndToken));
15
=> InterpolatedStringExpression(stringStartToken, contents,
Token
(SyntaxKind.InterpolatedStringEndToken));
Syntax\LiteralExpressionSyntax.cs (1)
14
=> SyntaxFactory.LiteralExpression(kind, SyntaxFactory.
Token
(GetLiteralExpressionTokenKind(kind)));
Syntax\NameColonSyntax.cs (1)
27
=> NameColon(name,
Token
(SyntaxKind.ColonToken));
Syntax\RecordDeclarationSyntax.cs (3)
38
var semicolonToken = members.Count == 0 ?
Token
(SyntaxKind.SemicolonToken) : default;
39
var openBraceToken = members.Count == 0 ? default :
Token
(SyntaxKind.OpenBraceToken);
40
var closeBraceToken = members.Count == 0 ? default :
Token
(SyntaxKind.CloseBraceToken);
Syntax\SyntaxFactory.cs (55)
750
Token
(SyntaxKind.DoubleQuoteToken),
752
Token
(SyntaxKind.DoubleQuoteToken))
783
Token
(quoteKind),
785
Token
(quoteKind))
1066
return XmlTextAttribute(name,
Token
(quoteKind), textTokens,
Token
(quoteKind))
1385
var commaToken =
Token
(SyntaxKind.CommaToken);
2429
return SyntaxFactory.CaseSwitchLabel(SyntaxFactory.
Token
(SyntaxKind.CaseKeyword), value, SyntaxFactory.
Token
(SyntaxKind.ColonToken));
2435
return SyntaxFactory.DefaultSwitchLabel(SyntaxFactory.
Token
(SyntaxKind.DefaultKeyword), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
2661
usingKeyword:
Token
(SyntaxKind.UsingKeyword),
2665
semicolonToken:
Token
(SyntaxKind.SemicolonToken));
2724
var openParen = needsParens ? SyntaxFactory.
Token
(SyntaxKind.OpenParenToken) : default;
2725
var closeParen = needsParens ? SyntaxFactory.
Token
(SyntaxKind.CloseParenToken) : default;
2728
SyntaxFactory.
Token
(SyntaxKind.SwitchKeyword),
2732
SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken),
2734
SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
2771
? AnonymousMethodExpression(default(SyntaxTokenList), SyntaxFactory.
Token
(SyntaxKind.DelegateKeyword), parameterList, block, null)
2873
=> SyntaxFactory.ClassDeclaration(attributeLists, modifiers, SyntaxFactory.
Token
(SyntaxKind.ClassKeyword), identifier, typeParameterList, parameterList, baseList, constraintClauses, SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), members, SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken), default);
2877
=> SyntaxFactory.ClassDeclaration(default, default(SyntaxTokenList), SyntaxFactory.
Token
(SyntaxKind.ClassKeyword), identifier, null, null, null, default, SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), default, SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken), default);
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);
2900
=> SyntaxFactory.StructDeclaration(attributeLists, modifiers, SyntaxFactory.
Token
(SyntaxKind.StructKeyword), identifier, typeParameterList, parameterList, baseList, constraintClauses, SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), members, SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken), default);
2904
=> SyntaxFactory.StructDeclaration(default, default(SyntaxTokenList), SyntaxFactory.
Token
(SyntaxKind.StructKeyword), 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);
2918
=> SyntaxFactory.InterfaceDeclaration(attributeLists, modifiers, SyntaxFactory.
Token
(SyntaxKind.InterfaceKeyword), identifier, typeParameterList, baseList, constraintClauses, SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), members, SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken), default);
2922
=> SyntaxFactory.InterfaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.
Token
(SyntaxKind.InterfaceKeyword), identifier, 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);
2930
=> SyntaxFactory.EnumDeclaration(attributeLists, modifiers, SyntaxFactory.
Token
(SyntaxKind.EnumKeyword), identifier, baseList, SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), members, SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken), default);
2934
=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.
Token
(SyntaxKind.EnumKeyword), identifier, null, 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 (4)
91
SyntaxFactory.
Token
(GetTypeDeclarationKeywordKind(kind)),
96
SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken),
98
SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken),
132
return SyntaxFactory.RecordDeclaration(SyntaxKind.RecordStructDeclaration, attributes, modifiers, keyword, classOrStructKeyword: SyntaxFactory.
Token
(SyntaxKind.StructKeyword), identifier, typeParameterList, parameterList: null, baseList, constraintClauses, openBraceToken, members, closeBraceToken, semicolonToken);
Syntax\UsingDirectiveSyntax.cs (2)
38
=> UsingDirective(globalKeyword: default, usingKeyword:
Token
(SyntaxKind.UsingKeyword), staticKeyword, unsafeKeyword: default, alias, namespaceOrType: name, semicolonToken:
Token
(SyntaxKind.SemicolonToken));
Microsoft.CodeAnalysis.CSharp.CodeStyle (91)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (90)
11
public static readonly SyntaxToken AbstractKeyword =
Token
(SyntaxKind.AbstractKeyword);
12
public static readonly SyntaxToken AssemblyKeyword =
Token
(SyntaxKind.AssemblyKeyword);
13
public static readonly SyntaxToken AsyncKeyword =
Token
(SyntaxKind.AsyncKeyword);
14
public static readonly SyntaxToken AwaitKeyword =
Token
(SyntaxKind.AwaitKeyword);
15
public static readonly SyntaxToken BoolKeyword =
Token
(SyntaxKind.BoolKeyword);
16
public static readonly SyntaxToken ByteKeyword =
Token
(SyntaxKind.ByteKeyword);
17
public static readonly SyntaxToken CharKeyword =
Token
(SyntaxKind.CharKeyword);
18
public static readonly SyntaxToken CheckedKeyword =
Token
(SyntaxKind.CheckedKeyword);
19
public static readonly SyntaxToken CloseBraceToken =
Token
(SyntaxKind.CloseBraceToken);
20
public static readonly SyntaxToken CloseBracketToken =
Token
(SyntaxKind.CloseBracketToken);
21
public static readonly SyntaxToken CloseParenToken =
Token
(SyntaxKind.CloseParenToken);
22
public static readonly SyntaxToken ColonToken =
Token
(SyntaxKind.ColonToken);
23
public static readonly SyntaxToken CommaToken =
Token
(SyntaxKind.CommaToken);
24
public static readonly SyntaxToken ConstKeyword =
Token
(SyntaxKind.ConstKeyword);
25
public static readonly SyntaxToken DecimalKeyword =
Token
(SyntaxKind.DecimalKeyword);
26
public static readonly SyntaxToken DisableKeyword =
Token
(SyntaxKind.DisableKeyword);
27
public static readonly SyntaxToken DotDotToken =
Token
(SyntaxKind.DotDotToken);
28
public static readonly SyntaxToken DoubleKeyword =
Token
(SyntaxKind.DoubleKeyword);
29
public static readonly SyntaxToken EndOfDocumentationCommentToken =
Token
(SyntaxKind.EndOfDocumentationCommentToken);
30
public static readonly SyntaxToken EqualsToken =
Token
(SyntaxKind.EqualsToken);
31
public static readonly SyntaxToken ExplicitKeyword =
Token
(SyntaxKind.ExplicitKeyword);
32
public static readonly SyntaxToken ExternKeyword =
Token
(SyntaxKind.ExternKeyword);
33
public static readonly SyntaxToken FileKeyword =
Token
(SyntaxKind.FileKeyword);
34
public static readonly SyntaxToken FloatKeyword =
Token
(SyntaxKind.FloatKeyword);
35
public static readonly SyntaxToken ForEachKeyword =
Token
(SyntaxKind.ForEachKeyword);
36
public static readonly SyntaxToken FromKeyword =
Token
(SyntaxKind.FromKeyword);
37
public static readonly SyntaxToken GlobalKeyword =
Token
(SyntaxKind.GlobalKeyword);
38
public static readonly SyntaxToken GreaterThanEqualsToken =
Token
(SyntaxKind.GreaterThanEqualsToken);
39
public static readonly SyntaxToken GreaterThanToken =
Token
(SyntaxKind.GreaterThanToken);
40
public static readonly SyntaxToken IfKeyword =
Token
(SyntaxKind.IfKeyword);
41
public static readonly SyntaxToken ImplicitKeyword =
Token
(SyntaxKind.ImplicitKeyword);
42
public static readonly SyntaxToken InKeyword =
Token
(SyntaxKind.InKeyword);
43
public static readonly SyntaxToken InterfaceKeyword =
Token
(SyntaxKind.InterfaceKeyword);
44
public static readonly SyntaxToken InternalKeyword =
Token
(SyntaxKind.InternalKeyword);
45
public static readonly SyntaxToken InterpolatedStringEndToken =
Token
(SyntaxKind.InterpolatedStringEndToken);
46
public static readonly SyntaxToken InterpolatedStringStartToken =
Token
(SyntaxKind.InterpolatedStringStartToken);
47
public static readonly SyntaxToken IntKeyword =
Token
(SyntaxKind.IntKeyword);
48
public static readonly SyntaxToken IsKeyword =
Token
(SyntaxKind.IsKeyword);
49
public static readonly SyntaxToken LessThanEqualsToken =
Token
(SyntaxKind.LessThanEqualsToken);
50
public static readonly SyntaxToken LessThanToken =
Token
(SyntaxKind.LessThanToken);
51
public static readonly SyntaxToken LetKeyword =
Token
(SyntaxKind.LetKeyword);
52
public static readonly SyntaxToken LongKeyword =
Token
(SyntaxKind.LongKeyword);
53
public static readonly SyntaxToken MethodKeyword =
Token
(SyntaxKind.MethodKeyword);
54
public static readonly SyntaxToken NewKeyword =
Token
(SyntaxKind.NewKeyword);
55
public static readonly SyntaxToken NotKeyword =
Token
(SyntaxKind.NotKeyword);
56
public static readonly SyntaxToken NullKeyword =
Token
(SyntaxKind.NullKeyword);
57
public static readonly SyntaxToken ObjectKeyword =
Token
(SyntaxKind.ObjectKeyword);
58
public static readonly SyntaxToken OpenBraceToken =
Token
(SyntaxKind.OpenBraceToken);
59
public static readonly SyntaxToken OpenBracketToken =
Token
(SyntaxKind.OpenBracketToken);
60
public static readonly SyntaxToken OpenParenToken =
Token
(SyntaxKind.OpenParenToken);
61
public static readonly SyntaxToken OperatorKeyword =
Token
(SyntaxKind.OperatorKeyword);
62
public static readonly SyntaxToken OutKeyword =
Token
(SyntaxKind.OutKeyword);
63
public static readonly SyntaxToken OverrideKeyword =
Token
(SyntaxKind.OverrideKeyword);
64
public static readonly SyntaxToken ParamsKeyword =
Token
(SyntaxKind.ParamsKeyword);
65
public static readonly SyntaxToken PartialKeyword =
Token
(SyntaxKind.PartialKeyword);
66
public static readonly SyntaxToken PlusToken =
Token
(SyntaxKind.PlusToken);
67
public static readonly SyntaxToken PrivateKeyword =
Token
(SyntaxKind.PrivateKeyword);
68
public static readonly SyntaxToken PropertyKeyword =
Token
(SyntaxKind.PropertyKeyword);
69
public static readonly SyntaxToken ProtectedKeyword =
Token
(SyntaxKind.ProtectedKeyword);
70
public static readonly SyntaxToken PublicKeyword =
Token
(SyntaxKind.PublicKeyword);
71
public static readonly SyntaxToken QuestionQuestionEqualsToken =
Token
(SyntaxKind.QuestionQuestionEqualsToken);
72
public static readonly SyntaxToken QuestionToken =
Token
(SyntaxKind.QuestionToken);
73
public static readonly SyntaxToken ReadOnlyKeyword =
Token
(SyntaxKind.ReadOnlyKeyword);
74
public static readonly SyntaxToken RecordKeyword =
Token
(SyntaxKind.RecordKeyword);
75
public static readonly SyntaxToken RefKeyword =
Token
(SyntaxKind.RefKeyword);
76
public static readonly SyntaxToken RequiredKeyword =
Token
(SyntaxKind.RequiredKeyword);
77
public static readonly SyntaxToken RestoreKeyword =
Token
(SyntaxKind.RestoreKeyword);
78
public static readonly SyntaxToken ReturnKeyword =
Token
(SyntaxKind.ReturnKeyword);
79
public static readonly SyntaxToken SByteKeyword =
Token
(SyntaxKind.SByteKeyword);
80
public static readonly SyntaxToken ScopedKeyword =
Token
(SyntaxKind.ScopedKeyword);
81
public static readonly SyntaxToken SealedKeyword =
Token
(SyntaxKind.SealedKeyword);
82
public static readonly SyntaxToken SemicolonToken =
Token
(SyntaxKind.SemicolonToken);
83
public static readonly SyntaxToken ShortKeyword =
Token
(SyntaxKind.ShortKeyword);
84
public static readonly SyntaxToken SlashGreaterThanToken =
Token
(SyntaxKind.SlashGreaterThanToken);
85
public static readonly SyntaxToken StaticKeyword =
Token
(SyntaxKind.StaticKeyword);
86
public static readonly SyntaxToken StringKeyword =
Token
(SyntaxKind.StringKeyword);
87
public static readonly SyntaxToken StructKeyword =
Token
(SyntaxKind.StructKeyword);
88
public static readonly SyntaxToken SwitchKeyword =
Token
(SyntaxKind.SwitchKeyword);
89
public static readonly SyntaxToken ThisKeyword =
Token
(SyntaxKind.ThisKeyword);
90
public static readonly SyntaxToken TildeToken =
Token
(SyntaxKind.TildeToken);
91
public static readonly SyntaxToken UIntKeyword =
Token
(SyntaxKind.UIntKeyword);
92
public static readonly SyntaxToken ULongKeyword =
Token
(SyntaxKind.ULongKeyword);
93
public static readonly SyntaxToken UnmanagedKeyword =
Token
(SyntaxKind.UnmanagedKeyword);
94
public static readonly SyntaxToken UnsafeKeyword =
Token
(SyntaxKind.UnsafeKeyword);
95
public static readonly SyntaxToken UShortKeyword =
Token
(SyntaxKind.UShortKeyword);
96
public static readonly SyntaxToken UsingKeyword =
Token
(SyntaxKind.UsingKeyword);
97
public static readonly SyntaxToken VirtualKeyword =
Token
(SyntaxKind.VirtualKeyword);
98
public static readonly SyntaxToken VoidKeyword =
Token
(SyntaxKind.VoidKeyword);
99
public static readonly SyntaxToken VolatileKeyword =
Token
(SyntaxKind.VolatileKeyword);
100
public static readonly SyntaxToken WhereKeyword =
Token
(SyntaxKind.WhereKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
19
return [SyntaxFactory.
Token
(argument.RefKindKeyword.Kind())];
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundAssignmentCodeFixProvider.cs (1)
23
=> SyntaxFactory.
Token
(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
200
var classOrStructKeyword =
Token
(isRecordClass ? default : SyntaxKind.StructKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
87
var operatorToken =
Token
(operatorSyntaxKind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
28
: SyntaxFactory.SeparatedList<T>(newList.GetWithSeparators().Add(SyntaxFactory.
Token
(separator)));
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (3)
908
.WithSemicolonToken(
Token
(SyntaxKind.None));
918
.WithSemicolonToken(
Token
(SyntaxKind.None));
928
.WithSemicolonToken(
Token
(SyntaxKind.None));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\OutVarTests.cs (2)
34288
SyntaxFactory.
Token
(SyntaxKind.CommaToken),
34502
SyntaxFactory.
Token
(SyntaxKind.CommaToken),
Microsoft.CodeAnalysis.CSharp.Features (10)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
389
return SyntaxFactory.Subpattern(ExpressionColon(expression,
Token
(ColonToken)), pattern);
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
104
AnalyzedPattern.Relational p => RelationalPattern(
Token
(s_operatorMap[p.OperatorKind]), p.Value),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
580
var refOrOut = modifier == SyntaxKind.None ? default :
Token
(modifier);
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (4)
261
.TryWithSemicolonToken(
Token
(SyntaxKind.None))
267
.WithSemicolonToken(
Token
(SyntaxKind.None))
273
.WithSemicolonToken(
Token
(SyntaxKind.None))
279
.WithSemicolonToken(
Token
(SyntaxKind.None))
MetadataAsSource\CSharpMetadataAsSourceService.cs (1)
143
Trivia(NullableDirectiveTrivia(
Token
(keyword), isActive: enable)),
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
374
var newOperator =
Token
(newOperatorKind).WithTriviaFrom(condition.OperatorToken);
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundAssignmentCodeFixProvider.cs (1)
23
=> SyntaxFactory.
Token
(kind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (412)
Generated\Syntax.Test.xml.Generated.cs (366)
10233
=> SyntaxFactory.QualifiedName(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.DotToken), GenerateIdentifierName());
10239
=> SyntaxFactory.TypeArgumentList(SyntaxFactory.
Token
(SyntaxKind.LessThanToken), new SeparatedSyntaxList<TypeSyntax>(), SyntaxFactory.
Token
(SyntaxKind.GreaterThanToken));
10242
=> SyntaxFactory.AliasQualifiedName(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ColonColonToken), GenerateIdentifierName());
10245
=> SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.BoolKeyword));
10251
=> SyntaxFactory.ArrayRankSpecifier(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10254
=> SyntaxFactory.PointerType(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.AsteriskToken));
10257
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.
Token
(SyntaxKind.DelegateKeyword), SyntaxFactory.
Token
(SyntaxKind.AsteriskToken), default(FunctionPointerCallingConventionSyntax), GenerateFunctionPointerParameterList());
10260
=> SyntaxFactory.FunctionPointerParameterList(SyntaxFactory.
Token
(SyntaxKind.LessThanToken), new SeparatedSyntaxList<FunctionPointerParameterSyntax>(), SyntaxFactory.
Token
(SyntaxKind.GreaterThanToken));
10263
=> SyntaxFactory.FunctionPointerCallingConvention(SyntaxFactory.
Token
(SyntaxKind.ManagedKeyword), default(FunctionPointerUnmanagedCallingConventionListSyntax));
10266
=> SyntaxFactory.FunctionPointerUnmanagedCallingConventionList(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<FunctionPointerUnmanagedCallingConventionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10272
=> SyntaxFactory.NullableType(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.QuestionToken));
10275
=> SyntaxFactory.TupleType(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<TupleElementSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10281
=> SyntaxFactory.OmittedTypeArgument(SyntaxFactory.
Token
(SyntaxKind.OmittedTypeArgumentToken));
10284
=> SyntaxFactory.RefType(SyntaxFactory.
Token
(SyntaxKind.RefKeyword), default(SyntaxToken), GenerateIdentifierName());
10287
=> SyntaxFactory.ScopedType(SyntaxFactory.
Token
(SyntaxKind.ScopedKeyword), GenerateIdentifierName());
10290
=> SyntaxFactory.ParenthesizedExpression(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10293
=> SyntaxFactory.TupleExpression(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<ArgumentSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10296
=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryPlusExpression, SyntaxFactory.
Token
(SyntaxKind.PlusToken), GenerateIdentifierName());
10299
=> SyntaxFactory.AwaitExpression(SyntaxFactory.
Token
(SyntaxKind.AwaitKeyword), GenerateIdentifierName());
10302
=> SyntaxFactory.PostfixUnaryExpression(SyntaxKind.PostIncrementExpression, GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.PlusPlusToken));
10305
=> SyntaxFactory.MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.DotToken), GenerateIdentifierName());
10308
=> SyntaxFactory.ConditionalAccessExpression(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.QuestionToken), GenerateIdentifierName());
10311
=> SyntaxFactory.MemberBindingExpression(SyntaxFactory.
Token
(SyntaxKind.DotToken), GenerateIdentifierName());
10317
=> SyntaxFactory.RangeExpression(default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.DotDotToken), default(ExpressionSyntax));
10323
=> SyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.PlusToken), GenerateIdentifierName());
10326
=> SyntaxFactory.AssignmentExpression(SyntaxKind.SimpleAssignmentExpression, GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.EqualsToken), GenerateIdentifierName());
10329
=> SyntaxFactory.ConditionalExpression(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.QuestionToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ColonToken), GenerateIdentifierName());
10332
=> SyntaxFactory.ThisExpression(SyntaxFactory.
Token
(SyntaxKind.ThisKeyword));
10335
=> SyntaxFactory.BaseExpression(SyntaxFactory.
Token
(SyntaxKind.BaseKeyword));
10338
=> SyntaxFactory.LiteralExpression(SyntaxKind.ArgListExpression, SyntaxFactory.
Token
(SyntaxKind.ArgListKeyword));
10341
=> SyntaxFactory.FieldExpression(SyntaxFactory.
Token
(SyntaxKind.FieldKeyword));
10344
=> SyntaxFactory.MakeRefExpression(SyntaxFactory.
Token
(SyntaxKind.MakeRefKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10347
=> SyntaxFactory.RefTypeExpression(SyntaxFactory.
Token
(SyntaxKind.RefTypeKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10350
=> SyntaxFactory.RefValueExpression(SyntaxFactory.
Token
(SyntaxKind.RefValueKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CommaToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10353
=> SyntaxFactory.CheckedExpression(SyntaxKind.CheckedExpression, SyntaxFactory.
Token
(SyntaxKind.CheckedKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10356
=> SyntaxFactory.DefaultExpression(SyntaxFactory.
Token
(SyntaxKind.DefaultKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10359
=> SyntaxFactory.TypeOfExpression(SyntaxFactory.
Token
(SyntaxKind.TypeOfKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10362
=> SyntaxFactory.SizeOfExpression(SyntaxFactory.
Token
(SyntaxKind.SizeOfKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10371
=> SyntaxFactory.ArgumentList(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<ArgumentSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10374
=> SyntaxFactory.BracketedArgumentList(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<ArgumentSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10380
=> SyntaxFactory.ExpressionColon(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10383
=> SyntaxFactory.NameColon(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10389
=> SyntaxFactory.CastExpression(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateIdentifierName());
10392
=> SyntaxFactory.AnonymousMethodExpression(new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.DelegateKeyword), default(ParameterListSyntax), GenerateBlock(), default(ExpressionSyntax));
10395
=> SyntaxFactory.SimpleLambdaExpression(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateParameter(), SyntaxFactory.
Token
(SyntaxKind.EqualsGreaterThanToken), default(BlockSyntax), default(ExpressionSyntax));
10398
=> SyntaxFactory.RefExpression(SyntaxFactory.
Token
(SyntaxKind.RefKeyword), GenerateIdentifierName());
10401
=> SyntaxFactory.ParenthesizedLambdaExpression(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), default(TypeSyntax), GenerateParameterList(), SyntaxFactory.
Token
(SyntaxKind.EqualsGreaterThanToken), default(BlockSyntax), default(ExpressionSyntax));
10404
=> SyntaxFactory.InitializerExpression(SyntaxKind.ObjectInitializerExpression, SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10407
=> SyntaxFactory.ImplicitObjectCreationExpression(SyntaxFactory.
Token
(SyntaxKind.NewKeyword), GenerateArgumentList(), default(InitializerExpressionSyntax));
10410
=> SyntaxFactory.ObjectCreationExpression(SyntaxFactory.
Token
(SyntaxKind.NewKeyword), GenerateIdentifierName(), default(ArgumentListSyntax), default(InitializerExpressionSyntax));
10413
=> SyntaxFactory.WithExpression(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.WithKeyword), GenerateInitializerExpression());
10419
=> SyntaxFactory.AnonymousObjectCreationExpression(SyntaxFactory.
Token
(SyntaxKind.NewKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SeparatedSyntaxList<AnonymousObjectMemberDeclaratorSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10422
=> SyntaxFactory.ArrayCreationExpression(SyntaxFactory.
Token
(SyntaxKind.NewKeyword), GenerateArrayType(), default(InitializerExpressionSyntax));
10425
=> SyntaxFactory.ImplicitArrayCreationExpression(SyntaxFactory.
Token
(SyntaxKind.NewKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken), GenerateInitializerExpression());
10428
=> SyntaxFactory.StackAllocArrayCreationExpression(SyntaxFactory.
Token
(SyntaxKind.StackAllocKeyword), GenerateIdentifierName(), default(InitializerExpressionSyntax));
10431
=> SyntaxFactory.ImplicitStackAllocArrayCreationExpression(SyntaxFactory.
Token
(SyntaxKind.StackAllocKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken), GenerateInitializerExpression());
10434
=> SyntaxFactory.CollectionExpression(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<CollectionElementSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10440
=> SyntaxFactory.SpreadElement(SyntaxFactory.
Token
(SyntaxKind.DotDotToken), GenerateIdentifierName());
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"));
10461
=> SyntaxFactory.WhereClause(SyntaxFactory.
Token
(SyntaxKind.WhereKeyword), GenerateIdentifierName());
10464
=> SyntaxFactory.OrderByClause(SyntaxFactory.
Token
(SyntaxKind.OrderByKeyword), new SeparatedSyntaxList<OrderingSyntax>());
10470
=> SyntaxFactory.SelectClause(SyntaxFactory.
Token
(SyntaxKind.SelectKeyword), GenerateIdentifierName());
10473
=> SyntaxFactory.GroupClause(SyntaxFactory.
Token
(SyntaxKind.GroupKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ByKeyword), GenerateIdentifierName());
10476
=> SyntaxFactory.QueryContinuation(SyntaxFactory.
Token
(SyntaxKind.IntoKeyword), SyntaxFactory.Identifier("Identifier"), GenerateQueryBody());
10479
=> SyntaxFactory.OmittedArraySizeExpression(SyntaxFactory.
Token
(SyntaxKind.OmittedArraySizeExpressionToken));
10482
=> SyntaxFactory.InterpolatedStringExpression(SyntaxFactory.
Token
(SyntaxKind.InterpolatedStringStartToken), new SyntaxList<InterpolatedStringContentSyntax>(), SyntaxFactory.
Token
(SyntaxKind.InterpolatedStringEndToken));
10485
=> SyntaxFactory.IsPatternExpression(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.IsKeyword), GenerateDiscardPattern());
10488
=> SyntaxFactory.ThrowExpression(SyntaxFactory.
Token
(SyntaxKind.ThrowKeyword), GenerateIdentifierName());
10491
=> SyntaxFactory.WhenClause(SyntaxFactory.
Token
(SyntaxKind.WhenKeyword), GenerateIdentifierName());
10494
=> SyntaxFactory.DiscardPattern(SyntaxFactory.
Token
(SyntaxKind.UnderscoreToken));
10500
=> SyntaxFactory.VarPattern(SyntaxFactory.
Token
(SyntaxKind.VarKeyword), GenerateSingleVariableDesignation());
10506
=> SyntaxFactory.PositionalPatternClause(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<SubpatternSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10509
=> SyntaxFactory.PropertyPatternClause(SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SeparatedSyntaxList<SubpatternSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10518
=> SyntaxFactory.ParenthesizedPattern(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateDiscardPattern(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10521
=> SyntaxFactory.RelationalPattern(SyntaxFactory.
Token
(SyntaxKind.EqualsEqualsToken), GenerateIdentifierName());
10527
=> SyntaxFactory.BinaryPattern(SyntaxKind.OrPattern, GenerateDiscardPattern(), SyntaxFactory.
Token
(SyntaxKind.OrKeyword), GenerateDiscardPattern());
10530
=> SyntaxFactory.UnaryPattern(SyntaxFactory.
Token
(SyntaxKind.NotKeyword), GenerateDiscardPattern());
10533
=> SyntaxFactory.ListPattern(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<PatternSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken), default(VariableDesignationSyntax));
10536
=> SyntaxFactory.SlicePattern(SyntaxFactory.
Token
(SyntaxKind.DotDotToken), default(PatternSyntax));
10539
=> SyntaxFactory.InterpolatedStringText(SyntaxFactory.
Token
(SyntaxKind.InterpolatedStringTextToken));
10542
=> SyntaxFactory.Interpolation(SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), GenerateIdentifierName(), default(InterpolationAlignmentClauseSyntax), default(InterpolationFormatClauseSyntax), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10548
=> SyntaxFactory.InterpolationFormatClause(SyntaxFactory.Identifier("ColonToken"), SyntaxFactory.
Token
(SyntaxKind.InterpolatedStringTextToken));
10554
=> SyntaxFactory.Block(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SyntaxList<StatementSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10560
=> SyntaxFactory.LocalDeclarationStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), default(SyntaxToken), new SyntaxTokenList(), GenerateVariableDeclaration(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10569
=> SyntaxFactory.EqualsValueClause(SyntaxFactory.
Token
(SyntaxKind.EqualsToken), GenerateIdentifierName());
10575
=> SyntaxFactory.DiscardDesignation(SyntaxFactory.
Token
(SyntaxKind.UnderscoreToken));
10578
=> SyntaxFactory.ParenthesizedVariableDesignation(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<VariableDesignationSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10581
=> SyntaxFactory.ExpressionStatement(new SyntaxList<AttributeListSyntax>(), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10584
=> SyntaxFactory.EmptyStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10587
=> SyntaxFactory.LabeledStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.
Token
(SyntaxKind.ColonToken), GenerateBlock());
10590
=> SyntaxFactory.GotoStatement(SyntaxKind.GotoStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.GotoKeyword), default(SyntaxToken), default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10593
=> SyntaxFactory.BreakStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.BreakKeyword), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10596
=> SyntaxFactory.ContinueStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.ContinueKeyword), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10599
=> SyntaxFactory.ReturnStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10602
=> SyntaxFactory.ThrowStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.ThrowKeyword), default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10605
=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.YieldKeyword), SyntaxFactory.
Token
(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10608
=> SyntaxFactory.WhileStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.WhileKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateBlock());
10611
=> SyntaxFactory.DoStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.DoKeyword), GenerateBlock(), SyntaxFactory.
Token
(SyntaxKind.WhileKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10614
=> SyntaxFactory.ForStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.ForKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken), default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), 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());
10620
=> SyntaxFactory.ForEachVariableStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.ForEachKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateBlock());
10623
=> SyntaxFactory.UsingStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.UsingKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), default(ExpressionSyntax), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateBlock());
10626
=> SyntaxFactory.FixedStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.FixedKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateVariableDeclaration(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateBlock());
10629
=> SyntaxFactory.CheckedStatement(SyntaxKind.CheckedStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CheckedKeyword), GenerateBlock());
10632
=> SyntaxFactory.UnsafeStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.UnsafeKeyword), GenerateBlock());
10635
=> SyntaxFactory.LockStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.LockKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateBlock());
10638
=> SyntaxFactory.IfStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.IfKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken), GenerateBlock(), default(ElseClauseSyntax));
10641
=> SyntaxFactory.ElseClause(SyntaxFactory.
Token
(SyntaxKind.ElseKeyword), GenerateBlock());
10644
=> SyntaxFactory.SwitchStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.SwitchKeyword), default(SyntaxToken), GenerateIdentifierName(), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SyntaxList<SwitchSectionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10650
=> SyntaxFactory.CasePatternSwitchLabel(SyntaxFactory.
Token
(SyntaxKind.CaseKeyword), GenerateDiscardPattern(), default(WhenClauseSyntax), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10653
=> SyntaxFactory.CaseSwitchLabel(SyntaxFactory.
Token
(SyntaxKind.CaseKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10656
=> SyntaxFactory.DefaultSwitchLabel(SyntaxFactory.
Token
(SyntaxKind.DefaultKeyword), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10659
=> SyntaxFactory.SwitchExpression(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.SwitchKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SeparatedSyntaxList<SwitchExpressionArmSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10662
=> SyntaxFactory.SwitchExpressionArm(GenerateDiscardPattern(), default(WhenClauseSyntax), SyntaxFactory.
Token
(SyntaxKind.EqualsGreaterThanToken), GenerateIdentifierName());
10665
=> SyntaxFactory.TryStatement(new SyntaxList<AttributeListSyntax>(), SyntaxFactory.
Token
(SyntaxKind.TryKeyword), GenerateBlock(), new SyntaxList<CatchClauseSyntax>(), default(FinallyClauseSyntax));
10668
=> SyntaxFactory.CatchClause(SyntaxFactory.
Token
(SyntaxKind.CatchKeyword), default(CatchDeclarationSyntax), default(CatchFilterClauseSyntax), GenerateBlock());
10671
=> SyntaxFactory.CatchDeclaration(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10674
=> SyntaxFactory.CatchFilterClause(SyntaxFactory.
Token
(SyntaxKind.WhenKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10677
=> SyntaxFactory.FinallyClause(SyntaxFactory.
Token
(SyntaxKind.FinallyKeyword), GenerateBlock());
10680
=> SyntaxFactory.CompilationUnit(new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<AttributeListSyntax>(), new SyntaxList<MemberDeclarationSyntax>(), SyntaxFactory.
Token
(SyntaxKind.EndOfFileToken));
10683
=> SyntaxFactory.ExternAliasDirective(SyntaxFactory.
Token
(SyntaxKind.ExternKeyword), SyntaxFactory.
Token
(SyntaxKind.AliasKeyword), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10686
=> SyntaxFactory.UsingDirective(default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.UsingKeyword), default(SyntaxToken), default(SyntaxToken), default(NameEqualsSyntax), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10689
=> SyntaxFactory.NamespaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.NamespaceKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken), default(SyntaxToken));
10692
=> SyntaxFactory.FileScopedNamespaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.NamespaceKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>());
10695
=> SyntaxFactory.AttributeList(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), default(AttributeTargetSpecifierSyntax), new SeparatedSyntaxList<AttributeSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10698
=> SyntaxFactory.AttributeTargetSpecifier(SyntaxFactory.Identifier("Identifier"), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10704
=> SyntaxFactory.AttributeArgumentList(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<AttributeArgumentSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10710
=> SyntaxFactory.NameEquals(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.EqualsToken));
10713
=> SyntaxFactory.TypeParameterList(SyntaxFactory.
Token
(SyntaxKind.LessThanToken), new SeparatedSyntaxList<TypeParameterSyntax>(), SyntaxFactory.
Token
(SyntaxKind.GreaterThanToken));
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));
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));
10740
=> SyntaxFactory.BaseList(SyntaxFactory.
Token
(SyntaxKind.ColonToken), new SeparatedSyntaxList<BaseTypeSyntax>());
10749
=> SyntaxFactory.TypeParameterConstraintClause(SyntaxFactory.
Token
(SyntaxKind.WhereKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.ColonToken), new SeparatedSyntaxList<TypeParameterConstraintSyntax>());
10752
=> SyntaxFactory.ConstructorConstraint(SyntaxFactory.
Token
(SyntaxKind.NewKeyword), SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10755
=> SyntaxFactory.ClassOrStructConstraint(SyntaxKind.ClassConstraint, SyntaxFactory.
Token
(SyntaxKind.ClassKeyword), default(SyntaxToken));
10761
=> SyntaxFactory.DefaultConstraint(SyntaxFactory.
Token
(SyntaxKind.DefaultKeyword));
10764
=> SyntaxFactory.AllowsConstraintClause(SyntaxFactory.
Token
(SyntaxKind.AllowsKeyword), new SeparatedSyntaxList<AllowsConstraintSyntax>());
10767
=> SyntaxFactory.RefStructConstraint(SyntaxFactory.
Token
(SyntaxKind.RefKeyword), SyntaxFactory.
Token
(SyntaxKind.StructKeyword));
10770
=> SyntaxFactory.FieldDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateVariableDeclaration(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10773
=> SyntaxFactory.EventFieldDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.EventKeyword), GenerateVariableDeclaration(), SyntaxFactory.
Token
(SyntaxKind.SemicolonToken));
10776
=> SyntaxFactory.ExplicitInterfaceSpecifier(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.DotToken));
10782
=> SyntaxFactory.OperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.
Token
(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.PlusToken), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10785
=> SyntaxFactory.ConversionOperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.ImplicitKeyword), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.
Token
(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10791
=> SyntaxFactory.ConstructorInitializer(SyntaxKind.BaseConstructorInitializer, SyntaxFactory.
Token
(SyntaxKind.ColonToken), SyntaxFactory.
Token
(SyntaxKind.BaseKeyword), GenerateArgumentList());
10794
=> SyntaxFactory.DestructorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.TildeToken), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10800
=> SyntaxFactory.ArrowExpressionClause(SyntaxFactory.
Token
(SyntaxKind.EqualsGreaterThanToken), GenerateIdentifierName());
10803
=> SyntaxFactory.EventDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.EventKeyword), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(SyntaxToken));
10806
=> SyntaxFactory.IndexerDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.
Token
(SyntaxKind.ThisKeyword), GenerateBracketedParameterList(), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10809
=> SyntaxFactory.AccessorList(SyntaxFactory.
Token
(SyntaxKind.OpenBraceToken), new SyntaxList<AccessorDeclarationSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBraceToken));
10812
=> SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.GetKeyword), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10815
=> SyntaxFactory.ParameterList(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<ParameterSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10818
=> SyntaxFactory.BracketedParameterList(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<ParameterSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10833
=> SyntaxFactory.DocumentationCommentTrivia(SyntaxKind.SingleLineDocumentationCommentTrivia, new SyntaxList<XmlNodeSyntax>(), SyntaxFactory.
Token
(SyntaxKind.EndOfDocumentationCommentToken));
10839
=> SyntaxFactory.QualifiedCref(GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.DotToken), GenerateNameMemberCref());
10845
=> SyntaxFactory.IndexerMemberCref(SyntaxFactory.
Token
(SyntaxKind.ThisKeyword), default(CrefBracketedParameterListSyntax));
10848
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.
Token
(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.PlusToken), default(CrefParameterListSyntax));
10851
=> SyntaxFactory.ConversionOperatorMemberCref(SyntaxFactory.
Token
(SyntaxKind.ImplicitKeyword), SyntaxFactory.
Token
(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), default(CrefParameterListSyntax));
10854
=> SyntaxFactory.CrefParameterList(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), new SeparatedSyntaxList<CrefParameterSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10857
=> SyntaxFactory.CrefBracketedParameterList(SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken), new SeparatedSyntaxList<CrefParameterSyntax>(), SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken));
10866
=> SyntaxFactory.XmlElementStartTag(SyntaxFactory.
Token
(SyntaxKind.LessThanToken), GenerateXmlName(), new SyntaxList<XmlAttributeSyntax>(), SyntaxFactory.
Token
(SyntaxKind.GreaterThanToken));
10869
=> SyntaxFactory.XmlElementEndTag(SyntaxFactory.
Token
(SyntaxKind.LessThanSlashToken), GenerateXmlName(), SyntaxFactory.
Token
(SyntaxKind.GreaterThanToken));
10872
=> SyntaxFactory.XmlEmptyElement(SyntaxFactory.
Token
(SyntaxKind.LessThanToken), GenerateXmlName(), new SyntaxList<XmlAttributeSyntax>(), SyntaxFactory.
Token
(SyntaxKind.SlashGreaterThanToken));
10878
=> SyntaxFactory.XmlPrefix(SyntaxFactory.Identifier("Prefix"), SyntaxFactory.
Token
(SyntaxKind.ColonToken));
10881
=> SyntaxFactory.XmlTextAttribute(GenerateXmlName(), SyntaxFactory.
Token
(SyntaxKind.EqualsToken), SyntaxFactory.
Token
(SyntaxKind.SingleQuoteToken), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.SingleQuoteToken));
10884
=> SyntaxFactory.XmlCrefAttribute(GenerateXmlName(), SyntaxFactory.
Token
(SyntaxKind.EqualsToken), SyntaxFactory.
Token
(SyntaxKind.SingleQuoteToken), GenerateTypeCref(), SyntaxFactory.
Token
(SyntaxKind.SingleQuoteToken));
10887
=> SyntaxFactory.XmlNameAttribute(GenerateXmlName(), SyntaxFactory.
Token
(SyntaxKind.EqualsToken), SyntaxFactory.
Token
(SyntaxKind.SingleQuoteToken), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.SingleQuoteToken));
10893
=> SyntaxFactory.XmlCDataSection(SyntaxFactory.
Token
(SyntaxKind.XmlCDataStartToken), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.XmlCDataEndToken));
10896
=> SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.
Token
(SyntaxKind.XmlProcessingInstructionStartToken), GenerateXmlName(), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.XmlProcessingInstructionEndToken));
10899
=> SyntaxFactory.XmlComment(SyntaxFactory.
Token
(SyntaxKind.XmlCommentStartToken), new SyntaxTokenList(), SyntaxFactory.
Token
(SyntaxKind.XmlCommentEndToken));
10902
=> SyntaxFactory.IfDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.IfKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool(), new bool(), new bool());
10905
=> SyntaxFactory.ElifDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.ElifKeyword), GenerateIdentifierName(), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool(), new bool(), new bool());
10908
=> SyntaxFactory.ElseDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.ElseKeyword), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool(), new bool());
10911
=> SyntaxFactory.EndIfDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.EndIfKeyword), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10914
=> SyntaxFactory.RegionDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.RegionKeyword), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10917
=> SyntaxFactory.EndRegionDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.EndRegionKeyword), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10920
=> SyntaxFactory.ErrorDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.ErrorKeyword), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10923
=> SyntaxFactory.WarningDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.WarningKeyword), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
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());
10935
=> SyntaxFactory.LineDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.LineKeyword), SyntaxFactory.Literal("1", 1), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10938
=> SyntaxFactory.LineDirectivePosition(SyntaxFactory.
Token
(SyntaxKind.OpenParenToken), SyntaxFactory.Literal("1", 1), SyntaxFactory.
Token
(SyntaxKind.CommaToken), SyntaxFactory.Literal("1", 1), SyntaxFactory.
Token
(SyntaxKind.CloseParenToken));
10941
=> SyntaxFactory.LineSpanDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.LineKeyword), GenerateLineDirectivePosition(), SyntaxFactory.
Token
(SyntaxKind.MinusToken), GenerateLineDirectivePosition(), default(SyntaxToken), SyntaxFactory.Literal("string", "string"), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10944
=> SyntaxFactory.PragmaWarningDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.PragmaKeyword), SyntaxFactory.
Token
(SyntaxKind.WarningKeyword), SyntaxFactory.
Token
(SyntaxKind.DisableKeyword), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10947
=> SyntaxFactory.PragmaChecksumDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.PragmaKeyword), SyntaxFactory.
Token
(SyntaxKind.ChecksumKeyword), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Literal("string", "string"), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10950
=> SyntaxFactory.ReferenceDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.ReferenceKeyword), SyntaxFactory.Literal("string", "string"), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10953
=> SyntaxFactory.LoadDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.LoadKeyword), SyntaxFactory.Literal("string", "string"), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10956
=> SyntaxFactory.ShebangDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.ExclamationToken), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
10959
=> SyntaxFactory.NullableDirectiveTrivia(SyntaxFactory.
Token
(SyntaxKind.HashToken), SyntaxFactory.
Token
(SyntaxKind.NullableKeyword), SyntaxFactory.
Token
(SyntaxKind.EnableKeyword), default(SyntaxToken), SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken), new bool());
Parsing\InterpolatedStringExpressionTests.cs (2)
15
Assert.Equal("$\"\"", SyntaxFactory.InterpolatedStringExpression(SyntaxFactory.
Token
(SyntaxKind.InterpolatedStringStartToken)).ToFullString());
22
SyntaxFactory.
Token
(SyntaxKind.InterpolatedStringStartToken),
Parsing\InterpolationTests.cs (2)
23
SyntaxFactory.
Token
(SyntaxKind.CommaToken),
26
SyntaxFactory.
Token
(SyntaxKind.ColonToken),
Syntax\StructuredTriviaTests.cs (1)
47
SyntaxFactory.
Token
(SyntaxKind.LessThanSlashToken),
Syntax\SyntaxDiffingTests.cs (1)
378
var newNode = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.ObjectKeyword))
Syntax\SyntaxFactoryTests.cs (8)
25
var token = SyntaxFactory.
Token
(SyntaxKind.InterpolatedVerbatimStringStartToken);
34
var usingDirective = SyntaxFactory.UsingDirective(SyntaxFactory.
Token
(SyntaxKind.StaticKeyword), null, someValidName);
103
Assert.Throws<ArgumentException>(() => SyntaxFactory.
Token
(SyntaxKind.NumericLiteralExpression));
124
SyntaxFactory.
Token
(SyntaxKind.IdentifierName);
495
SyntaxFactory.
Token
(SyntaxKind.IntKeyword))),
571
semicolonToken: SyntaxFactory.
Token
(SyntaxKind.SemicolonToken)
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\SyntaxListTests.cs (1)
259
declaration = declaration.AddModifiers(SyntaxFactory.
Token
(SyntaxKind.PublicKeyword));
Syntax\SyntaxNodeTests.cs (21)
665
var comma = SyntaxFactory.
Token
(SyntaxKind.CommaToken);
1825
var cc = SyntaxFactory.
Token
(SyntaxKind.ColonColonToken);
1826
var lt = SyntaxFactory.
Token
(SyntaxKind.LessThanToken);
1827
var gt = SyntaxFactory.
Token
(SyntaxKind.GreaterThanToken);
1828
var dot = SyntaxFactory.
Token
(SyntaxKind.DotToken);
1830
? [SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.IntKeyword))]
1831
: SyntaxFactory.SingletonSeparatedList<TypeSyntax>(SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.IntKeyword)));
1888
var omittedArraySize = SyntaxFactory.OmittedArraySizeExpression(SyntaxFactory.
Token
(SyntaxKind.OmittedArraySizeExpressionToken));
1890
SyntaxFactory.
Token
(SyntaxKind.OpenBracketToken),
1892
SyntaxFactory.
Token
(SyntaxKind.CloseBracketToken)
2319
var expr2 = expr.ReplaceToken(token, SyntaxFactory.
Token
(token.Kind()));
3453
var intType = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.IntKeyword));
3454
var commaToken = SyntaxFactory.
Token
(SyntaxKind.CommaToken);
3833
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3842
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3851
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3860
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3869
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3878
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3941
var newAsync = SyntaxFactory.
Token
(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space);
3979
var replacedKeyword = SyntaxFactory.
Token
(SyntaxKind.StackAllocKeyword).WithTrailingTrivia(SyntaxFactory.Space);
Syntax\SyntaxNormalizerTests.cs (4)
3659
SyntaxFactory.
Token
(SyntaxKind.HashToken),
3660
SyntaxFactory.
Token
(SyntaxKind.LineKeyword),
3662
SyntaxFactory.
Token
(SyntaxKind.MinusToken),
3666
SyntaxFactory.
Token
(SyntaxKind.EndOfDirectiveToken),
Syntax\SyntaxTokenListTests.cs (2)
245
SyntaxFactory.
Token
(SyntaxKind.SizeOfKeyword),
247
SyntaxFactory.
Token
(SyntaxKind.DotToken));
Syntax\SyntaxTriviaListTests.cs (4)
21
var node1 = SyntaxFactory.
Token
(SyntaxKind.AbstractKeyword);
22
var node2 = SyntaxFactory.
Token
(SyntaxKind.VirtualKeyword);
37
var node1 = SyntaxFactory.
Token
(SyntaxKind.AbstractKeyword);
38
var node2 = SyntaxFactory.
Token
(SyntaxKind.VirtualKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (97)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
300
operatorToken: SyntaxFactory.
Token
(GetOperatorSyntaxKind(operatorName)),
2219
return SyntaxFactory.
Token
(token.Kind()).WithTriviaFrom(rewrittenToken);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
61
return SyntaxFactory.
Token
(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (90)
11
public static readonly SyntaxToken AbstractKeyword =
Token
(SyntaxKind.AbstractKeyword);
12
public static readonly SyntaxToken AssemblyKeyword =
Token
(SyntaxKind.AssemblyKeyword);
13
public static readonly SyntaxToken AsyncKeyword =
Token
(SyntaxKind.AsyncKeyword);
14
public static readonly SyntaxToken AwaitKeyword =
Token
(SyntaxKind.AwaitKeyword);
15
public static readonly SyntaxToken BoolKeyword =
Token
(SyntaxKind.BoolKeyword);
16
public static readonly SyntaxToken ByteKeyword =
Token
(SyntaxKind.ByteKeyword);
17
public static readonly SyntaxToken CharKeyword =
Token
(SyntaxKind.CharKeyword);
18
public static readonly SyntaxToken CheckedKeyword =
Token
(SyntaxKind.CheckedKeyword);
19
public static readonly SyntaxToken CloseBraceToken =
Token
(SyntaxKind.CloseBraceToken);
20
public static readonly SyntaxToken CloseBracketToken =
Token
(SyntaxKind.CloseBracketToken);
21
public static readonly SyntaxToken CloseParenToken =
Token
(SyntaxKind.CloseParenToken);
22
public static readonly SyntaxToken ColonToken =
Token
(SyntaxKind.ColonToken);
23
public static readonly SyntaxToken CommaToken =
Token
(SyntaxKind.CommaToken);
24
public static readonly SyntaxToken ConstKeyword =
Token
(SyntaxKind.ConstKeyword);
25
public static readonly SyntaxToken DecimalKeyword =
Token
(SyntaxKind.DecimalKeyword);
26
public static readonly SyntaxToken DisableKeyword =
Token
(SyntaxKind.DisableKeyword);
27
public static readonly SyntaxToken DotDotToken =
Token
(SyntaxKind.DotDotToken);
28
public static readonly SyntaxToken DoubleKeyword =
Token
(SyntaxKind.DoubleKeyword);
29
public static readonly SyntaxToken EndOfDocumentationCommentToken =
Token
(SyntaxKind.EndOfDocumentationCommentToken);
30
public static readonly SyntaxToken EqualsToken =
Token
(SyntaxKind.EqualsToken);
31
public static readonly SyntaxToken ExplicitKeyword =
Token
(SyntaxKind.ExplicitKeyword);
32
public static readonly SyntaxToken ExternKeyword =
Token
(SyntaxKind.ExternKeyword);
33
public static readonly SyntaxToken FileKeyword =
Token
(SyntaxKind.FileKeyword);
34
public static readonly SyntaxToken FloatKeyword =
Token
(SyntaxKind.FloatKeyword);
35
public static readonly SyntaxToken ForEachKeyword =
Token
(SyntaxKind.ForEachKeyword);
36
public static readonly SyntaxToken FromKeyword =
Token
(SyntaxKind.FromKeyword);
37
public static readonly SyntaxToken GlobalKeyword =
Token
(SyntaxKind.GlobalKeyword);
38
public static readonly SyntaxToken GreaterThanEqualsToken =
Token
(SyntaxKind.GreaterThanEqualsToken);
39
public static readonly SyntaxToken GreaterThanToken =
Token
(SyntaxKind.GreaterThanToken);
40
public static readonly SyntaxToken IfKeyword =
Token
(SyntaxKind.IfKeyword);
41
public static readonly SyntaxToken ImplicitKeyword =
Token
(SyntaxKind.ImplicitKeyword);
42
public static readonly SyntaxToken InKeyword =
Token
(SyntaxKind.InKeyword);
43
public static readonly SyntaxToken InterfaceKeyword =
Token
(SyntaxKind.InterfaceKeyword);
44
public static readonly SyntaxToken InternalKeyword =
Token
(SyntaxKind.InternalKeyword);
45
public static readonly SyntaxToken InterpolatedStringEndToken =
Token
(SyntaxKind.InterpolatedStringEndToken);
46
public static readonly SyntaxToken InterpolatedStringStartToken =
Token
(SyntaxKind.InterpolatedStringStartToken);
47
public static readonly SyntaxToken IntKeyword =
Token
(SyntaxKind.IntKeyword);
48
public static readonly SyntaxToken IsKeyword =
Token
(SyntaxKind.IsKeyword);
49
public static readonly SyntaxToken LessThanEqualsToken =
Token
(SyntaxKind.LessThanEqualsToken);
50
public static readonly SyntaxToken LessThanToken =
Token
(SyntaxKind.LessThanToken);
51
public static readonly SyntaxToken LetKeyword =
Token
(SyntaxKind.LetKeyword);
52
public static readonly SyntaxToken LongKeyword =
Token
(SyntaxKind.LongKeyword);
53
public static readonly SyntaxToken MethodKeyword =
Token
(SyntaxKind.MethodKeyword);
54
public static readonly SyntaxToken NewKeyword =
Token
(SyntaxKind.NewKeyword);
55
public static readonly SyntaxToken NotKeyword =
Token
(SyntaxKind.NotKeyword);
56
public static readonly SyntaxToken NullKeyword =
Token
(SyntaxKind.NullKeyword);
57
public static readonly SyntaxToken ObjectKeyword =
Token
(SyntaxKind.ObjectKeyword);
58
public static readonly SyntaxToken OpenBraceToken =
Token
(SyntaxKind.OpenBraceToken);
59
public static readonly SyntaxToken OpenBracketToken =
Token
(SyntaxKind.OpenBracketToken);
60
public static readonly SyntaxToken OpenParenToken =
Token
(SyntaxKind.OpenParenToken);
61
public static readonly SyntaxToken OperatorKeyword =
Token
(SyntaxKind.OperatorKeyword);
62
public static readonly SyntaxToken OutKeyword =
Token
(SyntaxKind.OutKeyword);
63
public static readonly SyntaxToken OverrideKeyword =
Token
(SyntaxKind.OverrideKeyword);
64
public static readonly SyntaxToken ParamsKeyword =
Token
(SyntaxKind.ParamsKeyword);
65
public static readonly SyntaxToken PartialKeyword =
Token
(SyntaxKind.PartialKeyword);
66
public static readonly SyntaxToken PlusToken =
Token
(SyntaxKind.PlusToken);
67
public static readonly SyntaxToken PrivateKeyword =
Token
(SyntaxKind.PrivateKeyword);
68
public static readonly SyntaxToken PropertyKeyword =
Token
(SyntaxKind.PropertyKeyword);
69
public static readonly SyntaxToken ProtectedKeyword =
Token
(SyntaxKind.ProtectedKeyword);
70
public static readonly SyntaxToken PublicKeyword =
Token
(SyntaxKind.PublicKeyword);
71
public static readonly SyntaxToken QuestionQuestionEqualsToken =
Token
(SyntaxKind.QuestionQuestionEqualsToken);
72
public static readonly SyntaxToken QuestionToken =
Token
(SyntaxKind.QuestionToken);
73
public static readonly SyntaxToken ReadOnlyKeyword =
Token
(SyntaxKind.ReadOnlyKeyword);
74
public static readonly SyntaxToken RecordKeyword =
Token
(SyntaxKind.RecordKeyword);
75
public static readonly SyntaxToken RefKeyword =
Token
(SyntaxKind.RefKeyword);
76
public static readonly SyntaxToken RequiredKeyword =
Token
(SyntaxKind.RequiredKeyword);
77
public static readonly SyntaxToken RestoreKeyword =
Token
(SyntaxKind.RestoreKeyword);
78
public static readonly SyntaxToken ReturnKeyword =
Token
(SyntaxKind.ReturnKeyword);
79
public static readonly SyntaxToken SByteKeyword =
Token
(SyntaxKind.SByteKeyword);
80
public static readonly SyntaxToken ScopedKeyword =
Token
(SyntaxKind.ScopedKeyword);
81
public static readonly SyntaxToken SealedKeyword =
Token
(SyntaxKind.SealedKeyword);
82
public static readonly SyntaxToken SemicolonToken =
Token
(SyntaxKind.SemicolonToken);
83
public static readonly SyntaxToken ShortKeyword =
Token
(SyntaxKind.ShortKeyword);
84
public static readonly SyntaxToken SlashGreaterThanToken =
Token
(SyntaxKind.SlashGreaterThanToken);
85
public static readonly SyntaxToken StaticKeyword =
Token
(SyntaxKind.StaticKeyword);
86
public static readonly SyntaxToken StringKeyword =
Token
(SyntaxKind.StringKeyword);
87
public static readonly SyntaxToken StructKeyword =
Token
(SyntaxKind.StructKeyword);
88
public static readonly SyntaxToken SwitchKeyword =
Token
(SyntaxKind.SwitchKeyword);
89
public static readonly SyntaxToken ThisKeyword =
Token
(SyntaxKind.ThisKeyword);
90
public static readonly SyntaxToken TildeToken =
Token
(SyntaxKind.TildeToken);
91
public static readonly SyntaxToken UIntKeyword =
Token
(SyntaxKind.UIntKeyword);
92
public static readonly SyntaxToken ULongKeyword =
Token
(SyntaxKind.ULongKeyword);
93
public static readonly SyntaxToken UnmanagedKeyword =
Token
(SyntaxKind.UnmanagedKeyword);
94
public static readonly SyntaxToken UnsafeKeyword =
Token
(SyntaxKind.UnsafeKeyword);
95
public static readonly SyntaxToken UShortKeyword =
Token
(SyntaxKind.UShortKeyword);
96
public static readonly SyntaxToken UsingKeyword =
Token
(SyntaxKind.UsingKeyword);
97
public static readonly SyntaxToken VirtualKeyword =
Token
(SyntaxKind.VirtualKeyword);
98
public static readonly SyntaxToken VoidKeyword =
Token
(SyntaxKind.VoidKeyword);
99
public static readonly SyntaxToken VolatileKeyword =
Token
(SyntaxKind.VolatileKeyword);
100
public static readonly SyntaxToken WhereKeyword =
Token
(SyntaxKind.WhereKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
19
return [SyntaxFactory.
Token
(argument.RefKindKeyword.Kind())];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
200
var classOrStructKeyword =
Token
(isRecordClass ? default : SyntaxKind.StructKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
87
var operatorToken =
Token
(operatorSyntaxKind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
28
: SyntaxFactory.SeparatedList<T>(newList.GetWithSeparators().Add(SyntaxFactory.
Token
(separator)));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Formatting\FormattingElasticTriviaTests.cs (2)
60
Token
(
152
Token
(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeGeneration\CodeGenerationTests.cs (11)
731
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.AbstractKeyword);
736
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.AsyncKeyword);
741
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.ConstKeyword);
746
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.NewKeyword);
751
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.OverrideKeyword);
756
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.PartialKeyword);
761
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.ReadOnlyKeyword);
766
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.SealedKeyword);
771
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.StaticKeyword);
776
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.UnsafeKeyword);
781
yield return CS.SyntaxFactory.
Token
(CS.SyntaxKind.VirtualKeyword);
Microsoft.CodeAnalysis.UnitTests (1)
CommonSyntaxTests.cs (1)
188
var token = CSharp.SyntaxFactory.
Token
(CSharp.SyntaxKind.IfKeyword);
Microsoft.Gen.Logging.Unit.Tests (6)
ParserUtilitiesTests.cs (6)
22
SyntaxFactory.
Token
(SyntaxKind.PublicKeyword),
23
SyntaxFactory.
Token
(SyntaxKind.StaticKeyword),
24
SyntaxFactory.
Token
(SyntaxKind.PartialKeyword)),
33
SyntaxFactory.
Token
(SyntaxKind.ProtectedKeyword),
34
SyntaxFactory.
Token
(SyntaxKind.VirtualKeyword)),
62
SyntaxFactory.TokenList(SyntaxFactory.
Token
(SyntaxKind.PartialKeyword)),
Microsoft.Interop.ComInterfaceGenerator (46)
ComClassGenerator.cs (10)
83
Token
(SyntaxKind.FileKeyword),
84
Token
(SyntaxKind.SealedKeyword),
85
Token
(SyntaxKind.UnsafeKeyword))
93
Token
(SyntaxKind.PrivateKeyword),
94
Token
(SyntaxKind.StaticKeyword),
95
Token
(SyntaxKind.VolatileKeyword)));
195
.WithType(PredefinedType(
Token
(SyntaxKind.IntKeyword)))
196
.AddModifiers(
Token
(SyntaxKind.OutKeyword)))
198
.AddModifiers(
Token
(SyntaxKind.PublicKeyword),
Token
(SyntaxKind.StaticKeyword)));
ComInterfaceGenerator.cs (20)
479
.WithModifiers(TokenList(
Token
(SyntaxKind.FileKeyword),
Token
(SyntaxKind.UnsafeKeyword),
Token
(SyntaxKind.PartialKeyword)));
518
.AddModifiers(
Token
(SyntaxKind.InternalKeyword),
Token
(SyntaxKind.StaticKeyword));
607
SizeOfExpression(PointerType(PredefinedType(
Token
(SyntaxKind.VoidKeyword)))),
631
.AddModifiers(
Token
(SyntaxKind.FileKeyword),
Token
(SyntaxKind.UnsafeKeyword))
640
.AddModifiers(
Token
(SyntaxKind.PublicKeyword),
Token
(SyntaxKind.StaticKeyword))
642
AccessorDeclaration(SyntaxKind.GetAccessorDeclaration).WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken)))
648
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken)));
656
.AddModifiers(
Token
(SyntaxKind.PrivateKeyword),
Token
(SyntaxKind.StaticKeyword)),
659
.AddModifiers(
Token
(SyntaxKind.PublicKeyword),
Token
(SyntaxKind.StaticKeyword))
673
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken)));
678
.AddModifiers(
Token
(SyntaxKind.PublicKeyword),
Token
(SyntaxKind.StaticKeyword))
680
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken)));
ComMethodContext.cs (2)
132
.WithModifiers(TokenList(
Token
(SyntaxKind.NewKeyword)))
145
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken));
VirtualMethodPointerStubGenerator.cs (5)
110
FunctionPointerCallingConvention(
Token
(SyntaxKind.UnmanagedKeyword), callConv.IsEmpty ? null : FunctionPointerUnmanagedCallingConventionList(SeparatedList(callConv))),
167
.WithModifiers(TokenList(
Token
(SyntaxKind.InternalKeyword),
Token
(SyntaxKind.StaticKeyword)))
251
CastExpression(PointerType(PredefinedType(
Token
(SyntaxKind.VoidKeyword))),
280
FunctionPointerCallingConvention(
Token
(SyntaxKind.UnmanagedKeyword), callConv.IsEmpty ? null : FunctionPointerUnmanagedCallingConventionList(SeparatedList(callConv))),
VtableIndexStubGenerator.cs (9)
30
TokenList(
Token
(SyntaxKind.InternalKeyword),
Token
(SyntaxKind.PartialKeyword)),
431
.WithModifiers(TokenList(
Token
(SyntaxKind.InternalKeyword),
Token
(SyntaxKind.PartialKeyword)))
441
MethodDeclarationSyntax populateVtableMethod = MethodDeclaration(PredefinedType(
Token
(SyntaxKind.VoidKeyword)),
443
.WithModifiers(TokenList(
Token
(SyntaxKind.InternalKeyword),
Token
(SyntaxKind.StaticKeyword),
Token
(SyntaxKind.UnsafeKeyword)))
446
.WithType(PointerType(PointerType(PredefinedType(
Token
(SyntaxKind.VoidKeyword))))));
Microsoft.Interop.JavaScript.JSImportGenerator (46)
JSExportCodeGenerator.cs (1)
79
setupStatements.Add(SyntaxFactoryExtensions.Declare(PredefinedType(
Token
(SyntaxKind.BoolKeyword)), InvokeSucceededIdentifier, initializeToDefault: true));
JSExportGenerator.cs (15)
144
MemberDeclarationSyntax wrappperMethod = MethodDeclaration(PredefinedType(
Token
(SyntaxKind.VoidKeyword)), Identifier(wrapperName))
145
.WithModifiers(TokenList(new[] {
Token
(SyntaxKind.InternalKeyword),
Token
(SyntaxKind.StaticKeyword),
Token
(SyntaxKind.UnsafeKeyword) }))
237
FieldDeclarationSyntax field = FieldDeclaration(VariableDeclaration(PredefinedType(
Token
(SyntaxKind.BoolKeyword)))
240
.WithModifiers(TokenList(
Token
(SyntaxKind.StaticKeyword)))
244
MemberDeclarationSyntax method = MethodDeclaration(PredefinedType(
Token
(SyntaxKind.VoidKeyword)), Identifier(initializerName))
246
.WithModifiers(TokenList(new[] {
Token
(SyntaxKind.StaticKeyword) }))
250
MemberDeclarationSyntax initializerMethod = MethodDeclaration(PredefinedType(
Token
(SyntaxKind.VoidKeyword)), Identifier(trimmingPreserveName))
258
Token
(SyntaxKind.CommaToken),
276
Token
(SyntaxKind.CommaToken),
280
Token
(SyntaxKind.CommaToken),
286
Token
(SyntaxKind.StaticKeyword),
287
Token
(SyntaxKind.InternalKeyword)
296
Token
(SyntaxKind.UnsafeKeyword)}))
JSImportCodeGenerator.cs (1)
87
setupStatements.Add(SyntaxFactoryExtensions.Declare(PredefinedType(
Token
(SyntaxKind.BoolKeyword)), InvokeSucceededIdentifier, initializeToDefault: true));
JSImportGenerator.cs (1)
123
.AddModifiers(
Token
(SyntaxKind.StaticKeyword));
JSManagedTypeInfo.cs (12)
22
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.VoidKeyword))
27
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.BoolKeyword))
32
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.ByteKeyword))
37
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.CharKeyword))
42
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.ShortKeyword))
47
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.IntKeyword))
52
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.LongKeyword))
57
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.FloatKeyword))
62
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.DoubleKeyword))
88
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.ObjectKeyword))
93
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.StringKeyword))
119
return new JSTaskTypeInfo(new JSSimpleTypeInfo(KnownManagedType.Void, SyntaxFactory.PredefinedType(SyntaxFactory.
Token
(SyntaxKind.VoidKeyword))));
Marshaling\FuncJSGenerator.cs (7)
76
List<ArgumentSyntax> arguments = [source.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword))];
117
.WithModifiers(TokenList(
Token
(SyntaxKind.StaticKeyword)))
120
.WithModifiers(TokenList(
Token
(SyntaxKind.RefKeyword)))
132
.WithModifiers(TokenList(
Token
(SyntaxKind.StaticKeyword)))
135
.WithModifiers(TokenList(
Token
(SyntaxKind.RefKeyword)))
138
.WithModifiers(TokenList(
Token
(SyntaxKind.OutKeyword)))
144
Argument(IdentifierName("__delegate_arg"+(i+1))).WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword)),
Marshaling\PrimitiveJSGenerator.cs (1)
64
return argument.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword));
Marshaling\TaskJSGenerator.cs (8)
87
.WithArgumentList(ArgumentList(SingletonSeparatedList(source.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword))))));
102
source.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword)),
104
.WithModifiers(TokenList(
Token
(SyntaxKind.StaticKeyword)))
107
.WithModifiers(TokenList(
Token
(SyntaxKind.RefKeyword)))
110
.WithModifiers(TokenList(
Token
(SyntaxKind.OutKeyword)))
116
Argument(IdentifierName("__task_result")).WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword)),
127
.WithModifiers(TokenList(
Token
(SyntaxKind.StaticKeyword)))
130
.WithModifiers(TokenList(
Token
(SyntaxKind.RefKeyword)))
Microsoft.Interop.LibraryImportGenerator (9)
Analyzers\ConvertToLibraryImportFixer.cs (3)
337
.WithRefKindKeyword(SyntaxFactory.
Token
(SyntaxKind.OutKeyword))),
370
.WithRefKindKeyword(SyntaxFactory.
Token
(SyntaxKind.OutKeyword))),
385
.WithRefKindKeyword(SyntaxFactory.
Token
(SyntaxKind.OutKeyword))),
LibraryImportGenerator.cs (6)
420
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken))
444
Token
(SyntaxKind.StaticKeyword),
445
Token
(SyntaxKind.ExternKeyword),
446
Token
(SyntaxKind.UnsafeKeyword))
447
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken))
475
localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(
Token
(SyntaxKind.ReturnKeyword))));
Microsoft.Interop.LibraryImportGenerator.Downlevel (6)
DownlevelLibraryImportGenerator.cs (6)
299
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken))
320
Token
(SyntaxKind.StaticKeyword),
321
Token
(SyntaxKind.ExternKeyword),
322
Token
(SyntaxKind.UnsafeKeyword))
323
.WithSemicolonToken(
Token
(SyntaxKind.SemicolonToken))
350
localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(
Token
(SyntaxKind.ReturnKeyword))));
Microsoft.Interop.SourceGeneration (35)
ManagedToNativeStubGenerator.cs (2)
121
PredefinedType(
Token
(SyntaxKind.IntKeyword)),
128
setupStatements.Add(Declare(PredefinedType(
Token
(SyntaxKind.BoolKeyword)), InvokeSucceededIdentifier, initializeToDefault: true));
Marshalling\CharMarshaller.cs (2)
58
PointerType(PredefinedType(
Token
(SyntaxKind.CharKeyword))),
113
Token
(SyntaxKind.CharKeyword)),
Marshalling\ElementsMarshalling.cs (2)
85
PredefinedType(
Token
(SyntaxKind.IntKeyword)),
612
PredefinedType(
Token
(SyntaxKind.IntKeyword)),
Marshalling\MarshallerHelpers.cs (14)
271
.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword))));
278
LiteralExpression(SyntaxKind.DefaultLiteralExpression,
Token
(SyntaxKind.DefaultKeyword)));
287
LiteralExpression(SyntaxKind.DefaultLiteralExpression,
Token
(SyntaxKind.DefaultKeyword)));
419
tokens = tokens.Add(
Token
(SyntaxKind.ScopedKeyword));
427
tokens = tokens.Add(
Token
(SyntaxKind.InKeyword));
430
tokens = tokens.Add(
Token
(SyntaxKind.RefKeyword));
434
tokens = tokens.Add(
Token
(SyntaxKind.OutKeyword));
437
tokens = tokens.Add(
Token
(SyntaxKind.RefKeyword));
438
tokens = tokens.Add(
Token
(SyntaxKind.ReadOnlyKeyword));
447
tokens = tokens.Add(
Token
(SyntaxKind.ThisKeyword));
458
RefKind.In =>
Token
(SyntaxKind.InKeyword),
459
RefKind.Ref =>
Token
(SyntaxKind.RefKeyword),
460
RefKind.Out =>
Token
(SyntaxKind.OutKeyword),
461
RefKind.RefReadOnlyParameter =>
Token
(SyntaxKind.InKeyword),
Marshalling\StatefulMarshallingStrategy.cs (2)
142
declaration = declaration.AddModifiers(
Token
(SyntaxKind.ScopedKeyword));
402
PredefinedType(
Token
(SyntaxKind.IntKeyword)),
Marshalling\StatelessMarshallingStrategy.cs (3)
208
.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword))
410
.WithRefOrOutKeyword(
Token
(SyntaxKind.OutKeyword))
424
PredefinedType(
Token
(SyntaxKind.IntKeyword)),
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
81
PointerType(PredefinedType(
Token
(SyntaxKind.VoidKeyword))),
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
62
PredefinedType(
Token
(SyntaxKind.BoolKeyword)),
SyntaxExtensions.cs (1)
117
return modifiers.Insert(idxInsert, SyntaxFactory.
Token
(modifierToAdd));
TypeNames.cs (3)
49
public static TypeSyntax Void { get; } = PredefinedType(
Token
(SyntaxKind.VoidKeyword));
51
public static TypeSyntax VoidStar { get; } = PointerType(PredefinedType(
Token
(SyntaxKind.VoidKeyword)));
53
public static TypeSyntax VoidStarStar { get; } = PointerType(PointerType(PredefinedType(
Token
(SyntaxKind.VoidKeyword))));
Utils\SyntaxFactoryExtensions.cs (4)
72
=> Argument(null,
Token
(SyntaxKind.RefKeyword), expression);
75
=> Argument(null,
Token
(SyntaxKind.InKeyword), expression);
78
=> Argument(null,
Token
(SyntaxKind.OutKeyword), expression);
122
Token
(SyntaxKind.IntKeyword)))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\ModifierFlagsExtensions.cs (1)
116
newModifierList.Add(SyntaxFactory.
Token
(modifierDefinition.Value));
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
133
return typeDeclaration.AddModifiers(SyntaxFactory.
Token
(SyntaxKind.PartialKeyword));