270 references to Custom
Microsoft.CodeAnalysis.VisualBasic (20)
Binding\Binder_Conversions.vb (2)
517ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 549ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then
Binding\Binder_Expressions.vb (4)
1597Case VisualBasic.OptionStrict.Custom 2175ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 2185ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 4657ElseIf OptionStrict = OptionStrict.Custom Then
Binding\Binder_Lambda.vb (2)
654ElseIf OptionStrict = OptionStrict.Custom Then 977ElseIf OptionStrict = OptionStrict.Custom Then
Binding\Binder_Latebound.vb (2)
56ElseIf OptionStrict = VisualBasic.OptionStrict.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then 160ElseIf OptionStrict = VisualBasic.OptionStrict.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then
Binding\Binder_Operators.vb (2)
402ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 'warn if option strict is off 1180ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then
Binding\Binder_Statements.vb (2)
1281ElseIf OptionStrict = OptionStrict.Custom Then 1289ElseIf OptionStrict = OptionStrict.Custom Then
CommandLine\VisualBasicCommandLineParser.vb (1)
257optionStrict = VisualBasic.OptionStrict.Custom
Symbols\Source\SourceComplexParameterSymbol.vb (1)
335ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
116ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceMemberFieldSymbol.vb (1)
180ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceMethodSymbol.vb (1)
2278ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourcePropertySymbol.vb (1)
364ElseIf binder.OptionStrict = OptionStrict.Custom Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
2217Assert.Equal(VisualBasic.OptionStrict.Custom, parsedArgs.CompilationOptions.OptionStrict) 2225Assert.Equal(VisualBasic.OptionStrict.Custom, parsedArgs.CompilationOptions.OptionStrict)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenDelegateCreation.vb (3)
2041CompileAndVerify(source, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2046CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)). 2431Dim c = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom))
CodeGen\CodeGenLateBound.vb (1)
3791</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom))
CodeGen\CodeGenNullable.vb (1)
1751Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
XmlLiteralTests.vb (1)
4395compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (223)
Binding\BindingErrorTests.vb (22)
9168compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom)) 9252compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom)) 18420</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18681</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18705</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18731</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18757</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18779</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18812</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18908</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18931</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18952</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18973</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 18994</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 19588</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 19639</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 19665</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 24247</compilation>, {Net40.SystemCore}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 24285</compilation>, {Net40.SystemCore}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 24320</compilation>, {Net40.SystemCore}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 24368</compilation>, {Net40.SystemCore}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 24411</compilation>, {Net40.SystemCore}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\ArrayLiteralTests.vb (1)
26Private ReadOnly _strictCustom As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)
Semantics\AsyncAwait.vb (1)
820compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom))
Semantics\BinaryOperators.vb (3)
746Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 747Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 768</compilation>, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\CompoundAssignment.vb (2)
218Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 291Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\ConditionalAccessTests.vb (2)
3344TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3987TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom),
Semantics\ConditionalExpressionsTests.vb (8)
47TestCondition("if(nothing, GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.Custom, errors:= 87TestCondition("if(GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.Custom) 105TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.Custom, errors:= 129TestCondition("if(GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.Custom, errors:= 158TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.Custom) 162TestCondition("if(""yes"", nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.Custom) 616TestInvalidTernaryIfOperatorsStrict(OptionStrict.Custom, 785TestInvalidBinaryIfOperatorsStrict(OptionStrict.Custom,
Semantics\Conversions.vb (13)
2866compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 4456compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4465compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4495compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4504compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4529compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4544compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4587compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4606compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4631compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4640compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4665compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4674compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True))
Semantics\Conversions_AnonymousDelegates.vb (32)
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} 354compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 356Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 503compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 505Assert.Equal(OptionStrict.Custom, 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} 1308compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1310Assert.Equal(OptionStrict.Custom, 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} 1707compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1709Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 1777For Each optStrict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 1825For Each optStrict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 1978compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1980Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 2208Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2285Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2328For Each optStrict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 2369Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2429Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2484Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\Lambda_AnonymousDelegateInference.vb (5)
69compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 71Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 160For Each strict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 331compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 333Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict)
Semantics\Lambda_Relaxation.vb (29)
109compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 111Assert.Equal(OptionStrict.Custom, 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} 516compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 518Assert.Equal(OptionStrict.Custom, 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} 1401compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1403Assert.Equal(OptionStrict.Custom, 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} 2140compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2142Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 2222For Each optStrict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 2608Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2735Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\MethodCalls.vb (2)
2809New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)). 5020Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\OptionApis.vb (2)
36</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(False).WithOptionExplicit(True).WithOptionCompareText(False)) 51Assert.Equal(OptionStrict.Custom, semanticModelEmpty.OptionStrict)
Semantics\OverloadResolution.vb (4)
3857Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 3859Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 4066compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4068Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict)
Semantics\QueryExpressions.vb (1)
3623Dim verifier = CompileAndVerify(compilationDef, options:=New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom),
Semantics\SelectCaseTests.vb (1)
607</compilation>, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\TypeArgumentInference.vb (1)
1813Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(compilationDef, {SystemCoreRef}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\UnaryOperators.vb (2)
560Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 561Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict)
Semantics\UserDefinedBinaryOperators.vb (8)
1843options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1933options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1980options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2039options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2125options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2193options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2281options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2516options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\UserDefinedConversions.vb (51)
167Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 229Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 286Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 326Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 362Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 402Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 492Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 544Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 597Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 650Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 703Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 793Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 843Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1008Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1050Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1101Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1446Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1502Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1561Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1617Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1851Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 1922Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2645Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2688Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2746Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2790Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2917Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 3016Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 3075Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3126Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 3189Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True), 3243options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 3309options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 3376options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 3436Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False), 3482options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 3645Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3711Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3765Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3818Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3858Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 3925Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 3977Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4045Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4132Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4200Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4259Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4312Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4349Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4388Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 4449Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom),
Semantics\UsingStatementTest.vb (1)
283compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\VariableTypeInference.vb (4)
497compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 504compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Custom)) 562compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 570compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Custom))
Semantics\VarianceConversions.vb (28)
427Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 677Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 764Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 892TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1000Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1170Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1275Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1443Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1562Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1609Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1650Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1705Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1759Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1809Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1859Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1901Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1943Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1988Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2033Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2081Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2136Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2192Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2249Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2288Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2519Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2670Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2703Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 2752Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
SymbolsTests\ExtensionMethods\LookupAndInvocation.vb (1)
2615Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
SymbolsTests\Source\VarianceTests.vb (4)
54Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 208Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 279Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 501Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom))
SymbolsTests\SymbolErrorTests.vb (6)
19731</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optionStrict:=OptionStrict.Custom)) 19844</compilation>, TestOptions.ReleaseExe.WithOptionInfer(False).WithOptionStrict(OptionStrict.Custom)) 19877</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 20018</compilation>, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(True)) 20088</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 20534</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optionStrict:=OptionStrict.Custom))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
TestSyntaxNodes.vb (5)
3307New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 3478</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(False).WithOptionExplicit(True).WithOptionCompareText(False)) 3488</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(False).WithOptionExplicit(False).WithOptionCompareText(False)) 3498</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(False).WithOptionExplicit(True).WithOptionCompareText(False)) 3520</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(False).WithOptionExplicit(True).WithOptionCompareText(False))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
1743await AssertVBCompilationOptionsAsync(VB.OptionStrict.Custom, options => options.OptionStrict); 1750await AssertVBCompilationOptionsAsync(VB.OptionStrict.Custom, options => options.OptionStrict);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
88.WithOptionStrict(If(compilerOptions.bOptionStrictOff, OptionStrict.Custom, OptionStrict.On)) _