494 references to Interface
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
602if (!(typeSymbol.IsAbstract || typeSymbol.TypeKind is TypeKind.Interface))
ILLink.RoslynAnalyzer (2)
ISymbolExtensions.cs (1)
183 return typeSymbol.TypeKind == TypeKind.Interface;
TrimAnalysis\SingleValueExtensions.cs (1)
24 TypeKind.Class or TypeKind.Enum or TypeKind.Interface or TypeKind.Struct =>
Microsoft.Analyzers.Extra (1)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
42if (type.TypeKind == TypeKind.Interface)
Microsoft.Analyzers.Local (1)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
42if (type.TypeKind == TypeKind.Interface)
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (1)
107if (source.TypeKind == TypeKind.Interface)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (1)
337var receiverType = endpointParameter.BindableMethodSymbol?.ReceiverType is { TypeKind: TypeKind.Interface } targetType
Microsoft.AspNetCore.Mvc.Analyzers (1)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (1)
107if (source.TypeKind == TypeKind.Interface)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (1)
107if (source.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (6)
87if (member.ContainingType.TypeKind == TypeKind.Interface) 158if (implementation?.ContainingType.TypeKind == TypeKind.Interface) 196if (type.TypeKind == TypeKind.Interface) 297if (type.TypeKind == TypeKind.Interface) 345if (!interfacesOrAbstractClasses.All(i => i.TypeKind == TypeKind.Interface) && 362return interfacesOrAbstractClasses.First().TypeKind == TypeKind.Interface
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
173symbol.ContainingType.TypeKind == TypeKind.Interface) 219=> symbol is ITypeSymbol { TypeKind: TypeKind.Interface };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
42if (type is INamedTypeSymbol namedType && namedType.TypeKind == TypeKind.Interface && !allInterfaces.Contains(namedType)) 85=> symbol?.TypeKind == TypeKind.Interface; 188IEnumerable<ITypeSymbol> baseTypes = (baseType.TypeKind == TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
127private static readonly SymbolKindOrTypeKind _interface = new(TypeKind.Interface); 386case TypeKind.Interface:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
69new SymbolKindOrTypeKind(TypeKind.Interface),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
176property1.ContainingType.TypeKind == TypeKind.Interface) 186property2.ContainingType.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (2)
29TypeKind.Interface 46if (typeToGenerateIn.TypeKind == TypeKind.Interface && isStatic)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
78generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface)), 94generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface)),
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
51state.TypeToGenerateIn.TypeKind != TypeKind.Interface &&
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
202return isAbstract || State.TypeToGenerateIn.TypeKind == TypeKind.Interface || throwStatement == null 234if (State.TypeToGenerateIn.TypeKind != TypeKind.Interface)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (2)
121return _state.TypeToGenerateIn.TypeKind != TypeKind.Interface && _refKind != RefKind.None 128if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (3)
104if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface && state.IsStatic) 114var isOnlyReadAndIsInInterface = state.TypeToGenerateIn.TypeKind == TypeKind.Interface && !state.IsWrittenTo; 148if (state.TypeToGenerateIn.TypeKind != TypeKind.Interface)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
90if (this.TypeToGenerateIn.TypeKind == TypeKind.Interface)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
250if (idisposable?.TypeKind == TypeKind.Interface)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
132member.ContainingType is { TypeKind: TypeKind.Interface } interfaceBeingImplemented)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\NamingStyles\NamingStylesTestOptionSets.cs (1)
613ImmutableArray.Create(new SymbolSpecification.SymbolKindOrTypeKind(TypeKind.Interface)),
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder_Constraints.cs (1)
588case TypeKind.Interface:
Binder\Binder_Crefs.cs (1)
578case TypeKind.Interface:
Binder\Binder_Expressions.cs (2)
5162case TypeKind.Interface: 9298case TypeKind.Interface:
Binder\Binder_Lookup.cs (2)
188case TypeKind.Interface: 1871case TypeKind.Interface:
Binder\Binder_Patterns.cs (1)
1252if (iTupleType.TypeKind != TypeKind.Interface)
Binder\ForEachLoopBinder.cs (1)
1603case TypeKind.Interface:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2661case TypeKind.Interface:
Binder\Semantics\Operators\OperatorFacts.cs (1)
24case TypeKind.Interface:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
2296case TypeKind.Interface: 2673case TypeKind.Interface:
Compiler\ClsComplianceChecker.cs (1)
1002case TypeKind.Interface:
Compiler\MethodCompiler.cs (1)
618containingType is { IsImplicitlyDeclared: false, TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface } &&
Emitter\NoPia\EmbeddedType.cs (1)
162case TypeKind.Interface:
Emitter\NoPia\EmbeddedTypesManager.cs (2)
269case TypeKind.Interface: 457if (containerKind == TypeKind.Interface || containerKind == TypeKind.Delegate ||
FlowAnalysis\NullableWalker.cs (1)
5519{ TypeKind: TypeKind.Interface } => type.AllInterfacesNoUseSiteDiagnostics,
SymbolDisplay\SymbolDisplayVisitor.cs (1)
375(containingType.TypeKind != TypeKind.Interface && !IsEnumMember(symbol) & !IsLocalFunction(symbol))))
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
922(containingType.TypeKind != TypeKind.Interface && !IsEnumMember(symbol) && !IsLocalFunction(symbol))))
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
612case TypeKind.Interface: 735case TypeKind.Interface:
Symbols\ConstraintsHelper.cs (1)
219case TypeKind.Interface:
Symbols\EnumConversions.cs (1)
33return TypeKind.Interface;
Symbols\Metadata\PE\MetadataDecoder.cs (1)
397case TypeKind.Interface:
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
97case TypeKind.Interface:
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1765result = TypeKind.Interface;
Symbols\NamedTypeSymbol.cs (1)
1620/// 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)
337case TypeKind.Interface: 369case TypeKind.Interface: 804return this.TypeKind == TypeKind.Interface; 1388case TypeKind.Interface: 3256case TypeKind.Interface: 3489case TypeKind.Interface:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
519case TypeKind.Interface:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1469if (ContainingSymbol is NamedTypeSymbol { IsComImport: true, TypeKind: TypeKind.Class or TypeKind.Interface })
Symbols\Source\SourceNamedTypeSymbol.cs (1)
816case TypeKind.Interface:
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (5)
513if (guessTypeKind == TypeKind.Interface) 550case 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)
703case TypeKind.Interface: 778case TypeKind.Interface: 852case TypeKind.Interface: 1517case TypeKind.Interface:
Symbols\VarianceSafety.cs (2)
79case TypeKind.Interface: 373case TypeKind.Interface:
Utilities\TypeSymbolExtensions.cs (2)
189case TypeKind.Interface: 280case TypeKind.Interface:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
212if (containingType != null && containingType.TypeKind == TypeKind.Interface)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
929if (!original.IsReferenceType || original.TypeKind == TypeKind.Interface) 1253if (originalMemberSymbol.ContainingType.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
62if (interfaceSymbolInfo.GetAnySymbol() is INamedTypeSymbol interfaceType && interfaceType.TypeKind == TypeKind.Interface)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
210namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (2)
61typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Interface).Concat( 62typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not TypeKind.Interface)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (2)
236[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)] 256var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (30)
CodeActions\GenerateType\GenerateTypeTests_Dialog.cs (26)
356typeKind: TypeKind.Interface, 551typeKind: TypeKind.Interface, 595typeKind: TypeKind.Interface, 640typeKind: TypeKind.Interface, 685typeKind: TypeKind.Interface, 723typeKind: TypeKind.Interface, 759typeKind: TypeKind.Interface, 798typeKind: TypeKind.Interface, 840typeKind: TypeKind.Interface, 876typeKind: TypeKind.Interface, 919typeKind: TypeKind.Interface, 966typeKind: TypeKind.Interface, 1015typeKind: TypeKind.Interface, 1070typeKind: TypeKind.Interface, 1115typeKind: TypeKind.Interface, 1164typeKind: TypeKind.Interface, 1223typeKind: TypeKind.Interface, 1262typeKind: TypeKind.Interface, 1307typeKind: TypeKind.Interface, 1346typeKind: TypeKind.Interface, 1392typeKind: TypeKind.Interface, 1432typeKind: TypeKind.Interface, 1987typeKind: TypeKind.Interface, 2009typeKind: TypeKind.Interface, 2333typeKind: TypeKind.Interface, 2368typeKind: 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) };
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\EmitMetadataTests.cs (4)
317Assert.Equal(TypeKind.Interface, i1.TypeKind); 318Assert.Equal(TypeKind.Interface, i2.TypeKind); 319Assert.Equal(TypeKind.Interface, i3.TypeKind); 2075Assert.Equal(TypeKind.Interface, beginInvoke.ReturnType.TypeKind);
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (1)
104if (type.TypeKind == TypeKind.Interface)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
73if (symbol?.TypeKind != TypeKind.Interface)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2549{ ContainingType.TypeKind: TypeKind.Interface }
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
135info.ConvertedType.TypeKind != TypeKind.Interface)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
62if (interfaceSymbolInfo.GetAnySymbol() is INamedTypeSymbol interfaceType && interfaceType.TypeKind == TypeKind.Interface)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (2)
236[InlineData("interface [|c2|] { }", "interface C2 { }", TypeKind.Interface, Accessibility.Private)] 256var alternateSymbolKind = TypeKind.Class.Equals(symbolKind) ? TypeKind.Interface : TypeKind.Class;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\NativeIntegerTests.cs (1)
15419Assert.Equal(TypeKind.Interface, symbol.TypeKind);
Semantics\NullableReferenceTypesTests.cs (6)
116623Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind); 116643Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind); 116654Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind); 116683Assert.Equal(TypeKind.Interface, i1.TypeKind); 116751Assert.Equal(TypeKind.Interface, i1.TypeKind); 116763Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
Semantics\ScriptSemanticsTests.cs (1)
463Assert.Equal(TypeKind.Interface, members[0].TypeKind);
Semantics\UseSiteErrorTests.cs (7)
2313Assert.Equal(TypeKind.Interface, compilation1.GetTypeByMetadataName("I1").TypeKind); 2331Assert.Equal(TypeKind.Interface, compilation2.GetTypeByMetadataName("I1").TypeKind); 2342Assert.Equal(TypeKind.Interface, compilation3.GetTypeByMetadataName("I1").TypeKind); 2371Assert.Equal(TypeKind.Interface, i1.TypeKind); 2387Assert.Equal(TypeKind.Interface, compilation5.GetTypeByMetadataName("I1").TypeKind); 2416Assert.Equal(TypeKind.Interface, i1.TypeKind); 2428Assert.Equal(TypeKind.Interface, compilation7.GetTypeByMetadataName("I1").TypeKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (75)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
2983Assert.Equal(TypeKind.Interface, dsym2.TypeKind); 4779Assert.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)
2461Assert.Equal(TypeKind.Interface, asm5[1].GlobalNamespace.GetTypeMembers("I1").Single().TypeKind);
Symbols\Metadata\MetadataTypeTests.cs (1)
187Assert.Equal(TypeKind.Interface, type1.TypeKind);
Symbols\Metadata\PE\LoadingEvents.cs (7)
196Assert.Equal(TypeKind.Interface, @interface.TypeKind); 223Assert.Equal(TypeKind.Interface, @interface.TypeKind); 255Assert.Equal(TypeKind.Interface, @interface.TypeKind); 291Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 296Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 332Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 342Assert.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)
31Assert.Equal(TypeKind.Interface, @interface.TypeKind); 58Assert.Equal(TypeKind.Interface, @interface.TypeKind); 90Assert.Equal(TypeKind.Interface, @interface.TypeKind); 126Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 131Assert.Equal(TypeKind.Interface, defInterface.TypeKind); 167Assert.Equal(TypeKind.Interface, outerInterface.TypeKind); 177Assert.Equal(TypeKind.Interface, innerInterface.TypeKind); 229Assert.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)
152get { return _typeKind == TypeKind.Interface; }
Symbols\Retargeting\NoPia.cs (6)
571Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 572Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 872Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 873Assert.Equal(TypeKind.Interface, param[1].Type.TypeKind); 1176Assert.Equal(TypeKind.Interface, param[0].Type.TypeKind); 1177Assert.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)
289Assert.Equal(TypeKind.Interface, type4.TypeKind); 300Assert.Equal(TypeKind.Interface, type3.TypeKind); 856Assert.Equal(TypeKind.Interface, igoo.TypeKind); 1312Assert.Equal(TypeKind.Interface, interface1.TypeKind); 1313Assert.Equal(TypeKind.Interface, interface2.TypeKind); 1776Assert.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)
473if ((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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
212if (containingType != null && containingType.TypeKind == TypeKind.Interface)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
929if (!original.IsReferenceType || original.TypeKind == TypeKind.Interface) 1253if (originalMemberSymbol.ContainingType.TypeKind == TypeKind.Interface)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
210namedType.TypeKind == TypeKind.Interface ? SyntaxKind.InterfaceDeclaration : SyntaxKind.ClassDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (2)
61typeParameter.ConstraintTypes.Where(t => t.TypeKind == TypeKind.Interface).Concat( 62typeParameter.ConstraintTypes.Where(t => t.TypeKind is not TypeKind.Class and not 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)
54ContainingType.TypeKind == TypeKind.Interface ||
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
85if (type.TypeKind is TypeKind.Interface or TypeKind.Pointer or TypeKind.Dynamic ||
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
91if (namedType.TypeKind == TypeKind.Interface)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
279if (collectionType.TypeKind == TypeKind.Interface && knownCollectionInterfaces.Contains(collectionType.OriginalDefinition))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
343TypeKind.Interface => FeaturesResources.interface_,
ExtractInterface\AbstractExtractInterfaceService.cs (3)
145typeKind: TypeKind.Interface, 263var candidateInterfaceName = type.TypeKind == TypeKind.Interface ? type.Name : "I" + type.Name; 326if (typeToExtractFrom.TypeKind == TypeKind.Interface)
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.State.cs (1)
68if (ContainingType == null || ContainingType.TypeKind == TypeKind.Interface)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
178if (info.ContainingType != null && info.ContainingType.TypeKind != TypeKind.Interface)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (4)
139if (_state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface || argumentList.Count == 0) 277if (_state.BaseTypeOrInterfaceOpt == null || _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 287if (_state.BaseTypeOrInterfaceOpt != null && _state.BaseTypeOrInterfaceOpt.TypeKind == TypeKind.Interface) 316? 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)
20TypeKind: TypeKind.Class or TypeKind.Interface or TypeKind.Struct,
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
72return !symbol.IsStatic && namedType.TypeKind is TypeKind.Interface or TypeKind.Class or TypeKind.Struct;
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
315if (memberSymbol.TypeKind == TypeKind.Interface)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
89methodSymbol.ContainingType.TypeKind == TypeKind.Interface)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
97if (containingType == null || containingType.TypeKind == TypeKind.Interface)
PullMemberUp\MemberAndDestinationValidator.cs (1)
16if (destination.TypeKind is not TypeKind.Interface and not TypeKind.Class)
PullMemberUp\MembersPuller.cs (3)
65TypeKind.Interface => PullMembersIntoInterfaceAsync(document, pullMembersUpOptions, cancellationToken), 126if (analysisResult.Member.ContainingType.TypeKind == TypeKind.Interface) 491return destination.TypeKind == TypeKind.Interface
PullMemberUp\PullMembersUpOptionsBuilder.cs (1)
20if (destination.TypeKind == TypeKind.Interface)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
382if (property.ContainingType.TypeKind == TypeKind.Interface)
Shared\Extensions\ISymbolExtensions_2.cs (1)
72case TypeKind.Interface:
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (2)
29TypeKind.Interface 46if (typeToGenerateIn.TypeKind == TypeKind.Interface && isStatic)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
78generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface)), 94generateMethodBodies: _state.TypeToGenerateIn.TypeKind != TypeKind.Interface)),
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
51state.TypeToGenerateIn.TypeKind != TypeKind.Interface &&
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
202return isAbstract || State.TypeToGenerateIn.TypeKind == TypeKind.Interface || throwStatement == null 234if (State.TypeToGenerateIn.TypeKind != TypeKind.Interface)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (2)
121return _state.TypeToGenerateIn.TypeKind != TypeKind.Interface && _refKind != RefKind.None 128if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (3)
104if (state.TypeToGenerateIn.TypeKind == TypeKind.Interface && state.IsStatic) 114var isOnlyReadAndIsInInterface = state.TypeToGenerateIn.TypeKind == TypeKind.Interface && !state.IsWrittenTo; 148if (state.TypeToGenerateIn.TypeKind != TypeKind.Interface)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
90if (this.TypeToGenerateIn.TypeKind == TypeKind.Interface)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
250if (idisposable?.TypeKind == 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)
797Case TypeKind.Interface
Binding\Binder_Expressions.vb (2)
1213Case TYPEKIND.Interface 3808Case 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)
220Case TypeKind.Interface 227TypeKind.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)
455Case TypeKind.Enum, TypeKind.Interface, TypeKind.Delegate
Emit\NoPia\EmbeddedType.vb (1)
129Case TypeKind.Enum, TypeKind.Delegate, TypeKind.Interface
Emit\NoPia\EmbeddedTypesManager.vb (2)
222Case TypeKind.Interface 383If containerKind = TypeKind.Interface OrElse
Semantics\AccessCheck.vb (2)
444Case TypeKind.Interface 506Case TypeKind.Interface
Semantics\Conversions.vb (1)
2878Case TypeKind.Interface
Semantics\TypeInference\TypeArgumentInference.vb (2)
1782If fixedTypeTypeKind <> TypeKind.Class AndAlso fixedTypeTypeKind <> TypeKind.Interface Then 1809Debug.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)
349(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)
1003result = TypeKind.Interface
Symbols\NamedTypeSymbol.vb (2)
820If Me.TypeKind = TypeKind.Interface Then 1086''' 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 1267Return Me.TypeKind = TypeKind.Interface 3502If myTypeKind = TypeKind.Class OrElse myTypeKind = TypeKind.Interface OrElse myTypeKind = TypeKind.Structure OrElse myTypeKind = TypeKind.Module Then 3506Dim 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 1503Debug.Assert(Me.TypeKind <> TypeKind.Interface) 2215Case 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.CodeStyle.Fixes (2)
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
72interfaceTypes = interfaceTypes.WhereNotNull().Where(Function(t) t.TypeKind = TypeKind.Interface).ToImmutableArray()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
100Dim isInterface = namedType.TypeKind = 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)
189Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse 260If targetType Is Nothing OrElse (targetType.TypeKind <> TypeKind.Interface AndAlso targetType.TypeKind <> TypeKind.Class) Then 356Not (targetType.TypeKind = TypeKind.Class OrElse targetType.TypeKind = TypeKind.Interface) OrElse
ExtractMethod\VisualBasicSelectionResult.vb (1)
234info.ConvertedType.TypeKind <> TypeKind.Interface Then
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
116If type.TypeKind <> TypeKind.Interface Then
src\Analyzers\VisualBasic\CodeFixes\ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
72interfaceTypes = interfaceTypes.WhereNotNull().Where(Function(t) t.TypeKind = TypeKind.Interface).ToImmutableArray()
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) 8042Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 8044Assert.Equal(TypeKind.Interface, semanticSummary.ConvertedType.TypeKind) 8922Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 9469Assert.Equal(TypeKind.Interface, semanticSummary.Type.TypeKind) 9471Assert.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 (38)
SymbolsTests\CompilationCreationTests.vb (1)
1922Assert.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)
162Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 177Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 195Assert.Equal(TypeKind.[Interface], [interface].TypeKind) 213Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 216Assert.Equal(TypeKind.[Interface], defInterface.TypeKind) 235Assert.Equal(TypeKind.[Interface], outerInterface.TypeKind) 242Assert.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)
59Assert.Equal(TypeKind.Interface, ienumerable.TypeKind)
SymbolsTests\RefStructInterfacesTests.vb (1)
227Assert.Equal(TypeKind.Interface, type2.TypeKind)
SymbolsTests\Retargeting\NoPia.vb (2)
479Assert.Equal(TypeKind.[Interface], param(0).[Type].TypeKind) 480Assert.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)
93Assert.Equal(TypeKind.Interface, ifaceA.TypeKind) 267Assert.Equal(TypeKind.Interface, i3Interface.TypeKind) 617Assert.Equal(TypeKind.Interface, igoo.TypeKind) 927Assert.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)
Recommendations\VisualBasicRecommendationServiceRunner.vb (3)
404Dim isInterface = TryCast(typeOrAssemblySymbol, ITypeSymbol)?.TypeKind = TypeKind.Interface 463Return namedTypeSymbol.TypeKind = TypeKind.Interface OrElse 479If namedTypeSymbol.TypeKind = TypeKind.Interface Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
106If type.TypeKind <> TypeKind.Interface AndAlso type.TypeKind <> TypeKind.Enum Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
100Dim isInterface = namedType.TypeKind = TypeKind.Interface
Microsoft.CodeAnalysis.Workspaces (28)
Classification\ClassificationExtensions.cs (1)
15TypeKind.Interface => ClassificationTypeNames.InterfaceName,
Editing\SyntaxGenerator.cs (2)
778TypeKind.Interface => InterfaceDeclaration( 849case 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)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
456else if (originalConstraintType.TypeKind == TypeKind.Interface)
Rename\RenameUtilities.cs (1)
230symbol.ContainingType.TypeKind == TypeKind.Interface)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
107((INamedTypeSymbol)referencedSymbol.ContainingSymbol).TypeKind == TypeKind.Interface &&
Shared\Extensions\ISymbolExtensions.cs (1)
496else if (typeSymbol.TypeKind == TypeKind.Interface)
Shared\Extensions\ITypeSymbolExtensions.cs (2)
159typeSymbol.TypeKind == TypeKind.Interface) 196if (type.TypeKind == TypeKind.Interface &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (6)
87if (member.ContainingType.TypeKind == TypeKind.Interface) 158if (implementation?.ContainingType.TypeKind == TypeKind.Interface) 196if (type.TypeKind == TypeKind.Interface) 297if (type.TypeKind == TypeKind.Interface) 345if (!interfacesOrAbstractClasses.All(i => i.TypeKind == TypeKind.Interface) && 362return interfacesOrAbstractClasses.First().TypeKind == TypeKind.Interface
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
173symbol.ContainingType.TypeKind == TypeKind.Interface) 219=> symbol is ITypeSymbol { TypeKind: TypeKind.Interface };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (3)
42if (type is INamedTypeSymbol namedType && namedType.TypeKind == TypeKind.Interface && !allInterfaces.Contains(namedType)) 85=> symbol?.TypeKind == TypeKind.Interface; 188IEnumerable<ITypeSymbol> baseTypes = (baseType.TypeKind == TypeKind.Interface) ? type.AllInterfaces : type.GetBaseTypes();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
127private static readonly SymbolKindOrTypeKind _interface = new(TypeKind.Interface); 386case TypeKind.Interface:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
69new SymbolKindOrTypeKind(TypeKind.Interface),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
176property1.ContainingType.TypeKind == TypeKind.Interface) 186property2.ContainingType.TypeKind == TypeKind.Interface)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
132member.ContainingType is { TypeKind: TypeKind.Interface } interfaceBeingImplemented)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigParsing\NamingStyleParserTests.cs (1)
159symbolKind => Assert.Equal(new SymbolKindOrTypeKind(TypeKind.Interface), symbolKind),
Microsoft.Gen.Logging (2)
Parsing\Parser.LogProperties.cs (1)
20private static readonly HashSet<TypeKind> _allowedTypeKinds = [TypeKind.Class, TypeKind.Struct, TypeKind.Interface];
Parsing\Parser.TagProvider.cs (1)
161if (target.TypeKind == TypeKind.Interface)
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
52if (type is not { TypeKind: TypeKind.Interface, IsComImport: true }
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
32if (typeSymbol.TypeKind != TypeKind.Interface)
Microsoft.VisualStudio.LanguageServices (13)
CommonControls\MemberSelectionViewModel.cs (1)
146var isInterface = destinationType == TypeKind.Interface;
ExtractInterface\ExtractInterfaceDialogViewModel.cs (1)
42destinationTypeKind: TypeKind.Interface,
GenerateType\GenerateTypeDialogViewModel.cs (1)
224PopulateTypeKind(TypeKind.Interface, "interface", "Interface");
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
215if (namedTypeSymbol.TypeKind != TypeKind.Interface) 267if (typeSymbol.TypeKind == TypeKind.Interface)
Library\ObjectBrowser\ObjectList.cs (2)
198case TypeKind.Interface: 443if (typeSymbol.TypeKind == TypeKind.Interface && typeSymbol.Interfaces.IsEmpty)
Progression\GraphBuilder.cs (1)
587case 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)
41else if (namedType.TypeKind == TypeKind.Interface && !namedType.OriginalDefinition.AllInterfaces.IsEmpty)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (4)
755TypeKind.Interface or 3715return typeSymbol.TypeKind == TypeKind.Interface; 3808return typeSymbol.TypeKind == TypeKind.Interface; 3822typeSymbol.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)
131typeKind: TypeKind.Interface);
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
System.Text.Json.SourceGeneration (4)
Helpers\RoslynExtensions.cs (4)
106if (type.IsAbstract || type.TypeKind is TypeKind.Interface || type is not INamedTypeSymbol namedType) 132if (baseType.TypeKind is TypeKind.Interface) 160if (baseType.TypeKind is TypeKind.Interface) 236if (type.TypeKind != TypeKind.Interface)