11 implementations of ITypeSymbol_Interfaces
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeSymbol.cs (1)
101ImmutableArray<INamedTypeSymbol> ITypeSymbol.Interfaces
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
83public ImmutableArray<INamedTypeSymbol> Interfaces => _symbol.Interfaces;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
557Private ReadOnly Property ITypeSymbol_Interfaces As ImmutableArray(Of INamedTypeSymbol) Implements ITypeSymbol.Interfaces
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeSymbol.cs (1)
29public virtual ImmutableArray<INamedTypeSymbol> Interfaces
92 references to ITypeSymbol_Interfaces
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
ILLink.RoslynAnalyzer (7)
DataFlow\DynamicallyAccessedMembersBinder.cs (3)
391foreach (var i in type.Interfaces) 437if (!type.Interfaces.IsEmpty) 446foreach (var iface in type.Interfaces)
DynamicallyAccessedMembersAnalyzer.cs (1)
148foreach (var interfaceType in type.Interfaces)
INamedTypeSymbolExtensions.cs (2)
37var interfaces = namedType.Interfaces; 57foreach (var iface in interfaceSymbol.Interfaces)
ITypeSymbolExtensions.cs (1)
45foreach (var iface in baseType.Interfaces)
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
86foreach (var @interface in type.Interfaces)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
86foreach (var @interface in type.Interfaces)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
XmlComments\XmlComment.InheritDoc.cs (1)
305return typeSymbol.Interfaces.FirstOrDefault();
Microsoft.CodeAnalysis.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (2)
68if (derivedType.Interfaces.Length != 0) 70foreach (var interfaceType in derivedType.Interfaces)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
109if (!ContainingType.Interfaces.Contains(TypeToGenerateIn))
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
213if (!ContainingType.Interfaces.OfType<INamedTypeSymbol>().Contains(TypeToGenerateIn))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
71return containingType.Interfaces.FirstOrDefault(iface => iface.Equals(equatable));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
324foreach (var type in namedType.Interfaces)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (13)
CodeGen\CodeGenTupleTest.cs (13)
14304m3TupleArray.Interfaces[0].ToTestDisplayString()); 14314m3TupleArray.Interfaces[0].ToTestDisplayString()); 14322m4TupleList.Interfaces[0].ToTestDisplayString()); 14468Assert.True(v2Type.Interfaces.IsEmpty); 20451var c1Interfaces = c1.Interfaces; 20463var c2Interfaces = c2.Interfaces; 20475var c3Interfaces = c3.Interfaces; 20486var c4Interfaces = c4.Interfaces; 20667var c1Interfaces = c1.Interfaces; 20679var c2Interfaces = c2.Interfaces; 20691var c3Interfaces = c3.Interfaces; 20702var c4Interfaces = c4.Interfaces; 20751var c3Interfaces = c3.Interfaces;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ExtensionTests.cs (1)
74Assert.Empty(symbol.Interfaces);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
112if (!containingType.Interfaces.Contains(symbol))
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
112foreach (var directInterface in namedType.Interfaces)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
71return containingType.Interfaces.FirstOrDefault(iface => iface.Equals(equatable));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (2)
265VerifyInterfaces(underlyingType, underlyingType.Interfaces, nativeIntegerType, nativeIntegerType.Interfaces);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
9283Assert.Empty(type.Interfaces);
Symbols\AnonymousTypesSemanticsTests.cs (1)
1992Assert.Equal(0, type.Interfaces.Length);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
324foreach (var type in namedType.Interfaces)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
SymbolFinder\SymbolFinderTests.cs (8)
128Assert.NotEqual(baseClassSymbol, derivedClassSymbol.Interfaces[0]); 345Assert.NotEqual(baseInterfaceSymbol, Assert.Single(implementingClassSymbol.Interfaces)); 386Assert.NotEqual(baseInterfaceSymbol, Assert.Single(implementingClassSymbol.Interfaces)); 426Assert.NotEqual(baseInterfaceSymbol, Assert.Single(implementingClassSymbol.Interfaces)); 499Assert.True(immediateDerived.All(d => d.Interfaces.Contains(rootType))); 508Assert.True(transitiveDerived.Any(d => !d.Interfaces.Contains(rootType)), "At least one result must not immediately derive from the type"); 549Assert.True(immediateImpls.All(d => d.Interfaces.Contains(rootType))); 560Assert.True(transitiveImpls.Any(d => !d.Interfaces.Contains(rootType)), "At least one result must not immediately derive from the type");
Microsoft.CodeAnalysis.Extensions.Package (1)
Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Microsoft.CodeAnalysis.Features (6)
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
70foreach (var iface in containingType.Interfaces)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
83public ImmutableArray<INamedTypeSymbol> Interfaces => _symbol.Interfaces;
src\Analyzers\Core\CodeFixes\AddExplicitCast\InheritanceDistanceComparer.cs (2)
68if (derivedType.Interfaces.Length != 0) 70foreach (var interfaceType in derivedType.Interfaces)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
109if (!ContainingType.Interfaces.Contains(TypeToGenerateIn))
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
213if (!ContainingType.Interfaces.OfType<INamedTypeSymbol>().Contains(TypeToGenerateIn))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
213if (derivedType.Interfaces.Contains(baseType)) 218foreach (INamedTypeSymbol baseInterface in derivedType.Interfaces)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbol.vb (1)
557Private ReadOnly Property ITypeSymbol_Interfaces As ImmutableArray(Of INamedTypeSymbol) Implements ITypeSymbol.Interfaces
Microsoft.CodeAnalysis.Workspaces (8)
Editing\SyntaxGenerator.cs (3)
776interfaceTypes: type.Interfaces.Select(TypeExpression), 784interfaceTypes: type.Interfaces.Select(TypeExpression), 790interfaceTypes: type.Interfaces.Select(TypeExpression),
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
26/// types based either on <see cref="ITypeSymbol.BaseType"/> or <see cref="ITypeSymbol.Interfaces"/>. 521foreach (var interfaceType in type.Interfaces)
Shared\Extensions\ISymbolExtensions.cs (1)
497return typeSymbol.Interfaces.FirstOrDefault();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceInfo.cs (1)
334foreach (var implemented in comIface.Interfaces)
Microsoft.VisualStudio.LanguageServices (4)
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
221foreach (var interfaceSymbol in namedTypeSymbol.Interfaces) 270if (typeSymbol.Interfaces.Length > 0)
Library\ObjectBrowser\ObjectList.cs (1)
445if (typeSymbol.TypeKind == TypeKind.Interface && typeSymbol.Interfaces.IsEmpty)
PullMemberUp\MainDialog\BaseTypeTreeNodeViewModel.cs (1)
57currentTreeNode.BaseTypeNodes = [.. currentTypeSymbol.Interfaces
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\Collections\BasesCollection.cs (2)
79return symbol.Interfaces; 141return symbol.Interfaces.Length;
Roslyn.Diagnostics.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
324foreach (var type in namedType.Interfaces)
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
Text.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
101foreach (var interfaceType in type.Interfaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
29namedType.Interfaces,