21 references to WithOverflowChecks
Microsoft.CodeAnalysis.CSharp (1)
CSharpCompilationOptions.cs (1)
810
return
WithOverflowChecks
(checkOverflow);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenCheckedTests.cs (4)
1880
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(true)).VerifyIL("C.ULong_UInt", @"
1889
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(false)).VerifyIL("C.ULong_UInt", @"
1912
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(true)).VerifyIL("C.ULong_UInt", @"
1940
CompileAndVerify(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(true)).VerifyIL("C.ULong_UInt", @"
Emit\DeterministicTests.cs (1)
480
.
WithOverflowChecks
(false)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\OperatorTests.cs (11)
7483
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(true));
7699
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(false));
7716
compilation = compilation.WithOptions(TestOptions.ReleaseDll.
WithOverflowChecks
(true));
7852
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseDll.
WithOverflowChecks
(true));
8012
var compilation = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib40Extended, options: TestOptions.ReleaseDll.
WithOverflowChecks
(true));
8584
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(false));
8599
compilation = compilation.WithOptions(TestOptions.ReleaseDll.
WithOverflowChecks
(true));
8628
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(false));
8647
compilation = compilation.WithOptions(TestOptions.ReleaseDll.
WithOverflowChecks
(true));
8678
var compilation = CreateCompilation(source, options: TestOptions.ReleaseDll.
WithOverflowChecks
(false));
8697
compilation = compilation.WithOptions(TestOptions.ReleaseDll.
WithOverflowChecks
(true));
Semantics\TopLevelStatementsTests.cs (1)
8397
var comp = CreateCompilation(text, options: TestOptions.DebugExe.
WithOverflowChecks
(true), parseOptions: DefaultParseOptions);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (1)
2903
}", options: TestOptions.ReleaseDll.
WithOverflowChecks
(true));
Compilation\CSharpCompilationOptionsTests.cs (1)
115
TestProperty((old, value) => old.
WithOverflowChecks
(value), opt => opt.CheckOverflow, true);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
139
.
WithOverflowChecks
(GetBooleanOption(CompilerOptions.OPTID_CHECKED))