157 references to InterfaceDeclaration
Microsoft.CodeAnalysis.CSharp (20)
Compilation\SyntaxTreeSemanticModel.cs (1)
1653case SyntaxKind.InterfaceDeclaration:
Declarations\DeclarationKind.cs (1)
36case SyntaxKind.InterfaceDeclaration: return DeclarationKind.Interface;
Declarations\DeclarationTreeBuilder.cs (3)
731else if (node.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration or SyntaxKind.InterfaceDeclaration) 735if (node.Kind() is SyntaxKind.InterfaceDeclaration) 1088case SyntaxKind.InterfaceDeclaration:
Declarations\MergedTypeDeclaration.cs (1)
78case SyntaxKind.InterfaceDeclaration:
Parser\LanguageParser.cs (3)
795case SyntaxKind.InterfaceDeclaration: 2388case SyntaxKind.InterfaceDeclaration: 5121case SyntaxKind.InterfaceDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
122goto case SyntaxKind.InterfaceDeclaration; 124case SyntaxKind.InterfaceDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3539case SyntaxKind.InterfaceDeclaration:
Symbols\Source\SourceNamedTypeSymbol.cs (4)
118case SyntaxKind.InterfaceDeclaration: 161case SyntaxKind.InterfaceDeclaration: 179bool isInterfaceOrDelegate = typeKind == SyntaxKind.InterfaceDeclaration || typeKind == SyntaxKind.DelegateDeclaration; 470case SyntaxKind.InterfaceDeclaration:
Syntax\SyntaxKindFacts.cs (2)
381case SyntaxKind.InterfaceDeclaration: 840return SyntaxKind.InterfaceDeclaration;
Syntax\TypeDeclarationSyntax.cs (2)
75case SyntaxKind.InterfaceDeclaration: 127case SyntaxKind.InterfaceDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
69SyntaxKind.InterfaceDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
37case SyntaxKind.InterfaceDeclaration: 76case SyntaxKind.InterfaceDeclaration: 98case SyntaxKind.InterfaceDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
34case SyntaxKind.InterfaceDeclaration: 163case SyntaxKind.InterfaceDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
159public int InterfaceDeclaration => (int)SyntaxKind.InterfaceDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
235SyntaxKind.InterfaceDeclaration => CodeGenerationDestination.InterfaceType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
28{ SyntaxKind.InterfaceDeclaration, 11 }, 135case SyntaxKind.InterfaceDeclaration: 347if (node.Kind() == SyntaxKind.InterfaceDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
171case SyntaxKind.InterfaceDeclaration: 210namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
618if (node?.Parent is TypeDeclarationSyntax(SyntaxKind.InterfaceDeclaration) typeDecl)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
71SyntaxKind.InterfaceDeclaration, 81SyntaxKind.InterfaceDeclaration, 90SyntaxKind.InterfaceDeclaration, 117SyntaxKind.InterfaceDeclaration,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
517&& !baseMethodDeclarationNode.IsParentKind(SyntaxKind.InterfaceDeclaration);
CompleteStatement\CompleteStatementCommandHandler.cs (2)
276method.IsParentKind(SyntaxKind.InterfaceDeclaration)) 376case SyntaxKind.InterfaceDeclaration:
Microsoft.CodeAnalysis.CSharp.Features (13)
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
152SyntaxKind.InterfaceDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration;
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
46SyntaxKind.InterfaceDeclaration or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
55case SyntaxKind.InterfaceDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
323case SyntaxKind.InterfaceDeclaration: 590case SyntaxKind.InterfaceDeclaration: 1427case SyntaxKind.InterfaceDeclaration:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
244if (!typeDecl.IsKind(SyntaxKind.InterfaceDeclaration))
GenerateType\CSharpGenerateTypeService.cs (2)
105SyntaxKind.InterfaceDeclaration or 669if (baseList.Parent.Kind() is SyntaxKind.InterfaceDeclaration or SyntaxKind.StructDeclaration or SyntaxKind.RecordStructDeclaration)
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
169case SyntaxKind.InterfaceDeclaration:
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
69SyntaxKind.InterfaceDeclaration or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
122goto case SyntaxKind.InterfaceDeclaration; 124case SyntaxKind.InterfaceDeclaration:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (55)
IncrementalParsing\IncrementalParsingTests.cs (1)
193SyntaxKind.InterfaceDeclaration,
Parsing\AsyncParsingTests.cs (3)
1452N(SyntaxKind.InterfaceDeclaration); 2488N(SyntaxKind.InterfaceDeclaration); 2537N(SyntaxKind.InterfaceDeclaration);
Parsing\DeclarationParsingTests.cs (27)
1603Assert.Equal(SyntaxKind.InterfaceDeclaration, file.Members[0].Kind()); 1628Assert.Equal(SyntaxKind.InterfaceDeclaration, file.Members[0].Kind()); 1658Assert.Equal(SyntaxKind.InterfaceDeclaration, file.Members[0].Kind()); 6005N(SyntaxKind.InterfaceDeclaration); 6013N(SyntaxKind.InterfaceDeclaration); 6065N(SyntaxKind.InterfaceDeclaration); 6073N(SyntaxKind.InterfaceDeclaration); 6131N(SyntaxKind.InterfaceDeclaration); 6139N(SyntaxKind.InterfaceDeclaration); 6204N(SyntaxKind.InterfaceDeclaration); 6212N(SyntaxKind.InterfaceDeclaration); 9106N(SyntaxKind.InterfaceDeclaration); 9128N(SyntaxKind.InterfaceDeclaration); 9149N(SyntaxKind.InterfaceDeclaration); 9181N(SyntaxKind.InterfaceDeclaration); 9221N(SyntaxKind.InterfaceDeclaration); 9258N(SyntaxKind.InterfaceDeclaration); 9373[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9397[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9429[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9466[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9502[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9537[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9579[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9618[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9673[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 9721[InlineDataAttribute(SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)]
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (8)
1281N(SyntaxKind.InterfaceDeclaration); 1307N(SyntaxKind.InterfaceDeclaration); 1326N(SyntaxKind.InterfaceDeclaration); 1405N(SyntaxKind.InterfaceDeclaration); 1465N(SyntaxKind.InterfaceDeclaration); 1493N(SyntaxKind.InterfaceDeclaration); 1575N(SyntaxKind.InterfaceDeclaration); 1669N(SyntaxKind.InterfaceDeclaration);
Parsing\MemberDeclarationParsingTests.cs (9)
9244N(SyntaxKind.InterfaceDeclaration); 10473[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10556[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10659[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10774[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 10930[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 11105[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 11278[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)] 11409[InlineData("interface", SyntaxKind.InterfaceDeclaration, SyntaxKind.InterfaceKeyword)]
Parsing\RecordParsing.cs (7)
315N(SyntaxKind.InterfaceDeclaration); 349N(SyntaxKind.InterfaceDeclaration); 2531N(SyntaxKind.InterfaceDeclaration); 2561N(SyntaxKind.InterfaceDeclaration); 2613N(SyntaxKind.InterfaceDeclaration); 3079N(SyntaxKind.InterfaceDeclaration); 3474N(SyntaxKind.InterfaceDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
Classification\ClassificationHelpers.cs (2)
287SyntaxKind.InterfaceDeclaration => ClassificationTypeNames.InterfaceName, 340SyntaxKind.InterfaceDeclaration => ClassificationTypeNames.InterfaceName,
CodeGeneration\CSharpSyntaxGenerator.cs (3)
144case SyntaxKind.InterfaceDeclaration: 1551case SyntaxKind.InterfaceDeclaration: 2264case SyntaxKind.InterfaceDeclaration:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
232SyntaxKind.InterfaceDeclaration => DeclaredSymbolInfoKind.Interface, 625case SyntaxKind.InterfaceDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
37case SyntaxKind.InterfaceDeclaration: 76case SyntaxKind.InterfaceDeclaration: 98case SyntaxKind.InterfaceDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
34case SyntaxKind.InterfaceDeclaration: 163case SyntaxKind.InterfaceDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
159public int InterfaceDeclaration => (int)SyntaxKind.InterfaceDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
235SyntaxKind.InterfaceDeclaration => CodeGenerationDestination.InterfaceType,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
28{ SyntaxKind.InterfaceDeclaration, 11 }, 135case SyntaxKind.InterfaceDeclaration: 347if (node.Kind() == SyntaxKind.InterfaceDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
171case SyntaxKind.InterfaceDeclaration: 210namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
618if (node?.Parent is TypeDeclarationSyntax(SyntaxKind.InterfaceDeclaration) typeDecl)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (4)
71SyntaxKind.InterfaceDeclaration, 81SyntaxKind.InterfaceDeclaration, 90SyntaxKind.InterfaceDeclaration, 117SyntaxKind.InterfaceDeclaration,
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
39foreach (TypeDeclarationSyntax typeSyntax in typeForSyntaxTree.Where(n => !n.IsKind(SyntaxKind.InterfaceDeclaration)))
Microsoft.Interop.ComInterfaceGenerator (1)
VtableIndexStubGenerator.cs (1)
31SyntaxKind.InterfaceDeclaration,
Microsoft.VisualStudio.LanguageServices.CSharp (20)
CodeModel\CSharpCodeModelService.cs (16)
103case SyntaxKind.InterfaceDeclaration: 215case SyntaxKind.InterfaceDeclaration: 546case SyntaxKind.InterfaceDeclaration: 600case SyntaxKind.InterfaceDeclaration: 804case SyntaxKind.InterfaceDeclaration: 885case SyntaxKind.InterfaceDeclaration: 1161if (member.Parent is (kind: SyntaxKind.InterfaceDeclaration or SyntaxKind.EnumDeclaration)) 2427if ((flags & ModifierFlags.Abstract) != 0 || containingType?.Kind() == SyntaxKind.InterfaceDeclaration) 2432if ((flags & ModifierFlags.Virtual) != 0 || containingType?.Kind() == SyntaxKind.InterfaceDeclaration) 2469if (member.IsParentKind(SyntaxKind.InterfaceDeclaration)) 3505case SyntaxKind.InterfaceDeclaration: 3527or SyntaxKind.InterfaceDeclaration 3535if (propertyDeclaration.IsParentKind(SyntaxKind.InterfaceDeclaration)) 3713else if (node.IsKind(SyntaxKind.InterfaceDeclaration)) 3723if (node.Kind() is not (SyntaxKind.ClassDeclaration or SyntaxKind.InterfaceDeclaration)) 3756if (node.Kind() is not (SyntaxKind.ClassDeclaration or SyntaxKind.InterfaceDeclaration))
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
45case SyntaxKind.InterfaceDeclaration: 96case SyntaxKind.InterfaceDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
175case SyntaxKind.InterfaceDeclaration:
Progression\CSharpProgressionLanguageService.cs (1)
68SyntaxKind.InterfaceDeclaration or
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
264case SyntaxKind.InterfaceDeclaration:
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
248SyntaxKind.InterfaceDeclaration;