152 references to WithOverflowChecks
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicCompilationOptions.vb (1)
1376
Return
WithOverflowChecks
(checkOverflow)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (62)
CodeGen\CodeGenExpression.vb (28)
112
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
380
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
632
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
900
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
1113
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
1262
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
1403
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
1552
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
1693
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
1850
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
1999
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
2156
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
2305
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
2462
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
2610
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
2767
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
2916
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
3073
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
3222
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
3379
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
3529
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
3687
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
3836
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
3994
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
4140
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
4298
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
4448
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
4606
Dim compilation = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
CodeGen\CodeGenTests.vb (3)
13587
Dim compilation = CreateCompilationWithMscorlib40({source}, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
13615
Dim compilation = CreateCompilationWithMscorlib40({source}, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
13764
Dim compilation = CreateCompilationWithMscorlib40({source}, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
CodeGen\CodeGenTuples.vb (21)
1996
</compilation>, references:=s_valueTupleRefs, options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), expectedOutput:=<![CDATA[
2802
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
2887
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
2982
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
3068
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True), additionalRefs:=s_valueTupleRefs)
3153
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True), additionalRefs:=s_valueTupleRefs)
3213
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True), additionalRefs:=s_valueTupleRefs)
3282
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
3330
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
3432
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True), additionalRefs:=s_valueTupleRefs)
3644
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
3656
comp = comp.WithOptions(comp.Options.
WithOverflowChecks
(True))
13264
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
13312
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
13366
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
13412
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
13450
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
13488
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
13526
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False), additionalRefs:=s_valueTupleRefs)
21721
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False),
21742
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True),
Emit\FieldInitializerTests.vb (1)
352
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True))
ExpressionTrees\CodeGenExprLambda.vb (9)
42
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True),
737
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(True),
743
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False),
1205
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(checked),
1227
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(checked),
1452
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(checked),
1809
options:=If(optimize, TestOptions.ReleaseDll, TestOptions.DebugDll).
WithOverflowChecks
(checked))
1829
options:=If(optimize, TestOptions.ReleaseExe, TestOptions.DebugExe).
WithOverflowChecks
(checked),
1922
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(checked),
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.vb (1)
2968
Dim uncheckedComp = CreateCompilationWithMscorlib40({source}, options:=TestOptions.DebugDll.
WithOverflowChecks
(False))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (66)
Compilation\VisualBasicCompilationOptionsTests.vb (1)
107
TestProperty(Function(old, value) old.
WithOverflowChecks
(value), Function(opt) opt.CheckOverflow, False)
Semantics\ArrayLiteralTests.vb (6)
803
Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False)
810
Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False)
845
Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False)
852
Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False)
887
Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False)
895
Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False)
Semantics\BinaryOperators.vb (7)
48
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.
WithOverflowChecks
(False))
226
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.
WithOverflowChecks
(False))
378
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.
WithOverflowChecks
(False))
494
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.
WithOverflowChecks
(False))
973
Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(True))
1322
Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(False))
1338
compilation = compilation.WithOptions(TestOptions.ReleaseDll.
WithOverflowChecks
(True))
Semantics\Conversions.vb (39)
1074
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
3358
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False),
4453
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
4456
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
4459
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False))
4462
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(True))
4465
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
4468
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(True))
4492
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
4495
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
4498
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False))
4501
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(True))
4504
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
4507
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(True))
4526
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
4529
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
4532
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False))
4541
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(True))
4544
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
4547
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(True))
4582
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
4587
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
4592
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False))
4603
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(True))
4606
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
4609
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(True))
4628
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
4631
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
4634
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False))
4637
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(True))
4640
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
4643
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(True))
4662
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
4665
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
4668
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(False))
4671
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(True))
4674
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
4677
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).
WithOverflowChecks
(True))
4701
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).
WithOverflowChecks
(False))
Semantics\OverloadResolution.vb (1)
3058
options:=TestOptions.ReleaseExe.
WithOverflowChecks
(False))
Semantics\UnaryOperators.vb (5)
326
c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.
WithOverflowChecks
(False))
515
Dim c2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.
WithOverflowChecks
(False))
661
Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(True))
813
Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(False))
825
compilation = compilation.WithOptions(TestOptions.ReleaseDll.
WithOverflowChecks
(True))
Semantics\UserDefinedConversions.vb (7)
3126
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True))
3189
Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(True),
3243
options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
3309
options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
3376
options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
3436
Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False),
3482
options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).
WithOverflowChecks
(False))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (12)
SymbolsTests\CheckedUserDefinedOperatorsTests.vb (12)
138
Dim comp1 = CreateCompilation(source1, references:={ilReference}, options:=TestOptions.DebugDll.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
167
Dim comp2 = CreateCompilation(source2, references:={ilReference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
246
Dim comp1 = CreateCompilation(source1, references:={comp0Reference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
249
Dim comp2 = CreateCompilation(source2, references:={comp0Reference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
338
Dim comp1 = CreateCompilation(source1, references:={ilReference}, options:=TestOptions.DebugDll.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
358
Dim comp2 = CreateCompilation(source2, references:={ilReference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
429
Dim comp1 = CreateCompilation(source1, references:={comp0Reference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
432
Dim comp2 = CreateCompilation(source2, references:={comp0Reference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
514
Dim comp1 = CreateCompilation(source1, references:={ilReference}, options:=TestOptions.DebugDll.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
538
Dim comp2 = CreateCompilation(source2, references:={ilReference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
604
Dim comp1 = CreateCompilation(source1, references:={comp0Reference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
607
Dim comp2 = CreateCompilation(source2, references:={comp0Reference}, options:=TestOptions.DebugExe.
WithOverflowChecks
(enabled:=overflowChecksEnabled))
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
79
.
WithOverflowChecks
(Not compilerOptions.bRemoveIntChecks) _
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (9)
IOperation\IOperationTests_IBinaryOperatorExpression.vb (2)
998
Dim compilation = CreateEmptyCompilation({syntaxTree}, references:=references, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(False))
1447
Dim compilation = CreateEmptyCompilation({syntaxTree}, references:=references, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(False))
IOperation\IOperationTests_IForLoopStatement.vb (5)
131
VerifyOperationTreeForTest(Of ForBlockSyntax)(source, expectedOperationTree, TestOptions.ReleaseDll.
WithOverflowChecks
(False))
1735
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.
WithOverflowChecks
(False))
3636
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.
WithOverflowChecks
(False))
5418
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.
WithOverflowChecks
(False))
5537
VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics, TestOptions.ReleaseDll.
WithOverflowChecks
(False))
IOperation\IOperationTests_IUnaryOperatorExpression.vb (2)
2136
Dim compilation = CreateEmptyCompilation({syntaxTree}, references:=references, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(False))
2163
Dim compilation = CreateEmptyCompilation({syntaxTree}, references:=references, options:=TestOptions.ReleaseDll.
WithOverflowChecks
(False))