107 references to InterfaceDeclaration
Microsoft.CodeAnalysis.CSharp (23)
_generated\1\Syntax.xml.Internal.Generated.cs (2)
32176return new InterfaceDeclarationSyntax(SyntaxKind.InterfaceDeclaration, attributeLists.Node, modifiers.Node, keyword, identifier, typeParameterList, parameterList, baseList, constraintClauses.Node, openBraceToken, members.Node, closeBraceToken, semicolonToken, this.context); 37603return new InterfaceDeclarationSyntax(SyntaxKind.InterfaceDeclaration, attributeLists.Node, modifiers.Node, keyword, identifier, typeParameterList, parameterList, baseList, constraintClauses.Node, openBraceToken, members.Node, closeBraceToken, semicolonToken);
_generated\2\Syntax.xml.Syntax.Generated.cs (1)
10867/// <item><description><see cref="SyntaxKind.InterfaceDeclaration"/></description></item>
Compilation\SyntaxTreeSemanticModel.cs (1)
1680case SyntaxKind.InterfaceDeclaration:
Declarations\DeclarationKind.cs (1)
38case SyntaxKind.InterfaceDeclaration: return DeclarationKind.Interface;
Declarations\DeclarationTreeBuilder.cs (3)
764else if (node.Kind() is SyntaxKind.ClassDeclaration or SyntaxKind.StructDeclaration or SyntaxKind.InterfaceDeclaration) 768if (node.Kind() is SyntaxKind.InterfaceDeclaration) 1138case SyntaxKind.InterfaceDeclaration:
Declarations\MergedTypeDeclaration.cs (1)
80case SyntaxKind.InterfaceDeclaration:
Parser\LanguageParser.cs (3)
803case SyntaxKind.InterfaceDeclaration: 2536case SyntaxKind.InterfaceDeclaration: 5461case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
121goto case SyntaxKind.InterfaceDeclaration; 123case SyntaxKind.InterfaceDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4062case SyntaxKind.InterfaceDeclaration:
Symbols\Source\SourceNamedTypeSymbol.cs (4)
123case SyntaxKind.InterfaceDeclaration: 168case SyntaxKind.InterfaceDeclaration: 187bool isInterfaceOrDelegate = typeKind == SyntaxKind.InterfaceDeclaration || typeKind == SyntaxKind.DelegateDeclaration; 479case SyntaxKind.InterfaceDeclaration:
Syntax\SyntaxKindFacts.cs (2)
383case SyntaxKind.InterfaceDeclaration: 868return SyntaxKind.InterfaceDeclaration;
Syntax\TypeDeclarationSyntax.cs (2)
79case SyntaxKind.InterfaceDeclaration: 133case SyntaxKind.InterfaceDeclaration:
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
MetaAnalyzers\CSharpDiagnosticAnalyzerAPIUsageAnalyzer.cs (1)
22or SyntaxKind.InterfaceDeclaration => true,
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
99case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
61SyntaxKind.InterfaceDeclaration or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
39case SyntaxKind.InterfaceDeclaration: 82case SyntaxKind.InterfaceDeclaration: 110case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
28case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
167public int InterfaceDeclaration => (int)SyntaxKind.InterfaceDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
236SyntaxKind.InterfaceDeclaration => CodeGenerationDestination.InterfaceType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
28{ SyntaxKind.InterfaceDeclaration, 11 }, 135case SyntaxKind.InterfaceDeclaration: 347if (node.Kind() == SyntaxKind.InterfaceDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
173case SyntaxKind.InterfaceDeclaration: 212namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
617if (node?.Parent is TypeDeclarationSyntax(SyntaxKind.InterfaceDeclaration) typeDecl)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (5)
74SyntaxKind.InterfaceDeclaration, 87SyntaxKind.InterfaceDeclaration, 104SyntaxKind.InterfaceDeclaration, 112SyntaxKind.InterfaceDeclaration, 145SyntaxKind.InterfaceDeclaration,
Microsoft.CodeAnalysis.CSharp.Features (17)
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
143SyntaxKind.InterfaceDeclaration or SyntaxKind.RecordDeclaration or SyntaxKind.RecordStructDeclaration;
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
46SyntaxKind.InterfaceDeclaration or
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
43case SyntaxKind.InterfaceDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
907=> node.IsKind(SyntaxKind.InterfaceDeclaration); 1639case SyntaxKind.InterfaceDeclaration: 2026case SyntaxKind.InterfaceDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
325case SyntaxKind.InterfaceDeclaration: 592case SyntaxKind.InterfaceDeclaration: 1436case SyntaxKind.InterfaceDeclaration:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
389if (!typeDecl.IsKind(SyntaxKind.InterfaceDeclaration))
GenerateType\CSharpGenerateTypeService.cs (2)
96SyntaxKind.InterfaceDeclaration or 643if (baseList.Parent.Kind() is SyntaxKind.InterfaceDeclaration or SyntaxKind.StructDeclaration or SyntaxKind.RecordStructDeclaration)
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
169case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiers.cs (1)
99case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
61SyntaxKind.InterfaceDeclaration or
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
121goto case SyntaxKind.InterfaceDeclaration; 123case SyntaxKind.InterfaceDeclaration:
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Classification\ClassificationHelpers.cs (2)
295SyntaxKind.InterfaceDeclaration => ClassificationTypeNames.InterfaceName, 349SyntaxKind.InterfaceDeclaration => ClassificationTypeNames.InterfaceName,
CodeGeneration\CSharpSyntaxGenerator.cs (4)
140case SyntaxKind.InterfaceDeclaration: 1553case SyntaxKind.InterfaceDeclaration: 1891case SyntaxKind.InterfaceDeclaration: 2407case SyntaxKind.InterfaceDeclaration:
FindSymbols\FindSymbolsUtilities.cs (2)
41case SyntaxKind.InterfaceDeclaration: 62SyntaxKind.InterfaceDeclaration => DeclaredSymbolInfoKind.Interface,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
39case SyntaxKind.InterfaceDeclaration: 82case SyntaxKind.InterfaceDeclaration: 110case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
28case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
167public int InterfaceDeclaration => (int)SyntaxKind.InterfaceDeclaration;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
236SyntaxKind.InterfaceDeclaration => CodeGenerationDestination.InterfaceType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
28{ SyntaxKind.InterfaceDeclaration, 11 }, 135case SyntaxKind.InterfaceDeclaration: 347if (node.Kind() == SyntaxKind.InterfaceDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
173case SyntaxKind.InterfaceDeclaration: 212namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
617if (node?.Parent is TypeDeclarationSyntax(SyntaxKind.InterfaceDeclaration) typeDecl)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (5)
74SyntaxKind.InterfaceDeclaration, 87SyntaxKind.InterfaceDeclaration, 104SyntaxKind.InterfaceDeclaration, 112SyntaxKind.InterfaceDeclaration, 145SyntaxKind.InterfaceDeclaration,
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
39foreach (TypeDeclarationSyntax typeSyntax in typeForSyntaxTree.Where(n => !n.IsKind(SyntaxKind.InterfaceDeclaration)))
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (1)
39foreach (TypeDeclarationSyntax typeSyntax in typeForSyntaxTree.Where(n => !n.IsKind(SyntaxKind.InterfaceDeclaration)))
Microsoft.Interop.SourceGeneration (1)
SyntaxKindExtensions.cs (1)
14SyntaxKind.InterfaceDeclaration => "interface",
Roslyn.Diagnostics.CSharp.Analyzers (17)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
39case SyntaxKind.InterfaceDeclaration: 82case SyntaxKind.InterfaceDeclaration: 110case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
28case SyntaxKind.InterfaceDeclaration:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
167public int InterfaceDeclaration => (int)SyntaxKind.InterfaceDeclaration;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
236SyntaxKind.InterfaceDeclaration => CodeGenerationDestination.InterfaceType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (3)
28{ SyntaxKind.InterfaceDeclaration, 11 }, 135case SyntaxKind.InterfaceDeclaration: 347if (node.Kind() == SyntaxKind.InterfaceDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (2)
173case SyntaxKind.InterfaceDeclaration: 212namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
617if (node?.Parent is TypeDeclarationSyntax(SyntaxKind.InterfaceDeclaration) typeDecl)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (5)
74SyntaxKind.InterfaceDeclaration, 87SyntaxKind.InterfaceDeclaration, 104SyntaxKind.InterfaceDeclaration, 112SyntaxKind.InterfaceDeclaration, 145SyntaxKind.InterfaceDeclaration,
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
671case SyntaxKind.InterfaceDeclaration:
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
249SyntaxKind.InterfaceDeclaration;