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