6 implementations of ContainingType
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (1)
1084 references to ContainingType
ConfigurationSchemaGenerator (5)
ILLink.CodeFixProvider (2)
ILLink.RoslynAnalyzer (29)
Microsoft.Analyzers.Extra (8)
Microsoft.Analyzers.Local (7)
Microsoft.AspNetCore.Analyzers (7)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers (27)
Microsoft.AspNetCore.Components.Analyzers (5)
Microsoft.AspNetCore.Components.SdkAnalyzers (4)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Mvc.Analyzers (8)
Microsoft.AspNetCore.Mvc.Api.Analyzers (10)
Microsoft.CodeAnalysis (21)
Microsoft.CodeAnalysis.CodeStyle (108)
Microsoft.CodeAnalysis.CodeStyle.Fixes (36)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
20namedType.ContainingType,
Microsoft.CodeAnalysis.CSharp (29)
Microsoft.CodeAnalysis.CSharp.CodeStyle (26)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
82if (!symbol.ContainingType
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (22)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (17)
CodeGen\CodeGenLocalFunctionTests.cs (15)
2595Assert.Equal(verify.Compilation.GetTypeByMetadataName("Program"), goo.ContainingType);
2613Assert.Equal(program, goo.ContainingType);
2719Assert.Equal(outer.ContainingType, inner.ContainingType);
3134Assert.Equal(program, goo.ContainingType);
3205Assert.Equal(program, inner.ContainingType);
3206Assert.Equal(program, middle.ContainingType);
3207Assert.Equal(program, outer.ContainingType);
3251Assert.Equal(program, verify.FindLocalFunction("First").ContainingType);
3252Assert.Equal(program, verify.FindLocalFunction("Second").ContainingType);
3277Assert.Equal(program, goo.ContainingType);
3312Assert.Equal(program, goo.ContainingType);
3313Assert.Equal(program, bar.ContainingType);
3398Assert.Equal(program, verify.FindLocalFunction("Inner").ContainingType);
4241Assert.Equal(verify.Compilation.GetTypeByMetadataName("Program"), goo.ContainingType);
Microsoft.CodeAnalysis.CSharp.Features (71)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
82if (!symbol.ContainingType
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (59)
Symbols\Source\NullablePublicAPITests.cs (20)
2742Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2743Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2747Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2748Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2788Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2789Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2793Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2794Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2831Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2832Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2836Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2837Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2880Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2881Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2885Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations[0]);
2886Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
3413Assert.Equal(annotation, method.ContainingType.TypeArgumentNullableAnnotations[0]);
3414Assert.Equal(annotation, method.ContainingType.TypeArgumentNullableAnnotations().First());
3458Assert.Equal(annotation, method.ContainingType.TypeArgumentNullableAnnotations[0]);
3459Assert.Equal(annotation, method.ContainingType.TypeArgumentNullableAnnotations().First());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.CSharp.Workspaces (42)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (143)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Test.Utilities (16)
Microsoft.CodeAnalysis.VisualBasic (13)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (15)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Features (27)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (38)
Microsoft.CodeAnalysis.Workspaces (143)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\INamedTypeSymbolExtensions.cs (1)
20namedType.ContainingType,
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.DotNet.CodeAnalysis (3)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.Logging (8)
Microsoft.Gen.Metrics (4)
Microsoft.Gen.MetricsReports (4)
Microsoft.Interop.ComInterfaceGenerator (6)
Microsoft.Interop.JavaScript.JSImportGenerator (5)
Microsoft.Interop.LibraryImportGenerator (4)
Microsoft.Interop.SourceGeneration (6)
Microsoft.Maui.Controls.BindingSourceGen (7)
Microsoft.VisualStudio.LanguageServices (19)
Progression\GraphNodeIdCreation.cs (7)
94items.Add(await GetPartialForTypeAsync(symbol.ContainingType, CodeGraphNodeIdName.Type, solution, cancellationToken).ConfigureAwait(false));
156if (namedType.ContainingType == null && Equals(namedType.ConstructedFrom, namedType) && namedType.Arity == 0)
203if (namedType.ContainingType != null)
205partials.Add(await GetPartialForTypeAsync(namedType.ContainingType, CodeGraphNodeIdName.ParentType, solution, cancellationToken, hasGenericArguments).ConfigureAwait(false));
228if (pointerType.PointedAtType.ContainingType != null)
230partials.Add(await GetPartialForTypeAsync(pointerType.PointedAtType.ContainingType, CodeGraphNodeIdName.ParentType, solution, cancellationToken).ConfigureAwait(false));
292partials.AddRange(await GetPartialsForNamespaceAndTypeAsync(member.ContainingType, true, solution, cancellationToken).ConfigureAwait(false));
Microsoft.VisualStudio.LanguageServices.CSharp (6)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.VisualBasic (10)
System.Private.CoreLib.Generators (13)
System.Text.Json.SourceGeneration (4)
System.Text.RegularExpressions.Generator (3)
System.Windows.Forms.Analyzers.CSharp (3)
System.Windows.Forms.Analyzers.VisualBasic (3)