41 references to GetCompilation
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
38previousSubmission = (CSharpCompilation)script.Previous.GetCompilation();
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (12)
InteractiveSessionReferencesTests.cs (12)
259script.GetCompilation().VerifyAssemblyVersionsAndAliases( 292script0.GetCompilation().VerifyAssemblyVersionsAndAliases( 305script1.GetCompilation().VerifyAssemblyVersionsAndAliases( 322script2.GetCompilation().VerifyAssemblyVersionsAndAliases( 425script0.GetCompilation().VerifyAssemblyVersionsAndAliases( 433script1.GetCompilation().VerifyAssemblyVersionsAndAliases( 441script2.GetCompilation().VerifyAssemblyVersionsAndAliases( 446DiagnosticExtensions.VerifyEmitDiagnostics(script2.GetCompilation(), 502var c0 = s0.Script.GetCompilation(); 538var c0 = s0.Script.GetCompilation(); 638var c4 = s4.Script.GetCompilation(); 696var c4 = s4.Script.GetCompilation();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (16)
InteractiveSessionReferencesTests.cs (1)
153var m = s1.GetCompilation().Assembly.Modules.Single();
InteractiveSessionTests.cs (9)
477var compilation1 = state1.Result.Script.GetCompilation(); 486var compilation2 = state2.Result.Script.GetCompilation(); 497var compilation3 = state3.Result.Script.GetCompilation(); 1178var compilation = script.GetCompilation(); 1246script.GetCompilation().VerifyDiagnostics(); 1266script.GetCompilation().VerifyDiagnostics(); 1644globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); 1703globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); 1769globalsType: typeof(CommandLineScriptGlobals)).GetCompilation();
ScriptTests.cs (6)
66var compilation = state.Script.GetCompilation(); 74var compilation = state.Script.GetCompilation(); 87var compilation = script.GetCompilation(); 956var compilation = script.GetCompilation(); 970var compilation = script.GetCompilation(); 992var compilation = script.GetCompilation();
Microsoft.CodeAnalysis.Scripting (3)
Script.cs (3)
310return GetCompilation().HasSubmissionResult(); 367return ImmutableArray.CreateRange(GetCompilation().GetDiagnostics(cancellationToken).Where(d => d.Severity == DiagnosticSeverity.Warning)); 392Interlocked.CompareExchange(ref _lazyExecutor, Builder.CreateExecutor<T>(Compiler, GetCompilation(), Options.EmitDebugInformation, cancellationToken), null);
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
219var compilation = (CSharpCompilation)CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 246var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 274var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation(); 311var compilation = CSharpScript.Create(string.Empty, scriptOptions).GetCompilation();
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
53previousSubmission = DirectCast(script.Previous.GetCompilation(), VisualBasicCompilation)
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (4)
InteractiveSessionTests.vb (3)
124Dim compilation1 = state1.Result.Script.GetCompilation() 132Dim compilation2 = state2.Result.Script.GetCompilation() 146Dim compilation3 = state3.Result.Script.GetCompilation()
ScriptTests.vb (1)
63Dim compilation = script.GetCompilation()