2 writes to OptimizationLevel
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
173OptimizationLevel = optimizationLevel; 371=> optimizationLevel == OptimizationLevel ? this : new ScriptOptions(this) { OptimizationLevel = optimizationLevel };
8 references to OptimizationLevel
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
61optimizationLevel: script.Options.OptimizationLevel,
Microsoft.CodeAnalysis.Scripting (3)
ScriptOptions.cs (3)
189optimizationLevel: other.OptimizationLevel, 367/// Create a new <see cref="ScriptOptions"/> with the specified <see cref="OptimizationLevel"/>. 371=> optimizationLevel == OptimizationLevel ? this : new ScriptOptions(this) { OptimizationLevel = optimizationLevel };
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
ScriptOptionsTests.cs (3)
255Assert.Equal(ScriptOptions.Default.WithOptimizationLevel(optimizationLevel).OptimizationLevel, optimizationLevel); 256Assert.Equal(OptimizationLevel.Debug, ScriptOptions.Default.OptimizationLevel); 275Assert.Equal(scriptOptions.OptimizationLevel, compilation.Options.OptimizationLevel);
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
87optimizationLevel:=script.Options.OptimizationLevel,