Binder\Binder_Symbols.cs (12)
1876AssemblySymbol container = symbol.ContainingAssembly;
1949mdSymbol.ContainingAssembly,
1971mdSymbol.ContainingAssembly,
2035new object[] { first.ContainingAssembly, first, second.ContainingAssembly });
2060new object[] { GetContainingAssembly(first), first, second.ContainingAssembly, second });
2075new object[] { GetContainingAssembly(second), second, first.ContainingAssembly, first });
2313return symbol.ContainingAssembly ?? ((NamespaceSymbol)symbol).ConstituentNamespaces.First().ContainingAssembly;
2482var containingAssembly = symbol.ContainingAssembly;
2603Debug.Assert((object)forwardedType.ContainingAssembly != null, "How did we find a cycle if there was no forwarding?");
2604diagnostics.Add(ErrorCode.ERR_CycleInTypeForwarder, location, fullName, forwardedType.ContainingAssembly.Name);
2613return forwardedType.ContainingAssembly;
Emitter\Model\PEModuleBuilder.cs (11)
674if ((object)type.ContainingAssembly == sourceAssembly)
691if ((object)type.ContainingAssembly == sourceAssembly)
694Debug.Assert(contender.ContainingAssembly == sourceAssembly);
698else if ((object)contender.ContainingAssembly == sourceAssembly)
701diagnostics.Add(ErrorCode.ERR_ForwardedTypeConflictsWithExportedType, NoLocation.Singleton, type, type.ContainingAssembly, contender, contender.ContainingModule);
706diagnostics.Add(ErrorCode.ERR_ForwardedTypesConflict, NoLocation.Singleton, type, type.ContainingAssembly, contender, contender.ContainingAssembly);
1219if (symbol.ContainingAssembly.IsInteractive)
1245if (symbol.ContainingAssembly.IsInteractive)
1614var byteArrayType = ArrayTypeSymbol.CreateSZArray(byteType.ContainingAssembly, TypeWithAnnotations.Create(byteType));
1700var boolArray = ArrayTypeSymbol.CreateSZArray(booleanType.ContainingAssembly, TypeWithAnnotations.Create(booleanType));
Symbols\Source\SourceTypeParameterSymbol.cs (5)
261var args = new ConstraintsHelper.CheckConstraintsArgsBoxed(DeclaringCompilation, new TypeConversions(ContainingAssembly.CorLibrary), _locations[0], diagnostics);
342return this.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
582return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: false, this.DeclaringCompilation, diagnostics);
717return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: false, this.DeclaringCompilation, diagnostics);
966return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: true, this.DeclaringCompilation, diagnostics);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (10)