2 writes to WarningLevel
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
174WarningLevel = warningLevel; 387=> 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)
189warningLevel: other.WarningLevel, 384/// Create a new <see cref="ScriptOptions"/> with the specific <see cref="WarningLevel"/>. 387=> 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);