3 writes to CheckOverflow
Microsoft.CodeAnalysis (1)
Compilation\CompilationOptions.cs (1)
305this.CheckOverflow = checkOverflow;
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
400return new CSharpCompilationOptions(this) { CheckOverflow = enabled };
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
645Return New VisualBasicCompilationOptions(Me) With {.CheckOverflow = enabled}
33 references to CheckOverflow
Microsoft.CodeAnalysis (4)
Compilation\CompilationOptions.cs (3)
623this.CheckOverflow == other.CheckOverflow && 671return Hash.Combine(this.CheckOverflow,
Compilation\DeterministicKeyBuilder.cs (1)
450writer.Write("checkOverflow", options.CheckOverflow);
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder.cs (1)
138return result == OverflowChecks.Enabled || result == OverflowChecks.Implicit && Compilation.Options.CheckOverflow;
Compilation\CSharpCompilation.cs (2)
4751if (Options.CheckOverflow) 4753writeValue(CompilationOptionNames.Checked, Options.CheckOverflow.ToString());
CSharpCompilationOptions.cs (2)
238checkOverflow: other.CheckOverflow, 395if (enabled == this.CheckOverflow)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
43pdbOptions.VerifyPdbOption("checked", originalOptions.CheckOverflow);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
78TestHiddenProperty((old, value) => old.WithOverflowChecks(value), opt => opt.CheckOverflow, true); 115TestProperty((old, value) => old.WithOverflowChecks(value), opt => opt.CheckOverflow, true);
Microsoft.CodeAnalysis.Features (1)
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
172if (!compilation.Options.CheckOverflow)
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
ScriptOptionsTests.cs (1)
247Assert.Equal(scriptOptions.CheckOverflow, compilation.Options.CheckOverflow);
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (1)
760WriteValue(builder, CompilationOptionNames.Checked, Options.CheckOverflow.ToString())
VisualBasicCompilationOptions.vb (2)
313checkOverflow:=other.CheckOverflow, 641If enabled = Me.CheckOverflow Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
4862Assert.False(parsedArgs.CompilationOptions.CheckOverflow) 4866Assert.False(parsedArgs.CompilationOptions.CheckOverflow) 4870Assert.True(parsedArgs.CompilationOptions.CheckOverflow) 4874Assert.True(parsedArgs.CompilationOptions.CheckOverflow)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
27pdbOptions.VerifyPdbOption("checked", originalOptions.CheckOverflow)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Semantics\Conversions.vb (2)
229Assert.True(c1.Options.CheckOverflow) 1081Assert.False(c1.Options.CheckOverflow)
Semantics\OverloadResolution.vb (2)
2886Assert.True(c1.Options.CheckOverflow) 3065Assert.False(c1.Options.CheckOverflow)
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
34writer.WriteBoolean(options.CheckOverflow);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
VisualStudioMSBuildWorkspaceTests.cs (4)
1595await AssertCSCompilationOptionsAsync(true, options => options.CheckOverflow); 1602await AssertCSCompilationOptionsAsync(false, options => options.CheckOverflow); 1811await AssertVBCompilationOptionsAsync(false, options => options.CheckOverflow); 1818await AssertVBCompilationOptionsAsync(true, options => options.CheckOverflow);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
168if (options.CheckOverflow)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
211? new CompilationData(compilationOptions.AllowUnsafe, compilationOptions.CheckOverflow, langVersion)