22 overrides of ContainingAssembly
Microsoft.CodeAnalysis.CSharp (22)
Symbols\AssemblySymbol.cs (1)
209public sealed override AssemblySymbol ContainingAssembly
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
143public override AssemblySymbol ContainingAssembly
Symbols\MissingMetadataTypeSymbol.cs (1)
228public override AssemblySymbol ContainingAssembly
Symbols\ModuleSymbol.cs (1)
39public override AssemblySymbol ContainingAssembly
Symbols\NamespaceSymbol.cs (1)
102public abstract override AssemblySymbol ContainingAssembly { get; }
Symbols\ReducedExtensionMethodSymbol.cs (1)
357public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
140public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingFieldSymbol.cs (1)
88public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
283public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
275public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingParameterSymbol.cs (1)
76public sealed override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
200public override AssemblySymbol ContainingAssembly
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
70public override AssemblySymbol ContainingAssembly
Symbols\SignatureOnlyMethodSymbol.cs (1)
161public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
105public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
94public override AssemblySymbol ContainingAssembly { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceParameterSymbolBase.cs (1)
62public sealed override AssemblySymbol ContainingAssembly
Symbols\SubstitutedMethodSymbol.cs (1)
127public sealed override AssemblySymbol ContainingAssembly
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
161public override AssemblySymbol ContainingAssembly => _containingType.ContainingAssembly;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
874public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
85public override AssemblySymbol ContainingAssembly => _module.ContainingAssembly;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
78public override AssemblySymbol ContainingAssembly => _containingModule.ContainingAssembly;
249 references to ContainingAssembly
Microsoft.CodeAnalysis.CSharp (249)
Binder\Binder_Attributes.cs (1)
577var containingAssembly = fieldSymbol.ContainingAssembly as SourceAssemblySymbol;
Binder\Binder_Constraints.cs (1)
452var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingSymbol.ContainingAssembly);
Binder\Binder_Conversions.cs (1)
2154var conversions = constructed.ContainingAssembly.CorLibrary.TypeConversions;
Binder\Binder_Expressions.cs (1)
7143if (interfaceType.ContainingAssembly.IsLinked)
Binder\Binder_Lookup.cs (3)
1512diagInfo = new CSDiagnosticInfo(ErrorCode.ERR_FriendRefNotEqualToThis, unwrappedSymbol.ContainingAssembly.Identity.ToString(), AssemblyIdentity.PublicKeyToString(this.Compilation.Assembly.PublicKey)); 1565var keys = unwrappedSymbol.ContainingAssembly.GetInternalsVisibleToPublicKeys(assemblyName); 1697return !IsEffectivelyPrivate(symbol) || symbol.ContainingAssembly == this.Compilation.Assembly;
Binder\Binder_Statements.cs (3)
4021var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly); 4059var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingType.ContainingAssembly); 4072var constructorUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly);
Binder\Binder_Symbols.cs (12)
2006AssemblySymbol container = symbol.ContainingAssembly; 2079mdSymbol.ContainingAssembly, 2101mdSymbol.ContainingAssembly, 2165new object[] { first.ContainingAssembly, first, second.ContainingAssembly }); 2190new object[] { GetContainingAssembly(first), first, second.ContainingAssembly, second }); 2205new object[] { GetContainingAssembly(second), second, first.ContainingAssembly, first }); 2443return symbol.ContainingAssembly ?? ((NamespaceSymbol)symbol).ConstituentNamespaces.First().ContainingAssembly; 2612var containingAssembly = symbol.ContainingAssembly; 2733Debug.Assert((object)forwardedType.ContainingAssembly != null, "How did we find a cycle if there was no forwarding?"); 2734diagnostics.Add(ErrorCode.ERR_CycleInTypeForwarder, location, metadataName.FullName, forwardedType.ContainingAssembly.Name); 2743return forwardedType.ContainingAssembly;
Binder\HostObjectModeBinder.cs (1)
41new object[] { name, ((MissingMetadataTypeSymbol)hostObjectType).ContainingAssembly.Identity },
Binder\ImportChain.cs (2)
86else if (!namespaceOrType.ContainingAssembly.IsLinked) 116else if (target is NamedTypeSymbol { ContainingAssembly.IsLinked: false } or not NamedTypeSymbol)
Binder\PatternExplainer.cs (1)
589var conversions = input.Type.ContainingAssembly.TypeConversions;
Binder\Semantics\AccessCheck.cs (6)
248? IsNonNestedTypeAccessible(type.ContainingAssembly, type.DeclaredAccessibility, within) 282var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 356var withinAssembly = (object)withinType != null ? withinType.ContainingAssembly : (AssemblySymbol)within; 379return withinAssembly.HasInternalAccessTo(containingType.ContainingAssembly); 382if (!withinAssembly.HasInternalAccessTo(containingType.ContainingAssembly)) 393if (withinAssembly.HasInternalAccessTo(containingType.ContainingAssembly))
CommandLine\CSharpCompiler.cs (2)
395if (symbol is null || ReferenceEquals(compilation.Assembly, symbol.ContainingAssembly)) 403new CSDiagnosticInfo(ErrorCode.ERR_SymbolDefinedInAssembly, symbol, symbol.ContainingAssembly),
Compilation\CSharpCompilation.cs (3)
363Debug.Assert(ReferenceEquals(method.ContainingAssembly, Assembly)); 4329if (!FunctionPointerTypeSymbol.IsCallingConventionModifier(internalType) || @this.Assembly.CorLibrary != internalType.ContainingAssembly) 5039return sustainedLowLatency != null && sustainedLowLatency.ContainingAssembly == Assembly.CorLibrary;
Compilation\CSharpSemanticModel.cs (1)
3889var objectType = binaryOperator.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Compiler\ClsComplianceChecker.cs (4)
453else if (GetDeclaredOrInheritedCompliance(symbol.ContainingAssembly) == Compliance.DeclaredTrue && IsTrue(GetInheritedCompliance(symbol))) 788Compliance assemblyCompliance = GetDeclaredOrInheritedCompliance(symbol.ContainingAssembly); 1122return GetDeclaredOrInheritedCompliance(symbol.ContainingAssembly); 1174Symbol containing = (Symbol)symbol.ContainingType ?? symbol.ContainingAssembly;
Compiler\MethodBodySynthesizer.cs (1)
38var objectType = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (3)
155Debug.Assert((object)symbol.ContainingAssembly != (object)_otherAssembly); 880return ArrayTypeSymbol.CreateSZArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers)); 883return ArrayTypeSymbol.CreateMDArray(symbol.BaseTypeNoUseSiteDiagnostics.ContainingAssembly, symbol.ElementTypeWithAnnotations.WithTypeAndModifiers(translatedElementType, translatedModifiers), symbol.Rank, symbol.Sizes, symbol.LowerBounds);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
297baseType = AdaptedNamedTypeSymbol.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object);
Emitter\Model\ParameterSymbolAdapter.cs (1)
90type = AdaptedParameterSymbol.ContainingAssembly.GetSpecialType(constant.SpecialType);
Emitter\Model\PEModuleBuilder.cs (9)
746if ((object)type.ContainingAssembly == sourceAssembly) 763if ((object)type.ContainingAssembly == sourceAssembly) 766Debug.Assert(contender.ContainingAssembly == sourceAssembly); 770else if ((object)contender.ContainingAssembly == sourceAssembly) 773diagnostics.Add(ErrorCode.ERR_ForwardedTypeConflictsWithExportedType, NoLocation.Singleton, type, type.ContainingAssembly, contender, contender.ContainingModule); 778diagnostics.Add(ErrorCode.ERR_ForwardedTypesConflict, NoLocation.Singleton, type, type.ContainingAssembly, contender, contender.ContainingAssembly); 1742var byteArrayType = ArrayTypeSymbol.CreateSZArray(byteType.ContainingAssembly, TypeWithAnnotations.Create(byteType)); 1828var boolArray = ArrayTypeSymbol.CreateSZArray(booleanType.ContainingAssembly, TypeWithAnnotations.Create(booleanType));
Emitter\Model\PropertySymbolAdapter.cs (1)
148Debug.Assert(AdaptedPropertySymbol.ContainingModule is SourceModuleSymbol || AdaptedPropertySymbol.ContainingAssembly.IsLinked);
Emitter\NoPia\EmbeddedType.cs (2)
70return refs.IndexOf(UnderlyingNamedType.AdaptedNamedTypeSymbol.ContainingAssembly, ReferenceEqualityComparer.Instance); 277string guidString = TypeManager.GetAssemblyGuidString(UnderlyingNamedType.AdaptedNamedTypeSymbol.ContainingAssembly);
Emitter\NoPia\EmbeddedTypesManager.cs (6)
189ImmutableArray.Create(new TypedConstant(ctor.Parameters[0].Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))), 246_assemblyGuidMap.TryAdd(t.UnderlyingNamedType.AdaptedSymbol.ContainingAssembly, null); 261underlyingTypeA.AdaptedSymbol.ContainingAssembly, 262underlyingTypeB.AdaptedSymbol.ContainingAssembly); 270underlyingType.AdaptedSymbol.ContainingAssembly); 311if (namedType.SpecialType != SpecialType.None || namedType.IsErrorType() || !namedType.ContainingAssembly.IsLinked)
FlowAnalysis\DefiniteAssignment.cs (3)
249Debug.Assert((object)member.ContainingAssembly == compilation?.SourceAssembly); 250return member.ContainingAssembly as SourceAssemblySymbol; 2604if (!(type.ContainingAssembly is SourceAssemblySymbol assembly))
FlowAnalysis\EmptyStructTypeCache.cs (2)
219((object)member.ContainingAssembly != _sourceAssembly || // imported fields 261if (!assembly.HasInternalAccessTo(symbol.ContainingAssembly)) return false;
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
147get { return TypeWithAnnotations.Create(ContainingAssembly.GetSpecialType(SpecialType.System_Void)); }
Lowering\IteratorRewriter\IteratorStateMachine.cs (6)
34interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(ElementType.Type)); 35interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_IEnumerable)); 38interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(ElementType.Type)); 39interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_IDisposable)); 40interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_IEnumerator)); 61internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
105var assembly = receiver.Type.ContainingAssembly; 124var assembly = receiver.Type.ContainingAssembly;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
1071return method.ContainingAssembly?.GetSpecialTypeMember(specialMember) == method;
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
24if (rewrittenReceiverOpt != null && node.Event.ContainingAssembly.IsLinked && node.Event.ContainingType.IsInterfaceType())
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
347var conversions = _factory.CurrentFunction.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\AbstractTypeMap.cs (1)
391dynamicEraser = new DynamicTypeEraser(owner.ContainingAssembly.CorLibrary.GetSpecialType(SpecialType.System_Object));
Symbols\AliasSymbol.cs (1)
240var corLibrary = this.ContainingAssembly.CorLibrary;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (2)
76var allowRefLikeTypes = containingType.ContainingAssembly.RuntimeSupportsByRefLikeGenerics; 138type = TypeWithAnnotations.Create(ArrayTypeSymbol.CreateSZArray(containingType.ContainingAssembly, type));
Symbols\ArrayTypeSymbol.cs (1)
80return new SZArray(elementTypeWithAnnotations, array, GetSZArrayInterfaces(elementTypeWithAnnotations, array.ContainingAssembly));
Symbols\AssemblySymbol.cs (5)
1021conflicts = (result.ContainingAssembly, candidate.ContainingAssembly); 1027warnings.Add(ErrorCode.WRN_MultiplePredefTypes, NoLocation.Singleton, result, result.ContainingAssembly); 1056return (object)type.ContainingAssembly == CorLibrary; 1081Debug.Assert(result is null || ReferenceEquals(result.ContainingAssembly, assembly));
Symbols\Attributes\AttributeData.cs (1)
672Debug.Assert(target is SourceAssemblySymbol || target.ContainingAssembly is SourceAssemblySymbol);
Symbols\Compilation_WellKnownMembers.cs (3)
831var boolArray = ArrayTypeSymbol.CreateSZArray(booleanType.ContainingAssembly, TypeWithAnnotations.Create(booleanType)); 848var stringArray = ArrayTypeSymbol.CreateSZArray(stringType.ContainingAssembly, TypeWithAnnotations.Create(stringType)); 1085Debug.Assert(type.ContainingAssembly?.RuntimeSupportsNumericIntPtr != true);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
213Debug.Assert(specifierType is null || ReferenceEquals(specifierType.ContainingAssembly, compilation.Assembly.CorLibrary));
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (3)
209Debug.Assert(modifierType.ContainingAssembly is not null || modifierType.IsErrorType()); 210return (object?)modifierType.ContainingAssembly == modifierType.ContainingAssembly?.CorLibrary
Symbols\MemberSymbolExtensions.cs (1)
259if (!checkConstraintsIncludingExtension(constructed, compilation, method.ContainingAssembly.CorLibrary.TypeConversions))
Symbols\Metadata\PE\MetadataDecoder.cs (2)
234AssemblySymbol containingAssembly = symbol.OriginalDefinition.ContainingAssembly; 374Debug.Assert(candidate is null || ReferenceEquals(candidate.ContainingAssembly, assembly));
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
19|| type.ContainingAssembly?.RuntimeSupportsNumericIntPtr == true)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (6)
2210var containingAssembly = this.ContainingAssembly as PEAssemblySymbol; 2496isOrdinaryEmbeddableStruct = this.ContainingAssembly.IsLinked; 2575var isOrdinaryEmbeddableStruct = (this.TypeKind == TypeKind.Struct) && (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.None) && this.ContainingAssembly.IsLinked; 2742if (@base?.SpecialType == SpecialType.None && @base.ContainingAssembly?.IsMissing == true) 3218if (ContainingAssembly.RuntimeSupportsNumericIntPtr) 3223return ContainingAssembly.GetNativeIntegerType(this);
Symbols\Metadata\PE\PEParameterSymbol.cs (4)
714&& ContainingAssembly.TypeConversions.HasCallerLineNumberConversion(this.Type, ref discardedUseSiteInfo); 734&& ContainingAssembly.TypeConversions.HasCallerInfoStringConversion(this.Type, ref discardedUseSiteInfo); 755&& ContainingAssembly.TypeConversions.HasCallerInfoStringConversion(this.Type, ref discardedUseSiteInfo); 778&& ContainingAssembly.TypeConversions.HasCallerInfoStringConversion(this.Type, ref discardedUseSiteInfo);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
545if (!crossedAssemblyBoundaryWithoutInternalsVisibleTo && !curr.ContainingAssembly.HasInternalAccessTo(next.ContainingAssembly))
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
147return _containingSymbol.ContainingAssembly;
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
84Debug.Assert(ReferenceEquals(corType.ContainingAssembly, this));
Symbols\MethodSymbol.cs (2)
706return IsScriptConstructor && ContainingAssembly.IsInteractive; 714return IsScriptInitializer && ContainingAssembly.IsInteractive;
Symbols\MissingMetadataTypeSymbol.cs (1)
66AssemblySymbol containingAssembly = this.ContainingAssembly;
Symbols\MissingNamespaceSymbol.cs (1)
60return _containingSymbol.ContainingAssembly;
Symbols\NativeIntegerTypeSymbol.cs (1)
36Debug.Assert(!underlyingType.ContainingAssembly.RuntimeSupportsNumericIntPtr);
Symbols\NonMissingAssemblySymbol.cs (3)
109if (!result.IsErrorType() && (object)result.ContainingAssembly == (object)this) 121Debug.Assert(result is null || ((object)result.ContainingAssembly == (object)this && !result.IsErrorType())); 173Debug.Assert(result is null || ((object)result.ContainingAssembly == (object)this && !result.IsErrorType()));
Symbols\NonMissingModuleSymbol.cs (1)
83var dependentAssembly = dependentType.ContainingAssembly;
Symbols\ObsoleteAttributeHelpers.cs (3)
104|| symbol.ContainingAssembly.ObsoleteKind is ObsoleteAttributeKind.Experimental) 110|| symbol.ContainingAssembly.ObsoleteKind is ObsoleteAttributeKind.Uninitialized) 160var data = symbol.ObsoleteAttributeData ?? symbol.ContainingModule.ObsoleteAttributeData ?? symbol.ContainingAssembly.ObsoleteAttributeData;
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
948if (method.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses)
Symbols\PublicModel\Symbol.cs (1)
205IAssemblySymbol ISymbol.ContainingAssembly => UnderlyingSymbol.ContainingAssembly.GetPublicSymbol();
Symbols\ReducedExtensionMethodSymbol.cs (3)
52var conversions = compilation?.Conversions ?? (ConversionsBase)method.ContainingAssembly.CorLibrary.TypeConversions; 134var containingAssembly = method.ContainingAssembly; 359get { return _reducedFrom.ContainingAssembly; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
232AssemblySymbol retargetFrom = type.ContainingAssembly; 364Debug.Assert((object)type.ContainingAssembly != (object)RetargetingAssembly.UnderlyingAssembly); 372type.ContainingAssembly.GetGuidString(out scope); 824type.ErrorInfo ?? new CSDiagnosticInfo(ErrorCode.ERR_ErrorInReferencedAssembly, type.ContainingAssembly?.Identity.GetDisplayName() ?? string.Empty), true);
Symbols\Source\CustomModifierUtils.cs (1)
59returnType = returnType.WithTypeAndModifiers(CopyTypeCustomModifiers(returnTypeWithCustomModifiers, returnTypeSymbol, destinationMethod.ContainingAssembly),
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
342var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, implementingMember.ContainingAssembly); 404if (implementedMember.IsStatic && !implementingMember.ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\ExtensionGroupingInfo.cs (2)
743protected override ITypeReference? ObjectType => ExtensionMarkerTypes[0].UnderlyingExtensions[0].ContainingAssembly.GetSpecialType(SpecialType.System_Object).GetCciAdapter(); 893protected override ITypeReference? ObjectType => UnderlyingExtensions[0].ContainingAssembly.GetSpecialType(SpecialType.System_Object).GetCciAdapter();
Symbols\Source\ModifierUtils.cs (2)
528if (symbol.ContainingType?.IsInterface == true && !symbol.ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 539var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(futureDestination: diagnostics, assemblyBeingBuilt: symbol.ContainingAssembly);
Symbols\Source\SourceAssemblySymbol.cs (1)
2228if (forwardedType.ContainingAssembly == this)
Symbols\Source\SourceCustomEventSymbol.cs (3)
67CopyEventCustomModifiers(overriddenEvent, ref _type, ContainingAssembly); 73CopyEventCustomModifiers(explicitlyImplementedEvent, ref _type, ContainingAssembly); 153if (!ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
100var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, delegateType.ContainingAssembly);
Symbols\Source\SourceEventSymbol.cs (1)
622var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceFieldLikeEventSymbol.cs (3)
62CopyEventCustomModifiers(overriddenEvent, ref _type, ContainingAssembly); 106if (!ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces) 113if (!ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
Symbols\Source\SourceFieldSymbol.cs (1)
89CSharpCustomModifier.CreateRequired(this.ContainingAssembly.GetSpecialType(SpecialType.System_Runtime_CompilerServices_IsVolatile)));
Symbols\Source\SourceFixedFieldSymbol.cs (1)
238=> ContainingAssembly.GetSpecialType(SpecialType.System_ValueType);
Symbols\Source\SourceMemberContainerSymbol.cs (4)
279ContainingSymbol.ContainingAssembly.KeepLookingForDeclaredSpecialTypes) 761var assembly = (SourceAssemblySymbol)ContainingAssembly; 859var managedKindUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(ContainingAssembly); 2646var conversions = this.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (9)
724var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 870if (!this.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && overridingMember is MethodSymbol overridingMethod) 1028if (!overridingMethod.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses) 1098if (!overridingProperty.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses) 1157var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, overridingProperty.ContainingAssembly); 1236if (overridingSymbol.ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && 1239var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1781if (!overriding.ContainingAssembly.HasInternalAccessTo(overridden.ContainingAssembly) &&
Symbols\Source\SourceMemberFieldSymbol.cs (2)
97CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 376if (!ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
Symbols\Source\SourceMemberMethodSymbol.cs (3)
361var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 1058if ((((hasBody || IsExtern) && !(IsStatic && IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 1070if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
971var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 972if (!AccessCheck.IsSymbolAccessible(this, ContainingAssembly, ref useSiteInfo))
Symbols\Source\SourceNamedTypeSymbol.cs (4)
1875if (ContainingAssembly.RuntimeSupportsNumericIntPtr) 1880return ContainingAssembly.GetNativeIntegerType(this); 2050if (!ContainingAssembly.RuntimeSupportsInlineArrayTypes) 2058if (!ContainingAssembly.RuntimeSupportsExtendedLayout)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (8)
116var corLibrary = this.ContainingAssembly.CorLibrary; 126var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 162var corLibrary = this.ContainingAssembly.CorLibrary; 368CompoundUseSiteInfo<AssemblySymbol> useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 537else if (baseSpecialType == SpecialType.System_Array && this.ContainingAssembly.CorLibrary == this.ContainingAssembly) 749var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 833var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (2)
1203ConversionsBase conversions = compilation?.Conversions ?? (ConversionsBase)extensionMember.ContainingAssembly.CorLibrary.TypeConversions; 1223TypeConversions conversions = extension.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\Source\SourceParameterSymbolBase.cs (2)
24Debug.Assert(containingSymbol.ContainingAssembly != null); 64get { return _containingSymbol.ContainingAssembly; }
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
324CustomModifierUtils.CopyTypeCustomModifiers(type.Type, _lazyReturnType.Type, this.ContainingAssembly),
Symbols\Source\SourcePropertySymbol.cs (1)
670var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\Source\SourcePropertySymbolBase.cs (3)
261CustomModifierUtils.CopyTypeCustomModifiers(overriddenPropertyType.Type, type.Type, this.ContainingAssembly), 1816var conversions = this.ContainingAssembly.CorLibrary.TypeConversions; 1855var conversions = this.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\Source\SourceTypeParameterSymbol.cs (5)
264DeclaringCompilation, ContainingAssembly.CorLibrary.TypeConversions, _locations[0], diagnostics); 347return this.ContainingAssembly.GetSpecialType(SpecialType.System_Object); 587return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: false, this.DeclaringCompilation, diagnostics); 765return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: false, this.DeclaringCompilation, diagnostics); 1005return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: true, this.DeclaringCompilation, diagnostics);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
764var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly); 868var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, ContainingAssembly);
Symbols\SubstitutedMethodSymbol.cs (1)
131return OriginalDefinition.ContainingAssembly;
Symbols\Symbol.cs (5)
171return (object)container != null ? container.ContainingAssembly : null; 267if (ContainingAssembly.IsInteractive) 293if (ContainingAssembly.IsInteractive) 313IAssemblySymbolInternal ISymbolInternal.ContainingAssembly => this.ContainingAssembly; 1085AssemblySymbol dependency = this.ContainingAssembly;
Symbols\SymbolDistinguisher.cs (3)
104var containingAssembly0 = unwrappedSymbol0.ContainingAssembly; 105var containingAssembly1 = unwrappedSymbol1.ContainingAssembly; 175AssemblySymbol containingAssembly = unwrappedSymbol.ContainingAssembly;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
61internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object); 63internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
98return (ReturnType: !ContainingAssembly.RuntimeSupportsCovariantReturnsOfClasses && VirtualCloneInBase(ContainingType) is { } baseClone ?
Symbols\Synthesized\Records\SynthesizedRecordObjectMethod.cs (1)
47reportAnError = (object)leastOverridden != overriding.ContainingAssembly.GetSpecialTypeMember(overriddenSpecialMember) &&
Symbols\Synthesized\SynthesizedContainer.cs (1)
168internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (1)
34boolType.ContainingAssembly,
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (1)
38systemByteType.ContainingAssembly,
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
266internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object); 268internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
156get { return TypeWithAnnotations.Create(ContainingAssembly.GetSpecialType(SpecialType.System_Void)); }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (4)
72if (!this.ContainingAssembly.HasInternalAccessTo(_overriddenAccessor.ContainingAssembly)) 84if (!this.ContainingAssembly.HasInternalAccessTo(_overriddenAccessor.ContainingAssembly))
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
139return TypeWithAnnotations.Create(ContainingAssembly.GetSpecialType(SpecialType.System_Void));
Symbols\Tuples\TupleTypeSymbol.cs (2)
493Binder.Error(diagnostics, ErrorCode.ERR_PredefinedTypeMemberNotFoundInAssembly, syntax, relativeDescriptor.Name, type, type.ContainingAssembly); 744container.ContainingAssembly);
Symbols\TypeSymbol.cs (4)
561|| (SpecialType is SpecialType.System_IntPtr or SpecialType.System_UIntPtr && this.ContainingAssembly.RuntimeSupportsNumericIntPtr); 1662implementingType.ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces : 1663implementingType.ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)) 1762if (!implementingType.ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\TypeSymbolExtensions.cs (13)
1067if ((acc2 == Accessibility.Private || acc2 == Accessibility.Internal || acc2 == Accessibility.ProtectedAndInternal) && s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1079if ((acc2 == Accessibility.Private || acc2 == Accessibility.Internal || acc2 == Accessibility.ProtectedAndInternal) && s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1136if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1154if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly)) 1174if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly) || 1185if (s2.ContainingAssembly.HasInternalAccessTo(s1.ContainingAssembly) && 1736AssemblySymbol assembly = containingType.ContainingAssembly;