136 references to DelegateDeclaration
Microsoft.CodeAnalysis.CSharp (18)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
1260
else if (memberKind == SyntaxKind.
DelegateDeclaration
)
1316
else if (memberSyntax.Kind() == SyntaxKind.
DelegateDeclaration
)
Compilation\SyntaxTreeSemanticModel.cs (1)
1656
case SyntaxKind.
DelegateDeclaration
:
CSharpDeclarationComputer.cs (1)
159
case SyntaxKind.
DelegateDeclaration
:
Declarations\DeclarationKind.cs (1)
42
case SyntaxKind.
DelegateDeclaration
: return DeclarationKind.Delegate;
Declarations\DeclarationTreeBuilder.cs (1)
943
case SyntaxKind.
DelegateDeclaration
:
Declarations\MergedTypeDeclaration.cs (1)
84
case SyntaxKind.
DelegateDeclaration
:
Parser\LanguageParser.cs (3)
628
case SyntaxKind.
DelegateDeclaration
:
2074
case SyntaxKind.
DelegateDeclaration
:
4822
case SyntaxKind.
DelegateDeclaration
:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3379
case SyntaxKind.
DelegateDeclaration
:
Symbols\Source\SourceNamedTypeSymbol.cs (4)
122
case SyntaxKind.
DelegateDeclaration
:
174
case SyntaxKind.
DelegateDeclaration
:
186
bool isInterfaceOrDelegate = typeKind == SyntaxKind.InterfaceDeclaration || typeKind == SyntaxKind.
DelegateDeclaration
;
481
case SyntaxKind.
DelegateDeclaration
:
Syntax\SyntaxExtensions.cs (1)
246
case SyntaxKind.
DelegateDeclaration
:
Syntax\SyntaxFacts.cs (1)
181
case
DelegateDeclaration
:
Syntax\SyntaxKindFacts.cs (1)
354
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
CSharpAccessibilityFacts.cs (2)
36
case SyntaxKind.
DelegateDeclaration
:
167
case SyntaxKind.
DelegateDeclaration
:
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
71
SyntaxKind.
DelegateDeclaration
or
MemberDeclarationSyntaxExtensions.cs (5)
41
case SyntaxKind.
DelegateDeclaration
:
80
case SyntaxKind.
DelegateDeclaration
:
102
case SyntaxKind.
DelegateDeclaration
:
120
case SyntaxKind.
DelegateDeclaration
:
144
case SyntaxKind.
DelegateDeclaration
:
SemanticModelExtensions.cs (2)
252
if (type.IsParentKind(SyntaxKind.
DelegateDeclaration
) ||
275
if (type.Parent.Parent.IsParentKind(SyntaxKind.
DelegateDeclaration
) ||
SyntaxNodeExtensions.cs (1)
161
SyntaxKind.
DelegateDeclaration
=> ((DelegateDeclarationSyntax)declaration).ParameterList,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
CSharpCodeGenerationService.cs (1)
766
case SyntaxKind.
DelegateDeclaration
:
CSharpDeclarationComparer.cs (2)
33
{ SyntaxKind.
DelegateDeclaration
, 16 }
103
case SyntaxKind.
DelegateDeclaration
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
21
node.IsParentKind(SyntaxKind.
DelegateDeclaration
))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1147
token.Parent.IsKind(SyntaxKind.
DelegateDeclaration
))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
250
if (currentNode.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.
DelegateDeclaration
or SyntaxKind.ArrowExpressionClause)
344
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleEqualityTests.cs (2)
1430
.Where(e => e.Kind() == SyntaxKind.
DelegateDeclaration
);
1485
.Where(e => e.Kind() == SyntaxKind.
DelegateDeclaration
);
Microsoft.CodeAnalysis.CSharp.Features (17)
ChangeSignature\CSharpChangeSignatureService.cs (5)
43
SyntaxKind.
DelegateDeclaration
,
72
SyntaxKind.
DelegateDeclaration
,
89
SyntaxKind.
DelegateDeclaration
,
270
case SyntaxKind.
DelegateDeclaration
:
294
updatedNode.IsKind(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
))
CSharpDeclarationComputer.cs (1)
159
case SyntaxKind.
DelegateDeclaration
:
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
71
SyntaxKind.
DelegateDeclaration
or
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
46
SyntaxKind.
DelegateDeclaration
or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
60
case SyntaxKind.
DelegateDeclaration
:
128
SyntaxKind.
DelegateDeclaration
or
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
1627
case SyntaxKind.
DelegateDeclaration
:
2001
case SyntaxKind.
DelegateDeclaration
:
EditAndContinue\SyntaxComparer.cs (2)
600
case SyntaxKind.
DelegateDeclaration
:
1426
case SyntaxKind.
DelegateDeclaration
:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
172
case SyntaxKind.
DelegateDeclaration
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
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());
8376
N(SyntaxKind.
DelegateDeclaration
);
Parsing\DeclarationScopeParsingTests.cs (4)
11631
N(SyntaxKind.
DelegateDeclaration
);
11696
N(SyntaxKind.
DelegateDeclaration
);
11747
N(SyntaxKind.
DelegateDeclaration
);
11816
N(SyntaxKind.
DelegateDeclaration
);
Parsing\FileModifierParsingTests.cs (1)
596
N(SyntaxKind.
DelegateDeclaration
);
Parsing\FunctionPointerTests.cs (1)
2219
N(SyntaxKind.
DelegateDeclaration
);
Parsing\MemberDeclarationParsingTests.cs (1)
9313
N(SyntaxKind.
DelegateDeclaration
);
Parsing\ParsingErrorRecoveryTests.cs (21)
1846
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2185
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2203
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2220
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2236
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2251
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2267
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2282
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2296
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2313
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2332
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2350
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2367
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2383
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2400
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2416
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2431
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2449
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2463
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2478
Assert.Equal(SyntaxKind.
DelegateDeclaration
, file.Members[0].Kind());
2492
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 (23)
CodeGeneration\CSharpSyntaxGenerator.cs (7)
150
case SyntaxKind.
DelegateDeclaration
:
904
AsModifierList(accessibility, modifiers, SyntaxKind.
DelegateDeclaration
),
1049
case SyntaxKind.
DelegateDeclaration
:
1541
case SyntaxKind.
DelegateDeclaration
:
1951
case SyntaxKind.
DelegateDeclaration
:
1992
SyntaxKind.
DelegateDeclaration
=> ((DelegateDeclarationSyntax)declaration).WithReturnType((TypeSyntax)type),
2215
case SyntaxKind.
DelegateDeclaration
:
CSharpAccessibilityFacts.cs (2)
36
case SyntaxKind.
DelegateDeclaration
:
167
case SyntaxKind.
DelegateDeclaration
:
CSharpCodeGenerationService.cs (1)
766
case SyntaxKind.
DelegateDeclaration
:
CSharpDeclarationComparer.cs (2)
33
{ SyntaxKind.
DelegateDeclaration
, 16 }
103
case SyntaxKind.
DelegateDeclaration
:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
294
case SyntaxKind.
DelegateDeclaration
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
161
SyntaxKind.
DelegateDeclaration
=> ((DelegateDeclarationSyntax)declaration).ParameterList,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
21
node.IsParentKind(SyntaxKind.
DelegateDeclaration
))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1147
token.Parent.IsKind(SyntaxKind.
DelegateDeclaration
))
MemberDeclarationSyntaxExtensions.cs (5)
41
case SyntaxKind.
DelegateDeclaration
:
80
case SyntaxKind.
DelegateDeclaration
:
102
case SyntaxKind.
DelegateDeclaration
:
120
case SyntaxKind.
DelegateDeclaration
:
144
case SyntaxKind.
DelegateDeclaration
:
SemanticModelExtensions.cs (2)
252
if (type.IsParentKind(SyntaxKind.
DelegateDeclaration
) ||
275
if (type.Parent.Parent.IsParentKind(SyntaxKind.
DelegateDeclaration
) ||
Microsoft.VisualStudio.LanguageServices.CSharp (12)
CodeModel\CSharpCodeModelService.cs (8)
96
case SyntaxKind.
DelegateDeclaration
:
222
case SyntaxKind.
DelegateDeclaration
:
557
case SyntaxKind.
DelegateDeclaration
:
609
case SyntaxKind.
DelegateDeclaration
:
811
case SyntaxKind.
DelegateDeclaration
:
892
case SyntaxKind.
DelegateDeclaration
:
3505
case SyntaxKind.
DelegateDeclaration
:
3535
|| node.IsKind(SyntaxKind.
DelegateDeclaration
);
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
66
case SyntaxKind.
DelegateDeclaration
:
117
case SyntaxKind.
DelegateDeclaration
:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
187
case SyntaxKind.
DelegateDeclaration
:
Progression\CSharpProgressionLanguageService.cs (1)
72
SyntaxKind.
DelegateDeclaration
or