67 references to CorLibrary
Microsoft.CodeAnalysis.VisualBasic (26)
Binding\Binder.vb (1)
938If container IsNot Nothing AndAlso container <> Compilation.Assembly AndAlso container <> Compilation.Assembly.CorLibrary Then
Binding\LookupResult.vb (1)
891If containingAssembly Is containingAssembly.CorLibrary Then
Compilation\VisualBasicCompilation.vb (2)
1397Return sustainedLowLatency IsNot Nothing AndAlso sustainedLowLatency.ContainingAssembly = Assembly.CorLibrary 2590Dim corLibrary = TryCast(Assembly.CorLibrary, Symbols.Metadata.PE.PEAssemblySymbol)
Emit\PEModuleBuilder.vb (2)
81Return SourceModule.ContainingSourceAssembly.CorLibrary 163If assembly IsNot assembly.CorLibrary AndAlso
Symbols\AssemblySymbol.vb (8)
54Return CorLibrary 390Return CorLibrary IsNot Nothing AndAlso 474Return CorLibrary.GetDeclaredSpecialType(type) 618If CorLibrary IsNot Me AndAlso 619Not CorLibrary.IsMissing AndAlso 622Dim corLibCandidate As NamedTypeSymbol = CorLibrary.LookupDeclaredTopLevelMetadataType(metadataName) 638If skipCorLibrary AndAlso reference Is CorLibrary Then 685Return type.ContainingAssembly Is CorLibrary
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
151Dim corlibName As String = ContainingAssembly.CorLibrary.Name
Symbols\MetadataOrSourceAssemblySymbol.vb (2)
74Debug.Assert(Me.CorLibrary Is Me) 97Return Me.CorLibrary Is Me AndAlso _cachedSpecialTypes < SpecialType.Count
Symbols\MissingMetadataTypeSymbol.vb (1)
184containingAssembly IsNot Nothing AndAlso containingAssembly Is containingAssembly.CorLibrary AndAlso _containingModule.Ordinal = 0 Then
Symbols\ModuleSymbol.vb (1)
176If assembly IsNot assembly.CorLibrary Then
Symbols\ReferenceManager.vb (2)
84Dim corLibrary As AssemblySymbol = candidateAssembly.CorLibrary 476Dim corLibrary = assemblySymbol.CorLibrary
Symbols\Source\SourceAssemblySymbol.vb (1)
908If Me.CorLibrary IsNot Me Then
Symbols\SpecialMembers.vb (1)
23Return CorLibrary.GetDeclaredSpecialTypeMember(member)
Symbols\Symbol.vb (1)
881If dependency IsNot Nothing AndAlso dependency.CorLibrary = dependency Then
Symbols\UsedAssemblies.vb (2)
172If SourceAssembly.CorLibrary IsNot Nothing Then 174AddUsedAssembly(sourceAssembly.CorLibrary)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\AttributeTests.vb (1)
227Dim globalNS = If(compilation Is Nothing, m.ContainingAssembly.CorLibrary.GlobalNamespace, compilation.GlobalNamespace)
Attributes\AttributeTests_WellKnownAttributes.vb (5)
59Dim globalNS = If(compilation Is Nothing, assembly.CorLibrary.GlobalNamespace, compilation.GlobalNamespace) 188Dim globalNS = If(compilation Is Nothing, assembly.CorLibrary.GlobalNamespace, compilation.GlobalNamespace) 326sysNS = DirectCast(peAssembly.CorLibrary.GlobalNamespace.GetMember("System"), NamespaceSymbol) 949Dim globalNS = If(compilation Is Nothing, assembly.CorLibrary.GlobalNamespace, compilation.GlobalNamespace) 3609Dim hostProtectionAttr As NamedTypeSymbol = sourceAssembly.CorLibrary.LookupDeclaredTopLevelMetadataType(emittedName)
Emit\CompilationEmitTests.vb (3)
3282Dim securityPermissionAttr As NamedTypeSymbol = sourceAssembly.CorLibrary.LookupDeclaredTopLevelMetadataType(emittedName) 3306Dim principalPermAttr As NamedTypeSymbol = sourceAssembly.CorLibrary.LookupDeclaredTopLevelMetadataType(emittedName) 4281Assert.NotSame(compilation.Assembly.CorLibrary, compilation.Assembly)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
MissingAssemblyTests.vb (1)
362Dim expectedMissingAssemblyIdentity = comp.Assembly.CorLibrary.Identity
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Compilation\ReferenceManagerTests.vb (14)
1544Assert.NotSame(cPublic.Assembly.CorLibrary, cInternal.Assembly.CorLibrary) 1545Assert.NotSame([cAll].Assembly.CorLibrary, cInternal.Assembly.CorLibrary) 1546Assert.NotSame([cAll].Assembly.CorLibrary, cPublic.Assembly.CorLibrary) 1547Assert.Same(cPublic.Assembly.CorLibrary, cPublic2.Assembly.CorLibrary) 1548Assert.Same(cInternal.Assembly.CorLibrary, cInternal2.Assembly.CorLibrary) 1549Assert.Same([cAll].Assembly.CorLibrary, cAll2.Assembly.CorLibrary) 1670Assert.Same(assembly1.CorLibrary, assembly1) 1671Assert.Same(assembly2.CorLibrary, assembly2)
Semantics\MyBaseMyClassTests.vb (1)
4024m.ContainingAssembly.CorLibrary.GlobalNamespace.GetMember(ns),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (15)
SymbolDisplay\SymbolDisplayTests.vb (1)
6037retargetedAssembly.SetCorLibrary(comp.SourceAssembly.CorLibrary)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (1)
744m.ContainingAssembly.CorLibrary.GlobalNamespace.GetMember(ns),
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (1)
2032Dim nsSymbol As NamespaceSymbol = (If(fromCorLib, srcAssembly.CorLibrary, srcAssembly)).GlobalNamespace
SymbolsTests\AssemblyAndNamespaceTests.vb (1)
531Assert.Equal(objectType, comp.Assembly.CorLibrary.GetSpecialType(SpecialType.System_Object))
SymbolsTests\CorLibrary\CorTypes.vb (1)
122Assert.Same(c1.Assembly, c1.Assembly.CorLibrary)
SymbolsTests\Metadata\WinMdEventTest.vb (1)
961retargetingAssembly.SetCorLibrary(comp.Assembly.CorLibrary)
SymbolsTests\MyBaseMyClassSemanticsTests.vb (1)
181Dim nsSymbol As NamespaceSymbol = (If(fromCorLib, srcAssembly.CorLibrary, srcAssembly)).GlobalNamespace
SymbolsTests\Retargeting\NoPia.vb (4)
234Assert.Same(assemblies(2), compilation1.Assembly.CorLibrary) 235Assert.Same(assemblies(2), compilation2.Assembly.CorLibrary) 1729Assert.NotSame(compilation1.SourceAssembly.CorLibrary, compilation2.SourceAssembly.CorLibrary)
SymbolsTests\Retargeting\RetargetingTests.vb (2)
368retargetingAssembly.SetCorLibrary(sourceAssembly.CorLibrary) ' Need to do this explicitly since our retargeting assembly wasn't constructed using the real mechanism. 406retargetingAssembly.SetCorLibrary(sourceAssembly.CorLibrary) ' Need to do this explicitly since our retargeting assembly wasn't constructed using the real mechanism.
SymbolsTests\WellKnownTypeValidationTests.vb (1)
259If comp.Assembly.CorLibrary Is comp.Assembly Then
SymbolsTests\WithStatementSymbolsTests.vb (1)
334Dim nsSymbol As NamespaceSymbol = (If(fromCorLib, srcAssembly.CorLibrary, srcAssembly)).GlobalNamespace
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MetadataHelpers.vb (1)
18Return this.ContainingAssembly.CorLibrary