2 writes to WarningLevel
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
176WarningLevel = warningLevel; 389=> warningLevel == WarningLevel ? this : new ScriptOptions(this) { WarningLevel = warningLevel };
7 references to WarningLevel
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
65warningLevel: script.Options.WarningLevel,
Microsoft.CodeAnalysis.Scripting (3)
ScriptOptions.cs (3)
192warningLevel: other.WarningLevel, 386/// Create a new <see cref="ScriptOptions"/> with the specific <see cref="WarningLevel"/>. 389=> warningLevel == WarningLevel ? this : new ScriptOptions(this) { WarningLevel = warningLevel };
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
ScriptOptionsTests.cs (3)
286Assert.Equal(ScriptOptions.Default.WithWarningLevel(warningLevel).WarningLevel, warningLevel); 287Assert.Equal(4, ScriptOptions.Default.WarningLevel); 312Assert.Equal(scriptOptions.WarningLevel, compilation.Options.WarningLevel);