47 references to Compilation
Microsoft.CodeAnalysis (9)
Compilation\DeterministicKeyBuilder.cs (1)
325var compilation = compilationReference.Compilation;
MetadataReference\CompilationReference.cs (4)
113return Compilation.AssemblyName; 130return object.Equals(this.Compilation, other.Compilation) && object.Equals(this.Properties, other.Properties); 140return Hash.Combine(this.Compilation.GetHashCode(), this.Properties.GetHashCode());
ReferenceManager\CommonReferenceManager.Resolution.cs (4)
289compilationReference.Compilation.Assembly.Identity, 587return (object)cx.Compilation == cy.Compilation; 599return RuntimeHelpers.GetHashCode(compilationReference.Compilation);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
29builder.Add(reference.Compilation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\Retargeting\RetargetCustomAttributes.cs (9)
180var c1AsmRef = test.c2.Compilation.GetReferencedAssemblySymbol(test.c1); 189var c1AsmRef = test.c2.Compilation.GetReferencedAssemblySymbol(test.c1); 199var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 208var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 218var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 232var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 242var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 254var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single(); 266var testClass = test.c2.Compilation.GlobalNamespace.GetTypeMembers("TestClass").Single();
Microsoft.CodeAnalysis.Features (1)
UnusedReferences\UnusedReferencesRemover.cs (1)
56.Select(reference => reference.Compilation.SourceModule.MetadataName)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\IRuntimeEnvironment.cs (1)
187list.Add(reference.Compilation);
Microsoft.CodeAnalysis.UnitTests (7)
MetadataReferences\MetadataReferenceTests.cs (7)
347Assert.Same(c, r1.Compilation); 353Assert.Same(c, r2.Compilation); 359Assert.Same(c, r3.Compilation); 378Assert.Same(c, r1.Compilation); 384Assert.Same(c, r2.Compilation); 390Assert.Same(c, r3.Compilation); 540var c1b = c1a.Compilation.ToMetadataReference();
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Attributes\AssemblyAttributes.vb (6)
584dependencies:={New ModuleData(en_usRef.Compilation.Assembly.Identity, 586en_usRef.Compilation.EmitToArray(), 617dependencies:={New ModuleData(en_UKRef.Compilation.Assembly.Identity, 619en_UKRef.Compilation.EmitToArray(), 621New ModuleData(neutralRef.Compilation.Assembly.Identity, 623neutralRef.Compilation.EmitToArray(),
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
29builder.Add(reference.Compilation);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
231Assert.True(compilation1.References.OfType<CompilationReference>().Any(c => c.Compilation == compilation2) || 232compilation2.References.OfType<CompilationReference>().Any(c => c.Compilation == compilation1));
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
SolutionTests\SolutionTests.cs (9)
2869return cr != null && cr.Compilation == compilationReference.Compilation; 5001Assert.True(compilation1.References.Any(r => r is CompilationReference compilationReference && compilationReference.Compilation == compilation2)); 5029Assert.True(compilation2.References.Any(r => r is CompilationReference compilationReference && compilationReference.Compilation == compilation1)); 5126Assert.True(compilation1New.References.Any(r => r is CompilationReference compilationReference && compilationReference.Compilation == compilation2)); 5127Assert.True(compilation1New.References.Any(r => r is CompilationReference compilationReference && compilationReference.Compilation == compilation3)); 5174Assert.True(compilation1.References.Any(r => r is CompilationReference compilationReference && compilationReference.Compilation == compilation2)); 5175Assert.True(compilation1.References.Any(r => r is CompilationReference compilationReference && compilationReference.Compilation == compilation3)); 5698Assert.Single(frozenCompilation2.References, r => r is CompilationReference c && c.Compilation == frozenCompilation1);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
436Assert.Same(compilationWithGenerator, compilationReference.Compilation);