858 references to Token
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
376loggerParam = parameterSyntax.WithModifiers(SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.ThisKeyword)));
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
83var publicModifier = SyntaxFactory.Token(SyntaxKind.PublicKeyword);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
83var publicModifier = SyntaxFactory.Token(SyntaxKind.PublicKeyword);
Microsoft.CodeAnalysis.CSharp (72)
Syntax\AnonymousMethodExpressionSyntax.cs (1)
44Token(SyntaxKind.DelegateKeyword),
Syntax\DestructorDeclarationSyntax.cs (2)
46SyntaxFactory.Token(SyntaxKind.TildeToken), 80SyntaxFactory.Token(SyntaxKind.TildeToken),
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
242return 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)
38var semicolonToken = members.Count == 0 ? Token(SyntaxKind.SemicolonToken) : default; 39var openBraceToken = members.Count == 0 ? default : Token(SyntaxKind.OpenBraceToken); 40var closeBraceToken = members.Count == 0 ? default : Token(SyntaxKind.CloseBraceToken);
Syntax\SyntaxFactory.cs (55)
750Token(SyntaxKind.DoubleQuoteToken), 752Token(SyntaxKind.DoubleQuoteToken)) 783Token(quoteKind), 785Token(quoteKind)) 1066return XmlTextAttribute(name, Token(quoteKind), textTokens, Token(quoteKind)) 1385var commaToken = Token(SyntaxKind.CommaToken); 2429return SyntaxFactory.CaseSwitchLabel(SyntaxFactory.Token(SyntaxKind.CaseKeyword), value, SyntaxFactory.Token(SyntaxKind.ColonToken)); 2435return SyntaxFactory.DefaultSwitchLabel(SyntaxFactory.Token(SyntaxKind.DefaultKeyword), SyntaxFactory.Token(SyntaxKind.ColonToken)); 2661usingKeyword: Token(SyntaxKind.UsingKeyword), 2665semicolonToken: Token(SyntaxKind.SemicolonToken)); 2724var openParen = needsParens ? SyntaxFactory.Token(SyntaxKind.OpenParenToken) : default; 2725var closeParen = needsParens ? SyntaxFactory.Token(SyntaxKind.CloseParenToken) : default; 2728SyntaxFactory.Token(SyntaxKind.SwitchKeyword), 2732SyntaxFactory.Token(SyntaxKind.OpenBraceToken), 2734SyntaxFactory.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)
91SyntaxFactory.Token(GetTypeDeclarationKeywordKind(kind)), 96SyntaxFactory.Token(SyntaxKind.OpenBraceToken), 98SyntaxFactory.Token(SyntaxKind.CloseBraceToken), 132return 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)
11public static readonly SyntaxToken AbstractKeyword = Token(SyntaxKind.AbstractKeyword); 12public static readonly SyntaxToken AssemblyKeyword = Token(SyntaxKind.AssemblyKeyword); 13public static readonly SyntaxToken AsyncKeyword = Token(SyntaxKind.AsyncKeyword); 14public static readonly SyntaxToken AwaitKeyword = Token(SyntaxKind.AwaitKeyword); 15public static readonly SyntaxToken BoolKeyword = Token(SyntaxKind.BoolKeyword); 16public static readonly SyntaxToken ByteKeyword = Token(SyntaxKind.ByteKeyword); 17public static readonly SyntaxToken CharKeyword = Token(SyntaxKind.CharKeyword); 18public static readonly SyntaxToken CheckedKeyword = Token(SyntaxKind.CheckedKeyword); 19public static readonly SyntaxToken CloseBraceToken = Token(SyntaxKind.CloseBraceToken); 20public static readonly SyntaxToken CloseBracketToken = Token(SyntaxKind.CloseBracketToken); 21public static readonly SyntaxToken CloseParenToken = Token(SyntaxKind.CloseParenToken); 22public static readonly SyntaxToken ColonToken = Token(SyntaxKind.ColonToken); 23public static readonly SyntaxToken CommaToken = Token(SyntaxKind.CommaToken); 24public static readonly SyntaxToken ConstKeyword = Token(SyntaxKind.ConstKeyword); 25public static readonly SyntaxToken DecimalKeyword = Token(SyntaxKind.DecimalKeyword); 26public static readonly SyntaxToken DisableKeyword = Token(SyntaxKind.DisableKeyword); 27public static readonly SyntaxToken DotDotToken = Token(SyntaxKind.DotDotToken); 28public static readonly SyntaxToken DoubleKeyword = Token(SyntaxKind.DoubleKeyword); 29public static readonly SyntaxToken EndOfDocumentationCommentToken = Token(SyntaxKind.EndOfDocumentationCommentToken); 30public static readonly SyntaxToken EqualsToken = Token(SyntaxKind.EqualsToken); 31public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword); 32public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword); 33public static readonly SyntaxToken FileKeyword = Token(SyntaxKind.FileKeyword); 34public static readonly SyntaxToken FloatKeyword = Token(SyntaxKind.FloatKeyword); 35public static readonly SyntaxToken ForEachKeyword = Token(SyntaxKind.ForEachKeyword); 36public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.FromKeyword); 37public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword); 38public static readonly SyntaxToken GreaterThanEqualsToken = Token(SyntaxKind.GreaterThanEqualsToken); 39public static readonly SyntaxToken GreaterThanToken = Token(SyntaxKind.GreaterThanToken); 40public static readonly SyntaxToken IfKeyword = Token(SyntaxKind.IfKeyword); 41public static readonly SyntaxToken ImplicitKeyword = Token(SyntaxKind.ImplicitKeyword); 42public static readonly SyntaxToken InKeyword = Token(SyntaxKind.InKeyword); 43public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.InterfaceKeyword); 44public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.InternalKeyword); 45public static readonly SyntaxToken InterpolatedStringEndToken = Token(SyntaxKind.InterpolatedStringEndToken); 46public static readonly SyntaxToken InterpolatedStringStartToken = Token(SyntaxKind.InterpolatedStringStartToken); 47public static readonly SyntaxToken IntKeyword = Token(SyntaxKind.IntKeyword); 48public static readonly SyntaxToken IsKeyword = Token(SyntaxKind.IsKeyword); 49public static readonly SyntaxToken LessThanEqualsToken = Token(SyntaxKind.LessThanEqualsToken); 50public static readonly SyntaxToken LessThanToken = Token(SyntaxKind.LessThanToken); 51public static readonly SyntaxToken LetKeyword = Token(SyntaxKind.LetKeyword); 52public static readonly SyntaxToken LongKeyword = Token(SyntaxKind.LongKeyword); 53public static readonly SyntaxToken MethodKeyword = Token(SyntaxKind.MethodKeyword); 54public static readonly SyntaxToken NewKeyword = Token(SyntaxKind.NewKeyword); 55public static readonly SyntaxToken NotKeyword = Token(SyntaxKind.NotKeyword); 56public static readonly SyntaxToken NullKeyword = Token(SyntaxKind.NullKeyword); 57public static readonly SyntaxToken ObjectKeyword = Token(SyntaxKind.ObjectKeyword); 58public static readonly SyntaxToken OpenBraceToken = Token(SyntaxKind.OpenBraceToken); 59public static readonly SyntaxToken OpenBracketToken = Token(SyntaxKind.OpenBracketToken); 60public static readonly SyntaxToken OpenParenToken = Token(SyntaxKind.OpenParenToken); 61public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.OperatorKeyword); 62public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword); 63public static readonly SyntaxToken OverrideKeyword = Token(SyntaxKind.OverrideKeyword); 64public static readonly SyntaxToken ParamsKeyword = Token(SyntaxKind.ParamsKeyword); 65public static readonly SyntaxToken PartialKeyword = Token(SyntaxKind.PartialKeyword); 66public static readonly SyntaxToken PlusToken = Token(SyntaxKind.PlusToken); 67public static readonly SyntaxToken PrivateKeyword = Token(SyntaxKind.PrivateKeyword); 68public static readonly SyntaxToken PropertyKeyword = Token(SyntaxKind.PropertyKeyword); 69public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.ProtectedKeyword); 70public static readonly SyntaxToken PublicKeyword = Token(SyntaxKind.PublicKeyword); 71public static readonly SyntaxToken QuestionQuestionEqualsToken = Token(SyntaxKind.QuestionQuestionEqualsToken); 72public static readonly SyntaxToken QuestionToken = Token(SyntaxKind.QuestionToken); 73public static readonly SyntaxToken ReadOnlyKeyword = Token(SyntaxKind.ReadOnlyKeyword); 74public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword); 75public static readonly SyntaxToken RefKeyword = Token(SyntaxKind.RefKeyword); 76public static readonly SyntaxToken RequiredKeyword = Token(SyntaxKind.RequiredKeyword); 77public static readonly SyntaxToken RestoreKeyword = Token(SyntaxKind.RestoreKeyword); 78public static readonly SyntaxToken ReturnKeyword = Token(SyntaxKind.ReturnKeyword); 79public static readonly SyntaxToken SByteKeyword = Token(SyntaxKind.SByteKeyword); 80public static readonly SyntaxToken ScopedKeyword = Token(SyntaxKind.ScopedKeyword); 81public static readonly SyntaxToken SealedKeyword = Token(SyntaxKind.SealedKeyword); 82public static readonly SyntaxToken SemicolonToken = Token(SyntaxKind.SemicolonToken); 83public static readonly SyntaxToken ShortKeyword = Token(SyntaxKind.ShortKeyword); 84public static readonly SyntaxToken SlashGreaterThanToken = Token(SyntaxKind.SlashGreaterThanToken); 85public static readonly SyntaxToken StaticKeyword = Token(SyntaxKind.StaticKeyword); 86public static readonly SyntaxToken StringKeyword = Token(SyntaxKind.StringKeyword); 87public static readonly SyntaxToken StructKeyword = Token(SyntaxKind.StructKeyword); 88public static readonly SyntaxToken SwitchKeyword = Token(SyntaxKind.SwitchKeyword); 89public static readonly SyntaxToken ThisKeyword = Token(SyntaxKind.ThisKeyword); 90public static readonly SyntaxToken TildeToken = Token(SyntaxKind.TildeToken); 91public static readonly SyntaxToken UIntKeyword = Token(SyntaxKind.UIntKeyword); 92public static readonly SyntaxToken ULongKeyword = Token(SyntaxKind.ULongKeyword); 93public static readonly SyntaxToken UnmanagedKeyword = Token(SyntaxKind.UnmanagedKeyword); 94public static readonly SyntaxToken UnsafeKeyword = Token(SyntaxKind.UnsafeKeyword); 95public static readonly SyntaxToken UShortKeyword = Token(SyntaxKind.UShortKeyword); 96public static readonly SyntaxToken UsingKeyword = Token(SyntaxKind.UsingKeyword); 97public static readonly SyntaxToken VirtualKeyword = Token(SyntaxKind.VirtualKeyword); 98public static readonly SyntaxToken VoidKeyword = Token(SyntaxKind.VoidKeyword); 99public static readonly SyntaxToken VolatileKeyword = Token(SyntaxKind.VolatileKeyword); 100public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
18return [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)
200var classOrStructKeyword = Token(isRecordClass ? default : SyntaxKind.StructKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
87var 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)
34336SyntaxFactory.Token(SyntaxKind.CommaToken), 34550SyntaxFactory.Token(SyntaxKind.CommaToken),
Microsoft.CodeAnalysis.CSharp.Features (10)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
389return SyntaxFactory.Subpattern(ExpressionColon(expression, Token(ColonToken)), pattern);
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
104AnalyzedPattern.Relational p => RelationalPattern(Token(s_operatorMap[p.OperatorKind]), p.Value),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
580var 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)
143Trivia(NullableDirectiveTrivia(Token(keyword), isActive: enable)),
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
374var 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)
15Assert.Equal("$\"\"", SyntaxFactory.InterpolatedStringExpression(SyntaxFactory.Token(SyntaxKind.InterpolatedStringStartToken)).ToFullString()); 22SyntaxFactory.Token(SyntaxKind.InterpolatedStringStartToken),
Parsing\InterpolationTests.cs (2)
23SyntaxFactory.Token(SyntaxKind.CommaToken), 26SyntaxFactory.Token(SyntaxKind.ColonToken),
Syntax\StructuredTriviaTests.cs (1)
47SyntaxFactory.Token(SyntaxKind.LessThanSlashToken),
Syntax\SyntaxDiffingTests.cs (1)
378var newNode = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ObjectKeyword))
Syntax\SyntaxFactoryTests.cs (8)
25var token = SyntaxFactory.Token(SyntaxKind.InterpolatedVerbatimStringStartToken); 34var usingDirective = SyntaxFactory.UsingDirective(SyntaxFactory.Token(SyntaxKind.StaticKeyword), null, someValidName); 103Assert.Throws<ArgumentException>(() => SyntaxFactory.Token(SyntaxKind.NumericLiteralExpression)); 124SyntaxFactory.Token(SyntaxKind.IdentifierName); 495SyntaxFactory.Token(SyntaxKind.IntKeyword))), 571semicolonToken: SyntaxFactory.Token(SyntaxKind.SemicolonToken) 604default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.Identifier("R"), null, null, null, default, default); 613default, default, SyntaxFactory.Token(SyntaxKind.RecordKeyword), SyntaxFactory.Identifier("R"), null, null, null, default,
Syntax\SyntaxListTests.cs (1)
259declaration = declaration.AddModifiers(SyntaxFactory.Token(SyntaxKind.PublicKeyword));
Syntax\SyntaxNodeTests.cs (21)
688var comma = SyntaxFactory.Token(SyntaxKind.CommaToken); 1848var cc = SyntaxFactory.Token(SyntaxKind.ColonColonToken); 1849var lt = SyntaxFactory.Token(SyntaxKind.LessThanToken); 1850var gt = SyntaxFactory.Token(SyntaxKind.GreaterThanToken); 1851var dot = SyntaxFactory.Token(SyntaxKind.DotToken); 1853? [SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword))] 1854: SyntaxFactory.SingletonSeparatedList<TypeSyntax>(SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword))); 1911var omittedArraySize = SyntaxFactory.OmittedArraySizeExpression(SyntaxFactory.Token(SyntaxKind.OmittedArraySizeExpressionToken)); 1913SyntaxFactory.Token(SyntaxKind.OpenBracketToken), 1915SyntaxFactory.Token(SyntaxKind.CloseBracketToken) 2342var expr2 = expr.ReplaceToken(token, SyntaxFactory.Token(token.Kind())); 3476var intType = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword)); 3477var commaToken = SyntaxFactory.Token(SyntaxKind.CommaToken); 3856var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString(); 3865var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString(); 3874var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString(); 3883var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString(); 3892var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString(); 3901var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString(); 3964var newAsync = SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space); 4002var replacedKeyword = SyntaxFactory.Token(SyntaxKind.StackAllocKeyword).WithTrailingTrivia(SyntaxFactory.Space);
Syntax\SyntaxNormalizerTests.cs (4)
3659SyntaxFactory.Token(SyntaxKind.HashToken), 3660SyntaxFactory.Token(SyntaxKind.LineKeyword), 3662SyntaxFactory.Token(SyntaxKind.MinusToken), 3666SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken),
Syntax\SyntaxTokenListTests.cs (2)
245SyntaxFactory.Token(SyntaxKind.SizeOfKeyword), 247SyntaxFactory.Token(SyntaxKind.DotToken));
Syntax\SyntaxTriviaListTests.cs (4)
21var node1 = SyntaxFactory.Token(SyntaxKind.AbstractKeyword); 22var node2 = SyntaxFactory.Token(SyntaxKind.VirtualKeyword); 37var node1 = SyntaxFactory.Token(SyntaxKind.AbstractKeyword); 38var node2 = SyntaxFactory.Token(SyntaxKind.VirtualKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (97)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
299operatorToken: SyntaxFactory.Token(GetOperatorSyntaxKind(operatorName)), 2218return SyntaxFactory.Token(token.Kind()).WithTriviaFrom(rewrittenToken);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
61return SyntaxFactory.Token(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (90)
11public static readonly SyntaxToken AbstractKeyword = Token(SyntaxKind.AbstractKeyword); 12public static readonly SyntaxToken AssemblyKeyword = Token(SyntaxKind.AssemblyKeyword); 13public static readonly SyntaxToken AsyncKeyword = Token(SyntaxKind.AsyncKeyword); 14public static readonly SyntaxToken AwaitKeyword = Token(SyntaxKind.AwaitKeyword); 15public static readonly SyntaxToken BoolKeyword = Token(SyntaxKind.BoolKeyword); 16public static readonly SyntaxToken ByteKeyword = Token(SyntaxKind.ByteKeyword); 17public static readonly SyntaxToken CharKeyword = Token(SyntaxKind.CharKeyword); 18public static readonly SyntaxToken CheckedKeyword = Token(SyntaxKind.CheckedKeyword); 19public static readonly SyntaxToken CloseBraceToken = Token(SyntaxKind.CloseBraceToken); 20public static readonly SyntaxToken CloseBracketToken = Token(SyntaxKind.CloseBracketToken); 21public static readonly SyntaxToken CloseParenToken = Token(SyntaxKind.CloseParenToken); 22public static readonly SyntaxToken ColonToken = Token(SyntaxKind.ColonToken); 23public static readonly SyntaxToken CommaToken = Token(SyntaxKind.CommaToken); 24public static readonly SyntaxToken ConstKeyword = Token(SyntaxKind.ConstKeyword); 25public static readonly SyntaxToken DecimalKeyword = Token(SyntaxKind.DecimalKeyword); 26public static readonly SyntaxToken DisableKeyword = Token(SyntaxKind.DisableKeyword); 27public static readonly SyntaxToken DotDotToken = Token(SyntaxKind.DotDotToken); 28public static readonly SyntaxToken DoubleKeyword = Token(SyntaxKind.DoubleKeyword); 29public static readonly SyntaxToken EndOfDocumentationCommentToken = Token(SyntaxKind.EndOfDocumentationCommentToken); 30public static readonly SyntaxToken EqualsToken = Token(SyntaxKind.EqualsToken); 31public static readonly SyntaxToken ExplicitKeyword = Token(SyntaxKind.ExplicitKeyword); 32public static readonly SyntaxToken ExternKeyword = Token(SyntaxKind.ExternKeyword); 33public static readonly SyntaxToken FileKeyword = Token(SyntaxKind.FileKeyword); 34public static readonly SyntaxToken FloatKeyword = Token(SyntaxKind.FloatKeyword); 35public static readonly SyntaxToken ForEachKeyword = Token(SyntaxKind.ForEachKeyword); 36public static readonly SyntaxToken FromKeyword = Token(SyntaxKind.FromKeyword); 37public static readonly SyntaxToken GlobalKeyword = Token(SyntaxKind.GlobalKeyword); 38public static readonly SyntaxToken GreaterThanEqualsToken = Token(SyntaxKind.GreaterThanEqualsToken); 39public static readonly SyntaxToken GreaterThanToken = Token(SyntaxKind.GreaterThanToken); 40public static readonly SyntaxToken IfKeyword = Token(SyntaxKind.IfKeyword); 41public static readonly SyntaxToken ImplicitKeyword = Token(SyntaxKind.ImplicitKeyword); 42public static readonly SyntaxToken InKeyword = Token(SyntaxKind.InKeyword); 43public static readonly SyntaxToken InterfaceKeyword = Token(SyntaxKind.InterfaceKeyword); 44public static readonly SyntaxToken InternalKeyword = Token(SyntaxKind.InternalKeyword); 45public static readonly SyntaxToken InterpolatedStringEndToken = Token(SyntaxKind.InterpolatedStringEndToken); 46public static readonly SyntaxToken InterpolatedStringStartToken = Token(SyntaxKind.InterpolatedStringStartToken); 47public static readonly SyntaxToken IntKeyword = Token(SyntaxKind.IntKeyword); 48public static readonly SyntaxToken IsKeyword = Token(SyntaxKind.IsKeyword); 49public static readonly SyntaxToken LessThanEqualsToken = Token(SyntaxKind.LessThanEqualsToken); 50public static readonly SyntaxToken LessThanToken = Token(SyntaxKind.LessThanToken); 51public static readonly SyntaxToken LetKeyword = Token(SyntaxKind.LetKeyword); 52public static readonly SyntaxToken LongKeyword = Token(SyntaxKind.LongKeyword); 53public static readonly SyntaxToken MethodKeyword = Token(SyntaxKind.MethodKeyword); 54public static readonly SyntaxToken NewKeyword = Token(SyntaxKind.NewKeyword); 55public static readonly SyntaxToken NotKeyword = Token(SyntaxKind.NotKeyword); 56public static readonly SyntaxToken NullKeyword = Token(SyntaxKind.NullKeyword); 57public static readonly SyntaxToken ObjectKeyword = Token(SyntaxKind.ObjectKeyword); 58public static readonly SyntaxToken OpenBraceToken = Token(SyntaxKind.OpenBraceToken); 59public static readonly SyntaxToken OpenBracketToken = Token(SyntaxKind.OpenBracketToken); 60public static readonly SyntaxToken OpenParenToken = Token(SyntaxKind.OpenParenToken); 61public static readonly SyntaxToken OperatorKeyword = Token(SyntaxKind.OperatorKeyword); 62public static readonly SyntaxToken OutKeyword = Token(SyntaxKind.OutKeyword); 63public static readonly SyntaxToken OverrideKeyword = Token(SyntaxKind.OverrideKeyword); 64public static readonly SyntaxToken ParamsKeyword = Token(SyntaxKind.ParamsKeyword); 65public static readonly SyntaxToken PartialKeyword = Token(SyntaxKind.PartialKeyword); 66public static readonly SyntaxToken PlusToken = Token(SyntaxKind.PlusToken); 67public static readonly SyntaxToken PrivateKeyword = Token(SyntaxKind.PrivateKeyword); 68public static readonly SyntaxToken PropertyKeyword = Token(SyntaxKind.PropertyKeyword); 69public static readonly SyntaxToken ProtectedKeyword = Token(SyntaxKind.ProtectedKeyword); 70public static readonly SyntaxToken PublicKeyword = Token(SyntaxKind.PublicKeyword); 71public static readonly SyntaxToken QuestionQuestionEqualsToken = Token(SyntaxKind.QuestionQuestionEqualsToken); 72public static readonly SyntaxToken QuestionToken = Token(SyntaxKind.QuestionToken); 73public static readonly SyntaxToken ReadOnlyKeyword = Token(SyntaxKind.ReadOnlyKeyword); 74public static readonly SyntaxToken RecordKeyword = Token(SyntaxKind.RecordKeyword); 75public static readonly SyntaxToken RefKeyword = Token(SyntaxKind.RefKeyword); 76public static readonly SyntaxToken RequiredKeyword = Token(SyntaxKind.RequiredKeyword); 77public static readonly SyntaxToken RestoreKeyword = Token(SyntaxKind.RestoreKeyword); 78public static readonly SyntaxToken ReturnKeyword = Token(SyntaxKind.ReturnKeyword); 79public static readonly SyntaxToken SByteKeyword = Token(SyntaxKind.SByteKeyword); 80public static readonly SyntaxToken ScopedKeyword = Token(SyntaxKind.ScopedKeyword); 81public static readonly SyntaxToken SealedKeyword = Token(SyntaxKind.SealedKeyword); 82public static readonly SyntaxToken SemicolonToken = Token(SyntaxKind.SemicolonToken); 83public static readonly SyntaxToken ShortKeyword = Token(SyntaxKind.ShortKeyword); 84public static readonly SyntaxToken SlashGreaterThanToken = Token(SyntaxKind.SlashGreaterThanToken); 85public static readonly SyntaxToken StaticKeyword = Token(SyntaxKind.StaticKeyword); 86public static readonly SyntaxToken StringKeyword = Token(SyntaxKind.StringKeyword); 87public static readonly SyntaxToken StructKeyword = Token(SyntaxKind.StructKeyword); 88public static readonly SyntaxToken SwitchKeyword = Token(SyntaxKind.SwitchKeyword); 89public static readonly SyntaxToken ThisKeyword = Token(SyntaxKind.ThisKeyword); 90public static readonly SyntaxToken TildeToken = Token(SyntaxKind.TildeToken); 91public static readonly SyntaxToken UIntKeyword = Token(SyntaxKind.UIntKeyword); 92public static readonly SyntaxToken ULongKeyword = Token(SyntaxKind.ULongKeyword); 93public static readonly SyntaxToken UnmanagedKeyword = Token(SyntaxKind.UnmanagedKeyword); 94public static readonly SyntaxToken UnsafeKeyword = Token(SyntaxKind.UnsafeKeyword); 95public static readonly SyntaxToken UShortKeyword = Token(SyntaxKind.UShortKeyword); 96public static readonly SyntaxToken UsingKeyword = Token(SyntaxKind.UsingKeyword); 97public static readonly SyntaxToken VirtualKeyword = Token(SyntaxKind.VirtualKeyword); 98public static readonly SyntaxToken VoidKeyword = Token(SyntaxKind.VoidKeyword); 99public static readonly SyntaxToken VolatileKeyword = Token(SyntaxKind.VolatileKeyword); 100public static readonly SyntaxToken WhereKeyword = Token(SyntaxKind.WhereKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
18return [SyntaxFactory.Token(argument.RefKindKeyword.Kind())];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
200var classOrStructKeyword = Token(isRecordClass ? default : SyntaxKind.StructKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
87var 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)
60Token( 152Token(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeGeneration\CodeGenerationTests.cs (11)
731yield return CS.SyntaxFactory.Token(CS.SyntaxKind.AbstractKeyword); 736yield return CS.SyntaxFactory.Token(CS.SyntaxKind.AsyncKeyword); 741yield return CS.SyntaxFactory.Token(CS.SyntaxKind.ConstKeyword); 746yield return CS.SyntaxFactory.Token(CS.SyntaxKind.NewKeyword); 751yield return CS.SyntaxFactory.Token(CS.SyntaxKind.OverrideKeyword); 756yield return CS.SyntaxFactory.Token(CS.SyntaxKind.PartialKeyword); 761yield return CS.SyntaxFactory.Token(CS.SyntaxKind.ReadOnlyKeyword); 766yield return CS.SyntaxFactory.Token(CS.SyntaxKind.SealedKeyword); 771yield return CS.SyntaxFactory.Token(CS.SyntaxKind.StaticKeyword); 776yield return CS.SyntaxFactory.Token(CS.SyntaxKind.UnsafeKeyword); 781yield return CS.SyntaxFactory.Token(CS.SyntaxKind.VirtualKeyword);
Microsoft.CodeAnalysis.UnitTests (1)
CommonSyntaxTests.cs (1)
188var token = CSharp.SyntaxFactory.Token(CSharp.SyntaxKind.IfKeyword);
Microsoft.Gen.Logging.Unit.Tests (6)
ParserUtilitiesTests.cs (6)
22SyntaxFactory.Token(SyntaxKind.PublicKeyword), 23SyntaxFactory.Token(SyntaxKind.StaticKeyword), 24SyntaxFactory.Token(SyntaxKind.PartialKeyword)), 33SyntaxFactory.Token(SyntaxKind.ProtectedKeyword), 34SyntaxFactory.Token(SyntaxKind.VirtualKeyword)), 62SyntaxFactory.TokenList(SyntaxFactory.Token(SyntaxKind.PartialKeyword)),
Microsoft.Interop.ComInterfaceGenerator (46)
ComClassGenerator.cs (10)
83Token(SyntaxKind.FileKeyword), 84Token(SyntaxKind.SealedKeyword), 85Token(SyntaxKind.UnsafeKeyword)) 93Token(SyntaxKind.PrivateKeyword), 94Token(SyntaxKind.StaticKeyword), 95Token(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)); 607SizeOfExpression(PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword)))), 631.AddModifiers(Token(SyntaxKind.FileKeyword), Token(SyntaxKind.UnsafeKeyword)) 640.AddModifiers(Token(SyntaxKind.PublicKeyword), Token(SyntaxKind.StaticKeyword)) 642AccessorDeclaration(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)
110FunctionPointerCallingConvention(Token(SyntaxKind.UnmanagedKeyword), callConv.IsEmpty ? null : FunctionPointerUnmanagedCallingConventionList(SeparatedList(callConv))), 167.WithModifiers(TokenList(Token(SyntaxKind.InternalKeyword), Token(SyntaxKind.StaticKeyword))) 251CastExpression(PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))), 280FunctionPointerCallingConvention(Token(SyntaxKind.UnmanagedKeyword), callConv.IsEmpty ? null : FunctionPointerUnmanagedCallingConventionList(SeparatedList(callConv))),
VtableIndexStubGenerator.cs (9)
30TokenList(Token(SyntaxKind.InternalKeyword), Token(SyntaxKind.PartialKeyword)), 431.WithModifiers(TokenList(Token(SyntaxKind.InternalKeyword), Token(SyntaxKind.PartialKeyword))) 441MethodDeclarationSyntax 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)
79setupStatements.Add(SyntaxFactoryExtensions.Declare(PredefinedType(Token(SyntaxKind.BoolKeyword)), InvokeSucceededIdentifier, initializeToDefault: true));
JSExportGenerator.cs (15)
144MemberDeclarationSyntax wrappperMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier(wrapperName)) 145.WithModifiers(TokenList(new[] { Token(SyntaxKind.InternalKeyword), Token(SyntaxKind.StaticKeyword), Token(SyntaxKind.UnsafeKeyword) })) 237FieldDeclarationSyntax field = FieldDeclaration(VariableDeclaration(PredefinedType(Token(SyntaxKind.BoolKeyword))) 240.WithModifiers(TokenList(Token(SyntaxKind.StaticKeyword))) 244MemberDeclarationSyntax method = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier(initializerName)) 246.WithModifiers(TokenList(new[] { Token(SyntaxKind.StaticKeyword) })) 250MemberDeclarationSyntax initializerMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.VoidKeyword)), Identifier(trimmingPreserveName)) 258Token(SyntaxKind.CommaToken), 276Token(SyntaxKind.CommaToken), 280Token(SyntaxKind.CommaToken), 286Token(SyntaxKind.StaticKeyword), 287Token(SyntaxKind.InternalKeyword) 296Token(SyntaxKind.UnsafeKeyword)}))
JSImportCodeGenerator.cs (1)
87setupStatements.Add(SyntaxFactoryExtensions.Declare(PredefinedType(Token(SyntaxKind.BoolKeyword)), InvokeSucceededIdentifier, initializeToDefault: true));
JSImportGenerator.cs (1)
123.AddModifiers(Token(SyntaxKind.StaticKeyword));
JSManagedTypeInfo.cs (12)
22Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)) 27Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.BoolKeyword)) 32Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ByteKeyword)) 37Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.CharKeyword)) 42Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ShortKeyword)) 47Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword)) 52Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.LongKeyword)) 57Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.FloatKeyword)) 62Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.DoubleKeyword)) 88Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ObjectKeyword)) 93Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.StringKeyword)) 119return new JSTaskTypeInfo(new JSSimpleTypeInfo(KnownManagedType.Void, SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword))));
Marshaling\FuncJSGenerator.cs (7)
76List<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))) 144Argument(IdentifierName("__delegate_arg"+(i+1))).WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)),
Marshaling\PrimitiveJSGenerator.cs (1)
64return argument.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword));
Marshaling\TaskJSGenerator.cs (8)
87.WithArgumentList(ArgumentList(SingletonSeparatedList(source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))))); 102source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)), 104.WithModifiers(TokenList(Token(SyntaxKind.StaticKeyword))) 107.WithModifiers(TokenList(Token(SyntaxKind.RefKeyword))) 110.WithModifiers(TokenList(Token(SyntaxKind.OutKeyword))) 116Argument(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)) 444Token(SyntaxKind.StaticKeyword), 445Token(SyntaxKind.ExternKeyword), 446Token(SyntaxKind.UnsafeKeyword)) 447.WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) 475localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.ReturnKeyword))));
Microsoft.Interop.LibraryImportGenerator.Downlevel (6)
DownlevelLibraryImportGenerator.cs (6)
299.WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) 320Token(SyntaxKind.StaticKeyword), 321Token(SyntaxKind.ExternKeyword), 322Token(SyntaxKind.UnsafeKeyword)) 323.WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) 350localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.ReturnKeyword))));
Microsoft.Interop.SourceGeneration (35)
ManagedToNativeStubGenerator.cs (2)
121PredefinedType(Token(SyntaxKind.IntKeyword)), 128setupStatements.Add(Declare(PredefinedType(Token(SyntaxKind.BoolKeyword)), InvokeSucceededIdentifier, initializeToDefault: true));
Marshalling\CharMarshaller.cs (2)
58PointerType(PredefinedType(Token(SyntaxKind.CharKeyword))), 113Token(SyntaxKind.CharKeyword)),
Marshalling\ElementsMarshalling.cs (2)
85PredefinedType(Token(SyntaxKind.IntKeyword)), 612PredefinedType(Token(SyntaxKind.IntKeyword)),
Marshalling\MarshallerHelpers.cs (14)
271.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))); 278LiteralExpression(SyntaxKind.DefaultLiteralExpression, Token(SyntaxKind.DefaultKeyword))); 287LiteralExpression(SyntaxKind.DefaultLiteralExpression, Token(SyntaxKind.DefaultKeyword))); 419tokens = tokens.Add(Token(SyntaxKind.ScopedKeyword)); 427tokens = tokens.Add(Token(SyntaxKind.InKeyword)); 430tokens = tokens.Add(Token(SyntaxKind.RefKeyword)); 434tokens = tokens.Add(Token(SyntaxKind.OutKeyword)); 437tokens = tokens.Add(Token(SyntaxKind.RefKeyword)); 438tokens = tokens.Add(Token(SyntaxKind.ReadOnlyKeyword)); 447tokens = tokens.Add(Token(SyntaxKind.ThisKeyword)); 458RefKind.In => Token(SyntaxKind.InKeyword), 459RefKind.Ref => Token(SyntaxKind.RefKeyword), 460RefKind.Out => Token(SyntaxKind.OutKeyword), 461RefKind.RefReadOnlyParameter => Token(SyntaxKind.InKeyword),
Marshalling\StatefulMarshallingStrategy.cs (2)
142declaration = declaration.AddModifiers(Token(SyntaxKind.ScopedKeyword)); 402PredefinedType(Token(SyntaxKind.IntKeyword)),
Marshalling\StatelessMarshallingStrategy.cs (3)
208.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)) 410.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)) 424PredefinedType(Token(SyntaxKind.IntKeyword)),
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
81PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))),
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
62PredefinedType(Token(SyntaxKind.BoolKeyword)),
SyntaxExtensions.cs (1)
117return modifiers.Insert(idxInsert, SyntaxFactory.Token(modifierToAdd));
TypeNames.cs (3)
49public static TypeSyntax Void { get; } = PredefinedType(Token(SyntaxKind.VoidKeyword)); 51public static TypeSyntax VoidStar { get; } = PointerType(PredefinedType(Token(SyntaxKind.VoidKeyword))); 53public 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); 122Token(SyntaxKind.IntKeyword)))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\ModifierFlagsExtensions.cs (1)
116newModifierList.Add(SyntaxFactory.Token(modifierDefinition.Value));
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
133return typeDeclaration.AddModifiers(SyntaxFactory.Token(SyntaxKind.PartialKeyword));