168 references to Off
Microsoft.CodeAnalysis.Rebuild (1)
VisualBasicCompilationFactory.cs (1)
102
optionStrict: pdbOptions.OptionToEnum<OptionStrict>(CompilationOptionNames.OptionStrict) ?? OptionStrict.
Off
,
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_Conversions.vb (6)
998
If isExplicit AndAlso Me.OptionStrict <> VisualBasic.OptionStrict.
Off
Then
1004
Debug.Assert(Not isExplicit OrElse relaxationBinder.OptionStrict = VisualBasic.OptionStrict.
Off
)
1238
If isExplicit AndAlso Me.OptionStrict <> VisualBasic.OptionStrict.
Off
Then
1244
Debug.Assert(Not isExplicit OrElse reclassifyBinder.OptionStrict = VisualBasic.OptionStrict.
Off
)
1458
If isExplicit AndAlso Me.OptionStrict <> VisualBasic.OptionStrict.
Off
Then
1464
Debug.Assert(Not isExplicit OrElse relaxationBinder.OptionStrict = VisualBasic.OptionStrict.
Off
)
Binding\Binder_Delegates.vb (2)
488
If addressOfExpression.Binder.OptionStrict <> VisualBasic.OptionStrict.
Off
Then
494
Debug.Assert(resolutionBinder.OptionStrict = VisualBasic.OptionStrict.
Off
)
Binding\OptionStrictOffBinder.vb (1)
28
Return OptionStrict.
Off
Binding\SourceFileBinder.vb (1)
44
Return If(_sourceFile.OptionStrict.Value, OptionStrict.On, OptionStrict.
Off
)
CommandLine\VisualBasicCommandLineParser.vb (2)
136
Dim optionStrict As OptionStrict = OptionStrict.
Off
279
optionStrict = VisualBasic.OptionStrict.
Off
OptionStrict.vb (1)
36
Return value >= OptionStrict.
Off
AndAlso value <= OptionStrict.[On]
VisualBasicCompilationOptions.vb (2)
75
Optional optionStrict As OptionStrict = OptionStrict.
Off
,
1282
Optional optionStrict As OptionStrict = OptionStrict.
Off
,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
SpeculationAnalyzer.vb (1)
561
If Me.OriginalSemanticModel.OptionStrict() <> OptionStrict.
Off
AndAlso
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (1)
AddExplicitCastTests.vb (1)
514
End Enum", compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionStrict:=OptionStrict.
Off
))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
2213
Assert.Equal(VisualBasic.OptionStrict.
Off
, parsedArgs.CompilationOptions.OptionStrict)
2221
Assert.Equal(VisualBasic.OptionStrict.
Off
, parsedArgs.CompilationOptions.OptionStrict)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
AddExplicitCastTests.vb (1)
514
End Enum", compilationOptions:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionStrict:=OptionStrict.
Off
))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenNullable.vb (4)
3574
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
).WithOptionInfer(False))
3601
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
).WithOptionInfer(True))
3773
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
).WithOptionInfer(False))
3797
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
).WithOptionInfer(True))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
196
optionStrict:=OptionStrict.
Off
,
XmlLiteralTests.vb (1)
4388
</compilation>, Net40XmlReferences, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
82
optionStrict:=OptionStrict.
Off
,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (119)
Binding\ForEachTests.vb (2)
1117
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.
Off
))
1129
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
Off
))
Compilation\SemanticModelAPITests.vb (1)
4149
</compilation>, Nothing, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
Semantics\ArrayLiteralTests.vb (4)
24
Private ReadOnly _strictOff As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
)
803
Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False)
845
Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False)
887
Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False)
Semantics\ConditionalExpressionsTests.vb (9)
53
TestCondition("if(nothing, GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.
Off
)
60
TestCondition("if(""string"", #1/1/1#)", expectedType:="System.String", strict:=OptionStrict.
Off
)
88
TestCondition("if(GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.
Off
)
111
TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.
Off
)
135
TestCondition("if(GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.
Off
)
157
TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.
Off
)
161
TestCondition("if(""yes"", nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.
Off
)
654
TestInvalidTernaryIfOperatorsStrict(OptionStrict.
Off
,
839
TestInvalidBinaryIfOperatorsStrict(OptionStrict.
Off
,
Semantics\Conversions.vb (16)
2815
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
3069
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
3237
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
4453
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
4462
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(True))
4492
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
4501
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(True))
4526
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
4541
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(True))
4582
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
4603
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(True))
4628
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
4637
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(True))
4662
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
4671
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(True))
4701
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
Off
).WithOverflowChecks(False))
Semantics\Conversions_AnonymousDelegates.vb (22)
39
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
130
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
187
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
275
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
424
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
582
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
674
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
762
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
850
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
939
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1026
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1078
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1181
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1231
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1390
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1495
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1581
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1631
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1777
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1825
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1883
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
2328
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
Semantics\Lambda_AnonymousDelegateInference.vb (5)
55
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
160
For Each strict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
322
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
434
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
553
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
Semantics\Lambda_Relaxation.vb (24)
35
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
148
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
246
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
344
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
441
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
592
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
676
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
760
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
845
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
921
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
966
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1019
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1175
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1238
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1290
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1512
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1611
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1688
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1742
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1902
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
1994
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
2050
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
2222
For Each optStrict In {OptionStrict.
Off
, OptionStrict.On, OptionStrict.Custom}
2783
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
Semantics\LambdaTests.vb (17)
781
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
833
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
889
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
943
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1047
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1092
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1147
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1203
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1261
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1355
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
1556
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
1576
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
1599
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
1619
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
1646
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
1669
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
1693
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
Semantics\MultiDimensionalTest.vb (2)
707
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
Off
))
810
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
Off
))
Semantics\NewOnInterfaceTests.vb (1)
730
</compilation>, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
))
Semantics\OptionApis.vb (1)
45
Assert.Equal(OptionStrict.
Off
, semanticModelAllOff.OptionStrict)
Semantics\OverloadResolution.vb (6)
4129
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
4238
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
4754
Dim Compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
4790
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
5008
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
5043
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
Semantics\QueryExpressions.vb (1)
2823
Assert.Equal(OptionStrict.
Off
, compilation.Options.OptionStrict)
Semantics\TypeArgumentInference.vb (2)
861
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
1033
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
))
Semantics\UsingStatementTest.vb (1)
233
</compilation>, expectedOutput:="Hi there", options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
)).
Semantics\VariableTypeInference.vb (5)
444
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
Off
))
477
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.
Off
))
491
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
Off
))
542
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.
Off
))
556
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
Off
))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (20)
SymbolsTests\ExtensionMethods\LookupAndInvocation.vb (1)
1486
CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
Off
),
SymbolsTests\Source\BindingsTests.vb (11)
144
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
150
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
156
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
162
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
168
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
188
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
241
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
247
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
253
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
260
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
267
Assert.Equal(OptionStrict.
Off
, context.OptionStrict)
SymbolsTests\Source\DelegateTests.vb (3)
392
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
))
410
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
))
428
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
))
SymbolsTests\Source\EventTests.vb (2)
241
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
))
362
Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
Off
))
SymbolsTests\SymbolErrorTests.vb (3)
19859
compilation1 = compilation1.WithOptions(TestOptions.ReleaseExe.WithOptionInfer(False).WithOptionStrict(OptionStrict.
Off
))
19885
compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.
Off
))
20033
compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
Off
).WithOptionInfer(True))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
SpeculationAnalyzer.vb (1)
561
If Me.OriginalSemanticModel.OptionStrict() <> OptionStrict.
Off
AndAlso