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