58 references to CorLibrary
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Conversions.cs (1)
1529var conversions = constructed.ContainingAssembly.CorLibrary.TypeConversions;
Binder\Binder_Symbols.cs (2)
1904if (container is object && container != Compilation.Assembly && container != Compilation.Assembly.CorLibrary) 2518return (containingAssembly == containingAssembly.CorLibrary) ?
Binder\Semantics\Conversions\Conversions.cs (1)
25: base(binder.Compilation.Assembly.CorLibrary, currentRecursionDepth, includeNullability, otherNullabilityOpt)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
38Debug.Assert(corLibrary == corLibrary.CorLibrary);
Compilation\CSharpCompilation.cs (4)
1667result = new MissingMetadataTypeSymbol.TopLevel(Assembly.CorLibrary.Modules[0], ref emittedName, specialType); 3768var corAssembly = Assembly.CorLibrary as Symbols.Metadata.PE.PEAssemblySymbol; 4092if (!FunctionPointerTypeSymbol.IsCallingConventionModifier(internalType) || @this.Assembly.CorLibrary != internalType.ContainingAssembly) 4802return sustainedLowLatency != null && sustainedLowLatency.ContainingAssembly == Assembly.CorLibrary;
Compilation\CSharpCompilation.UsingsFromOptionsAndDiagnostics.cs (1)
136var corLibrary = compilation.SourceAssembly.CorLibrary;
Emitter\Model\PEModuleBuilder.cs (1)
192if ((object)assembly != (object)assembly.CorLibrary &&
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
338var conversions = _factory.CurrentFunction.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\AbstractTypeMap.cs (1)
391dynamicEraser = new DynamicTypeEraser(owner.ContainingAssembly.CorLibrary.GetSpecialType(SpecialType.System_Object));
Symbols\AliasSymbol.cs (1)
237var corLibrary = this.ContainingAssembly.CorLibrary;
Symbols\AssemblySymbol.cs (10)
92IAssemblySymbolInternal IAssemblySymbolInternal.CorLibrary => CorLibrary; 465return CorLibrary is not null && 492return CorLibrary is not null && 606return CorLibrary.GetDeclaredSpecialType(type); 926if (CorLibrary != (object)this && 927!CorLibrary.IsMissing && 930NamedTypeSymbol? corLibCandidate = GetTopLevelTypeByMetadataName(CorLibrary, ref metadataName, assemblyOpt); 960if (skipCorLibrary && assembly == (object)CorLibrary) 1024return (object)type.ContainingAssembly == CorLibrary; 1069return CorLibrary.GetDeclaredSpecialTypeMember(member);
Symbols\Compilation_UsedAssemblies.cs (2)
214if (SourceAssembly.CorLibrary is object) 217AddUsedAssembly(SourceAssembly.CorLibrary);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (3)
211specifierType = compilation.Assembly.CorLibrary.LookupDeclaredTopLevelMetadataType(ref metadataName); 213Debug.Assert(specifierType is null || ReferenceEquals(specifierType.ContainingAssembly, compilation.Assembly.CorLibrary)); 217specifierType = new MissingMetadataTypeSymbol.TopLevel(compilation.Assembly.CorLibrary.Modules[0], ref metadataName, new CSDiagnosticInfo(ErrorCode.ERR_TypeNotFound, typeName));
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
209return (object?)modifierType.ContainingAssembly == modifierType.ContainingAssembly?.CorLibrary
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
257string corlibName = ContainingAssembly.CorLibrary.Name;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
670var bounds = this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited, currentCompilation: null,
Symbols\MetadataOrSourceAssemblySymbol.cs (4)
86Debug.Assert(ReferenceEquals(this.CorLibrary, this)); 115return ReferenceEquals(this.CorLibrary, this) && _cachedSpecialTypes < (int)InternalSpecialType.NextAvailable - 1; 282if (this != CorLibrary) 284return CorLibrary.TypeConversions;
Symbols\MissingAssemblySymbol.cs (1)
210internal override TypeConversions TypeConversions => CorLibrary.TypeConversions;
Symbols\MissingCorLibrarySymbol.cs (1)
44Debug.Assert(this == CorLibrary);
Symbols\MissingMetadataTypeSymbol.cs (1)
294if ((Arity == 0 || MangleName) && (object)containingAssembly != null && ReferenceEquals(containingAssembly, containingAssembly.CorLibrary) && _containingModule.Ordinal == 0)
Symbols\ModuleSymbol.cs (1)
254if ((object)assembly != assembly.CorLibrary)
Symbols\ReducedExtensionMethodSymbol.cs (2)
51var conversions = compilation?.Conversions ?? (ConversionsBase)method.ContainingAssembly.CorLibrary.TypeConversions; 135var conversions = containingAssembly.CorLibrary.TypeConversions;
Symbols\ReferenceManager.cs (2)
162AssemblySymbol corLibrary = candidateAssembly.CorLibrary; 546var corLibrary = sourceAssembly.CorLibrary;
Symbols\Retargeting\RetargetingAssemblySymbol.cs (1)
285internal override TypeConversions TypeConversions => CorLibrary.TypeConversions;
Symbols\Source\SourceAssemblySymbol.cs (1)
1888if ((object)this.CorLibrary != (object)this)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2278var conversions = this.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
116var corLibrary = this.ContainingAssembly.CorLibrary; 162var corLibrary = this.ContainingAssembly.CorLibrary; 482else if (baseSpecialType == SpecialType.System_Array && this.ContainingAssembly.CorLibrary == this.ContainingAssembly)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
999var corLibrary = compilation.SourceAssembly.CorLibrary;
Symbols\Source\SourcePropertySymbolBase.cs (2)
1759var conversions = this.ContainingAssembly.CorLibrary.TypeConversions; 1798var conversions = this.ContainingAssembly.CorLibrary.TypeConversions;
Symbols\Source\SourceTypeParameterSymbol.cs (4)
263DeclaringCompilation, ContainingAssembly.CorLibrary.TypeConversions, _locations[0], diagnostics); 596return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: false, this.DeclaringCompilation, diagnostics); 740return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: false, this.DeclaringCompilation, diagnostics); 998return this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited: true, this.DeclaringCompilation, diagnostics);
Symbols\Symbol.cs (1)
1069if (dependency is object && dependency.CorLibrary == dependency)