873 references to MethodDeclaration
Microsoft.Analyzers.Extra (2)
AsyncMethodWithoutCancellation.cs (1)
112
}, SyntaxKind.
MethodDeclaration
);
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
169
foreach (var method in targetClass.Members.Where(m => m.IsKind(SyntaxKind.
MethodDeclaration
)).OfType<MethodDeclarationSyntax>())
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
473
case SyntaxKind.
MethodDeclaration
:
1331
if (memberSyntax.Kind() == SyntaxKind.
MethodDeclaration
)
Compilation\MemberSemanticModel.cs (1)
2171
case SyntaxKind.
MethodDeclaration
:
Compilation\MethodBodySemanticModel.cs (1)
88
case SyntaxKind.
MethodDeclaration
:
Compilation\SyntaxTreeSemanticModel.cs (4)
820
case SyntaxKind.
MethodDeclaration
:
852
case SyntaxKind.
MethodDeclaration
:
1079
case SyntaxKind.
MethodDeclaration
:
1626
case SyntaxKind.
MethodDeclaration
:
Declarations\DeclarationTreeBuilder.cs (4)
1054
if (member.Kind == SyntaxKind.
MethodDeclaration
)
1101
case SyntaxKind.
MethodDeclaration
:
1153
case SyntaxKind.
MethodDeclaration
:
1233
case SyntaxKind.
MethodDeclaration
:
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
577
case SyntaxKind.
MethodDeclaration
:
597
case SyntaxKind.
MethodDeclaration
:
Parser\LanguageParser.cs (3)
557
or SyntaxKind.
MethodDeclaration
2404
case SyntaxKind.
MethodDeclaration
:
5078
case SyntaxKind.
MethodDeclaration
:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
275
case SyntaxKind.
MethodDeclaration
:
388
case SyntaxKind.
MethodDeclaration
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4962
case SyntaxKind.
MethodDeclaration
:
Syntax\SyntaxExtensions.cs (2)
31
case SyntaxKind.
MethodDeclaration
:
241
case SyntaxKind.
MethodDeclaration
:
Syntax\SyntaxFacts.cs (1)
166
case
MethodDeclaration
:
Syntax\SyntaxKindFacts.cs (1)
366
case SyntaxKind.
MethodDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
28
[SyntaxKind.
MethodDeclaration
])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
17
.FirstOrDefault(node => node.Kind() is SyntaxKind.LocalFunctionStatement or SyntaxKind.
MethodDeclaration
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
51
case SyntaxKind.
MethodDeclaration
:
82
case SyntaxKind.
MethodDeclaration
:
104
case SyntaxKind.
MethodDeclaration
:
122
case SyntaxKind.
MethodDeclaration
:
146
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
254
or SyntaxKind.
MethodDeclaration
278
or SyntaxKind.
MethodDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
432
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
69
case SyntaxKind.
MethodDeclaration
:
170
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1274
case SyntaxKind.
MethodDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
50
if (node.Kind() is not SyntaxKind.
MethodDeclaration
and not SyntaxKind.PropertyDeclaration and not SyntaxKind.VariableDeclarator)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (1)
39
or SyntaxKind.
MethodDeclaration
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (1)
58
or SyntaxKind.
MethodDeclaration
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
121
SyntaxKind.
MethodDeclaration
or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
770
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
24
{ SyntaxKind.
MethodDeclaration
, 7 },
117
case SyntaxKind.
MethodDeclaration
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
370
case SyntaxKind.
MethodDeclaration
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
314
return ImmutableArray.Create(SyntaxKind.
MethodDeclaration
, SyntaxKind.ExpressionStatement, SyntaxKind.EqualsValueClause);
325
Assert.NotEqual(SyntaxKind.
MethodDeclaration
, context.Node.Kind());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1008
}, SyntaxKind.PropertyDeclaration, SyntaxKind.IndexerDeclaration, SyntaxKind.EventDeclaration, SyntaxKind.
MethodDeclaration
);
Microsoft.CodeAnalysis.CSharp.Features (22)
ChangeSignature\CSharpChangeSignatureService.cs (3)
43
SyntaxKind.
MethodDeclaration
,
87
SyntaxKind.
MethodDeclaration
,
301
is SyntaxKind.
MethodDeclaration
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
74
if (tokenParent.IsParentKind<MethodDeclarationSyntax>(SyntaxKind.
MethodDeclaration
, out var methodDeclaration))
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
62
case SyntaxKind.
MethodDeclaration
:
124
SyntaxKind.
MethodDeclaration
or
EditAndContinue\BreakpointSpans.cs (1)
173
case SyntaxKind.
MethodDeclaration
:
EditAndContinue\SyntaxComparer.cs (3)
603
case SyntaxKind.
MethodDeclaration
:
712
case SyntaxKind.
MethodDeclaration
:
1446
case SyntaxKind.
MethodDeclaration
:
ExtractMethod\CSharpMethodExtractor.cs (1)
165
=> methodNames.FirstOrNull(t => !t.Parent.IsKind(SyntaxKind.
MethodDeclaration
));
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
43
SyntaxKind.
MethodDeclaration
or
LineSeparators\CSharpLineSeparatorService.cs (1)
80
case SyntaxKind.
MethodDeclaration
:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
166
case SyntaxKind.
MethodDeclaration
:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
28
[SyntaxKind.
MethodDeclaration
])
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
50
if (node.Kind() is not SyntaxKind.
MethodDeclaration
and not SyntaxKind.PropertyDeclaration and not SyntaxKind.VariableDeclarator)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateConversionCodeFixProvider.cs (1)
39
or SyntaxKind.
MethodDeclaration
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateMethodCodeFixProvider.cs (1)
58
or SyntaxKind.
MethodDeclaration
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
121
SyntaxKind.
MethodDeclaration
or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
275
case SyntaxKind.
MethodDeclaration
:
388
case SyntaxKind.
MethodDeclaration
:
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
38
&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.
MethodDeclaration
));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
Diagnostics\Suppression\SuppressionTests.cs (4)
1068
=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.EnumDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.
MethodDeclaration
, SyntaxKind.PropertyDeclaration, SyntaxKind.FieldDeclaration, SyntaxKind.EventDeclaration);
1084
case SyntaxKind.
MethodDeclaration
:
2062
=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.
MethodDeclaration
);
2078
case SyntaxKind.
MethodDeclaration
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
444
var mMethod = (MethodDeclarationSyntax)newTree.FindNodeOrTokenByKind(SyntaxKind.
MethodDeclaration
, occurrence: 1).AsNode();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
3612
Assert.Equal(SyntaxKind.
MethodDeclaration
, methodDecl.Kind());
Symbols\TypeTests.cs (1)
1679
var mnode = (MethodDeclarationSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.
MethodDeclaration
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (733)
IncrementalParsing\IncrementalParsingTests.cs (7)
86
SyntaxKind.
MethodDeclaration
,
108
SyntaxKind.
MethodDeclaration
,
228
SyntaxKind.
MethodDeclaration
,
298
SyntaxKind.
MethodDeclaration
,
379
SyntaxKind.
MethodDeclaration
,
423
SyntaxKind.
MethodDeclaration
,
680
N(SyntaxKind.
MethodDeclaration
);
Parsing\AnonymousFunctionParsingTests.cs (25)
54
N(SyntaxKind.
MethodDeclaration
);
155
N(SyntaxKind.
MethodDeclaration
);
252
N(SyntaxKind.
MethodDeclaration
);
353
N(SyntaxKind.
MethodDeclaration
);
454
N(SyntaxKind.
MethodDeclaration
);
558
N(SyntaxKind.
MethodDeclaration
);
689
N(SyntaxKind.
MethodDeclaration
);
807
N(SyntaxKind.
MethodDeclaration
);
2301
N(SyntaxKind.
MethodDeclaration
);
2381
N(SyntaxKind.
MethodDeclaration
);
2498
N(SyntaxKind.
MethodDeclaration
);
2646
N(SyntaxKind.
MethodDeclaration
);
2794
N(SyntaxKind.
MethodDeclaration
);
2920
N(SyntaxKind.
MethodDeclaration
);
3056
N(SyntaxKind.
MethodDeclaration
);
3179
N(SyntaxKind.
MethodDeclaration
);
3319
N(SyntaxKind.
MethodDeclaration
);
3472
N(SyntaxKind.
MethodDeclaration
);
3625
N(SyntaxKind.
MethodDeclaration
);
3774
N(SyntaxKind.
MethodDeclaration
);
3919
N(SyntaxKind.
MethodDeclaration
);
4051
N(SyntaxKind.
MethodDeclaration
);
4200
N(SyntaxKind.
MethodDeclaration
);
4362
N(SyntaxKind.
MethodDeclaration
);
4524
N(SyntaxKind.
MethodDeclaration
);
Parsing\AsyncParsingTests.cs (7)
53
N(SyntaxKind.
MethodDeclaration
);
94
N(SyntaxKind.
MethodDeclaration
);
134
N(SyntaxKind.
MethodDeclaration
);
174
N(SyntaxKind.
MethodDeclaration
);
214
N(SyntaxKind.
MethodDeclaration
);
255
N(SyntaxKind.
MethodDeclaration
);
300
N(SyntaxKind.
MethodDeclaration
);
Parsing\AsyncStreamsParsingTests.cs (6)
53
N(SyntaxKind.
MethodDeclaration
);
131
N(SyntaxKind.
MethodDeclaration
);
212
N(SyntaxKind.
MethodDeclaration
);
294
N(SyntaxKind.
MethodDeclaration
);
393
N(SyntaxKind.
MethodDeclaration
);
487
N(SyntaxKind.
MethodDeclaration
);
Parsing\AwaitParsingTests.cs (9)
47
N(SyntaxKind.
MethodDeclaration
);
112
N(SyntaxKind.
MethodDeclaration
);
176
N(SyntaxKind.
MethodDeclaration
);
241
N(SyntaxKind.
MethodDeclaration
);
349
N(SyntaxKind.
MethodDeclaration
);
1352
N(SyntaxKind.
MethodDeclaration
);
1431
N(SyntaxKind.
MethodDeclaration
);
1511
N(SyntaxKind.
MethodDeclaration
);
1601
N(SyntaxKind.
MethodDeclaration
);
Parsing\CollectionExpressionParsingTests.cs (54)
1396
N(SyntaxKind.
MethodDeclaration
);
6256
N(SyntaxKind.
MethodDeclaration
);
6321
N(SyntaxKind.
MethodDeclaration
);
7975
N(SyntaxKind.
MethodDeclaration
);
8014
N(SyntaxKind.
MethodDeclaration
);
8120
N(SyntaxKind.
MethodDeclaration
);
8159
N(SyntaxKind.
MethodDeclaration
);
8273
N(SyntaxKind.
MethodDeclaration
);
8312
N(SyntaxKind.
MethodDeclaration
);
8429
N(SyntaxKind.
MethodDeclaration
);
8468
N(SyntaxKind.
MethodDeclaration
);
8573
N(SyntaxKind.
MethodDeclaration
);
8612
N(SyntaxKind.
MethodDeclaration
);
8728
N(SyntaxKind.
MethodDeclaration
);
8767
N(SyntaxKind.
MethodDeclaration
);
8866
N(SyntaxKind.
MethodDeclaration
);
8944
N(SyntaxKind.
MethodDeclaration
);
9022
N(SyntaxKind.
MethodDeclaration
);
9104
N(SyntaxKind.
MethodDeclaration
);
9391
N(SyntaxKind.
MethodDeclaration
);
9550
N(SyntaxKind.
MethodDeclaration
);
9709
N(SyntaxKind.
MethodDeclaration
);
9868
N(SyntaxKind.
MethodDeclaration
);
10026
N(SyntaxKind.
MethodDeclaration
);
10139
N(SyntaxKind.
MethodDeclaration
);
10260
N(SyntaxKind.
MethodDeclaration
);
10403
N(SyntaxKind.
MethodDeclaration
);
10524
N(SyntaxKind.
MethodDeclaration
);
10665
N(SyntaxKind.
MethodDeclaration
);
10822
N(SyntaxKind.
MethodDeclaration
);
10973
N(SyntaxKind.
MethodDeclaration
);
11154
N(SyntaxKind.
MethodDeclaration
);
11311
N(SyntaxKind.
MethodDeclaration
);
11506
N(SyntaxKind.
MethodDeclaration
);
11673
N(SyntaxKind.
MethodDeclaration
);
11816
N(SyntaxKind.
MethodDeclaration
);
11989
N(SyntaxKind.
MethodDeclaration
);
12149
N(SyntaxKind.
MethodDeclaration
);
12238
N(SyntaxKind.
MethodDeclaration
);
12327
N(SyntaxKind.
MethodDeclaration
);
13997
N(SyntaxKind.
MethodDeclaration
);
14189
N(SyntaxKind.
MethodDeclaration
);
14395
N(SyntaxKind.
MethodDeclaration
);
14631
N(SyntaxKind.
MethodDeclaration
);
14867
N(SyntaxKind.
MethodDeclaration
);
15105
N(SyntaxKind.
MethodDeclaration
);
15319
N(SyntaxKind.
MethodDeclaration
);
15571
N(SyntaxKind.
MethodDeclaration
);
15725
N(SyntaxKind.
MethodDeclaration
);
15903
N(SyntaxKind.
MethodDeclaration
);
16089
N(SyntaxKind.
MethodDeclaration
);
16291
N(SyntaxKind.
MethodDeclaration
);
16503
N(SyntaxKind.
MethodDeclaration
);
16689
N(SyntaxKind.
MethodDeclaration
);
Parsing\DeclarationParsingTests.cs (17)
2498
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
2544
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
2590
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
2693
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
2761
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
2808
Assert.Equal(SyntaxKind.
MethodDeclaration
, structDecl.Members[0].Kind());
2855
Assert.Equal(SyntaxKind.
MethodDeclaration
, structDecl.Members[0].Kind());
3007
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3059
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3120
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3185
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3259
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3324
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3376
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
3422
Assert.Equal(SyntaxKind.
MethodDeclaration
, cs.Members[0].Kind());
6559
N(SyntaxKind.
MethodDeclaration
);
8109
N(SyntaxKind.
MethodDeclaration
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (34)
107
N(SyntaxKind.
MethodDeclaration
);
224
N(SyntaxKind.
MethodDeclaration
);
289
N(SyntaxKind.
MethodDeclaration
);
419
N(SyntaxKind.
MethodDeclaration
);
499
N(SyntaxKind.
MethodDeclaration
);
640
N(SyntaxKind.
MethodDeclaration
);
720
N(SyntaxKind.
MethodDeclaration
);
930
N(SyntaxKind.
MethodDeclaration
);
1010
N(SyntaxKind.
MethodDeclaration
);
1141
N(SyntaxKind.
MethodDeclaration
);
1221
N(SyntaxKind.
MethodDeclaration
);
1334
N(SyntaxKind.
MethodDeclaration
);
1349
N(SyntaxKind.
MethodDeclaration
);
1446
N(SyntaxKind.
MethodDeclaration
);
1520
N(SyntaxKind.
MethodDeclaration
);
1650
N(SyntaxKind.
MethodDeclaration
);
1730
N(SyntaxKind.
MethodDeclaration
);
2039
N(SyntaxKind.
MethodDeclaration
);
2156
N(SyntaxKind.
MethodDeclaration
);
2221
N(SyntaxKind.
MethodDeclaration
);
2351
N(SyntaxKind.
MethodDeclaration
);
2431
N(SyntaxKind.
MethodDeclaration
);
2575
N(SyntaxKind.
MethodDeclaration
);
2655
N(SyntaxKind.
MethodDeclaration
);
2808
N(SyntaxKind.
MethodDeclaration
);
2888
N(SyntaxKind.
MethodDeclaration
);
3019
N(SyntaxKind.
MethodDeclaration
);
3108
N(SyntaxKind.
MethodDeclaration
);
3336
N(SyntaxKind.
MethodDeclaration
);
3425
N(SyntaxKind.
MethodDeclaration
);
3675
N(SyntaxKind.
MethodDeclaration
);
3764
N(SyntaxKind.
MethodDeclaration
);
3979
N(SyntaxKind.
MethodDeclaration
);
4068
N(SyntaxKind.
MethodDeclaration
);
Parsing\DeclarationScopeParsingTests.cs (24)
26
N(SyntaxKind.
MethodDeclaration
);
73
N(SyntaxKind.
MethodDeclaration
);
163
N(SyntaxKind.
MethodDeclaration
);
246
N(SyntaxKind.
MethodDeclaration
);
504
N(SyntaxKind.
MethodDeclaration
);
553
N(SyntaxKind.
MethodDeclaration
);
607
N(SyntaxKind.
MethodDeclaration
);
685
N(SyntaxKind.
MethodDeclaration
);
755
N(SyntaxKind.
MethodDeclaration
);
802
N(SyntaxKind.
MethodDeclaration
);
849
N(SyntaxKind.
MethodDeclaration
);
1301
N(SyntaxKind.
MethodDeclaration
);
1354
N(SyntaxKind.
MethodDeclaration
);
1422
N(SyntaxKind.
MethodDeclaration
);
1552
N(SyntaxKind.
MethodDeclaration
);
1623
N(SyntaxKind.
MethodDeclaration
);
1752
N(SyntaxKind.
MethodDeclaration
);
3040
N(SyntaxKind.
MethodDeclaration
);
3187
N(SyntaxKind.
MethodDeclaration
);
3390
N(SyntaxKind.
MethodDeclaration
);
3446
N(SyntaxKind.
MethodDeclaration
);
8161
N(SyntaxKind.
MethodDeclaration
);
8325
N(SyntaxKind.
MethodDeclaration
);
11619
N(SyntaxKind.
MethodDeclaration
);
Parsing\DeconstructionTests.cs (20)
56
N(SyntaxKind.
MethodDeclaration
);
130
N(SyntaxKind.
MethodDeclaration
);
208
N(SyntaxKind.
MethodDeclaration
);
284
N(SyntaxKind.
MethodDeclaration
);
372
N(SyntaxKind.
MethodDeclaration
);
456
N(SyntaxKind.
MethodDeclaration
);
531
N(SyntaxKind.
MethodDeclaration
);
607
N(SyntaxKind.
MethodDeclaration
);
699
N(SyntaxKind.
MethodDeclaration
);
789
N(SyntaxKind.
MethodDeclaration
);
902
N(SyntaxKind.
MethodDeclaration
);
979
N(SyntaxKind.
MethodDeclaration
);
1066
N(SyntaxKind.
MethodDeclaration
);
1140
N(SyntaxKind.
MethodDeclaration
);
1239
N(SyntaxKind.
MethodDeclaration
);
1337
N(SyntaxKind.
MethodDeclaration
);
1422
N(SyntaxKind.
MethodDeclaration
);
1515
N(SyntaxKind.
MethodDeclaration
);
1770
N(SyntaxKind.
MethodDeclaration
);
3393
N(SyntaxKind.
MethodDeclaration
);
Parsing\ExpressionParsingTests.cs (19)
3169
N(SyntaxKind.
MethodDeclaration
);
3269
N(SyntaxKind.
MethodDeclaration
);
3359
N(SyntaxKind.
MethodDeclaration
);
3433
N(SyntaxKind.
MethodDeclaration
);
3515
N(SyntaxKind.
MethodDeclaration
);
3594
N(SyntaxKind.
MethodDeclaration
);
3667
N(SyntaxKind.
MethodDeclaration
);
3752
N(SyntaxKind.
MethodDeclaration
);
3844
N(SyntaxKind.
MethodDeclaration
);
3934
N(SyntaxKind.
MethodDeclaration
);
4025
N(SyntaxKind.
MethodDeclaration
);
4112
N(SyntaxKind.
MethodDeclaration
);
4206
N(SyntaxKind.
MethodDeclaration
);
4303
N(SyntaxKind.
MethodDeclaration
);
4408
N(SyntaxKind.
MethodDeclaration
);
4509
N(SyntaxKind.
MethodDeclaration
);
4600
N(SyntaxKind.
MethodDeclaration
);
4693
N(SyntaxKind.
MethodDeclaration
);
6280
N(SyntaxKind.
MethodDeclaration
);
Parsing\FieldKeywordParsingTests.cs (1)
2425
N(SyntaxKind.
MethodDeclaration
);
Parsing\FileModifierParsingTests.cs (10)
751
N(SyntaxKind.
MethodDeclaration
);
816
N(SyntaxKind.
MethodDeclaration
);
1022
N(SyntaxKind.
MethodDeclaration
);
1206
N(SyntaxKind.
MethodDeclaration
);
2539
N(SyntaxKind.
MethodDeclaration
);
2631
N(SyntaxKind.
MethodDeclaration
);
2733
N(SyntaxKind.
MethodDeclaration
);
2827
N(SyntaxKind.
MethodDeclaration
);
3505
N(SyntaxKind.
MethodDeclaration
);
3569
N(SyntaxKind.
MethodDeclaration
);
Parsing\FunctionPointerTests.cs (1)
1718
N(SyntaxKind.
MethodDeclaration
);
Parsing\LambdaAttributeParsingTests.cs (6)
3798
N(SyntaxKind.
MethodDeclaration
);
3929
N(SyntaxKind.
MethodDeclaration
);
4042
N(SyntaxKind.
MethodDeclaration
);
4159
N(SyntaxKind.
MethodDeclaration
);
4308
N(SyntaxKind.
MethodDeclaration
);
4442
N(SyntaxKind.
MethodDeclaration
);
Parsing\LambdaParameterParsingTests.cs (5)
63
N(SyntaxKind.
MethodDeclaration
);
174
N(SyntaxKind.
MethodDeclaration
);
293
N(SyntaxKind.
MethodDeclaration
);
419
N(SyntaxKind.
MethodDeclaration
);
548
N(SyntaxKind.
MethodDeclaration
);
Parsing\LocalFunctionParsingTests.cs (31)
115
N(SyntaxKind.
MethodDeclaration
);
153
N(SyntaxKind.
MethodDeclaration
);
194
N(SyntaxKind.
MethodDeclaration
);
239
N(SyntaxKind.
MethodDeclaration
);
277
N(SyntaxKind.
MethodDeclaration
);
309
N(SyntaxKind.
MethodDeclaration
);
381
N(SyntaxKind.
MethodDeclaration
);
575
N(SyntaxKind.
MethodDeclaration
);
644
N(SyntaxKind.
MethodDeclaration
);
735
N(SyntaxKind.
MethodDeclaration
);
821
N(SyntaxKind.
MethodDeclaration
);
925
N(SyntaxKind.
MethodDeclaration
);
1005
N(SyntaxKind.
MethodDeclaration
);
1099
N(SyntaxKind.
MethodDeclaration
);
1229
.Where(n => n.Kind() == SyntaxKind.
MethodDeclaration
)
1412
N(SyntaxKind.
MethodDeclaration
);
1461
N(SyntaxKind.
MethodDeclaration
);
1509
N(SyntaxKind.
MethodDeclaration
);
1562
N(SyntaxKind.
MethodDeclaration
);
1611
N(SyntaxKind.
MethodDeclaration
);
1752
N(SyntaxKind.
MethodDeclaration
);
1867
N(SyntaxKind.
MethodDeclaration
);
2052
N(SyntaxKind.
MethodDeclaration
);
2148
N(SyntaxKind.
MethodDeclaration
);
2231
N(SyntaxKind.
MethodDeclaration
);
2321
N(SyntaxKind.
MethodDeclaration
);
2418
N(SyntaxKind.
MethodDeclaration
);
2587
N(SyntaxKind.
MethodDeclaration
);
2677
N(SyntaxKind.
MethodDeclaration
);
2910
N(SyntaxKind.
MethodDeclaration
);
3154
N(SyntaxKind.
MethodDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (73)
174
N(SyntaxKind.
MethodDeclaration
);
784
N(SyntaxKind.
MethodDeclaration
);
832
N(SyntaxKind.
MethodDeclaration
);
965
N(SyntaxKind.
MethodDeclaration
);
1012
N(SyntaxKind.
MethodDeclaration
);
1484
N(SyntaxKind.
MethodDeclaration
);
1511
N(SyntaxKind.
MethodDeclaration
);
8713
N(SyntaxKind.
MethodDeclaration
);
8771
N(SyntaxKind.
MethodDeclaration
);
8829
N(SyntaxKind.
MethodDeclaration
);
8898
N(SyntaxKind.
MethodDeclaration
);
8952
N(SyntaxKind.
MethodDeclaration
);
9014
N(SyntaxKind.
MethodDeclaration
);
9076
N(SyntaxKind.
MethodDeclaration
);
9118
N(SyntaxKind.
MethodDeclaration
);
9181
N(SyntaxKind.
MethodDeclaration
);
9373
N(SyntaxKind.
MethodDeclaration
);
10185
N(SyntaxKind.
MethodDeclaration
);
10233
N(SyntaxKind.
MethodDeclaration
);
10525
N(SyntaxKind.
MethodDeclaration
);
10610
N(SyntaxKind.
MethodDeclaration
);
10718
N(SyntaxKind.
MethodDeclaration
);
10843
N(SyntaxKind.
MethodDeclaration
);
11018
N(SyntaxKind.
MethodDeclaration
);
11192
N(SyntaxKind.
MethodDeclaration
);
11361
N(SyntaxKind.
MethodDeclaration
);
11384
N(SyntaxKind.
MethodDeclaration
);
11487
N(SyntaxKind.
MethodDeclaration
);
11811
N(SyntaxKind.
MethodDeclaration
);
12123
N(SyntaxKind.
MethodDeclaration
);
12193
N(SyntaxKind.
MethodDeclaration
);
12264
N(SyntaxKind.
MethodDeclaration
);
12355
N(SyntaxKind.
MethodDeclaration
);
12381
N(SyntaxKind.
MethodDeclaration
);
12432
N(SyntaxKind.
MethodDeclaration
);
12697
N(SyntaxKind.
MethodDeclaration
);
12781
N(SyntaxKind.
MethodDeclaration
);
12856
N(SyntaxKind.
MethodDeclaration
);
12939
N(SyntaxKind.
MethodDeclaration
);
13025
N(SyntaxKind.
MethodDeclaration
);
13109
N(SyntaxKind.
MethodDeclaration
);
13193
N(SyntaxKind.
MethodDeclaration
);
13272
N(SyntaxKind.
MethodDeclaration
);
13351
N(SyntaxKind.
MethodDeclaration
);
13438
N(SyntaxKind.
MethodDeclaration
);
13525
N(SyntaxKind.
MethodDeclaration
);
13616
N(SyntaxKind.
MethodDeclaration
);
13960
N(SyntaxKind.
MethodDeclaration
);
14039
N(SyntaxKind.
MethodDeclaration
);
14641
N(SyntaxKind.
MethodDeclaration
);
14716
N(SyntaxKind.
MethodDeclaration
);
14791
N(SyntaxKind.
MethodDeclaration
);
14874
N(SyntaxKind.
MethodDeclaration
);
14983
N(SyntaxKind.
MethodDeclaration
);
15117
N(SyntaxKind.
MethodDeclaration
);
15454
N(SyntaxKind.
MethodDeclaration
);
15533
N(SyntaxKind.
MethodDeclaration
);
15612
N(SyntaxKind.
MethodDeclaration
);
15695
N(SyntaxKind.
MethodDeclaration
);
15782
N(SyntaxKind.
MethodDeclaration
);
15879
N(SyntaxKind.
MethodDeclaration
);
15960
N(SyntaxKind.
MethodDeclaration
);
16057
N(SyntaxKind.
MethodDeclaration
);
16165
N(SyntaxKind.
MethodDeclaration
);
16318
N(SyntaxKind.
MethodDeclaration
);
16491
N(SyntaxKind.
MethodDeclaration
);
16603
N(SyntaxKind.
MethodDeclaration
);
16726
N(SyntaxKind.
MethodDeclaration
);
16907
N(SyntaxKind.
MethodDeclaration
);
17866
N(SyntaxKind.
MethodDeclaration
);
17921
N(SyntaxKind.
MethodDeclaration
);
18001
N(SyntaxKind.
MethodDeclaration
);
18093
N(SyntaxKind.
MethodDeclaration
);
Parsing\NameParsingTests.cs (5)
842
N(SyntaxKind.
MethodDeclaration
);
940
N(SyntaxKind.
MethodDeclaration
);
1062
N(SyntaxKind.
MethodDeclaration
);
1187
N(SyntaxKind.
MethodDeclaration
);
1337
N(SyntaxKind.
MethodDeclaration
);
Parsing\NullableParsingTests.cs (1)
1336
N(SyntaxKind.
MethodDeclaration
);
Parsing\ParserRegressionTests.cs (6)
271
N(SyntaxKind.
MethodDeclaration
);
364
N(SyntaxKind.
MethodDeclaration
);
498
N(SyntaxKind.
MethodDeclaration
);
588
N(SyntaxKind.
MethodDeclaration
);
678
N(SyntaxKind.
MethodDeclaration
);
766
N(SyntaxKind.
MethodDeclaration
);
Parsing\ParsingErrorRecoveryTests.cs (148)
96
N(SyntaxKind.
MethodDeclaration
);
114
N(SyntaxKind.
MethodDeclaration
);
1700
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1718
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1737
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1755
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1775
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1792
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1809
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1827
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1844
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1863
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1864
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
1882
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1883
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
1902
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1903
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
1921
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1922
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
1942
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1943
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
1960
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
1977
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
2229
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
2269
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
2290
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
2310
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
2332
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
3006
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
3024
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
3041
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3064
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3088
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3112
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3134
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3157
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3180
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3203
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3226
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3249
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3270
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3291
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3312
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3333
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3354
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3375
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3397
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3420
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3443
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3466
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3490
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3513
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3536
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3579
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3604
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3629
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3655
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3679
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3703
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3728
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3752
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3776
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3800
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3825
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3849
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3873
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3898
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3924
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3950
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
3977
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4002
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4027
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4053
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4074
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4119
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4140
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4161
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4182
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4204
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4226
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4249
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4272
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4293
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4316
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4339
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4365
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4387
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4413
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4440
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4461
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4484
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4509
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4534
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4556
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4581
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4607
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4634
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4661
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4689
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4716
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4743
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4772
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4801
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4831
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4860
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4889
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4916
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4943
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4970
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
4998
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5025
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5053
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5079
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5109
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5138
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5168
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5201
N(SyntaxKind.
MethodDeclaration
);
5313
N(SyntaxKind.
MethodDeclaration
);
5460
N(SyntaxKind.
MethodDeclaration
);
5573
N(SyntaxKind.
MethodDeclaration
);
5710
N(SyntaxKind.
MethodDeclaration
);
5821
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5860
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5889
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5918
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5948
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
5977
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6011
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6038
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6065
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6092
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6120
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6147
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6177
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6208
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6236
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6283
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6317
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6347
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6430
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
6455
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[1].Kind());
6630
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6675
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6719
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6768
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6816
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6863
Assert.Equal(SyntaxKind.
MethodDeclaration
, agg.Members[0].Kind());
6921
Assert.Equal(SyntaxKind.
MethodDeclaration
, subitem1.Kind());
Parsing\RecordParsing.cs (2)
705
N(SyntaxKind.
MethodDeclaration
);
1382
N(SyntaxKind.
MethodDeclaration
);
Parsing\RefFieldParsingTests.cs (1)
660
N(SyntaxKind.
MethodDeclaration
);
Parsing\RefReadonlyTests.cs (17)
512
N(SyntaxKind.
MethodDeclaration
);
555
N(SyntaxKind.
MethodDeclaration
);
599
N(SyntaxKind.
MethodDeclaration
);
642
N(SyntaxKind.
MethodDeclaration
);
686
N(SyntaxKind.
MethodDeclaration
);
730
N(SyntaxKind.
MethodDeclaration
);
775
N(SyntaxKind.
MethodDeclaration
);
819
N(SyntaxKind.
MethodDeclaration
);
863
N(SyntaxKind.
MethodDeclaration
);
907
N(SyntaxKind.
MethodDeclaration
);
961
N(SyntaxKind.
MethodDeclaration
);
1023
N(SyntaxKind.
MethodDeclaration
);
1085
N(SyntaxKind.
MethodDeclaration
);
1146
N(SyntaxKind.
MethodDeclaration
);
1198
N(SyntaxKind.
MethodDeclaration
);
1241
N(SyntaxKind.
MethodDeclaration
);
1287
N(SyntaxKind.
MethodDeclaration
);
Parsing\ScriptParsingTests.cs (53)
139
N(SyntaxKind.
MethodDeclaration
);
484
N(SyntaxKind.
MethodDeclaration
);
516
N(SyntaxKind.
MethodDeclaration
);
542
N(SyntaxKind.
MethodDeclaration
);
581
N(SyntaxKind.
MethodDeclaration
);
609
N(SyntaxKind.
MethodDeclaration
);
649
N(SyntaxKind.
MethodDeclaration
);
690
N(SyntaxKind.
MethodDeclaration
);
719
N(SyntaxKind.
MethodDeclaration
);
748
N(SyntaxKind.
MethodDeclaration
);
783
N(SyntaxKind.
MethodDeclaration
);
1260
N(SyntaxKind.
MethodDeclaration
);
1759
N(SyntaxKind.
MethodDeclaration
);
1919
N(SyntaxKind.
MethodDeclaration
);
2161
N(SyntaxKind.
MethodDeclaration
);
2179
N(SyntaxKind.
MethodDeclaration
);
2198
N(SyntaxKind.
MethodDeclaration
);
2229
N(SyntaxKind.
MethodDeclaration
);
2324
N(SyntaxKind.
MethodDeclaration
);
3269
N(SyntaxKind.
MethodDeclaration
);
3314
N(SyntaxKind.
MethodDeclaration
);
3365
N(SyntaxKind.
MethodDeclaration
);
3408
N(SyntaxKind.
MethodDeclaration
);
3459
N(SyntaxKind.
MethodDeclaration
);
3528
N(SyntaxKind.
MethodDeclaration
);
3586
N(SyntaxKind.
MethodDeclaration
);
3661
N(SyntaxKind.
MethodDeclaration
);
3705
N(SyntaxKind.
MethodDeclaration
);
3766
N(SyntaxKind.
MethodDeclaration
);
3810
N(SyntaxKind.
MethodDeclaration
);
3858
N(SyntaxKind.
MethodDeclaration
);
3906
N(SyntaxKind.
MethodDeclaration
);
3954
N(SyntaxKind.
MethodDeclaration
);
4019
N(SyntaxKind.
MethodDeclaration
);
4072
N(SyntaxKind.
MethodDeclaration
);
4116
N(SyntaxKind.
MethodDeclaration
);
4159
N(SyntaxKind.
MethodDeclaration
);
4203
N(SyntaxKind.
MethodDeclaration
);
4248
N(SyntaxKind.
MethodDeclaration
);
4291
N(SyntaxKind.
MethodDeclaration
);
4338
N(SyntaxKind.
MethodDeclaration
);
4389
N(SyntaxKind.
MethodDeclaration
);
4446
N(SyntaxKind.
MethodDeclaration
);
4505
N(SyntaxKind.
MethodDeclaration
);
8573
N(SyntaxKind.
MethodDeclaration
);
8614
N(SyntaxKind.
MethodDeclaration
);
8661
N(SyntaxKind.
MethodDeclaration
);
8710
N(SyntaxKind.
MethodDeclaration
);
8759
N(SyntaxKind.
MethodDeclaration
);
9248
N(SyntaxKind.
MethodDeclaration
);
9319
N(SyntaxKind.
MethodDeclaration
);
9376
N(SyntaxKind.
MethodDeclaration
);
9434
N(SyntaxKind.
MethodDeclaration
);
Parsing\StatementAttributeParsingTests.cs (85)
38
N(SyntaxKind.
MethodDeclaration
);
104
N(SyntaxKind.
MethodDeclaration
);
171
N(SyntaxKind.
MethodDeclaration
);
259
N(SyntaxKind.
MethodDeclaration
);
354
N(SyntaxKind.
MethodDeclaration
);
439
N(SyntaxKind.
MethodDeclaration
);
520
N(SyntaxKind.
MethodDeclaration
);
586
N(SyntaxKind.
MethodDeclaration
);
655
N(SyntaxKind.
MethodDeclaration
);
729
N(SyntaxKind.
MethodDeclaration
);
806
N(SyntaxKind.
MethodDeclaration
);
881
N(SyntaxKind.
MethodDeclaration
);
956
N(SyntaxKind.
MethodDeclaration
);
1034
N(SyntaxKind.
MethodDeclaration
);
1108
N(SyntaxKind.
MethodDeclaration
);
1210
N(SyntaxKind.
MethodDeclaration
);
1344
N(SyntaxKind.
MethodDeclaration
);
1420
N(SyntaxKind.
MethodDeclaration
);
1506
N(SyntaxKind.
MethodDeclaration
);
1590
N(SyntaxKind.
MethodDeclaration
);
1709
N(SyntaxKind.
MethodDeclaration
);
1779
N(SyntaxKind.
MethodDeclaration
);
1849
N(SyntaxKind.
MethodDeclaration
);
1919
N(SyntaxKind.
MethodDeclaration
);
2004
N(SyntaxKind.
MethodDeclaration
);
2101
N(SyntaxKind.
MethodDeclaration
);
2177
N(SyntaxKind.
MethodDeclaration
);
2253
N(SyntaxKind.
MethodDeclaration
);
2333
N(SyntaxKind.
MethodDeclaration
);
2430
N(SyntaxKind.
MethodDeclaration
);
2558
N(SyntaxKind.
MethodDeclaration
);
2662
N(SyntaxKind.
MethodDeclaration
);
2741
N(SyntaxKind.
MethodDeclaration
);
2826
N(SyntaxKind.
MethodDeclaration
);
2929
N(SyntaxKind.
MethodDeclaration
);
3014
N(SyntaxKind.
MethodDeclaration
);
3117
N(SyntaxKind.
MethodDeclaration
);
3196
N(SyntaxKind.
MethodDeclaration
);
3275
N(SyntaxKind.
MethodDeclaration
);
3358
N(SyntaxKind.
MethodDeclaration
);
3438
N(SyntaxKind.
MethodDeclaration
);
3520
N(SyntaxKind.
MethodDeclaration
);
3602
N(SyntaxKind.
MethodDeclaration
);
3692
N(SyntaxKind.
MethodDeclaration
);
3773
N(SyntaxKind.
MethodDeclaration
);
3847
N(SyntaxKind.
MethodDeclaration
);
3940
N(SyntaxKind.
MethodDeclaration
);
4023
N(SyntaxKind.
MethodDeclaration
);
4108
N(SyntaxKind.
MethodDeclaration
);
4193
N(SyntaxKind.
MethodDeclaration
);
4275
N(SyntaxKind.
MethodDeclaration
);
4352
N(SyntaxKind.
MethodDeclaration
);
4440
N(SyntaxKind.
MethodDeclaration
);
4529
N(SyntaxKind.
MethodDeclaration
);
4626
N(SyntaxKind.
MethodDeclaration
);
4704
N(SyntaxKind.
MethodDeclaration
);
4779
N(SyntaxKind.
MethodDeclaration
);
4874
N(SyntaxKind.
MethodDeclaration
);
4973
N(SyntaxKind.
MethodDeclaration
);
5050
N(SyntaxKind.
MethodDeclaration
);
5122
N(SyntaxKind.
MethodDeclaration
);
5210
N(SyntaxKind.
MethodDeclaration
);
5288
N(SyntaxKind.
MethodDeclaration
);
5374
N(SyntaxKind.
MethodDeclaration
);
5451
N(SyntaxKind.
MethodDeclaration
);
5536
N(SyntaxKind.
MethodDeclaration
);
5645
N(SyntaxKind.
MethodDeclaration
);
5745
N(SyntaxKind.
MethodDeclaration
);
5851
N(SyntaxKind.
MethodDeclaration
);
5950
N(SyntaxKind.
MethodDeclaration
);
6046
N(SyntaxKind.
MethodDeclaration
);
6138
N(SyntaxKind.
MethodDeclaration
);
6216
N(SyntaxKind.
MethodDeclaration
);
6308
N(SyntaxKind.
MethodDeclaration
);
6386
N(SyntaxKind.
MethodDeclaration
);
6465
N(SyntaxKind.
MethodDeclaration
);
6552
N(SyntaxKind.
MethodDeclaration
);
6657
N(SyntaxKind.
MethodDeclaration
);
6796
N(SyntaxKind.
MethodDeclaration
);
6890
N(SyntaxKind.
MethodDeclaration
);
6976
N(SyntaxKind.
MethodDeclaration
);
7059
N(SyntaxKind.
MethodDeclaration
);
7150
N(SyntaxKind.
MethodDeclaration
);
7251
N(SyntaxKind.
MethodDeclaration
);
7359
N(SyntaxKind.
MethodDeclaration
);
Parsing\StatementParsingTests.cs (6)
2704
N(SyntaxKind.
MethodDeclaration
);
4309
N(SyntaxKind.
MethodDeclaration
);
4446
N(SyntaxKind.
MethodDeclaration
);
4610
N(SyntaxKind.
MethodDeclaration
);
5832
N(SyntaxKind.
MethodDeclaration
);
5926
N(SyntaxKind.
MethodDeclaration
);
Parsing\SwitchExpressionParsingTests.cs (20)
499
N(SyntaxKind.
MethodDeclaration
);
584
N(SyntaxKind.
MethodDeclaration
);
673
N(SyntaxKind.
MethodDeclaration
);
756
N(SyntaxKind.
MethodDeclaration
);
835
N(SyntaxKind.
MethodDeclaration
);
923
N(SyntaxKind.
MethodDeclaration
);
1018
N(SyntaxKind.
MethodDeclaration
);
1100
N(SyntaxKind.
MethodDeclaration
);
1179
N(SyntaxKind.
MethodDeclaration
);
1273
N(SyntaxKind.
MethodDeclaration
);
1380
N(SyntaxKind.
MethodDeclaration
);
1475
N(SyntaxKind.
MethodDeclaration
);
1554
N(SyntaxKind.
MethodDeclaration
);
1637
N(SyntaxKind.
MethodDeclaration
);
1714
N(SyntaxKind.
MethodDeclaration
);
1788
N(SyntaxKind.
MethodDeclaration
);
1864
N(SyntaxKind.
MethodDeclaration
);
1940
N(SyntaxKind.
MethodDeclaration
);
2020
N(SyntaxKind.
MethodDeclaration
);
2106
N(SyntaxKind.
MethodDeclaration
);
Parsing\TopLevelStatementsParsingTests.cs (1)
1264
N(SyntaxKind.
MethodDeclaration
);
Parsing\TypeArgumentListParsingTests.cs (21)
46
N(SyntaxKind.
MethodDeclaration
);
162
N(SyntaxKind.
MethodDeclaration
);
290
N(SyntaxKind.
MethodDeclaration
);
423
N(SyntaxKind.
MethodDeclaration
);
571
N(SyntaxKind.
MethodDeclaration
);
716
N(SyntaxKind.
MethodDeclaration
);
1031
N(SyntaxKind.
MethodDeclaration
);
1170
N(SyntaxKind.
MethodDeclaration
);
1312
N(SyntaxKind.
MethodDeclaration
);
1445
N(SyntaxKind.
MethodDeclaration
);
1565
N(SyntaxKind.
MethodDeclaration
);
1669
N(SyntaxKind.
MethodDeclaration
);
1770
N(SyntaxKind.
MethodDeclaration
);
1892
N(SyntaxKind.
MethodDeclaration
);
2025
N(SyntaxKind.
MethodDeclaration
);
2159
N(SyntaxKind.
MethodDeclaration
);
2290
N(SyntaxKind.
MethodDeclaration
);
2391
N(SyntaxKind.
MethodDeclaration
);
2500
N(SyntaxKind.
MethodDeclaration
);
2602
N(SyntaxKind.
MethodDeclaration
);
2720
N(SyntaxKind.
MethodDeclaration
);
Parsing\UsingDirectiveParsingTests.cs (11)
2130
N(SyntaxKind.
MethodDeclaration
);
2204
N(SyntaxKind.
MethodDeclaration
);
2281
N(SyntaxKind.
MethodDeclaration
);
2358
N(SyntaxKind.
MethodDeclaration
);
2434
N(SyntaxKind.
MethodDeclaration
);
2517
N(SyntaxKind.
MethodDeclaration
);
2612
N(SyntaxKind.
MethodDeclaration
);
2742
N(SyntaxKind.
MethodDeclaration
);
2866
N(SyntaxKind.
MethodDeclaration
);
2984
N(SyntaxKind.
MethodDeclaration
);
3082
N(SyntaxKind.
MethodDeclaration
);
Parsing\ValueTupleTests.cs (4)
43
N(SyntaxKind.
MethodDeclaration
);
126
N(SyntaxKind.
MethodDeclaration
);
450
N(SyntaxKind.
MethodDeclaration
);
522
N(SyntaxKind.
MethodDeclaration
);
Syntax\SyntaxNodeTests.cs (3)
825
Assert.Equal(SyntaxKind.
MethodDeclaration
, m1.Kind());
826
Assert.Equal(SyntaxKind.
MethodDeclaration
, m2.Kind());
2002
Assert.Equal(SyntaxKind.
MethodDeclaration
, tree.GetCompilationUnitRoot().ChildNodesAndTokens()[0].ChildNodesAndTokens()[3].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (29)
CodeGeneration\CSharpSyntaxGenerator.cs (13)
247
modifiers: AsModifierList(accessibility, modifiers, SyntaxKind.
MethodDeclaration
),
628
SyntaxKind.
MethodDeclaration
=> ((MethodDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier),
649
case SyntaxKind.
MethodDeclaration
:
816
case SyntaxKind.
MethodDeclaration
:
1057
case SyntaxKind.
MethodDeclaration
:
1559
case SyntaxKind.
MethodDeclaration
:
1968
case SyntaxKind.
MethodDeclaration
:
2008
SyntaxKind.
MethodDeclaration
=> ((MethodDeclarationSyntax)declaration).WithReturnType((TypeSyntax)type),
2232
case SyntaxKind.
MethodDeclaration
:
2299
case SyntaxKind.
MethodDeclaration
:
2355
case SyntaxKind.
MethodDeclaration
:
2482
SyntaxKind.
MethodDeclaration
=> ((MethodDeclarationSyntax)declaration).Body?.Statements,
2508
case SyntaxKind.
MethodDeclaration
:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
350
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ILocalSymbolExtensions.cs (1)
17
.FirstOrDefault(node => node.Kind() is SyntaxKind.LocalFunctionStatement or SyntaxKind.
MethodDeclaration
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
51
case SyntaxKind.
MethodDeclaration
:
82
case SyntaxKind.
MethodDeclaration
:
104
case SyntaxKind.
MethodDeclaration
:
122
case SyntaxKind.
MethodDeclaration
:
146
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
254
or SyntaxKind.
MethodDeclaration
278
or SyntaxKind.
MethodDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
432
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
69
case SyntaxKind.
MethodDeclaration
:
170
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1274
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
770
case SyntaxKind.
MethodDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
24
{ SyntaxKind.
MethodDeclaration
, 7 },
117
case SyntaxKind.
MethodDeclaration
:
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SyntaxPathTests.cs (5)
163
Assert.Equal(SyntaxKind.
MethodDeclaration
, n1.Kind());
166
Assert.Equal(SyntaxKind.
MethodDeclaration
, n2.Kind());
169
Assert.Equal(SyntaxKind.
MethodDeclaration
, n3.Kind());
231
Assert.Equal(SyntaxKind.
MethodDeclaration
, n1.Kind());
234
Assert.Equal(SyntaxKind.
MethodDeclaration
, n2.Kind());
Microsoft.Gen.Metrics (1)
Parser.cs (1)
81
foreach (var memberSyntax in typeDeclaration.Members.Where(x => x.IsKind(SyntaxKind.
MethodDeclaration
)))
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
81
foreach (var memberSyntax in typeDeclaration.Members.Where(x => x.IsKind(SyntaxKind.
MethodDeclaration
)))
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\AddMarshalAsToElementFixer.cs (1)
58
if (node.IsKind(SyntaxKind.
MethodDeclaration
))
ComInterfaceGenerator.cs (1)
369
var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.NewKeyword))).StripAccessibilityModifiers(), SyntaxKind.
MethodDeclaration
, syntax.Identifier, syntax.TypeParameterList);
VtableIndexStubGenerator.cs (1)
286
var methodSyntaxTemplate = new ContainingSyntax(syntax.Modifiers.StripAccessibilityModifiers(), SyntaxKind.
MethodDeclaration
, syntax.Identifier, syntax.TypeParameterList);
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
206
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.
MethodDeclaration
, originalSyntax.Identifier, originalSyntax.TypeParameterList);
JSImportGenerator.cs (1)
186
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.
MethodDeclaration
, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
310
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.
MethodDeclaration
, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
216
var methodSyntaxTemplate = new ContainingSyntax(originalSyntax.Modifiers, SyntaxKind.
MethodDeclaration
, originalSyntax.Identifier, originalSyntax.TypeParameterList);
Microsoft.ML.InternalCodeAnalyzer (3)
ContractsCheckAnalyzer.cs (1)
164
while (node != null && !node.IsKind(SyntaxKind.
MethodDeclaration
) && !node.IsKind(SyntaxKind.ConstructorDeclaration))
ContractsCheckNameofFixProvider.cs (1)
108
while (temp != null && !temp.IsKind(SyntaxKind.
MethodDeclaration
) && !temp.IsKind(SyntaxKind.ConstructorDeclaration))
NameAnalyzer.cs (1)
85
context.RegisterSyntaxNodeAction(AnalyzeMethod, SyntaxKind.
MethodDeclaration
);
Microsoft.VisualStudio.LanguageServices.CSharp (15)
CodeModel\CSharpCodeModelService.cs (8)
104
case SyntaxKind.
MethodDeclaration
:
159
case SyntaxKind.
MethodDeclaration
:
556
case SyntaxKind.
MethodDeclaration
:
609
case SyntaxKind.
MethodDeclaration
:
810
case SyntaxKind.
MethodDeclaration
:
891
case SyntaxKind.
MethodDeclaration
:
3506
case SyntaxKind.
MethodDeclaration
:
3603
if (node == null || node.Kind() != SyntaxKind.
MethodDeclaration
||
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
50
case SyntaxKind.
MethodDeclaration
:
101
case SyntaxKind.
MethodDeclaration
:
394
case SyntaxKind.
MethodDeclaration
:
957
case SyntaxKind.
MethodDeclaration
:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
202
case SyntaxKind.
MethodDeclaration
:
Progression\CSharpProgressionLanguageService.cs (1)
71
SyntaxKind.
MethodDeclaration
or
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
28
currentToken.Parent.Parent.Kind() == SyntaxKind.
MethodDeclaration
)