635 references to VoidKeyword
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_AnonymousTypes.cs (1)
224
expressionType = CreateErrorType(SyntaxFacts.GetText(SyntaxKind.
VoidKeyword
));
Parser\LanguageParser.cs (6)
2338
case SyntaxKind.
VoidKeyword
:
2561
this.AddError(SyntaxFactory.MissingToken(SyntaxKind.
VoidKeyword
), ErrorCode.ERR_MemberNeedsType));
7169
if (this.CurrentToken.Kind == SyntaxKind.
VoidKeyword
&& this.PeekToken(1).Kind != SyntaxKind.AsteriskToken)
7605
if (token.Kind == SyntaxKind.
VoidKeyword
&& this.CurrentToken.Kind != SyntaxKind.AsteriskToken)
10241
if (allowLocalFunctions && localFunction == null && type is PredefinedTypeSyntax { Keyword.Kind: SyntaxKind.
VoidKeyword
})
11530
if (this.CurrentToken.Kind != SyntaxKind.DotToken || tk == SyntaxKind.
VoidKeyword
)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
360
AddKeyword(SyntaxKind.
VoidKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
263
AddKeyword(SyntaxKind.
VoidKeyword
);
Syntax\SyntaxKindExtensions.cs (1)
15
case SyntaxKind.
VoidKeyword
:
Syntax\SyntaxKindFacts.cs (3)
334
case SyntaxKind.
VoidKeyword
:
881
return SyntaxKind.
VoidKeyword
;
1529
case SyntaxKind.
VoidKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
39
typeofExpression is not { Type: PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.
VoidKeyword
} };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
98
public static readonly SyntaxToken VoidKeyword = Token(SyntaxKind.
VoidKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
324
case SyntaxKind.
VoidKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
15
predefinedType.Keyword.IsKind(SyntaxKind.
VoidKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
342
SyntaxKind.
VoidKeyword
=> PredefinedType.Void,
513
case SyntaxKind.
VoidKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
58
=> typeSyntax is PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.
VoidKeyword
};
Microsoft.CodeAnalysis.CSharp.Features (6)
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
98
if (targetToken.Kind() is SyntaxKind.
VoidKeyword
or SyntaxKind.PartialKeyword ||
Diagnostics\Analyzers\CSharpPreferFrameworkTypeDiagnosticAnalyzer.cs (1)
29
=> node.Keyword.Kind() != SyntaxKind.
VoidKeyword
;
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
133
!(returnType is PredefinedTypeSyntax predefinedType && predefinedType.Keyword.IsKindOrHasMatchingText(SyntaxKind.
VoidKeyword
)))
ExtractMethod\CSharpSelectionValidator.cs (1)
514
p.Keyword.Kind() == SyntaxKind.
VoidKeyword
;
src\Analyzers\CSharp\Analyzers\ConvertTypeofToNameof\CSharpConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
39
typeofExpression is not { Type: PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.
VoidKeyword
} };
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
58
=> typeSyntax is PredefinedTypeSyntax { Keyword.RawKind: (int)SyntaxKind.
VoidKeyword
};
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UnsafeTests.cs (1)
8381
foreach (var declarationSyntax in tree.GetCompilationUnitRoot().DescendantNodes().OfType<VariableDeclarationSyntax>().Where(syntax => syntax.GetFirstToken().IsKind(SyntaxKind.
VoidKeyword
)))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Source\MethodTests.cs (4)
236
var node = tree.GetRoot().DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.
VoidKeyword
).First();
264
var node = tree.GetRoot().DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.
VoidKeyword
).Last();
289
var node = tree.DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.
VoidKeyword
).Single();
310
var node = tree.DescendantNodes().OfType<PredefinedTypeSyntax>().Where(n => n.Keyword.Kind() == SyntaxKind.
VoidKeyword
).Single();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (583)
IncrementalParsing\IncrementalParsingTests.cs (2)
110
SyntaxKind.
VoidKeyword
);
685
N(SyntaxKind.
VoidKeyword
);
Parsing\AnonymousFunctionParsingTests.cs (28)
58
N(SyntaxKind.
VoidKeyword
);
159
N(SyntaxKind.
VoidKeyword
);
256
N(SyntaxKind.
VoidKeyword
);
357
N(SyntaxKind.
VoidKeyword
);
458
N(SyntaxKind.
VoidKeyword
);
562
N(SyntaxKind.
VoidKeyword
);
693
N(SyntaxKind.
VoidKeyword
);
811
N(SyntaxKind.
VoidKeyword
);
1942
N(SyntaxKind.
VoidKeyword
);
2071
N(SyntaxKind.
VoidKeyword
);
2149
N(SyntaxKind.
VoidKeyword
);
2235
N(SyntaxKind.
VoidKeyword
);
2330
N(SyntaxKind.
VoidKeyword
);
2502
N(SyntaxKind.
VoidKeyword
);
2650
N(SyntaxKind.
VoidKeyword
);
2798
N(SyntaxKind.
VoidKeyword
);
2924
N(SyntaxKind.
VoidKeyword
);
3060
N(SyntaxKind.
VoidKeyword
);
3183
N(SyntaxKind.
VoidKeyword
);
3323
N(SyntaxKind.
VoidKeyword
);
3476
N(SyntaxKind.
VoidKeyword
);
3629
N(SyntaxKind.
VoidKeyword
);
3778
N(SyntaxKind.
VoidKeyword
);
3923
N(SyntaxKind.
VoidKeyword
);
4055
N(SyntaxKind.
VoidKeyword
);
4204
N(SyntaxKind.
VoidKeyword
);
4366
N(SyntaxKind.
VoidKeyword
);
4528
N(SyntaxKind.
VoidKeyword
);
Parsing\AsyncParsingTests.cs (4)
58
N(SyntaxKind.
VoidKeyword
);
98
N(SyntaxKind.
VoidKeyword
);
305
N(SyntaxKind.
VoidKeyword
);
1213
N(SyntaxKind.
VoidKeyword
);
Parsing\AsyncStreamsParsingTests.cs (6)
58
N(SyntaxKind.
VoidKeyword
);
136
N(SyntaxKind.
VoidKeyword
);
217
N(SyntaxKind.
VoidKeyword
);
299
N(SyntaxKind.
VoidKeyword
);
398
N(SyntaxKind.
VoidKeyword
);
492
N(SyntaxKind.
VoidKeyword
);
Parsing\AwaitParsingTests.cs (9)
52
N(SyntaxKind.
VoidKeyword
);
116
N(SyntaxKind.
VoidKeyword
);
181
N(SyntaxKind.
VoidKeyword
);
245
N(SyntaxKind.
VoidKeyword
);
354
N(SyntaxKind.
VoidKeyword
);
1356
N(SyntaxKind.
VoidKeyword
);
1436
N(SyntaxKind.
VoidKeyword
);
1515
N(SyntaxKind.
VoidKeyword
);
1606
N(SyntaxKind.
VoidKeyword
);
Parsing\CollectionExpressionParsingTests.cs (58)
352
N(SyntaxKind.
VoidKeyword
);
479
N(SyntaxKind.
VoidKeyword
);
604
N(SyntaxKind.
VoidKeyword
);
1400
N(SyntaxKind.
VoidKeyword
);
6261
N(SyntaxKind.
VoidKeyword
);
6325
N(SyntaxKind.
VoidKeyword
);
7980
N(SyntaxKind.
VoidKeyword
);
8019
N(SyntaxKind.
VoidKeyword
);
8125
N(SyntaxKind.
VoidKeyword
);
8164
N(SyntaxKind.
VoidKeyword
);
8278
N(SyntaxKind.
VoidKeyword
);
8317
N(SyntaxKind.
VoidKeyword
);
8434
N(SyntaxKind.
VoidKeyword
);
8473
N(SyntaxKind.
VoidKeyword
);
8578
N(SyntaxKind.
VoidKeyword
);
8617
N(SyntaxKind.
VoidKeyword
);
8733
N(SyntaxKind.
VoidKeyword
);
8772
N(SyntaxKind.
VoidKeyword
);
8871
N(SyntaxKind.
VoidKeyword
);
8949
N(SyntaxKind.
VoidKeyword
);
9027
N(SyntaxKind.
VoidKeyword
);
9109
N(SyntaxKind.
VoidKeyword
);
9396
N(SyntaxKind.
VoidKeyword
);
9555
N(SyntaxKind.
VoidKeyword
);
9714
N(SyntaxKind.
VoidKeyword
);
9873
N(SyntaxKind.
VoidKeyword
);
10031
N(SyntaxKind.
VoidKeyword
);
10144
N(SyntaxKind.
VoidKeyword
);
10265
N(SyntaxKind.
VoidKeyword
);
10408
N(SyntaxKind.
VoidKeyword
);
10529
N(SyntaxKind.
VoidKeyword
);
10670
N(SyntaxKind.
VoidKeyword
);
10827
N(SyntaxKind.
VoidKeyword
);
10978
N(SyntaxKind.
VoidKeyword
);
11159
N(SyntaxKind.
VoidKeyword
);
11316
N(SyntaxKind.
VoidKeyword
);
11511
N(SyntaxKind.
VoidKeyword
);
11678
N(SyntaxKind.
VoidKeyword
);
11821
N(SyntaxKind.
VoidKeyword
);
11994
N(SyntaxKind.
VoidKeyword
);
12154
N(SyntaxKind.
VoidKeyword
);
12243
N(SyntaxKind.
VoidKeyword
);
12332
N(SyntaxKind.
VoidKeyword
);
12459
N(SyntaxKind.
VoidKeyword
);
14001
N(SyntaxKind.
VoidKeyword
);
14193
N(SyntaxKind.
VoidKeyword
);
14399
N(SyntaxKind.
VoidKeyword
);
14635
N(SyntaxKind.
VoidKeyword
);
14871
N(SyntaxKind.
VoidKeyword
);
15109
N(SyntaxKind.
VoidKeyword
);
15323
N(SyntaxKind.
VoidKeyword
);
15575
N(SyntaxKind.
VoidKeyword
);
15729
N(SyntaxKind.
VoidKeyword
);
15907
N(SyntaxKind.
VoidKeyword
);
16093
N(SyntaxKind.
VoidKeyword
);
16295
N(SyntaxKind.
VoidKeyword
);
16507
N(SyntaxKind.
VoidKeyword
);
16693
N(SyntaxKind.
VoidKeyword
);
Parsing\CrefParsingTests.cs (1)
1759
N(SyntaxKind.
VoidKeyword
);
Parsing\DeclarationParsingTests.cs (27)
2077
TestDelegateWithBuiltInReturnType(SyntaxKind.
VoidKeyword
);
3216
TestClassMethodWithBuiltInReturnType(SyntaxKind.
VoidKeyword
);
6563
N(SyntaxKind.
VoidKeyword
);
7260
N(SyntaxKind.
VoidKeyword
);
7296
N(SyntaxKind.
VoidKeyword
);
7334
N(SyntaxKind.
VoidKeyword
);
7371
N(SyntaxKind.
VoidKeyword
);
7408
N(SyntaxKind.
VoidKeyword
);
7444
N(SyntaxKind.
VoidKeyword
);
7476
N(SyntaxKind.
VoidKeyword
);
7508
N(SyntaxKind.
VoidKeyword
);
7540
N(SyntaxKind.
VoidKeyword
);
7585
N(SyntaxKind.
VoidKeyword
);
7647
N(SyntaxKind.
VoidKeyword
);
7700
N(SyntaxKind.
VoidKeyword
);
7733
N(SyntaxKind.
VoidKeyword
);
7770
N(SyntaxKind.
VoidKeyword
);
7807
N(SyntaxKind.
VoidKeyword
);
7844
N(SyntaxKind.
VoidKeyword
);
7881
N(SyntaxKind.
VoidKeyword
);
7918
N(SyntaxKind.
VoidKeyword
);
7955
N(SyntaxKind.
VoidKeyword
);
7992
N(SyntaxKind.
VoidKeyword
);
8029
N(SyntaxKind.
VoidKeyword
);
8066
N(SyntaxKind.
VoidKeyword
);
8114
N(SyntaxKind.
VoidKeyword
);
8286
N(SyntaxKind.
VoidKeyword
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (33)
112
N(SyntaxKind.
VoidKeyword
);
229
N(SyntaxKind.
VoidKeyword
);
294
N(SyntaxKind.
VoidKeyword
);
424
N(SyntaxKind.
VoidKeyword
);
504
N(SyntaxKind.
VoidKeyword
);
645
N(SyntaxKind.
VoidKeyword
);
725
N(SyntaxKind.
VoidKeyword
);
935
N(SyntaxKind.
VoidKeyword
);
1015
N(SyntaxKind.
VoidKeyword
);
1146
N(SyntaxKind.
VoidKeyword
);
1226
N(SyntaxKind.
VoidKeyword
);
1339
N(SyntaxKind.
VoidKeyword
);
1451
N(SyntaxKind.
VoidKeyword
);
1525
N(SyntaxKind.
VoidKeyword
);
1655
N(SyntaxKind.
VoidKeyword
);
1735
N(SyntaxKind.
VoidKeyword
);
2044
N(SyntaxKind.
VoidKeyword
);
2161
N(SyntaxKind.
VoidKeyword
);
2226
N(SyntaxKind.
VoidKeyword
);
2356
N(SyntaxKind.
VoidKeyword
);
2436
N(SyntaxKind.
VoidKeyword
);
2580
N(SyntaxKind.
VoidKeyword
);
2660
N(SyntaxKind.
VoidKeyword
);
2813
N(SyntaxKind.
VoidKeyword
);
2893
N(SyntaxKind.
VoidKeyword
);
3024
N(SyntaxKind.
VoidKeyword
);
3113
N(SyntaxKind.
VoidKeyword
);
3341
N(SyntaxKind.
VoidKeyword
);
3430
N(SyntaxKind.
VoidKeyword
);
3680
N(SyntaxKind.
VoidKeyword
);
3769
N(SyntaxKind.
VoidKeyword
);
3984
N(SyntaxKind.
VoidKeyword
);
4073
N(SyntaxKind.
VoidKeyword
);
Parsing\DeclarationScopeParsingTests.cs (20)
30
N(SyntaxKind.
VoidKeyword
);
77
N(SyntaxKind.
VoidKeyword
);
167
N(SyntaxKind.
VoidKeyword
);
508
N(SyntaxKind.
VoidKeyword
);
557
N(SyntaxKind.
VoidKeyword
);
611
N(SyntaxKind.
VoidKeyword
);
689
N(SyntaxKind.
VoidKeyword
);
759
N(SyntaxKind.
VoidKeyword
);
806
N(SyntaxKind.
VoidKeyword
);
853
N(SyntaxKind.
VoidKeyword
);
1305
N(SyntaxKind.
VoidKeyword
);
1358
N(SyntaxKind.
VoidKeyword
);
1427
N(SyntaxKind.
VoidKeyword
);
1557
N(SyntaxKind.
VoidKeyword
);
1628
N(SyntaxKind.
VoidKeyword
);
1757
N(SyntaxKind.
VoidKeyword
);
3045
N(SyntaxKind.
VoidKeyword
);
3192
N(SyntaxKind.
VoidKeyword
);
9636
N(SyntaxKind.
VoidKeyword
);
11624
N(SyntaxKind.
VoidKeyword
);
Parsing\DeconstructionTests.cs (28)
60
N(SyntaxKind.
VoidKeyword
);
134
N(SyntaxKind.
VoidKeyword
);
212
N(SyntaxKind.
VoidKeyword
);
288
N(SyntaxKind.
VoidKeyword
);
376
N(SyntaxKind.
VoidKeyword
);
460
N(SyntaxKind.
VoidKeyword
);
535
N(SyntaxKind.
VoidKeyword
);
611
N(SyntaxKind.
VoidKeyword
);
703
N(SyntaxKind.
VoidKeyword
);
793
N(SyntaxKind.
VoidKeyword
);
906
N(SyntaxKind.
VoidKeyword
);
983
N(SyntaxKind.
VoidKeyword
);
1070
N(SyntaxKind.
VoidKeyword
);
1144
N(SyntaxKind.
VoidKeyword
);
1243
N(SyntaxKind.
VoidKeyword
);
1341
N(SyntaxKind.
VoidKeyword
);
1426
N(SyntaxKind.
VoidKeyword
);
1519
N(SyntaxKind.
VoidKeyword
);
1774
N(SyntaxKind.
VoidKeyword
);
2416
N(SyntaxKind.
VoidKeyword
);
2481
N(SyntaxKind.
VoidKeyword
);
2559
N(SyntaxKind.
VoidKeyword
);
2622
N(SyntaxKind.
VoidKeyword
);
2685
N(SyntaxKind.
VoidKeyword
);
2747
N(SyntaxKind.
VoidKeyword
);
2806
N(SyntaxKind.
VoidKeyword
);
2874
N(SyntaxKind.
VoidKeyword
);
3397
N(SyntaxKind.
VoidKeyword
);
Parsing\ExpressionParsingTests.cs (19)
3174
N(SyntaxKind.
VoidKeyword
);
3274
N(SyntaxKind.
VoidKeyword
);
3364
N(SyntaxKind.
VoidKeyword
);
3438
N(SyntaxKind.
VoidKeyword
);
3520
N(SyntaxKind.
VoidKeyword
);
3599
N(SyntaxKind.
VoidKeyword
);
3672
N(SyntaxKind.
VoidKeyword
);
3757
N(SyntaxKind.
VoidKeyword
);
3848
N(SyntaxKind.
VoidKeyword
);
3938
N(SyntaxKind.
VoidKeyword
);
4029
N(SyntaxKind.
VoidKeyword
);
4116
N(SyntaxKind.
VoidKeyword
);
4210
N(SyntaxKind.
VoidKeyword
);
4307
N(SyntaxKind.
VoidKeyword
);
4412
N(SyntaxKind.
VoidKeyword
);
4513
N(SyntaxKind.
VoidKeyword
);
4604
N(SyntaxKind.
VoidKeyword
);
4697
N(SyntaxKind.
VoidKeyword
);
6312
N(SyntaxKind.
VoidKeyword
);
Parsing\FieldKeywordParsingTests.cs (1)
1782
N(SyntaxKind.
VoidKeyword
);
Parsing\FileModifierParsingTests.cs (10)
602
N(SyntaxKind.
VoidKeyword
);
773
N(SyntaxKind.
VoidKeyword
);
821
N(SyntaxKind.
VoidKeyword
);
1028
N(SyntaxKind.
VoidKeyword
);
1210
N(SyntaxKind.
VoidKeyword
);
3040
N(SyntaxKind.
VoidKeyword
);
3101
N(SyntaxKind.
VoidKeyword
);
3309
N(SyntaxKind.
VoidKeyword
);
3509
N(SyntaxKind.
VoidKeyword
);
3573
N(SyntaxKind.
VoidKeyword
);
Parsing\FunctionPointerTests.cs (48)
177
N(SyntaxKind.
VoidKeyword
);
218
N(SyntaxKind.
VoidKeyword
);
270
N(SyntaxKind.
VoidKeyword
);
322
N(SyntaxKind.
VoidKeyword
);
364
N(SyntaxKind.
VoidKeyword
);
416
N(SyntaxKind.
VoidKeyword
);
489
N(SyntaxKind.
VoidKeyword
);
614
N(SyntaxKind.
VoidKeyword
);
622
N(SyntaxKind.
VoidKeyword
);
630
N(SyntaxKind.
VoidKeyword
);
701
N(SyntaxKind.
VoidKeyword
);
781
N(SyntaxKind.
VoidKeyword
);
849
N(SyntaxKind.
VoidKeyword
);
1316
N(SyntaxKind.
VoidKeyword
);
1686
N(SyntaxKind.
VoidKeyword
);
1771
N(SyntaxKind.
VoidKeyword
);
1926
N(SyntaxKind.
VoidKeyword
);
1967
N(SyntaxKind.
VoidKeyword
);
2057
N(SyntaxKind.
VoidKeyword
);
2246
N(SyntaxKind.
VoidKeyword
);
2319
N(SyntaxKind.
VoidKeyword
);
2363
N(SyntaxKind.
VoidKeyword
);
2389
N(SyntaxKind.
VoidKeyword
);
2415
N(SyntaxKind.
VoidKeyword
);
2448
N(SyntaxKind.
VoidKeyword
);
2492
N(SyntaxKind.
VoidKeyword
);
2526
N(SyntaxKind.
VoidKeyword
);
2580
N(SyntaxKind.
VoidKeyword
);
2614
N(SyntaxKind.
VoidKeyword
);
2695
N(SyntaxKind.
VoidKeyword
);
2728
N(SyntaxKind.
VoidKeyword
);
2799
N(SyntaxKind.
VoidKeyword
);
2856
N(SyntaxKind.
VoidKeyword
);
2909
N(SyntaxKind.
VoidKeyword
);
2961
N(SyntaxKind.
VoidKeyword
);
3004
N(SyntaxKind.
VoidKeyword
);
3054
N(SyntaxKind.
VoidKeyword
);
3106
N(SyntaxKind.
VoidKeyword
);
3366
N(SyntaxKind.
VoidKeyword
);
3439
N(SyntaxKind.
VoidKeyword
);
3519
N(SyntaxKind.
VoidKeyword
);
3591
N(SyntaxKind.
VoidKeyword
);
3789
N(SyntaxKind.
VoidKeyword
);
3849
N(SyntaxKind.
VoidKeyword
);
3891
N(SyntaxKind.
VoidKeyword
);
3979
N(SyntaxKind.
VoidKeyword
);
4097
N(SyntaxKind.
VoidKeyword
);
4155
N(SyntaxKind.
VoidKeyword
);
Parsing\LambdaAttributeParsingTests.cs (6)
3802
N(SyntaxKind.
VoidKeyword
);
3933
N(SyntaxKind.
VoidKeyword
);
4046
N(SyntaxKind.
VoidKeyword
);
4163
N(SyntaxKind.
VoidKeyword
);
4312
N(SyntaxKind.
VoidKeyword
);
4446
N(SyntaxKind.
VoidKeyword
);
Parsing\LambdaParameterParsingTests.cs (5)
67
N(SyntaxKind.
VoidKeyword
);
178
N(SyntaxKind.
VoidKeyword
);
297
N(SyntaxKind.
VoidKeyword
);
423
N(SyntaxKind.
VoidKeyword
);
552
N(SyntaxKind.
VoidKeyword
);
Parsing\LambdaReturnTypeParsingTests.cs (11)
391
N(SyntaxKind.
VoidKeyword
);
528
N(SyntaxKind.
VoidKeyword
);
570
N(SyntaxKind.
VoidKeyword
);
632
N(SyntaxKind.
VoidKeyword
);
644
N(SyntaxKind.
VoidKeyword
);
1550
N(SyntaxKind.
VoidKeyword
);
1597
N(SyntaxKind.
VoidKeyword
);
2436
N(SyntaxKind.
VoidKeyword
);
5495
N(SyntaxKind.
VoidKeyword
);
5648
N(SyntaxKind.
VoidKeyword
);
5764
N(SyntaxKind.
VoidKeyword
);
Parsing\LocalFunctionParsingTests.cs (47)
119
N(SyntaxKind.
VoidKeyword
);
157
N(SyntaxKind.
VoidKeyword
);
198
N(SyntaxKind.
VoidKeyword
);
243
N(SyntaxKind.
VoidKeyword
);
281
N(SyntaxKind.
VoidKeyword
);
313
N(SyntaxKind.
VoidKeyword
);
385
N(SyntaxKind.
VoidKeyword
);
412
N(SyntaxKind.
VoidKeyword
);
447
N(SyntaxKind.
VoidKeyword
);
523
N(SyntaxKind.
VoidKeyword
);
579
N(SyntaxKind.
VoidKeyword
);
648
N(SyntaxKind.
VoidKeyword
);
663
N(SyntaxKind.
VoidKeyword
);
739
N(SyntaxKind.
VoidKeyword
);
755
N(SyntaxKind.
VoidKeyword
);
825
N(SyntaxKind.
VoidKeyword
);
841
N(SyntaxKind.
VoidKeyword
);
929
N(SyntaxKind.
VoidKeyword
);
1009
N(SyntaxKind.
VoidKeyword
);
1103
N(SyntaxKind.
VoidKeyword
);
1416
N(SyntaxKind.
VoidKeyword
);
1465
N(SyntaxKind.
VoidKeyword
);
1514
N(SyntaxKind.
VoidKeyword
);
1566
N(SyntaxKind.
VoidKeyword
);
1616
N(SyntaxKind.
VoidKeyword
);
1755
N(SyntaxKind.
VoidKeyword
);
1770
N(SyntaxKind.
VoidKeyword
);
1870
N(SyntaxKind.
VoidKeyword
);
1886
N(SyntaxKind.
VoidKeyword
);
1904
N(SyntaxKind.
VoidKeyword
);
2055
N(SyntaxKind.
VoidKeyword
);
2071
N(SyntaxKind.
VoidKeyword
);
2090
N(SyntaxKind.
VoidKeyword
);
2151
N(SyntaxKind.
VoidKeyword
);
2167
N(SyntaxKind.
VoidKeyword
);
2234
N(SyntaxKind.
VoidKeyword
);
2251
N(SyntaxKind.
VoidKeyword
);
2324
N(SyntaxKind.
VoidKeyword
);
2342
N(SyntaxKind.
VoidKeyword
);
2421
N(SyntaxKind.
VoidKeyword
);
2440
N(SyntaxKind.
VoidKeyword
);
2591
N(SyntaxKind.
VoidKeyword
);
2608
N(SyntaxKind.
VoidKeyword
);
2681
N(SyntaxKind.
VoidKeyword
);
2915
N(SyntaxKind.
VoidKeyword
);
2976
N(SyntaxKind.
VoidKeyword
);
3103
N(SyntaxKind.
VoidKeyword
);
Parsing\MemberDeclarationParsingTests.cs (33)
178
N(SyntaxKind.
VoidKeyword
);
9185
N(SyntaxKind.
VoidKeyword
);
9307
N(SyntaxKind.
VoidKeyword
);
9377
N(SyntaxKind.
VoidKeyword
);
9392
N(SyntaxKind.
VoidKeyword
);
10191
N(SyntaxKind.
VoidKeyword
);
10239
N(SyntaxKind.
VoidKeyword
);
10530
N(SyntaxKind.
VoidKeyword
);
10615
N(SyntaxKind.
VoidKeyword
);
10723
N(SyntaxKind.
VoidKeyword
);
10848
N(SyntaxKind.
VoidKeyword
);
11023
N(SyntaxKind.
VoidKeyword
);
11197
N(SyntaxKind.
VoidKeyword
);
11366
N(SyntaxKind.
VoidKeyword
);
11389
N(SyntaxKind.
VoidKeyword
);
11492
N(SyntaxKind.
VoidKeyword
);
11816
N(SyntaxKind.
VoidKeyword
);
12128
N(SyntaxKind.
VoidKeyword
);
12198
N(SyntaxKind.
VoidKeyword
);
12268
N(SyntaxKind.
VoidKeyword
);
12359
N(SyntaxKind.
VoidKeyword
);
12385
N(SyntaxKind.
VoidKeyword
);
15569
N(SyntaxKind.
VoidKeyword
);
15965
N(SyntaxKind.
VoidKeyword
);
16062
N(SyntaxKind.
VoidKeyword
);
16170
N(SyntaxKind.
VoidKeyword
);
16323
N(SyntaxKind.
VoidKeyword
);
16496
N(SyntaxKind.
VoidKeyword
);
16608
N(SyntaxKind.
VoidKeyword
);
16731
N(SyntaxKind.
VoidKeyword
);
16912
N(SyntaxKind.
VoidKeyword
);
17871
N(SyntaxKind.
VoidKeyword
);
17926
N(SyntaxKind.
VoidKeyword
);
Parsing\NameParsingTests.cs (5)
846
N(SyntaxKind.
VoidKeyword
);
944
N(SyntaxKind.
VoidKeyword
);
1066
N(SyntaxKind.
VoidKeyword
);
1191
N(SyntaxKind.
VoidKeyword
);
1341
N(SyntaxKind.
VoidKeyword
);
Parsing\ParserRegressionTests.cs (6)
276
N(SyntaxKind.
VoidKeyword
);
369
N(SyntaxKind.
VoidKeyword
);
503
N(SyntaxKind.
VoidKeyword
);
593
N(SyntaxKind.
VoidKeyword
);
683
N(SyntaxKind.
VoidKeyword
);
771
N(SyntaxKind.
VoidKeyword
);
Parsing\ParsingErrorRecoveryTests.cs (11)
100
N(SyntaxKind.
VoidKeyword
);
119
N(SyntaxKind.
VoidKeyword
);
141
N(SyntaxKind.
VoidKeyword
);
171
N(SyntaxKind.
VoidKeyword
);
192
N(SyntaxKind.
VoidKeyword
);
214
N(SyntaxKind.
VoidKeyword
);
5205
N(SyntaxKind.
VoidKeyword
);
5317
N(SyntaxKind.
VoidKeyword
);
5464
N(SyntaxKind.
VoidKeyword
);
5577
N(SyntaxKind.
VoidKeyword
);
5714
N(SyntaxKind.
VoidKeyword
);
Parsing\RecordParsing.cs (1)
710
N(SyntaxKind.
VoidKeyword
);
Parsing\RefFieldParsingTests.cs (1)
664
N(SyntaxKind.
VoidKeyword
);
Parsing\RefReadonlyTests.cs (17)
516
N(SyntaxKind.
VoidKeyword
);
559
N(SyntaxKind.
VoidKeyword
);
603
N(SyntaxKind.
VoidKeyword
);
646
N(SyntaxKind.
VoidKeyword
);
690
N(SyntaxKind.
VoidKeyword
);
734
N(SyntaxKind.
VoidKeyword
);
779
N(SyntaxKind.
VoidKeyword
);
823
N(SyntaxKind.
VoidKeyword
);
867
N(SyntaxKind.
VoidKeyword
);
911
N(SyntaxKind.
VoidKeyword
);
965
N(SyntaxKind.
VoidKeyword
);
1027
N(SyntaxKind.
VoidKeyword
);
1089
N(SyntaxKind.
VoidKeyword
);
1150
N(SyntaxKind.
VoidKeyword
);
1202
N(SyntaxKind.
VoidKeyword
);
1245
N(SyntaxKind.
VoidKeyword
);
1291
N(SyntaxKind.
VoidKeyword
);
Parsing\ScriptParsingTests.cs (11)
143
N(SyntaxKind.
VoidKeyword
);
489
N(SyntaxKind.
VoidKeyword
);
679
NewModifier_PartialMethod_ReturnsPredefined("void", SyntaxKind.
VoidKeyword
);
1265
N(SyntaxKind.
VoidKeyword
);
1503
N(SyntaxKind.
VoidKeyword
);
1924
N(SyntaxKind.
VoidKeyword
);
2340
N(SyntaxKind.
VoidKeyword
);
9263
N(SyntaxKind.
VoidKeyword
);
9323
N(SyntaxKind.
VoidKeyword
);
9380
N(SyntaxKind.
VoidKeyword
);
9438
N(SyntaxKind.
VoidKeyword
);
Parsing\StatementAttributeParsingTests.cs (85)
42
N(SyntaxKind.
VoidKeyword
);
108
N(SyntaxKind.
VoidKeyword
);
175
N(SyntaxKind.
VoidKeyword
);
263
N(SyntaxKind.
VoidKeyword
);
358
N(SyntaxKind.
VoidKeyword
);
443
N(SyntaxKind.
VoidKeyword
);
524
N(SyntaxKind.
VoidKeyword
);
590
N(SyntaxKind.
VoidKeyword
);
659
N(SyntaxKind.
VoidKeyword
);
733
N(SyntaxKind.
VoidKeyword
);
810
N(SyntaxKind.
VoidKeyword
);
885
N(SyntaxKind.
VoidKeyword
);
960
N(SyntaxKind.
VoidKeyword
);
1038
N(SyntaxKind.
VoidKeyword
);
1112
N(SyntaxKind.
VoidKeyword
);
1214
N(SyntaxKind.
VoidKeyword
);
1348
N(SyntaxKind.
VoidKeyword
);
1424
N(SyntaxKind.
VoidKeyword
);
1511
N(SyntaxKind.
VoidKeyword
);
1595
N(SyntaxKind.
VoidKeyword
);
1713
N(SyntaxKind.
VoidKeyword
);
1783
N(SyntaxKind.
VoidKeyword
);
1853
N(SyntaxKind.
VoidKeyword
);
1923
N(SyntaxKind.
VoidKeyword
);
2008
N(SyntaxKind.
VoidKeyword
);
2105
N(SyntaxKind.
VoidKeyword
);
2181
N(SyntaxKind.
VoidKeyword
);
2257
N(SyntaxKind.
VoidKeyword
);
2337
N(SyntaxKind.
VoidKeyword
);
2434
N(SyntaxKind.
VoidKeyword
);
2562
N(SyntaxKind.
VoidKeyword
);
2666
N(SyntaxKind.
VoidKeyword
);
2745
N(SyntaxKind.
VoidKeyword
);
2830
N(SyntaxKind.
VoidKeyword
);
2933
N(SyntaxKind.
VoidKeyword
);
3018
N(SyntaxKind.
VoidKeyword
);
3121
N(SyntaxKind.
VoidKeyword
);
3200
N(SyntaxKind.
VoidKeyword
);
3279
N(SyntaxKind.
VoidKeyword
);
3362
N(SyntaxKind.
VoidKeyword
);
3442
N(SyntaxKind.
VoidKeyword
);
3524
N(SyntaxKind.
VoidKeyword
);
3606
N(SyntaxKind.
VoidKeyword
);
3696
N(SyntaxKind.
VoidKeyword
);
3777
N(SyntaxKind.
VoidKeyword
);
3851
N(SyntaxKind.
VoidKeyword
);
3944
N(SyntaxKind.
VoidKeyword
);
4027
N(SyntaxKind.
VoidKeyword
);
4112
N(SyntaxKind.
VoidKeyword
);
4197
N(SyntaxKind.
VoidKeyword
);
4280
N(SyntaxKind.
VoidKeyword
);
4356
N(SyntaxKind.
VoidKeyword
);
4444
N(SyntaxKind.
VoidKeyword
);
4533
N(SyntaxKind.
VoidKeyword
);
4630
N(SyntaxKind.
VoidKeyword
);
4708
N(SyntaxKind.
VoidKeyword
);
4783
N(SyntaxKind.
VoidKeyword
);
4878
N(SyntaxKind.
VoidKeyword
);
4977
N(SyntaxKind.
VoidKeyword
);
5054
N(SyntaxKind.
VoidKeyword
);
5126
N(SyntaxKind.
VoidKeyword
);
5214
N(SyntaxKind.
VoidKeyword
);
5292
N(SyntaxKind.
VoidKeyword
);
5378
N(SyntaxKind.
VoidKeyword
);
5455
N(SyntaxKind.
VoidKeyword
);
5540
N(SyntaxKind.
VoidKeyword
);
5649
N(SyntaxKind.
VoidKeyword
);
5749
N(SyntaxKind.
VoidKeyword
);
5855
N(SyntaxKind.
VoidKeyword
);
5954
N(SyntaxKind.
VoidKeyword
);
6050
N(SyntaxKind.
VoidKeyword
);
6142
N(SyntaxKind.
VoidKeyword
);
6220
N(SyntaxKind.
VoidKeyword
);
6312
N(SyntaxKind.
VoidKeyword
);
6390
N(SyntaxKind.
VoidKeyword
);
6469
N(SyntaxKind.
VoidKeyword
);
6556
N(SyntaxKind.
VoidKeyword
);
6661
N(SyntaxKind.
VoidKeyword
);
6800
N(SyntaxKind.
VoidKeyword
);
6894
N(SyntaxKind.
VoidKeyword
);
6980
N(SyntaxKind.
VoidKeyword
);
7063
N(SyntaxKind.
VoidKeyword
);
7154
N(SyntaxKind.
VoidKeyword
);
7255
N(SyntaxKind.
VoidKeyword
);
7364
N(SyntaxKind.
VoidKeyword
);
Parsing\StatementParsingTests.cs (6)
2709
N(SyntaxKind.
VoidKeyword
);
4313
N(SyntaxKind.
VoidKeyword
);
4450
N(SyntaxKind.
VoidKeyword
);
4614
N(SyntaxKind.
VoidKeyword
);
5836
N(SyntaxKind.
VoidKeyword
);
5930
N(SyntaxKind.
VoidKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (2)
1268
N(SyntaxKind.
VoidKeyword
);
2699
N(SyntaxKind.
VoidKeyword
);
Parsing\TypeArgumentListParsingTests.cs (21)
50
N(SyntaxKind.
VoidKeyword
);
166
N(SyntaxKind.
VoidKeyword
);
294
N(SyntaxKind.
VoidKeyword
);
427
N(SyntaxKind.
VoidKeyword
);
575
N(SyntaxKind.
VoidKeyword
);
722
N(SyntaxKind.
VoidKeyword
);
1035
N(SyntaxKind.
VoidKeyword
);
1174
N(SyntaxKind.
VoidKeyword
);
1316
N(SyntaxKind.
VoidKeyword
);
1449
N(SyntaxKind.
VoidKeyword
);
1569
N(SyntaxKind.
VoidKeyword
);
1673
N(SyntaxKind.
VoidKeyword
);
1774
N(SyntaxKind.
VoidKeyword
);
1896
N(SyntaxKind.
VoidKeyword
);
2029
N(SyntaxKind.
VoidKeyword
);
2163
N(SyntaxKind.
VoidKeyword
);
2294
N(SyntaxKind.
VoidKeyword
);
2395
N(SyntaxKind.
VoidKeyword
);
2504
N(SyntaxKind.
VoidKeyword
);
2606
N(SyntaxKind.
VoidKeyword
);
2724
N(SyntaxKind.
VoidKeyword
);
Parsing\UsingDirectiveParsingTests.cs (19)
140
N(SyntaxKind.
VoidKeyword
);
434
N(SyntaxKind.
VoidKeyword
);
752
N(SyntaxKind.
VoidKeyword
);
812
N(SyntaxKind.
VoidKeyword
);
2119
N(SyntaxKind.
VoidKeyword
);
2134
N(SyntaxKind.
VoidKeyword
);
2193
N(SyntaxKind.
VoidKeyword
);
2209
N(SyntaxKind.
VoidKeyword
);
2270
N(SyntaxKind.
VoidKeyword
);
2286
N(SyntaxKind.
VoidKeyword
);
2349
N(SyntaxKind.
VoidKeyword
);
2362
N(SyntaxKind.
VoidKeyword
);
2425
N(SyntaxKind.
VoidKeyword
);
2498
N(SyntaxKind.
VoidKeyword
);
2616
N(SyntaxKind.
VoidKeyword
);
2746
N(SyntaxKind.
VoidKeyword
);
2870
N(SyntaxKind.
VoidKeyword
);
2988
N(SyntaxKind.
VoidKeyword
);
3086
N(SyntaxKind.
VoidKeyword
);
Parsing\ValueTupleTests.cs (2)
454
N(SyntaxKind.
VoidKeyword
);
526
N(SyntaxKind.
VoidKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1999
=> type is PredefinedTypeSyntax pd && pd.Keyword.IsKind(SyntaxKind.
VoidKeyword
) ? null : type;
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
56
SpecialType.System_Void => SyntaxKind.
VoidKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
98
public static readonly SyntaxToken VoidKeyword = Token(SyntaxKind.
VoidKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
324
case SyntaxKind.
VoidKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
15
predefinedType.Keyword.IsKind(SyntaxKind.
VoidKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
342
SyntaxKind.
VoidKeyword
=> PredefinedType.Void,
513
case SyntaxKind.
VoidKeyword
:
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceGenerator.cs (1)
607
SizeOfExpression(PointerType(PredefinedType(Token(SyntaxKind.
VoidKeyword
)))),
VirtualMethodPointerStubGenerator.cs (1)
251
CastExpression(PointerType(PredefinedType(Token(SyntaxKind.
VoidKeyword
))),
VtableIndexStubGenerator.cs (2)
441
MethodDeclarationSyntax populateVtableMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.
VoidKeyword
)),
446
.WithType(PointerType(PointerType(PredefinedType(Token(SyntaxKind.
VoidKeyword
))))));
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (3)
144
MemberDeclarationSyntax wrappperMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.
VoidKeyword
)), Identifier(wrapperName))
244
MemberDeclarationSyntax method = MethodDeclaration(PredefinedType(Token(SyntaxKind.
VoidKeyword
)), Identifier(initializerName))
250
MemberDeclarationSyntax initializerMethod = MethodDeclaration(PredefinedType(Token(SyntaxKind.
VoidKeyword
)), Identifier(trimmingPreserveName))
JSManagedTypeInfo.cs (2)
22
Syntax = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.
VoidKeyword
))
119
return new JSTaskTypeInfo(new JSSimpleTypeInfo(KnownManagedType.Void, SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.
VoidKeyword
))));
Microsoft.Interop.SourceGeneration (5)
Marshalling\StaticPinnableManagedValueMarshaller.cs (2)
31
&& predefinedType.Keyword.IsKind(SyntaxKind.
VoidKeyword
))
81
PointerType(PredefinedType(Token(SyntaxKind.
VoidKeyword
))),
TypeNames.cs (3)
49
public static TypeSyntax Void { get; } = PredefinedType(Token(SyntaxKind.
VoidKeyword
));
51
public static TypeSyntax VoidStar { get; } = PointerType(PredefinedType(Token(SyntaxKind.
VoidKeyword
)));
53
public static TypeSyntax VoidStarStar { get; } = PointerType(PointerType(PredefinedType(Token(SyntaxKind.
VoidKeyword
))));