466 references to VoidKeyword
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_AnonymousTypes.cs (1)
224expressionType = CreateErrorType(SyntaxFacts.GetText(SyntaxKind.VoidKeyword));
Parser\LanguageParser.cs (6)
2023case SyntaxKind.VoidKeyword: 2246this.AddError(SyntaxFactory.MissingToken(SyntaxKind.VoidKeyword), ErrorCode.ERR_MemberNeedsType)); 6814if (this.CurrentToken.Kind == SyntaxKind.VoidKeyword && this.PeekToken(1).Kind != SyntaxKind.AsteriskToken) 7142if (token.Kind == SyntaxKind.VoidKeyword && this.CurrentToken.Kind != SyntaxKind.AsteriskToken) 9628if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.Kind: SyntaxKind.VoidKeyword }) 10762if (this.CurrentToken.Kind != SyntaxKind.DotToken || tk == SyntaxKind.VoidKeyword)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
370AddKeyword(SyntaxKind.VoidKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
258AddKeyword(SyntaxKind.VoidKeyword);
Syntax\SyntaxKindExtensions.cs (1)
15case SyntaxKind.VoidKeyword:
Syntax\SyntaxKindFacts.cs (3)
306case SyntaxKind.VoidKeyword: 853return SyntaxKind.VoidKeyword; 1493case SyntaxKind.VoidKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
39typeofExpression is not { Type: PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.VoidKeyword } };
CSharpSyntaxFacts.cs (2)
346SyntaxKind.VoidKeyword => PredefinedType.Void, 517case SyntaxKind.VoidKeyword:
TypeSyntaxExtensions.cs (1)
15predefinedType.Keyword.IsKind(SyntaxKind.VoidKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
CSharpFixReturnTypeCodeFixProvider.cs (1)
63=> typeSyntax is PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.VoidKeyword };
CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
66newReturnType = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)).WithTriviaFrom(returnTypeSyntax);
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
223return SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
107case SyntaxKind.VoidKeyword:
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
99if (targetToken.Kind() is SyntaxKind.VoidKeyword or SyntaxKind.PartialKeyword ||
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
38: base(SyntaxKind.VoidKeyword)
CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
39typeofExpression is not { Type: PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.VoidKeyword } };
CSharpFixReturnTypeCodeFixProvider.cs (1)
63=> typeSyntax is PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.VoidKeyword };
CSharpMakeMethodSynchronousCodeFixProvider.cs (1)
66newReturnType = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)).WithTriviaFrom(returnTypeSyntax);
Diagnostics\Analyzers\CSharpPreferFrameworkTypeDiagnosticAnalyzer.cs (1)
29=> node.Keyword.Kind() != SyntaxKind.VoidKeyword;
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
135!(returnType is PredefinedTypeSyntax predefinedType && predefinedType.Keyword.IsKindOrHasMatchingText(SyntaxKind.VoidKeyword)))
ExtractMethod\CSharpSelectionValidator.cs (1)
490p.Keyword.Kind() == SyntaxKind.VoidKeyword;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UnsafeTests.cs (1)
5543foreach (var declarationSyntax in tree.GetCompilationUnitRoot().DescendantTokens().OfType<VariableDeclarationSyntax>().Where(syntax => syntax.GetFirstToken().IsKind(SyntaxKind.VoidKeyword)))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Source\MethodTests.cs (4)
236var node = tree.GetRoot().DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.VoidKeyword).First(); 264var node = tree.GetRoot().DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.VoidKeyword).Last(); 289var node = tree.DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.VoidKeyword).Single(); 310var node = tree.DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.VoidKeyword).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (420)
IncrementalParsing\IncrementalParsingTests.cs (1)
108SyntaxKind.VoidKeyword);
Parsing\AnonymousFunctionParsingTests.cs (28)
58N(SyntaxKind.VoidKeyword); 159N(SyntaxKind.VoidKeyword); 256N(SyntaxKind.VoidKeyword); 357N(SyntaxKind.VoidKeyword); 458N(SyntaxKind.VoidKeyword); 562N(SyntaxKind.VoidKeyword); 693N(SyntaxKind.VoidKeyword); 811N(SyntaxKind.VoidKeyword); 1942N(SyntaxKind.VoidKeyword); 2083N(SyntaxKind.VoidKeyword); 2161N(SyntaxKind.VoidKeyword); 2247N(SyntaxKind.VoidKeyword); 2342N(SyntaxKind.VoidKeyword); 2514N(SyntaxKind.VoidKeyword); 2662N(SyntaxKind.VoidKeyword); 2810N(SyntaxKind.VoidKeyword); 2936N(SyntaxKind.VoidKeyword); 3072N(SyntaxKind.VoidKeyword); 3195N(SyntaxKind.VoidKeyword); 3335N(SyntaxKind.VoidKeyword); 3488N(SyntaxKind.VoidKeyword); 3641N(SyntaxKind.VoidKeyword); 3790N(SyntaxKind.VoidKeyword); 3935N(SyntaxKind.VoidKeyword); 4067N(SyntaxKind.VoidKeyword); 4216N(SyntaxKind.VoidKeyword); 4378N(SyntaxKind.VoidKeyword); 4540N(SyntaxKind.VoidKeyword);
Parsing\AsyncParsingTests.cs (4)
58N(SyntaxKind.VoidKeyword); 98N(SyntaxKind.VoidKeyword); 305N(SyntaxKind.VoidKeyword); 1213N(SyntaxKind.VoidKeyword);
Parsing\AsyncStreamsParsingTests.cs (6)
58N(SyntaxKind.VoidKeyword); 136N(SyntaxKind.VoidKeyword); 217N(SyntaxKind.VoidKeyword); 299N(SyntaxKind.VoidKeyword); 398N(SyntaxKind.VoidKeyword); 492N(SyntaxKind.VoidKeyword);
Parsing\AwaitParsingTests.cs (5)
51N(SyntaxKind.VoidKeyword); 115N(SyntaxKind.VoidKeyword); 180N(SyntaxKind.VoidKeyword); 244N(SyntaxKind.VoidKeyword); 353N(SyntaxKind.VoidKeyword);
Parsing\CrefParsingTests.cs (1)
1432N(SyntaxKind.VoidKeyword);
Parsing\DeclarationParsingTests.cs (27)
2077TestDelegateWithBuiltInReturnType(SyntaxKind.VoidKeyword); 3216TestClassMethodWithBuiltInReturnType(SyntaxKind.VoidKeyword); 6563N(SyntaxKind.VoidKeyword); 7260N(SyntaxKind.VoidKeyword); 7296N(SyntaxKind.VoidKeyword); 7334N(SyntaxKind.VoidKeyword); 7370N(SyntaxKind.VoidKeyword); 7413N(SyntaxKind.VoidKeyword); 7456N(SyntaxKind.VoidKeyword); 7488N(SyntaxKind.VoidKeyword); 7520N(SyntaxKind.VoidKeyword); 7552N(SyntaxKind.VoidKeyword); 7596N(SyntaxKind.VoidKeyword); 7666N(SyntaxKind.VoidKeyword); 7719N(SyntaxKind.VoidKeyword); 7751N(SyntaxKind.VoidKeyword); 7794N(SyntaxKind.VoidKeyword); 7837N(SyntaxKind.VoidKeyword); 7880N(SyntaxKind.VoidKeyword); 7923N(SyntaxKind.VoidKeyword); 7967N(SyntaxKind.VoidKeyword); 8010N(SyntaxKind.VoidKeyword); 8054N(SyntaxKind.VoidKeyword); 8098N(SyntaxKind.VoidKeyword); 8145N(SyntaxKind.VoidKeyword); 8209N(SyntaxKind.VoidKeyword); 8381N(SyntaxKind.VoidKeyword);
Parsing\DeclarationScopeParsingTests.cs (20)
30N(SyntaxKind.VoidKeyword); 77N(SyntaxKind.VoidKeyword); 167N(SyntaxKind.VoidKeyword); 508N(SyntaxKind.VoidKeyword); 557N(SyntaxKind.VoidKeyword); 611N(SyntaxKind.VoidKeyword); 689N(SyntaxKind.VoidKeyword); 759N(SyntaxKind.VoidKeyword); 816N(SyntaxKind.VoidKeyword); 872N(SyntaxKind.VoidKeyword); 1324N(SyntaxKind.VoidKeyword); 1377N(SyntaxKind.VoidKeyword); 1446N(SyntaxKind.VoidKeyword); 1576N(SyntaxKind.VoidKeyword); 1647N(SyntaxKind.VoidKeyword); 1776N(SyntaxKind.VoidKeyword); 3064N(SyntaxKind.VoidKeyword); 3211N(SyntaxKind.VoidKeyword); 9949N(SyntaxKind.VoidKeyword); 11958N(SyntaxKind.VoidKeyword);
Parsing\DeconstructionTests.cs (28)
60N(SyntaxKind.VoidKeyword); 134N(SyntaxKind.VoidKeyword); 212N(SyntaxKind.VoidKeyword); 288N(SyntaxKind.VoidKeyword); 376N(SyntaxKind.VoidKeyword); 460N(SyntaxKind.VoidKeyword); 535N(SyntaxKind.VoidKeyword); 611N(SyntaxKind.VoidKeyword); 703N(SyntaxKind.VoidKeyword); 793N(SyntaxKind.VoidKeyword); 906N(SyntaxKind.VoidKeyword); 983N(SyntaxKind.VoidKeyword); 1070N(SyntaxKind.VoidKeyword); 1144N(SyntaxKind.VoidKeyword); 1243N(SyntaxKind.VoidKeyword); 1341N(SyntaxKind.VoidKeyword); 1426N(SyntaxKind.VoidKeyword); 1519N(SyntaxKind.VoidKeyword); 1774N(SyntaxKind.VoidKeyword); 2416N(SyntaxKind.VoidKeyword); 2481N(SyntaxKind.VoidKeyword); 2559N(SyntaxKind.VoidKeyword); 2622N(SyntaxKind.VoidKeyword); 2685N(SyntaxKind.VoidKeyword); 2747N(SyntaxKind.VoidKeyword); 2806N(SyntaxKind.VoidKeyword); 2874N(SyntaxKind.VoidKeyword); 3397N(SyntaxKind.VoidKeyword);
Parsing\ExpressionParsingTests.cs (19)
3174N(SyntaxKind.VoidKeyword); 3274N(SyntaxKind.VoidKeyword); 3364N(SyntaxKind.VoidKeyword); 3438N(SyntaxKind.VoidKeyword); 3520N(SyntaxKind.VoidKeyword); 3599N(SyntaxKind.VoidKeyword); 3672N(SyntaxKind.VoidKeyword); 3757N(SyntaxKind.VoidKeyword); 3848N(SyntaxKind.VoidKeyword); 3938N(SyntaxKind.VoidKeyword); 4029N(SyntaxKind.VoidKeyword); 4116N(SyntaxKind.VoidKeyword); 4210N(SyntaxKind.VoidKeyword); 4307N(SyntaxKind.VoidKeyword); 4412N(SyntaxKind.VoidKeyword); 4513N(SyntaxKind.VoidKeyword); 4604N(SyntaxKind.VoidKeyword); 4697N(SyntaxKind.VoidKeyword); 6333N(SyntaxKind.VoidKeyword);
Parsing\FileModifierParsingTests.cs (10)
602N(SyntaxKind.VoidKeyword); 773N(SyntaxKind.VoidKeyword); 821N(SyntaxKind.VoidKeyword); 1028N(SyntaxKind.VoidKeyword); 1210N(SyntaxKind.VoidKeyword); 3040N(SyntaxKind.VoidKeyword); 3101N(SyntaxKind.VoidKeyword); 3309N(SyntaxKind.VoidKeyword); 3509N(SyntaxKind.VoidKeyword); 3573N(SyntaxKind.VoidKeyword);
Parsing\FunctionPointerTests.cs (48)
177N(SyntaxKind.VoidKeyword); 218N(SyntaxKind.VoidKeyword); 270N(SyntaxKind.VoidKeyword); 322N(SyntaxKind.VoidKeyword); 364N(SyntaxKind.VoidKeyword); 416N(SyntaxKind.VoidKeyword); 489N(SyntaxKind.VoidKeyword); 614N(SyntaxKind.VoidKeyword); 622N(SyntaxKind.VoidKeyword); 630N(SyntaxKind.VoidKeyword); 701N(SyntaxKind.VoidKeyword); 781N(SyntaxKind.VoidKeyword); 849N(SyntaxKind.VoidKeyword); 1316N(SyntaxKind.VoidKeyword); 1686N(SyntaxKind.VoidKeyword); 1771N(SyntaxKind.VoidKeyword); 1926N(SyntaxKind.VoidKeyword); 1967N(SyntaxKind.VoidKeyword); 2057N(SyntaxKind.VoidKeyword); 2246N(SyntaxKind.VoidKeyword); 2319N(SyntaxKind.VoidKeyword); 2363N(SyntaxKind.VoidKeyword); 2389N(SyntaxKind.VoidKeyword); 2415N(SyntaxKind.VoidKeyword); 2448N(SyntaxKind.VoidKeyword); 2492N(SyntaxKind.VoidKeyword); 2526N(SyntaxKind.VoidKeyword); 2580N(SyntaxKind.VoidKeyword); 2614N(SyntaxKind.VoidKeyword); 2695N(SyntaxKind.VoidKeyword); 2728N(SyntaxKind.VoidKeyword); 2799N(SyntaxKind.VoidKeyword); 2856N(SyntaxKind.VoidKeyword); 2909N(SyntaxKind.VoidKeyword); 2961N(SyntaxKind.VoidKeyword); 3004N(SyntaxKind.VoidKeyword); 3054N(SyntaxKind.VoidKeyword); 3106N(SyntaxKind.VoidKeyword); 3366N(SyntaxKind.VoidKeyword); 3439N(SyntaxKind.VoidKeyword); 3519N(SyntaxKind.VoidKeyword); 3591N(SyntaxKind.VoidKeyword); 3789N(SyntaxKind.VoidKeyword); 3849N(SyntaxKind.VoidKeyword); 3891N(SyntaxKind.VoidKeyword); 3979N(SyntaxKind.VoidKeyword); 4097N(SyntaxKind.VoidKeyword); 4155N(SyntaxKind.VoidKeyword);
Parsing\LambdaParameterParsingTests.cs (5)
67N(SyntaxKind.VoidKeyword); 178N(SyntaxKind.VoidKeyword); 297N(SyntaxKind.VoidKeyword); 423N(SyntaxKind.VoidKeyword); 552N(SyntaxKind.VoidKeyword);
Parsing\LambdaReturnTypeParsingTests.cs (11)
391N(SyntaxKind.VoidKeyword); 528N(SyntaxKind.VoidKeyword); 570N(SyntaxKind.VoidKeyword); 632N(SyntaxKind.VoidKeyword); 644N(SyntaxKind.VoidKeyword); 1477N(SyntaxKind.VoidKeyword); 1524N(SyntaxKind.VoidKeyword); 2363N(SyntaxKind.VoidKeyword); 5422N(SyntaxKind.VoidKeyword); 5575N(SyntaxKind.VoidKeyword); 5691N(SyntaxKind.VoidKeyword);
Parsing\LocalFunctionParsingTests.cs (43)
119N(SyntaxKind.VoidKeyword); 157N(SyntaxKind.VoidKeyword); 198N(SyntaxKind.VoidKeyword); 243N(SyntaxKind.VoidKeyword); 281N(SyntaxKind.VoidKeyword); 313N(SyntaxKind.VoidKeyword); 385N(SyntaxKind.VoidKeyword); 412N(SyntaxKind.VoidKeyword); 447N(SyntaxKind.VoidKeyword); 523N(SyntaxKind.VoidKeyword); 579N(SyntaxKind.VoidKeyword); 648N(SyntaxKind.VoidKeyword); 663N(SyntaxKind.VoidKeyword); 739N(SyntaxKind.VoidKeyword); 755N(SyntaxKind.VoidKeyword); 825N(SyntaxKind.VoidKeyword); 841N(SyntaxKind.VoidKeyword); 929N(SyntaxKind.VoidKeyword); 1009N(SyntaxKind.VoidKeyword); 1103N(SyntaxKind.VoidKeyword); 1416N(SyntaxKind.VoidKeyword); 1465N(SyntaxKind.VoidKeyword); 1514N(SyntaxKind.VoidKeyword); 1566N(SyntaxKind.VoidKeyword); 1616N(SyntaxKind.VoidKeyword); 1755N(SyntaxKind.VoidKeyword); 1770N(SyntaxKind.VoidKeyword); 1870N(SyntaxKind.VoidKeyword); 1886N(SyntaxKind.VoidKeyword); 1904N(SyntaxKind.VoidKeyword); 2055N(SyntaxKind.VoidKeyword); 2071N(SyntaxKind.VoidKeyword); 2090N(SyntaxKind.VoidKeyword); 2151N(SyntaxKind.VoidKeyword); 2167N(SyntaxKind.VoidKeyword); 2234N(SyntaxKind.VoidKeyword); 2251N(SyntaxKind.VoidKeyword); 2324N(SyntaxKind.VoidKeyword); 2342N(SyntaxKind.VoidKeyword); 2421N(SyntaxKind.VoidKeyword); 2440N(SyntaxKind.VoidKeyword); 2591N(SyntaxKind.VoidKeyword); 2608N(SyntaxKind.VoidKeyword);
Parsing\MemberDeclarationParsingTests.cs (7)
178N(SyntaxKind.VoidKeyword); 9196N(SyntaxKind.VoidKeyword); 9318N(SyntaxKind.VoidKeyword); 9388N(SyntaxKind.VoidKeyword); 9403N(SyntaxKind.VoidKeyword); 10202N(SyntaxKind.VoidKeyword); 10250N(SyntaxKind.VoidKeyword);
Parsing\NameParsingTests.cs (5)
848N(SyntaxKind.VoidKeyword); 946N(SyntaxKind.VoidKeyword); 1068N(SyntaxKind.VoidKeyword); 1193N(SyntaxKind.VoidKeyword); 1343N(SyntaxKind.VoidKeyword);
Parsing\ParserRegressionTests.cs (6)
276N(SyntaxKind.VoidKeyword); 369N(SyntaxKind.VoidKeyword); 503N(SyntaxKind.VoidKeyword); 593N(SyntaxKind.VoidKeyword); 683N(SyntaxKind.VoidKeyword); 771N(SyntaxKind.VoidKeyword);
Parsing\RecordParsing.cs (1)
710N(SyntaxKind.VoidKeyword);
Parsing\RefFieldParsingTests.cs (1)
664N(SyntaxKind.VoidKeyword);
Parsing\ScriptParsingTests.cs (11)
143N(SyntaxKind.VoidKeyword); 489N(SyntaxKind.VoidKeyword); 679NewModifier_PartialMethod_ReturnsPredefined("void", SyntaxKind.VoidKeyword); 1265N(SyntaxKind.VoidKeyword); 1503N(SyntaxKind.VoidKeyword); 1924N(SyntaxKind.VoidKeyword); 2340N(SyntaxKind.VoidKeyword); 9270N(SyntaxKind.VoidKeyword); 9327N(SyntaxKind.VoidKeyword); 9384N(SyntaxKind.VoidKeyword); 9442N(SyntaxKind.VoidKeyword);
Parsing\StatementAttributeParsingTests.cs (85)
41N(SyntaxKind.VoidKeyword); 107N(SyntaxKind.VoidKeyword); 174N(SyntaxKind.VoidKeyword); 262N(SyntaxKind.VoidKeyword); 357N(SyntaxKind.VoidKeyword); 442N(SyntaxKind.VoidKeyword); 523N(SyntaxKind.VoidKeyword); 589N(SyntaxKind.VoidKeyword); 658N(SyntaxKind.VoidKeyword); 732N(SyntaxKind.VoidKeyword); 809N(SyntaxKind.VoidKeyword); 884N(SyntaxKind.VoidKeyword); 959N(SyntaxKind.VoidKeyword); 1037N(SyntaxKind.VoidKeyword); 1111N(SyntaxKind.VoidKeyword); 1213N(SyntaxKind.VoidKeyword); 1347N(SyntaxKind.VoidKeyword); 1423N(SyntaxKind.VoidKeyword); 1510N(SyntaxKind.VoidKeyword); 1594N(SyntaxKind.VoidKeyword); 1712N(SyntaxKind.VoidKeyword); 1782N(SyntaxKind.VoidKeyword); 1852N(SyntaxKind.VoidKeyword); 1922N(SyntaxKind.VoidKeyword); 2007N(SyntaxKind.VoidKeyword); 2104N(SyntaxKind.VoidKeyword); 2180N(SyntaxKind.VoidKeyword); 2256N(SyntaxKind.VoidKeyword); 2336N(SyntaxKind.VoidKeyword); 2433N(SyntaxKind.VoidKeyword); 2561N(SyntaxKind.VoidKeyword); 2665N(SyntaxKind.VoidKeyword); 2744N(SyntaxKind.VoidKeyword); 2829N(SyntaxKind.VoidKeyword); 2932N(SyntaxKind.VoidKeyword); 3017N(SyntaxKind.VoidKeyword); 3120N(SyntaxKind.VoidKeyword); 3199N(SyntaxKind.VoidKeyword); 3278N(SyntaxKind.VoidKeyword); 3361N(SyntaxKind.VoidKeyword); 3441N(SyntaxKind.VoidKeyword); 3523N(SyntaxKind.VoidKeyword); 3605N(SyntaxKind.VoidKeyword); 3695N(SyntaxKind.VoidKeyword); 3776N(SyntaxKind.VoidKeyword); 3850N(SyntaxKind.VoidKeyword); 3943N(SyntaxKind.VoidKeyword); 4026N(SyntaxKind.VoidKeyword); 4111N(SyntaxKind.VoidKeyword); 4196N(SyntaxKind.VoidKeyword); 4279N(SyntaxKind.VoidKeyword); 4355N(SyntaxKind.VoidKeyword); 4443N(SyntaxKind.VoidKeyword); 4532N(SyntaxKind.VoidKeyword); 4629N(SyntaxKind.VoidKeyword); 4707N(SyntaxKind.VoidKeyword); 4782N(SyntaxKind.VoidKeyword); 4877N(SyntaxKind.VoidKeyword); 4976N(SyntaxKind.VoidKeyword); 5053N(SyntaxKind.VoidKeyword); 5125N(SyntaxKind.VoidKeyword); 5213N(SyntaxKind.VoidKeyword); 5291N(SyntaxKind.VoidKeyword); 5377N(SyntaxKind.VoidKeyword); 5454N(SyntaxKind.VoidKeyword); 5535N(SyntaxKind.VoidKeyword); 5634N(SyntaxKind.VoidKeyword); 5734N(SyntaxKind.VoidKeyword); 5840N(SyntaxKind.VoidKeyword); 5939N(SyntaxKind.VoidKeyword); 6038N(SyntaxKind.VoidKeyword); 6130N(SyntaxKind.VoidKeyword); 6208N(SyntaxKind.VoidKeyword); 6300N(SyntaxKind.VoidKeyword); 6378N(SyntaxKind.VoidKeyword); 6457N(SyntaxKind.VoidKeyword); 6544N(SyntaxKind.VoidKeyword); 6649N(SyntaxKind.VoidKeyword); 6788N(SyntaxKind.VoidKeyword); 6882N(SyntaxKind.VoidKeyword); 6968N(SyntaxKind.VoidKeyword); 7051N(SyntaxKind.VoidKeyword); 7142N(SyntaxKind.VoidKeyword); 7243N(SyntaxKind.VoidKeyword); 7352N(SyntaxKind.VoidKeyword);
Parsing\StatementParsingTests.cs (4)
2706N(SyntaxKind.VoidKeyword); 4285N(SyntaxKind.VoidKeyword); 4422N(SyntaxKind.VoidKeyword); 4586N(SyntaxKind.VoidKeyword);
Parsing\TopLevelStatementsParsingTests.cs (2)
1268N(SyntaxKind.VoidKeyword); 2696N(SyntaxKind.VoidKeyword);
Parsing\TypeArgumentListParsingTests.cs (21)
50N(SyntaxKind.VoidKeyword); 166N(SyntaxKind.VoidKeyword); 294N(SyntaxKind.VoidKeyword); 427N(SyntaxKind.VoidKeyword); 575N(SyntaxKind.VoidKeyword); 722N(SyntaxKind.VoidKeyword); 1035N(SyntaxKind.VoidKeyword); 1174N(SyntaxKind.VoidKeyword); 1316N(SyntaxKind.VoidKeyword); 1449N(SyntaxKind.VoidKeyword); 1569N(SyntaxKind.VoidKeyword); 1673N(SyntaxKind.VoidKeyword); 1774N(SyntaxKind.VoidKeyword); 1896N(SyntaxKind.VoidKeyword); 2029N(SyntaxKind.VoidKeyword); 2163N(SyntaxKind.VoidKeyword); 2294N(SyntaxKind.VoidKeyword); 2395N(SyntaxKind.VoidKeyword); 2504N(SyntaxKind.VoidKeyword); 2606N(SyntaxKind.VoidKeyword); 2724N(SyntaxKind.VoidKeyword);
Parsing\UsingDirectiveParsingTests.cs (19)
140N(SyntaxKind.VoidKeyword); 444N(SyntaxKind.VoidKeyword); 762N(SyntaxKind.VoidKeyword); 822N(SyntaxKind.VoidKeyword); 2169N(SyntaxKind.VoidKeyword); 2184N(SyntaxKind.VoidKeyword); 2243N(SyntaxKind.VoidKeyword); 2259N(SyntaxKind.VoidKeyword); 2320N(SyntaxKind.VoidKeyword); 2336N(SyntaxKind.VoidKeyword); 2399N(SyntaxKind.VoidKeyword); 2412N(SyntaxKind.VoidKeyword); 2475N(SyntaxKind.VoidKeyword); 2548N(SyntaxKind.VoidKeyword); 2666N(SyntaxKind.VoidKeyword); 2796N(SyntaxKind.VoidKeyword); 2920N(SyntaxKind.VoidKeyword); 3038N(SyntaxKind.VoidKeyword); 3136N(SyntaxKind.VoidKeyword);
Parsing\ValueTupleTests.cs (2)
454N(SyntaxKind.VoidKeyword); 526N(SyntaxKind.VoidKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
246returnType: returnType != null ? (TypeSyntax)returnType : SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)), 267var returnTypeNode = returnType != null ? (TypeSyntax)returnType : SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)); 905returnType != null ? (TypeSyntax)returnType : SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)), 1984=> type is PredefinedTypeSyntax pd && pd.Keyword.IsKind(SyntaxKind.VoidKeyword) ? null : type;
CSharpSyntaxFacts.cs (2)
346SyntaxKind.VoidKeyword => PredefinedType.Void, 517case SyntaxKind.VoidKeyword:
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
223return SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs\TypeSyntaxExtensions.cs (1)
15predefinedType.Keyword.IsKind(SyntaxKind.VoidKeyword);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
107case SyntaxKind.VoidKeyword:
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
58SpecialType.System_Void => SyntaxKind.VoidKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.cs (2)
3201var local = SyntaxFactory.LocalFunctionStatement(SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)), "p"); 3237var local = SyntaxFactory.LocalFunctionStatement(SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)), "p");