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