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