132 references to DelegateDeclaration
Microsoft.CodeAnalysis.CSharp (18)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
1285
else if (memberKind == SyntaxKind.
DelegateDeclaration
)
1341
else if (memberSyntax.Kind() == SyntaxKind.
DelegateDeclaration
)
Compilation\SyntaxTreeSemanticModel.cs (1)
1650
case SyntaxKind.
DelegateDeclaration
:
Declarations\DeclarationKind.cs (1)
42
case SyntaxKind.
DelegateDeclaration
: return DeclarationKind.Delegate;
Declarations\DeclarationTreeBuilder.cs (1)
1094
case SyntaxKind.
DelegateDeclaration
:
Declarations\MergedTypeDeclaration.cs (1)
84
case SyntaxKind.
DelegateDeclaration
:
Parser\LanguageParser.cs (3)
796
case SyntaxKind.
DelegateDeclaration
:
2390
case SyntaxKind.
DelegateDeclaration
:
5125
case SyntaxKind.
DelegateDeclaration
:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
159
case SyntaxKind.
DelegateDeclaration
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3525
case SyntaxKind.
DelegateDeclaration
:
Symbols\Source\SourceNamedTypeSymbol.cs (4)
115
case SyntaxKind.
DelegateDeclaration
:
167
case SyntaxKind.
DelegateDeclaration
:
179
bool isInterfaceOrDelegate = typeKind == SyntaxKind.InterfaceDeclaration || typeKind == SyntaxKind.
DelegateDeclaration
;
476
case SyntaxKind.
DelegateDeclaration
:
Syntax\SyntaxExtensions.cs (1)
246
case SyntaxKind.
DelegateDeclaration
:
Syntax\SyntaxFacts.cs (1)
181
case
DelegateDeclaration
:
Syntax\SyntaxKindFacts.cs (1)
382
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
70
SyntaxKind.
DelegateDeclaration
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
41
case SyntaxKind.
DelegateDeclaration
:
80
case SyntaxKind.
DelegateDeclaration
:
102
case SyntaxKind.
DelegateDeclaration
:
120
case SyntaxKind.
DelegateDeclaration
:
144
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
253
is SyntaxKind.
DelegateDeclaration
277
is SyntaxKind.
DelegateDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
36
case SyntaxKind.
DelegateDeclaration
:
167
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
762
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
33
{ SyntaxKind.
DelegateDeclaration
, 16 }
103
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1171
token.Parent.IsKind(SyntaxKind.
DelegateDeclaration
))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
258
if (currentNode.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.
DelegateDeclaration
or SyntaxKind.ArrowExpressionClause)
368
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleEqualityTests.cs (2)
1409
.Where(e => e.Kind() == SyntaxKind.
DelegateDeclaration
);
1464
.Where(e => e.Kind() == SyntaxKind.
DelegateDeclaration
);
Microsoft.CodeAnalysis.CSharp.Features (15)
ChangeSignature\CSharpChangeSignatureService.cs (5)
46
SyntaxKind.
DelegateDeclaration
,
79
SyntaxKind.
DelegateDeclaration
,
98
SyntaxKind.
DelegateDeclaration
,
280
case SyntaxKind.
DelegateDeclaration
:
304
or SyntaxKind.
DelegateDeclaration
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
144
if (token.Parent.IsKind(SyntaxKind.
DelegateDeclaration
) &&
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
59
token.Parent.IsParentKind(SyntaxKind.
DelegateDeclaration
))
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
47
SyntaxKind.
DelegateDeclaration
or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
58
case SyntaxKind.
DelegateDeclaration
:
126
SyntaxKind.
DelegateDeclaration
or
EditAndContinue\SyntaxComparer.cs (2)
609
case SyntaxKind.
DelegateDeclaration
:
1435
case SyntaxKind.
DelegateDeclaration
:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
172
case SyntaxKind.
DelegateDeclaration
:
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
70
SyntaxKind.
DelegateDeclaration
or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
159
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (47)
Parsing\AsyncParsingTests.cs (1)
1206
N(SyntaxKind.
DelegateDeclaration
);
Parsing\DeclarationParsingTests.cs (14)
2003
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2030
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2058
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2105
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2151
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2186
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2221
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2263
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2299
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2335
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2372
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2405
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2456
Assert.Equal(SyntaxKind.
DelegateDeclaration
, cs.Members[0].Kind());
8281
N(SyntaxKind.
DelegateDeclaration
);
Parsing\DeclarationScopeParsingTests.cs (4)
11297
N(SyntaxKind.
DelegateDeclaration
);
11362
N(SyntaxKind.
DelegateDeclaration
);
11413
N(SyntaxKind.
DelegateDeclaration
);
11482
N(SyntaxKind.
DelegateDeclaration
);
Parsing\FileModifierParsingTests.cs (1)
596
N(SyntaxKind.
DelegateDeclaration
);
Parsing\FunctionPointerTests.cs (1)
2219
N(SyntaxKind.
DelegateDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (2)
9302
N(SyntaxKind.
DelegateDeclaration
);
12178
N(SyntaxKind.
DelegateDeclaration
);
Parsing\ParsingErrorRecoveryTests.cs (21)
2008
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2347
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2365
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2382
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2398
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2413
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2429
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2444
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2458
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2475
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2494
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2512
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2529
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2545
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2562
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2578
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2593
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2611
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2625
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2640
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2654
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
Parsing\ScriptParsingTests.cs (2)
1498
N(SyntaxKind.
DelegateDeclaration
);
2438
N(SyntaxKind.
DelegateDeclaration
);
Parsing\TopLevelStatementsParsingTests.cs (1)
1014
N(SyntaxKind.
DelegateDeclaration
);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (7)
146
case SyntaxKind.
DelegateDeclaration
:
939
AsModifierList(accessibility, modifiers, SyntaxKind.
DelegateDeclaration
),
1059
case SyntaxKind.
DelegateDeclaration
:
1548
case SyntaxKind.
DelegateDeclaration
:
1965
case SyntaxKind.
DelegateDeclaration
:
2006
SyntaxKind.
DelegateDeclaration
=> ((DelegateDeclarationSyntax)declaration).WithReturnType((TypeSyntax)type),
2229
case SyntaxKind.
DelegateDeclaration
:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
293
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (5)
41
case SyntaxKind.
DelegateDeclaration
:
80
case SyntaxKind.
DelegateDeclaration
:
102
case SyntaxKind.
DelegateDeclaration
:
120
case SyntaxKind.
DelegateDeclaration
:
144
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
253
is SyntaxKind.
DelegateDeclaration
277
is SyntaxKind.
DelegateDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
36
case SyntaxKind.
DelegateDeclaration
:
167
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
762
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
33
{ SyntaxKind.
DelegateDeclaration
, 16 }
103
case SyntaxKind.
DelegateDeclaration
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1171
token.Parent.IsKind(SyntaxKind.
DelegateDeclaration
))
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CodeModel\CSharpCodeModelService.cs (8)
97
case SyntaxKind.
DelegateDeclaration
:
223
case SyntaxKind.
DelegateDeclaration
:
554
case SyntaxKind.
DelegateDeclaration
:
606
case SyntaxKind.
DelegateDeclaration
:
808
case SyntaxKind.
DelegateDeclaration
:
889
case SyntaxKind.
DelegateDeclaration
:
3499
case SyntaxKind.
DelegateDeclaration
:
3530
or SyntaxKind.
DelegateDeclaration
;
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
65
case SyntaxKind.
DelegateDeclaration
:
116
case SyntaxKind.
DelegateDeclaration
:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
186
case SyntaxKind.
DelegateDeclaration
:
Progression\CSharpProgressionLanguageService.cs (1)
66
SyntaxKind.
DelegateDeclaration
or
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
274
case SyntaxKind.
DelegateDeclaration
: