709 references to OptionStrict
Microsoft.CodeAnalysis.Rebuild (2)
VisualBasicCompilationFactory.cs (2)
102optionStrict: pdbOptions.OptionToEnum<OptionStrict>(CompilationOptionNames.OptionStrict) ?? OptionStrict.Off,
Microsoft.CodeAnalysis.VisualBasic (99)
Binding\BackstopBinder.vb (1)
151Public Overrides ReadOnly Property OptionStrict As OptionStrict
Binding\Binder.vb (1)
714Public Overridable ReadOnly Property OptionStrict As OptionStrict
Binding\Binder_Conversions.vb (11)
514If OptionStrict = VisualBasic.OptionStrict.On Then 517ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 532If OptionStrict = VisualBasic.OptionStrict.On Then 549ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 985If isExplicit OrElse OptionStrict <> VisualBasic.OptionStrict.On OrElse Conversions.IsWideningConversion(convKind) Then 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 (3)
488If addressOfExpression.Binder.OptionStrict <> VisualBasic.OptionStrict.Off Then 494Debug.Assert(resolutionBinder.OptionStrict = VisualBasic.OptionStrict.Off) 996If Me.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then
Binding\Binder_Expressions.vb (8)
1591Case VisualBasic.OptionStrict.On 1597Case VisualBasic.OptionStrict.Custom 2171If OptionStrict = VisualBasic.OptionStrict.On Then 2175ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 2181If OptionStrict = VisualBasic.OptionStrict.On Then 2185ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 4654If OptionStrict = OptionStrict.On Then 4657ElseIf OptionStrict = OptionStrict.Custom Then
Binding\Binder_Initializers.vb (1)
173initializerBinder.OptionStrict <> VisualBasic.OptionStrict.On AndAlso
Binding\Binder_Invocation.vb (3)
758Debug.Assert(OptionStrict <> VisualBasic.OptionStrict.On) 2511If OptionStrict = VisualBasic.OptionStrict.On Then 2579If OptionStrict = VisualBasic.OptionStrict.On Then
Binding\Binder_Lambda.vb (4)
652If OptionStrict = OptionStrict.On Then 654ElseIf OptionStrict = OptionStrict.Custom Then 967If OptionStrict = OptionStrict.On Then 977ElseIf OptionStrict = OptionStrict.Custom Then
Binding\Binder_Latebound.vb (4)
39If OptionStrict = VisualBasic.OptionStrict.On Then 56ElseIf OptionStrict = VisualBasic.OptionStrict.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then 143If OptionStrict = VisualBasic.OptionStrict.On Then 160ElseIf OptionStrict = VisualBasic.OptionStrict.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then
Binding\Binder_Operators.vb (4)
381If OptionStrict = VisualBasic.OptionStrict.On Then 402ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 'warn if option strict is off 1178If OptionStrict = VisualBasic.OptionStrict.On Then 1180ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then
Binding\Binder_Statements.vb (9)
1278If OptionStrict = OptionStrict.On Then 1281ElseIf OptionStrict = OptionStrict.Custom Then 1286If OptionStrict = OptionStrict.On Then 1289ElseIf OptionStrict = OptionStrict.Custom Then 1410ElseIf Not symbol.IsStatic AndAlso OptionStrict <> OptionStrict.On AndAlso 3783If ((collection.IsNothingLiteral OrElse collectionType.IsObjectType) AndAlso Me.OptionStrict <> OptionStrict.On) OrElse 3799Debug.Assert(collectionType IsNot Nothing OrElse collection.IsNothingLiteral AndAlso Me.OptionStrict = OptionStrict.On) 3979Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.IsNothingLiteral) 4583(resourceType.IsObjectType() AndAlso OptionStrict <> OptionStrict.On) Then
Binding\Binder_XmlLiterals.vb (1)
180If argument.Type.IsObjectType AndAlso OptionStrict <> VisualBasic.OptionStrict.On Then
Binding\OptionStrictOffBinder.vb (2)
26Public Overrides ReadOnly Property OptionStrict As OptionStrict 28Return OptionStrict.Off
Binding\SourceFileBinder.vb (3)
39Public Overrides ReadOnly Property OptionStrict As OptionStrict 44Return If(_sourceFile.OptionStrict.Value, OptionStrict.On, OptionStrict.Off)
Binding\SourceModuleBinder.vb (1)
41Public Overrides ReadOnly Property OptionStrict As OptionStrict
CommandLine\VisualBasicCommandLineParser.vb (6)
136Dim optionStrict As OptionStrict = OptionStrict.Off 255optionStrict = VisualBasic.OptionStrict.On 257optionStrict = VisualBasic.OptionStrict.Custom 270optionStrict = VisualBasic.OptionStrict.On 279optionStrict = VisualBasic.OptionStrict.Off
Compilation\SemanticModel.vb (1)
2991Public ReadOnly Property OptionStrict As VisualBasic.OptionStrict
OptionStrict.vb (3)
35Friend Function IsValid(value As OptionStrict) As Boolean 36Return value >= OptionStrict.Off AndAlso value <= OptionStrict.[On]
Semantics\OverloadResolution.vb (7)
966result = ReportOverloadResolutionFailedOrLateBound(candidates, applicableInstanceCandidateCount, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, asyncLambdaSubToFunctionMismatch) 1149lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, binder, 1184Return ReportOverloadResolutionFailedOrLateBound(candidates, applicableCandidates, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, asyncLambdaSubToFunctionMismatch) 2972If binder.OptionStrict = OptionStrict.On Then 3241If binder.OptionStrict = OptionStrict.On Then 3360If binder.OptionStrict = OptionStrict.On Then 4896If binder.OptionStrict = OptionStrict.On AndAlso Not inferredTypeByAssumption.IsNull Then
Semantics\TypeInference\TypeArgumentInference.vb (1)
1950(addrOf.Binder.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingMethodConversion(methodConversions, isForAddressOf:=True)) Then
Symbols\Source\CustomEventAccessorSymbol.vb (1)
198(binder.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingMethodConversion(conversion, False))) Then
Symbols\Source\SourceComplexParameterSymbol.vb (2)
333If binder.OptionStrict = OptionStrict.On Then 335ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
114If binder.OptionStrict = OptionStrict.On Then 116ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceMemberFieldSymbol.vb (2)
178If binder.OptionStrict = OptionStrict.On Then 180ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceMethodSymbol.vb (2)
2276If binder.OptionStrict = OptionStrict.On Then 2278ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourcePropertySymbol.vb (2)
362If binder.OptionStrict = OptionStrict.On Then 364ElseIf binder.OptionStrict = OptionStrict.Custom Then
VisualBasicCompilationOptions.vb (13)
21Private _optionStrict As OptionStrict 44''' <param name="optionStrict">An optional parameter to specify the default Option Strict behavior. <see cref="VisualBasic.OptionStrict"/></param> 75Optional optionStrict As OptionStrict = OptionStrict.Off, 152optionStrict As OptionStrict, 220optionStrict As OptionStrict, 391Public ReadOnly Property OptionStrict As OptionStrict 573''' <param name="value">The Option Strict setting. <see cref="Microsoft.CodeAnalysis.VisualBasic.OptionStrict"/></param> 575Public Shadows Function WithOptionStrict(value As OptionStrict) As VisualBasicCompilationOptions 1151optionStrict As OptionStrict, 1216optionStrict As OptionStrict, 1282Optional optionStrict As OptionStrict = OptionStrict.Off,
VisualBasicExtensions.vb (1)
665Public Function OptionStrict(semanticModel As SemanticModel) As OptionStrict
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
CastAnalyzer.vb (1)
339Not _semanticModel.OptionStrict = OptionStrict.On Then
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 (6)
CommandLineTests.vb (6)
2205Assert.Equal(VisualBasic.OptionStrict.On, parsedArgs.CompilationOptions.OptionStrict) 2209Assert.Equal(VisualBasic.OptionStrict.On, parsedArgs.CompilationOptions.OptionStrict) 2213Assert.Equal(VisualBasic.OptionStrict.Off, parsedArgs.CompilationOptions.OptionStrict) 2217Assert.Equal(VisualBasic.OptionStrict.Custom, parsedArgs.CompilationOptions.OptionStrict) 2221Assert.Equal(VisualBasic.OptionStrict.Off, parsedArgs.CompilationOptions.OptionStrict) 2225Assert.Equal(VisualBasic.OptionStrict.Custom, 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 (18)
CodeGen\CodeGenDelegateCreation.vb (4)
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)) 2443c = c.WithOptions(c.Options.WithOptionStrict(OptionStrict.On))
CodeGen\CodeGenLateBound.vb (1)
3791</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom))
CodeGen\CodeGenNullable.vb (9)
1751Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 3574Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off).WithOptionInfer(False)) 3601compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off).WithOptionInfer(True)) 3637compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(False)) 3685compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(True)) 3773Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off).WithOptionInfer(False)) 3797compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off).WithOptionInfer(True)) 3821compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(False)) 3845compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(True))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
196optionStrict:=OptionStrict.Off,
XmlLiteralTests.vb (3)
4388</compilation>, Net40XmlReferences, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 4395compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom)) 4402compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateMember\GenerateParameterizedMember\VisualBasicCommonGenerationServiceMethods.vb (1)
22Return options.OptionStrict = OptionStrict.On
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
VisualBasicScriptCompiler.vb (1)
82optionStrict:=OptionStrict.Off,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (503)
Binding\BindingErrorTests.vb (25)
9157</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 9168compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom)) 9203</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 9243</compilation>, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 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))
Binding\ForEachTests.vb (4)
1117Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Off)) 1129compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Off)) 1138compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 1150compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On))
Compilation\SemanticModelAPITests.vb (3)
4149</compilation>, Nothing, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 4169</compilation>, Nothing, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 4475</compilation>, Nothing, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On))
Compilation\VisualBasicCompilationOptionsTests.vb (3)
97TestProperty(Function(old, value) old.WithOptionStrict(value), Function(opt) opt.OptionStrict, OptionStrict.On) 189AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(CType(3, OptionStrict)).Errors, 292AssertTheseDiagnostics(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optionStrict:=CType(3, OptionStrict)).Errors,
Semantics\ArrayLiteralTests.vb (9)
24Private ReadOnly _strictOff As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off) 25Private ReadOnly _strictOn As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On) 26Private ReadOnly _strictCustom As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom) 803Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False) 810Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False) 845Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False) 852Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False) 887Dim strictOffOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False) 895Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)
Semantics\AsyncAwait.vb (2)
820compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Custom)) 832compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On))
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 (31)
41TestCondition("if(nothing, GetString, 1.234)", strict:=OptionStrict.On, errors:= 47TestCondition("if(nothing, GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.Custom, errors:= 53TestCondition("if(nothing, GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.Off) 60TestCondition("if(""string"", #1/1/1#)", expectedType:="System.String", strict:=OptionStrict.Off) 81TestCondition("if(GetString, 1.234)", strict:=OptionStrict.On, errors:= 87TestCondition("if(GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.Custom) 88TestCondition("if(GetString, 1.234)", expectedType:="System.Object", strict:=OptionStrict.Off) 99TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", strict:=OptionStrict.On, errors:= 105TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.Custom, errors:= 111TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.Off) 123TestCondition("if(GetUserGeneric(Of T), ""abc"")", strict:=OptionStrict.On, errors:= 129TestCondition("if(GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.Custom, errors:= 135TestCondition("if(GetUserGeneric(Of T), ""abc"")", expectedType:="System.Object", strict:=OptionStrict.Off) 157TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.Off) 158TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.Custom) 159TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.On) 161TestCondition("if(""yes"", nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.Off) 162TestCondition("if(""yes"", nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.Custom) 163TestCondition("if(""yes"", nothing, nothing)", strict:=OptionStrict.On, errors:= 186TestCondition("if(1 > 2, AddressOf Func1, AddressOf Func2)", strict:=OptionStrict.On, errors:= 222TestCondition("if(AddressOf Func1, AddressOf Func2)", strict:=OptionStrict.On, errors:= 246Optional strict As OptionStrict = OptionStrict.On) 522Private Sub TestInvalidTernaryIfOperatorsStrict(strict As OptionStrict, errs As XElement) 584TestInvalidTernaryIfOperatorsStrict(OptionStrict.On, 616TestInvalidTernaryIfOperatorsStrict(OptionStrict.Custom, 654TestInvalidTernaryIfOperatorsStrict(OptionStrict.Off, 672Private Sub TestInvalidBinaryIfOperatorsStrict(strict As OptionStrict, errs As XElement) 744TestInvalidBinaryIfOperatorsStrict(OptionStrict.On, 785TestInvalidBinaryIfOperatorsStrict(OptionStrict.Custom, 839TestInvalidBinaryIfOperatorsStrict(OptionStrict.Off,
Semantics\Conversions.vb (44)
2761Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 2815compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 2866compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 3032Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3069compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 3209Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3237compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 4453compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False)) 4456compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4459compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4462compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(True)) 4465compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4468compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4492compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False)) 4495compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4498compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4501compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(True)) 4504compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4507compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4526compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False)) 4529compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4532compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4541compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(True)) 4544compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4547compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4582compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False)) 4587compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4592compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4603compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(True)) 4606compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4609compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4628compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False)) 4631compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4634compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4637compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(True)) 4640compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4643compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4662compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False)) 4665compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(False)) 4668compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4671compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(True)) 4674compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Custom).WithOverflowChecks(True)) 4677compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4701compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.Off).WithOverflowChecks(False))
Semantics\Conversions_AnonymousDelegates.vb (83)
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) 354compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 356Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 378compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 380Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 424Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 503compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 505Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 533compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 535Assert.Equal(OptionStrict.On, 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) 1308compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1310Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 1339compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1341Assert.Equal(OptionStrict.On, 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) 1707compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1709Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 1730compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1732Assert.Equal(OptionStrict.On, 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) 1978compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1980Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 2009compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2011Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 2161compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 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)) 2378compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2429Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2484Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\Lambda_AnonymousDelegateInference.vb (15)
55Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 69compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 71Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 93compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 95Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 160For Each strict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 322Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 331compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 333Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 350compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 352Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 434Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 553Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict)
Semantics\Lambda_Relaxation.vb (81)
35Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 109compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 111Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 118compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 120Assert.Equal(OptionStrict.On, 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) 516compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 518Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 544compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 546Assert.Equal(OptionStrict.On, 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) 1401compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1403Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 1446compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1448Assert.Equal(OptionStrict.On, 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) 2140compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2142Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 2168compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2170Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 2222For Each optStrict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 2542compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2608Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2735Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2783Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict)
Semantics\LambdaTests.vb (42)
781Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 788compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 790Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 833Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 840compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 842Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 889Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 898compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 900Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 943Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 950compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 952Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1047Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 1058compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1060Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1092Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 1098compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1100Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1147Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 1154compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1156Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1203Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 1210compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1212Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1261Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 1267compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1269Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1355Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 1556Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1558Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1576Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1578Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1599Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1601Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1619Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1621Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1646Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1648Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1669Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1671Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1693Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)) 1695Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\MethodCalls.vb (2)
2809New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)). 5020Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
Semantics\MultiDimensionalTest.vb (4)
683Dim compilation = CreateCompilationWithCustomILSource(source, s_arraysOfRank1IlSource, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 707compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Off)) 792Dim compilation = CreateCompilationWithCustomILSource(source, ilSource, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 810compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.Off))
Semantics\NewOnInterfaceTests.vb (2)
678</compilation>, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 730</compilation>, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off))
Semantics\OptionApis.vb (4)
36</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(False).WithOptionExplicit(True).WithOptionCompareText(False)) 39Assert.Equal(OptionStrict.On, semanticModelAllOn.OptionStrict) 45Assert.Equal(OptionStrict.Off, semanticModelAllOff.OptionStrict) 51Assert.Equal(OptionStrict.Custom, semanticModelEmpty.OptionStrict)
Semantics\OverloadResolution.vb (18)
3857Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Custom)) 3859Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 4053compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 4055Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 4066compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 4068Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) 4090compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 4092Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 4126Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4129compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 4157Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4192Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4230compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 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 (4)
2823Assert.Equal(OptionStrict.Off, compilation.Options.OptionStrict) 2844compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 2845Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 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 (6)
852Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 861compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 1033Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off)) 1035Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1813Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(compilationDef, {SystemCoreRef}, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1824compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
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 (3)
233</compilation>, expectedOutput:="Hi there", options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off)). 283compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 295compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\VariableTypeInference.vb (15)
426</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 429compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 444compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Off)) 469</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 477compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Off)) 484compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 491compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Off)) 497compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 504compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Custom)) 533</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 542compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Off)) 549compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 556compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Off)) 562compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 570compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.Custom))
Semantics\VarianceConversions.vb (34)
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)) 788compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On)) 892TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1000Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 1057compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 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)) 2579compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On)) 2670Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) 2703Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Custom)) 2712compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On)) 2752Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom), 2796Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 2838Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (62)
SymbolsTests\ExtensionMethods\LookupAndInvocation.vb (4)
1486CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Off), 1503Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1615CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On), 2615Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom))
SymbolsTests\Source\BindingsTests.vb (14)
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) 174Assert.Equal(OptionStrict.On, context.OptionStrict) 181Assert.Equal(OptionStrict.On, context.OptionStrict) 188Assert.Equal(OptionStrict.Off, context.OptionStrict) 193Assert.Equal(OptionStrict.On, 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 (6)
392Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off)) 394Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 410Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off)) 412Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 428Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off)) 430Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On))
SymbolsTests\Source\EnumTests.vb (1)
201comp = CompilationUtils.CreateCompilationWithMscorlib40(text, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On))
SymbolsTests\Source\EventTests.vb (17)
120Dim comp = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 150options:=TestOptions.DebugDll.WithOptionStrict(OptionStrict.On)) 188Dim comp = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 218Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 241Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off)) 243Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 362Dim comp1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.Off)) 364Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 385Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 422Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 453Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 482Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 511Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 550Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 594Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 638Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 800Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On))
SymbolsTests\Source\VarianceTests.vb (5)
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)) 553Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
SymbolsTests\SymbolErrorTests.vb (15)
19731</compilation>, New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optionStrict:=OptionStrict.Custom)) 19844</compilation>, TestOptions.ReleaseExe.WithOptionInfer(False).WithOptionStrict(OptionStrict.Custom)) 19859compilation1 = compilation1.WithOptions(TestOptions.ReleaseExe.WithOptionInfer(False).WithOptionStrict(OptionStrict.Off)) 19877</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.Custom)) 19885compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.Off)) 19889compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 19940</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 19958</compilation>, TestOptions.ReleaseExe.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 19962compilation2 = compilation2.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 19984</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 20018</compilation>, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom).WithOptionInfer(True)) 20033compilation1 = compilation1.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.Off).WithOptionInfer(True)) 20059</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).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.VisualBasic.Workspaces (3)
CastAnalyzer.vb (1)
339Not _semanticModel.OptionStrict = OptionStrict.On Then
Serialization\VisualBasicOptionsSerializationService.vb (1)
91Dim optionStrict = CType(reader.ReadInt32(), OptionStrict)
SpeculationAnalyzer.vb (1)
561If Me.OriginalSemanticModel.OptionStrict() <> OptionStrict.Off AndAlso
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
VisualStudioMSBuildWorkspaceTests.cs (3)
1732await AssertVBCompilationOptionsAsync(VB.OptionStrict.On, options => options.OptionStrict); 1743await AssertVBCompilationOptionsAsync(VB.OptionStrict.Custom, options => options.OptionStrict); 1750await AssertVBCompilationOptionsAsync(VB.OptionStrict.Custom, options => options.OptionStrict);
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (2)
88.WithOptionStrict(If(compilerOptions.bOptionStrictOff, OptionStrict.Custom, OptionStrict.On)) _