498 references to Interface
Microsoft.CodeAnalysis.CodeStyle (14)
EditorConfigNamingStyleParser_SymbolSpec.cs (2)
127private static readonly SymbolKindOrTypeKind _interface = new(TypeKind.Interface); 391case TypeKind.Interface:
INamedTypeSymbolExtensions.cs (6)
86if (member.ContainingType.TypeKind == TypeKind.Interface) 157if (implementation?.ContainingType.TypeKind == TypeKind.Interface) 203if (type.TypeKind == TypeKind.Interface) 304if (type.TypeKind == TypeKind.Interface) 352if (!interfacesOrAbstractClasses.All(i => i.TypeKind == TypeKind.Interface) && 369return interfacesOrAbstractClasses.First().TypeKind == TypeKind.Interface
ISymbolExtensions.cs (2)
123symbol.ContainingType.TypeKind == TypeKind.Interface) 169=> symbol is ITypeSymbol { TypeKind: TypeKind.Interface };
ITypeSymbolExtensions.cs (3)
42if (type is INamedTypeSymbol namedType && namedType.TypeKind == TypeKind.Interface && !allInterfaces.Contains(namedType)) 83=> symbol?.TypeKind == TypeKind.Interface; 186IEnumerable<ITypeSymbol> baseTypes = (baseType.TypeKind == TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes();
SymbolSpecification.cs (1)
77new SymbolKindOrTypeKind(TypeKind.Interface),
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
NamingStylesTestOptionSets.cs (1)
615ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Interface)),
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Constraints.cs (1)
547case TypeKind.Interface:
Binder\Binder_Conversions.cs (1)
388case TypeKind.Interface:
Binder\Binder_Crefs.cs (1)
578case TypeKind.Interface:
Binder\Binder_Expressions.cs (2)
4451case TypeKind.Interface: 7957case TypeKind.Interface:
Binder\Binder_Lookup.cs (2)
188case TypeKind.Interface: 1871case TypeKind.Interface:
Binder\Binder_Patterns.cs (1)
1243if (iTupleType.TypeKind != TypeKind.Interface)
Binder\ForEachLoopBinder.cs (1)
1394case TypeKind.Interface:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2512case TypeKind.Interface:
Binder\Semantics\Operators\OperatorFacts.cs (1)
24case TypeKind.Interface:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
2102case TypeKind.Interface: 2479case TypeKind.Interface:
Compiler\ClsComplianceChecker.cs (1)
995case TypeKind.Interface:
Compiler\MethodCompiler.cs (1)
617containingType is { IsImplicitlyDeclared: false, TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface } &&
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
511case TypeKind.Interface:
Emitter\NoPia\EmbeddedType.cs (1)
162case TypeKind.Interface:
Emitter\NoPia\EmbeddedTypesManager.cs (2)
253case TypeKind.Interface: 441if (containerKind == TypeKind.Interface || containerKind == TypeKind.Delegate ||
FlowAnalysis\NullableWalker.cs (1)
5073{ TypeKind: TypeKind.Interface } => type.AllInterfacesNoUseSiteDiagnostics,
SymbolDisplay\SymbolDisplayVisitor.cs (1)
317(containingType.TypeKind != TypeKind.Interface && !IsEnumMember(symbol) & !IsLocalFunction(symbol))))
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
932(containingType.TypeKind != TypeKind.Interface && !IsEnumMember(symbol) && !IsLocalFunction(symbol))))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
606case TypeKind.Interface: 729case TypeKind.Interface:
Symbols\ConstraintsHelper.cs (1)
190case TypeKind.Interface:
Symbols\EnumConversions.cs (1)
33return TypeKind.Interface;
Symbols\Metadata\PE\MetadataDecoder.cs (1)
397case TypeKind.Interface:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
98case TypeKind.Interface:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1753result = TypeKind.Interface;
Symbols\NamedTypeSymbol.cs (1)
1622/// Requires less computation than <see cref="TypeSymbol.TypeKind"/> == <see cref="TypeKind.Interface"/>.
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
195case TypeKind.Interface:
Symbols\Source\SourceMemberContainerSymbol.cs (6)
322case TypeKind.Interface: 354case TypeKind.Interface: 783return this.TypeKind == TypeKind.Interface; 1361case TypeKind.Interface: 3121case TypeKind.Interface: 3343case TypeKind.Interface:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
519case TypeKind.Interface:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1030if (ContainingSymbol is NamedTypeSymbol { IsComImport: true, TypeKind: TypeKind.Class or TypeKind.Interface })
Symbols\Source\SourceNamedTypeSymbol.cs (1)
819case TypeKind.Interface:
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (5)
512if (guessTypeKind == TypeKind.Interface) 549case TypeKind.Interface: 633(TypeKind != TypeKind.Class || baseType.TypeKind == TypeKind.Interface || ((TypeDeclarationSyntax)decl.SyntaxReference.GetSyntax()).ParameterList is null)) 669bool isInterface = (typeKind == TypeKind.Interface); 742case TypeKind.Interface:
Symbols\Symbol_Attributes.cs (1)
79case TypeKind.Interface:
Symbols\Synthesized\SynthesizedContainer.cs (1)
56internal sealed override bool IsInterface => this.TypeKind == TypeKind.Interface;
Symbols\TypeParameterSymbol.cs (1)
413case TypeKind.Interface:
Symbols\TypeSymbolExtensions.cs (4)
624case TypeKind.Interface: 699case TypeKind.Interface: 764case TypeKind.Interface: 1405case TypeKind.Interface:
Symbols\VarianceSafety.cs (2)
79case TypeKind.Interface: 373case TypeKind.Interface:
Utilities\TypeSymbolExtensions.cs (2)
189case TypeKind.Interface: 271case TypeKind.Interface:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CastSimplifier.cs (2)
802if (!original.IsReferenceType || original.TypeKind == TypeKind.Interface) 1097if (originalMemberSymbol.ContainingType.TypeKind == TypeKind.Interface)
SemanticModelExtensions.cs (1)
212if (containingType != null && containingType.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ITypeParameterSymbolExtensions.cs (2)
59typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Interface).Concat( 60typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
NamedTypeGenerator.cs (1)
207namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
NamingStylesTests.cs (2)
214[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)] 234var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (30)
Diagnostics\GenerateType\GenerateTypeTests_Dialog.cs (24)
356typeKind: TypeKind.Interface, 551typeKind: TypeKind.Interface, 595typeKind: TypeKind.Interface, 640typeKind: TypeKind.Interface, 685typeKind: TypeKind.Interface, 723typeKind: TypeKind.Interface, 759typeKind: TypeKind.Interface, 799typeKind: TypeKind.Interface, 842typeKind: TypeKind.Interface, 879typeKind: TypeKind.Interface, 923typeKind: TypeKind.Interface, 971typeKind: TypeKind.Interface, 1021typeKind: TypeKind.Interface, 1077typeKind: TypeKind.Interface, 1122typeKind: TypeKind.Interface, 1171typeKind: TypeKind.Interface, 1230typeKind: TypeKind.Interface, 1269typeKind: TypeKind.Interface, 1315typeKind: TypeKind.Interface, 1355typeKind: TypeKind.Interface, 1402typeKind: TypeKind.Interface, 1443typeKind: TypeKind.Interface, 2005typeKind: TypeKind.Interface, 2027typeKind: TypeKind.Interface,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (4)
343[InlineData("interface", new object[] { TypeKind.Interface })] 344[InlineData("*", new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 345[InlineData(null, new object[] { SymbolKind.Namespace, TypeKind.Class, TypeKind.Struct, TypeKind.Interface, TypeKind.Enum, SymbolKind.Property, MethodKind.Ordinary, MethodKind.LocalFunction, SymbolKind.Field, SymbolKind.Event, TypeKind.Delegate, SymbolKind.Parameter, SymbolKind.TypeParameter, SymbolKind.Local })] 454var expectedApplicableTypeKindList = new[] { new SymbolKindOrTypeKind(TypeKind.Interface) };
NamingStylesTests.cs (2)
214[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)] 234var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
Emit\EmitMetadataTests.cs (4)
317Assert.Equal(TypeKind.Interface, i1.TypeKind); 318Assert.Equal(TypeKind.Interface, i2.TypeKind); 319Assert.Equal(TypeKind.Interface, i3.TypeKind); 2074Assert.Equal(TypeKind.Interface, beginInvoke.ReturnType.TypeKind);
Emit\NoPiaEmbedTypes.cs (12)
1175Assert.Equal(TypeKind.Interface, itest1.TypeKind); 1218Assert.Equal(TypeKind.Interface, itest3.TypeKind); 1249Assert.Equal(TypeKind.Interface, itest6.TypeKind); 1252Assert.Equal(TypeKind.Interface, itest7.TypeKind); 1255Assert.Equal(TypeKind.Interface, itest8.TypeKind); 1417Assert.Equal(TypeKind.Interface, itest13.TypeKind); 1438Assert.Equal(TypeKind.Interface, itest14.TypeKind); 1448Assert.Equal(TypeKind.Interface, itest16.TypeKind); 1452Assert.Equal(TypeKind.Interface, itest17.TypeKind); 1500Assert.Equal(TypeKind.Interface, itest18.TypeKind); 1734Assert.Equal(TypeKind.Interface, itest28.TypeKind); 1737Assert.Equal(TypeKind.Interface, itest29.TypeKind);
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (1)
104if (type.TypeKind == TypeKind.Interface)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
75if (symbol?.TypeKind != TypeKind.Interface)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2515{ ContainingType.TypeKind: TypeKind.Interface } and not INamedTypeSymbol
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
137info.ConvertedType.TypeKind != TypeKind.Interface)
ImplementInterface\CSharpImplementInterfaceService.cs (1)
58if (interfaceSymbolInfo.GetAnySymbol() is INamedTypeSymbol interfaceType && interfaceType.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\NativeIntegerTests.cs (1)
15393Assert.Equal(TypeKind.Interface, symbol.TypeKind);
Semantics\NullableReferenceTypesTests.cs (6)
112895Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind); 112915Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind); 112926Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind); 112955Assert.Equal(TypeKind.Interface, i1.TypeKind); 113023Assert.Equal(TypeKind.Interface, i1.TypeKind); 113035Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
Semantics\ScriptSemanticsTests.cs (1)
463Assert.Equal(TypeKind.Interface, members[0].TypeKind);
Semantics\UseSiteErrorTests.cs (7)
2303Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind); 2321Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind); 2332Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind); 2361Assert.Equal(TypeKind.Interface, i1.TypeKind); 2377Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind); 2406Assert.Equal(TypeKind.Interface, i1.TypeKind); 2418Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (75)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
2983Assert.Equal(TypeKind.Interface, dsym2.TypeKind); 4781Assert.Equal(TypeKind.Interface, interfaceSymbol.TypeKind);
Compilation\SemanticModelGetSemanticInfoTests.cs (15)
2191Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 2193Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 12256Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14081Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14083Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14119Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14121Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14245Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14247Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14337Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14339Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14380Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14382Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind); 14541Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind); 14543Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind);
Symbols\CompilationCreationTests.cs (1)
2460Assert.Equal(TypeKind.Interface, asm5[1].GlobalNamespace.GetTypeMembers("I1").Single().TypeKind);
Symbols\Metadata\MetadataTypeTests.cs (1)
186Assert.Equal(TypeKind.Interface, type1.TypeKind);
Symbols\Metadata\PE\LoadingEvents.cs (7)
197Assert.Equal(TypeKind.Interface, @interface.TypeKind); 224Assert.Equal(TypeKind.Interface, @interface.TypeKind); 256Assert.Equal(TypeKind.Interface, @interface.TypeKind); 292Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 297Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 333Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 343Assert.Equal(TypeKind.Interface, innerInterface.TypeKind);
Symbols\Metadata\PE\LoadingMethods.cs (14)
389Assert.Equal(TypeKind.Interface, @interface.TypeKind); 413Assert.Equal(TypeKind.Interface, interface1.TypeKind); 418Assert.Equal(TypeKind.Interface, interface2.TypeKind); 449Assert.Equal(TypeKind.Interface, @interface.TypeKind); 485Assert.Equal(TypeKind.Interface, @interface.TypeKind); 517Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind); 520Assert.Equal(TypeKind.Interface, implementedInterface.TypeKind); 545Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind); 576Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 581Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 637Assert.Equal(TypeKind.Interface, @interface.TypeKind); 670Assert.Equal(TypeKind.Interface, @interface.TypeKind); 704Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 714Assert.Equal(TypeKind.Interface, innerInterface.TypeKind);
Symbols\Metadata\PE\LoadingProperties.cs (8)
32Assert.Equal(TypeKind.Interface, @interface.TypeKind); 59Assert.Equal(TypeKind.Interface, @interface.TypeKind); 91Assert.Equal(TypeKind.Interface, @interface.TypeKind); 127Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 132Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 168Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 178Assert.Equal(TypeKind.Interface, innerInterface.TypeKind); 230Assert.Equal(TypeKind.Interface, @interface.TypeKind);
Symbols\Metadata\PE\NoPia.cs (4)
268Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 269Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 602Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 603Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind);
Symbols\Metadata\PE\TypeKindTests.cs (1)
68Assert.Equal(TypeKind.Interface, ienumerable.TypeKind);
Symbols\MockNamedTypeSymbol.cs (1)
151get { return _typeKind == TypeKind.Interface; }
Symbols\Retargeting\NoPia.cs (6)
570Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 571Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 871Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 872Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 1175Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 1176Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind);
Symbols\Source\DelegateTests.cs (1)
162Assert.Equal(TypeKind.Interface, beginInvoke.ReturnType.TypeKind);
Symbols\Source\FieldTests.cs (1)
214Assert.Equal(TypeKind.Interface, sym.Type.TypeKind);
Symbols\Source\MethodTests.cs (4)
1667Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1711Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1756Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1807Assert.Equal(TypeKind.Interface, @interface.TypeKind);
Symbols\Source\PropertyTests.cs (3)
1750Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1784Assert.Equal(TypeKind.Interface, @interface.TypeKind); 1822Assert.Equal(TypeKind.Interface, @interface.TypeKind);
Symbols\TypeTests.cs (6)
288Assert.Equal(TypeKind.Interface, type4.TypeKind); 299Assert.Equal(TypeKind.Interface, type3.TypeKind); 855Assert.Equal(TypeKind.Interface, igoo.TypeKind); 1311Assert.Equal(TypeKind.Interface, interface1.TypeKind); 1312Assert.Equal(TypeKind.Interface, interface2.TypeKind); 1773Assert.Equal(TypeKind.Interface, ((ITypeSymbol)tinfo.Type).TypeKind);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ReadOnlyStructs.cs (1)
134Assert.Equal(TypeKind.Interface, s3.TypeKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Extensions.cs (1)
433if ((typeSym.TypeKind == TypeKind.Interface || typeSym.TypeKind == TypeKind.Class || typeSym.TypeKind == TypeKind.Struct || typeSym.TypeKind == TypeKind.Delegate))
UsesIsNullableVisitor.cs (2)
172case TypeKind.Interface: 188case TypeKind.Interface:
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CastSimplifier.cs (2)
802if (!original.IsReferenceType || original.TypeKind == TypeKind.Interface) 1097if (originalMemberSymbol.ContainingType.TypeKind == TypeKind.Interface)
ITypeParameterSymbolExtensions.cs (2)
59typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Interface).Concat( 60typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
NamedTypeGenerator.cs (1)
207namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
SemanticModelExtensions.cs (1)
212if (containingType != null && containingType.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (3)
NavigationCommandHandlers\FindDerivedSymbolsCommandHandler.cs (2)
64if (symbol.ContainingType is INamedTypeSymbol namedTypeSymbol && symbol.ContainingType.TypeKind == TypeKind.Interface) 68else if (symbol is INamedTypeSymbol namedTypeSymbol2 && namedTypeSymbol2.TypeKind == TypeKind.Interface)
NavigationCommandHandlers\FindImplementingMembersCommandHandler.cs (1)
87if (interfaceSymbol == null || interfaceSymbol.TypeKind != TypeKind.Interface)
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
NamingStyles\NamingStylesTestOptionSets.cs (1)
615ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Interface)),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeGeneration\CodeGenerationTests.CSharp.cs (2)
262[InlineData("interface", TypeKind.Interface)] 353typeKind: TypeKind.Interface);
CodeGeneration\CodeGenerationTests.VisualBasic.cs (1)
264typeKind: TypeKind.Interface);
Microsoft.CodeAnalysis.Features (42)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (1)
56ContainingType.TypeKind == TypeKind.Interface ||
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
85if (type.TypeKind == TypeKind.Interface ||
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
88if (namedType.TypeKind == TypeKind.Interface)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
279if (collectionType.TypeKind == TypeKind.Interface && knownCollectionInterfaces.Contains(collectionType.OriginalDefinition))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
348TypeKind.Interface => FeaturesResources.interface_,
ExtractInterface\AbstractExtractInterfaceService.cs (3)
149typeKind: TypeKind.Interface, 272var candidateInterfaceName = type.TypeKind == TypeKind.Interface ? type.Name : "I" + type.Name; 336if (typeToExtractFrom.TypeKind == TypeKind.Interface)
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.State.cs (1)
70if (ContainingType == null || ContainingType.TypeKind == TypeKind.Interface)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
181if (info.ContainingType != null && info.ContainingType.TypeKind != TypeKind.Interface)
GenerateMember\AbstractGenerateMemberService.cs (2)
29TypeKind.Interface 46if (typeToGenerateIn.TypeKind == TypeKind.Interface && isStatic)
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
81generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface), 98generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface),
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
51state.TypeToGenerateIn.TypeKind != TypeKind.Interface &&
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
198return isAbstract || State.TypeToGenerateIn.TypeKind == TypeKind.Interface || throwStatement == null 230if (State.TypeToGenerateIn.TypeKind != TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (2)
119return _state.TypeToGenerateIn.TypeKind != TypeKind.Interface && _refKind != RefKind.None 126if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.cs (3)
106if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface && state.IsStatic) 116var isOnlyReadAndIsInInterface = state.TypeToGenerateIn.TypeKind == TypeKind.Interface && !state.IsWrittenTo; 150if (state.TypeToGenerateIn.TypeKind != TypeKind.Interface)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
90if (this.TypeToGenerateIn.TypeKind == TypeKind.Interface)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (4)
139if (_state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface || argumentList.Count == 0) 276if (_state.BaseTypeOrInterfaceOpt == null || _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 286if (_state.BaseTypeOrInterfaceOpt != null && _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 315? TypeKind.Interface
GenerateType\AbstractGenerateTypeService.State.cs (2)
245if (baseType.TypeKind is not TypeKind.Class and not TypeKind.Interface) 275(BaseTypeOrInterfaceOpt == null || BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface))
GoToBase\FindBaseHelpers.cs (1)
22namedTypeSymbol.TypeKind == TypeKind.Interface ||
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (1)
43if (idisposable?.TypeKind == TypeKind.Interface)
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
85return !symbol.IsStatic && namedType.TypeKind is TypeKind.Interface or TypeKind.Class or TypeKind.Struct;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
303if (memberSymbol.TypeKind == TypeKind.Interface)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
92methodSymbol.ContainingType.TypeKind == TypeKind.Interface)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
97if (containingType == null || containingType.TypeKind == TypeKind.Interface)
PullMemberUp\MemberAndDestinationValidator.cs (1)
17if (destination.TypeKind is not TypeKind.Interface and not TypeKind.Class)
PullMemberUp\MembersPuller.cs (3)
71TypeKind.Interface => PullMembersIntoInterfaceAsync(document, pullMembersUpOptions, fallbackOptions, cancellationToken), 133if (analysisResult.Member.ContainingType.TypeKind == TypeKind.Interface) 504if (destination.TypeKind == TypeKind.Interface)
PullMemberUp\PullMembersUpOptionsBuilder.cs (1)
20if (destination.TypeKind == TypeKind.Interface)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
381if (property.ContainingType.TypeKind == TypeKind.Interface)
Shared\Extensions\ISymbolExtensions_2.cs (1)
72case TypeKind.Interface:
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (3)
211else if (derivedType.TypeKind == TypeKind.Interface) 265if ((targetTypeKind == sourceTypeKind && (targetTypeKind == TypeKind.Class || targetTypeKind == TypeKind.Interface)) || 266(targetTypeKind == TypeKind.Class && (sourceTypeKind == TypeKind.Structure || sourceTypeKind == TypeKind.Interface) && targetType.SpecialType == SpecialType.System_Object))
Microsoft.CodeAnalysis.VisualBasic (52)
Binding\Binder_Conversions.vb (1)
789Case TypeKind.Interface
Binding\Binder_Expressions.vb (2)
1192Case TYPEKIND.Interface 3781Case TYPEKIND.TypeParameter, TYPEKIND.Interface
Binding\Binder_Lookup.vb (5)
586Case TypeKind.Interface 615Case TypeKind.Interface 936Case TypeKind.Interface 1104Case TypeKind.Interface 1697Case TypeKind.Interface
Binding\Binder_ObjectInitializer.vb (2)
215Case TypeKind.Interface 222TypeKind.Interface
Binding\Binder_Utils.vb (2)
1180Case TypeKind.Interface 1253Case TypeKind.Interface
Compilation\ClsComplianceChecker.vb (2)
595Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module 621Case TypeKind.Class, TypeKind.Structure, TypeKind.Interface, TypeKind.Delegate, TypeKind.Enum, TypeKind.Submission, TypeKind.Module
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
743Case TypeKind.Interface
Emit\NamedTypeSymbolAdapter.vb (1)
449Case TypeKind.Enum, TypeKind.Interface, TypeKind.Delegate
Emit\NoPia\EmbeddedType.vb (1)
129Case TypeKind.Enum, TypeKind.Delegate, TypeKind.Interface
Emit\NoPia\EmbeddedTypesManager.vb (2)
208Case TypeKind.Interface 369If containerKind = TypeKind.Interface OrElse
Semantics\AccessCheck.vb (2)
444Case TypeKind.Interface 506Case TypeKind.Interface
Semantics\Conversions.vb (1)
2873Case TypeKind.Interface
Semantics\TypeInference\TypeArgumentInference.vb (2)
1786If fixedTypeTypeKind <> TypeKind.Class AndAlso fixedTypeTypeKind <> TypeKind.Interface Then 1813Debug.Assert(fixedTypeTypeKind = TypeKind.Interface)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
616(containingType.TypeKind <> TypeKind.Interface AndAlso Not IsEnumMember(symbol))) Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (2)
261Case TypeKind.Interface 457Case TypeKind.Interface
SymbolDisplay\SymbolDisplayVisitor.vb (1)
318(containingType.TypeKind <> TypeKind.Interface AndAlso Not IsEnumMember(symbol))) Then
Symbols\ConstraintsHelper.vb (1)
215Case TypeKind.Interface,
Symbols\Metadata\PE\MetadataDecoder.vb (1)
349Case TypeKind.Interface
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1001result = TypeKind.Interface
Symbols\NamedTypeSymbol.vb (2)
812If Me.TypeKind = TypeKind.Interface Then 1078''' Requires less computation than <see cref="TypeSymbol.TypeKind"/>== <see cref="TypeKind.Interface"/>.
Symbols\Source\OverrideHidingHelper.vb (1)
27Case TypeKind.Class, TypeKind.Interface, TypeKind.Structure
Symbols\Source\SourceMemberContainerTypeSymbol.vb (5)
37[Interface] = CUShort(TypeKind.Interface) << TypeKindShift 337Case TypeKind.Interface 1276Return Me.TypeKind = TypeKind.Interface 3492If myTypeKind = TypeKind.Class OrElse myTypeKind = TypeKind.Interface OrElse myTypeKind = TypeKind.Structure OrElse myTypeKind = TypeKind.Module Then 3496Dim canDeclareOperators As Boolean = (myTypeKind <> TypeKind.Module AndAlso myTypeKind <> TypeKind.Interface)
Symbols\Source\SourceMemberMethodSymbol.vb (1)
756Case TypeKind.Interface, TypeKind.Structure, TypeKind.Enum, TypeKind.Delegate
Symbols\Source\SourceNamedTypeSymbol.vb (6)
1114Case TypeKind.Interface, TypeKind.Enum, TypeKind.Delegate, TypeKind.Structure, TypeKind.Module, TypeKind.Array ' array can't really occur 1188Case TypeKind.Interface, TypeKind.Error 1239Case TypeKind.Interface, TypeKind.Error 1384Case TypeKind.Interface 1498Debug.Assert(Me.TypeKind <> TypeKind.Interface) 2205Case TypeKind.Interface
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
958Return TypeKind.Interface
Symbols\Symbol_Attributes.vb (1)
104Case TypeKind.Interface
Symbols\SymbolExtensions.vb (1)
39Case TypeKind.Interface
Symbols\TypeSymbolExtensions.vb (3)
412Case TypeKind.Interface, TypeKind.TypeParameter, TypeKind.Unknown 832TypeKind.Interface, 865TypeKind.Interface,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (20)
Diagnostics\GenerateType\GenerateTypeTests_Dialog.vb (20)
229typeKind:=TypeKind.Interface, 322typeKind:=TypeKind.Interface, 360typeKind:=TypeKind.Interface, 393typeKind:=TypeKind.Interface, 425typeKind:=TypeKind.Interface, 459typeKind:=TypeKind.Interface, 491typeKind:=TypeKind.Interface, 532typeKind:=TypeKind.Interface, 573typeKind:=TypeKind.Interface, 605typeKind:=TypeKind.Interface, 643typeKind:=TypeKind.Interface, 684typeKind:=TypeKind.Interface, 740typeKind:=TypeKind.Interface, 776typeKind:=TypeKind.Interface, 819typeKind:=TypeKind.Interface, 857typeKind:=TypeKind.Interface, 899typeKind:=TypeKind.Interface, 1338typeKind:=TypeKind.Interface, 1378typeKind:=TypeKind.Interface, 1399typeKind:=TypeKind.Interface,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (15)
Emit\EmitMetadata.vb (3)
388Assert.Equal(TypeKind.Interface, i1.TypeKind) 389Assert.Equal(TypeKind.Interface, i2.TypeKind) 390Assert.Equal(TypeKind.Interface, i3.TypeKind)
Emit\NoPiaEmbedTypes.vb (12)
1001Assert.Equal(TypeKind.Interface, itest1.TypeKind) 1044Assert.Equal(TypeKind.Interface, itest3.TypeKind) 1075Assert.Equal(TypeKind.Interface, itest6.TypeKind) 1078Assert.Equal(TypeKind.Interface, itest7.TypeKind) 1081Assert.Equal(TypeKind.Interface, itest8.TypeKind) 1244Assert.Equal(TypeKind.Interface, itest13.TypeKind) 1265Assert.Equal(TypeKind.Interface, itest14.TypeKind) 1275Assert.Equal(TypeKind.Interface, itest16.TypeKind) 1279Assert.Equal(TypeKind.Interface, itest17.TypeKind) 1328Assert.Equal(TypeKind.Interface, itest18.TypeKind) 1545Assert.Equal(TypeKind.Interface, type1.TypeKind) 1548Assert.Equal(TypeKind.Interface, type2.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
190Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse 261If targetType Is Nothing OrElse (targetType.TypeKind <> TypeKind.Interface AndAlso targetType.TypeKind <> TypeKind.Class) Then 357Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse
ExtractMethod\VisualBasicSelectionResult.vb (1)
211info.ConvertedType.TypeKind <> TypeKind.Interface Then
ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
72interfaceTypes = interfaceTypes.WhereNotNull().Where(Function(t) t.TypeKind = TypeKind.Interface).ToList()
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
116If type.TypeKind <> TypeKind.Interface Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
705Assert.Equal(TypeKind.Interface, typeSymbol4.TypeKind)
Semantics\GetExtendedSemanticInfoTests.vb (7)
1581Assert.Equal(TypeKind.Interface, semanticInfo.Type.TypeKind) 1583Assert.Equal(TypeKind.Interface, semanticInfo.ConvertedType.TypeKind) 8162Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 8164Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.TypeKind) 9042Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 9589Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 9591Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.TypeKind)
Semantics\UseSiteErrorTests.vb (7)
602Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind) 622Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind) 633Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind) 662Assert.Equal(TypeKind.Interface, i1.TypeKind) 675Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind) 704Assert.Equal(TypeKind.Interface, i1.TypeKind) 716Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (37)
SymbolsTests\CompilationCreationTests.vb (1)
1921Assert.Equal(TypeKind.[Interface], asm5(1).GlobalNamespace.GetTypeMembers("I1").Single().TypeKind)
SymbolsTests\Metadata\MetadataTypeTests.vb (1)
229Assert.Equal(TypeKind.Interface, type1.TypeKind)
SymbolsTests\Metadata\PE\LoadingEvents.vb (7)
163Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 178Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 196Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 214Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 217Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 236Assert.Equal(TypeKind.[Interface], outerInterface.TypeKind) 243Assert.Equal(TypeKind.[Interface], innerInterface.TypeKind)
SymbolsTests\Metadata\PE\LoadingMethods.vb (10)
384Assert.Equal(TypeKind.Interface, [interface].TypeKind) 407Assert.Equal(TypeKind.Interface, interface1.TypeKind) 412Assert.Equal(TypeKind.Interface, interface2.TypeKind) 439Assert.Equal(TypeKind.Interface, [interface].TypeKind) 471Assert.Equal(TypeKind.Interface, [interface].TypeKind) 502Assert.Equal(TypeKind.Interface, cyclicInterface.TypeKind) 505Assert.Equal(TypeKind.Interface, implementedInterface.TypeKind) 534Assert.Equal(TypeKind.Interface, [interface].TypeKind) 564Assert.Equal(TypeKind.Interface, outerInterface.TypeKind) 574Assert.Equal(TypeKind.Interface, innerInterface.TypeKind)
SymbolsTests\Metadata\PE\NoPia.vb (4)
194Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 195Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind) 468Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 469Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind)
SymbolsTests\Metadata\PE\TypeKindTests.vb (1)
58Assert.Equal(TypeKind.Interface, ienumerable.TypeKind)
SymbolsTests\Retargeting\NoPia.vb (2)
478Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 479Assert.Equal(TypeKind.[Interface], param(1).[Type].TypeKind)
SymbolsTests\Source\BindingsTests.vb (5)
187Assert.Equal(TypeKind.Interface, DirectCast(typeContext.ContainingNamespaceOrType, NamedTypeSymbol).TypeKind) 381Assert.Equal(TypeKind.Interface, typeSymbol4.TypeKind) 508Assert.Equal(TypeKind.Interface, DirectCast(sortedSymbols(0), NamedTypeSymbol).TypeKind) 511Assert.Equal(TypeKind.Interface, DirectCast(sortedSymbols(1), NamedTypeSymbol).TypeKind) 539Assert.Equal(TypeKind.Interface, iEnumSymInfo.Type.TypeKind)
SymbolsTests\Source\PropertyTests.vb (2)
5399Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 5442Assert.Equal(TypeKind.[Interface], [interface].TypeKind)
SymbolsTests\Source\TypeTests.vb (4)
92Assert.Equal(TypeKind.Interface, ifaceA.TypeKind) 266Assert.Equal(TypeKind.Interface, i3Interface.TypeKind) 616Assert.Equal(TypeKind.Interface, igoo.TypeKind) 926Assert.Equal(TypeKind.Interface, type2.TypeKind)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Extensions.vb (1)
225If typeSymTypeKind = TypeKind.Interface OrElse typeSymTypeKind = TypeKind.Class OrElse
MockSymbols.vb (1)
355Return _kind = TypeKind.Interface
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeGeneration\NamedTypeGenerator.vb (1)
100Dim isInterface = namedType.TypeKind = TypeKind.Interface
Recommendations\VisualBasicRecommendationServiceRunner.vb (3)
398Dim isInterface = TryCast(typeOrAssemblySymbol, ITypeSymbol)?.TypeKind = TypeKind.Interface 457Return namedTypeSymbol.TypeKind = TypeKind.Interface OrElse 473If namedTypeSymbol.TypeKind = TypeKind.Interface Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
106If type.TypeKind <> TypeKind.Interface AndAlso type.TypeKind <> TypeKind.Enum Then
Microsoft.CodeAnalysis.Workspaces (26)
Classification\ClassificationExtensions.cs (1)
15TypeKind.Interface => ClassificationTypeNames.InterfaceName,
Editing\SyntaxGenerator.cs (2)
789TypeKind.Interface => InterfaceDeclaration( 860case TypeKind.Interface:
EditorConfigNamingStyleParser_SymbolSpec.cs (2)
127private static readonly SymbolKindOrTypeKind _interface = new(TypeKind.Interface); 391case TypeKind.Interface:
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
45private static readonly Func<INamedTypeSymbol, bool> s_isInterface = static t => t is { TypeKind: TypeKind.Interface };
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (1)
22if (type?.TypeKind == TypeKind.Interface)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (6)
86if (member.ContainingType.TypeKind == TypeKind.Interface) 157if (implementation?.ContainingType.TypeKind == TypeKind.Interface) 203if (type.TypeKind == TypeKind.Interface) 304if (type.TypeKind == TypeKind.Interface) 352if (!interfacesOrAbstractClasses.All(i => i.TypeKind == TypeKind.Interface) && 369return interfacesOrAbstractClasses.First().TypeKind == TypeKind.Interface
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (2)
123symbol.ContainingType.TypeKind == TypeKind.Interface) 169=> symbol is ITypeSymbol { TypeKind: TypeKind.Interface };
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (3)
42if (type is INamedTypeSymbol namedType && namedType.TypeKind == TypeKind.Interface && !allInterfaces.Contains(namedType)) 83=> symbol?.TypeKind == TypeKind.Interface; 186IEnumerable<ITypeSymbol> baseTypes = (baseType.TypeKind == TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes();
Recommendations\AbstractRecommendationServiceRunner.cs (1)
409else if (originalConstraintType.TypeKind == TypeKind.Interface)
Rename\RenameUtilities.cs (1)
224symbol.ContainingType.TypeKind == TypeKind.Interface)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
107((INamedTypeSymbol)referencedSymbol.ContainingSymbol).TypeKind == TypeKind.Interface &&
Shared\Extensions\ISymbolExtensions.cs (1)
499else if (typeSymbol.TypeKind == TypeKind.Interface)
Shared\Extensions\ITypeSymbolExtensions.cs (1)
164typeSymbol.TypeKind == TypeKind.Interface)
Shared\Utilities\SignatureComparer.cs (2)
176property1.ContainingType.TypeKind == TypeKind.Interface) 186property2.ContainingType.TypeKind == TypeKind.Interface)
SymbolSpecification.cs (1)
77new SymbolKindOrTypeKind(TypeKind.Interface),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigParsing\NamingStyleParserTests.cs (1)
159symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Interface), symbolKind),
Microsoft.VisualStudio.LanguageServices (13)
CommonControls\MemberSelectionViewModel.cs (1)
147var isInterface = destinationType == TypeKind.Interface;
ExtractInterface\ExtractInterfaceDialogViewModel.cs (1)
44destinationTypeKind: TypeKind.Interface,
GenerateType\GenerateTypeDialogViewModel.cs (1)
225PopulateTypeKind(TypeKind.Interface, "interface", "Interface");
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
216if (namedTypeSymbol.TypeKind != TypeKind.Interface) 268if (typeSymbol.TypeKind == TypeKind.Interface)
Library\ObjectBrowser\ObjectList.cs (2)
204case TypeKind.Interface: 449if (typeSymbol.TypeKind == TypeKind.Interface && typeSymbol.Interfaces.IsEmpty)
Progression\GraphBuilder.cs (1)
573case TypeKind.Interface:
Progression\GraphProvider.cs (3)
200IsAnyTypeKind(n, TypeKind.Class, TypeKind.Interface, TypeKind.Struct, TypeKind.Enum, TypeKind.Delegate))) 273IsAnyTypeKind(n, TypeKind.Interface))) 284IsAnyTypeKind(n, TypeKind.Interface)))
Progression\GraphQueries\InheritedByGraphQuery.cs (1)
40else if (namedType.TypeKind == TypeKind.Interface)
Progression\GraphQueries\InheritsGraphQuery.cs (1)
46else if (namedType.TypeKind == TypeKind.Interface && !namedType.OriginalDefinition.AllInterfaces.IsEmpty)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (4)
758TypeKind.Interface or 3720return typeSymbol.TypeKind == TypeKind.Interface; 3813return typeSymbol.TypeKind == TypeKind.Interface; 3827typeSymbol.TypeKind != TypeKind.Interface)
ObjectBrowser\DescriptionBuilder.cs (3)
79case TypeKind.Interface: 176typeSymbol.TypeKind != TypeKind.Interface) 244if (memberSymbol.ContainingType != null && memberSymbol.ContainingType.TypeKind == TypeKind.Interface)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
132typeKind: TypeKind.Interface);
Microsoft.VisualStudio.LanguageServices.Implementation (8)
CodeModel\AbstractCodeModelService.cs (2)
231case TypeKind.Interface: 552case TypeKind.Interface:
CodeModel\Collections\BasesCollection.cs (2)
77if (symbol.TypeKind == TypeKind.Interface || _interfaces) 139if (symbol.TypeKind == TypeKind.Interface || _interfaces)
CodeModel\ExternalElements\AbstractExternalCodeType.cs (1)
63if (typeSymbol.TypeKind == TypeKind.Interface)
CodeModel\FileCodeModel_CodeGen.cs (1)
359TypeKind.Interface,
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationViewModel.cs (2)
54new SymbolKindViewModel(TypeKind.Interface, ServicesVSResources.NamingSpecification_CSharp_Interface, specification), 96new SymbolKindViewModel(TypeKind.Interface, ServicesVSResources.NamingSpecification_VisualBasic_Interface, specification),
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
CommonControls\MemberSelectionViewModelTests.vb (1)
98viewModel.UpdateMembersBasedOnDestinationKind(TypeKind.Interface)
Microsoft.VisualStudio.LanguageServices.VisualBasic (7)
CodeModel\Extenders\GenericExtender.vb (2)
44Case TypeKind.Interface 79Case TypeKind.Interface
CodeModel\VisualBasicCodeModelService.vb (2)
4249Return typeSymbol.TypeKind = TypeKind.Interface 4315Return typeSymbol.TypeKind = TypeKind.Interface
ObjectBrowser\DescriptionBuilder.vb (3)
70Case TypeKind.Interface 314typeSymbol.TypeKind <> TypeKind.Interface Then 329If memberSymbol.ContainingType IsNot Nothing And memberSymbol.ContainingType.TypeKind = TypeKind.Interface Then