244 references to On
Microsoft.CodeAnalysis.VisualBasic (44)
Binding\Binder_Conversions.vb (3)
514If OptionStrict = VisualBasic.OptionStrict.On Then 532If OptionStrict = VisualBasic.OptionStrict.On Then 985If isExplicit OrElse OptionStrict <> VisualBasic.OptionStrict.On OrElse Conversions.IsWideningConversion(convKind) Then
Binding\Binder_Delegates.vb (1)
996If Me.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then
Binding\Binder_Expressions.vb (4)
1591Case VisualBasic.OptionStrict.On 2171If OptionStrict = VisualBasic.OptionStrict.On Then 2181If OptionStrict = VisualBasic.OptionStrict.On Then 4654If OptionStrict = OptionStrict.On 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 (2)
652If OptionStrict = OptionStrict.On Then 967If OptionStrict = OptionStrict.On Then
Binding\Binder_Latebound.vb (2)
39If OptionStrict = VisualBasic.OptionStrict.On Then 143If OptionStrict = VisualBasic.OptionStrict.On Then
Binding\Binder_Operators.vb (2)
381If OptionStrict = VisualBasic.OptionStrict.On Then 1178If OptionStrict = VisualBasic.OptionStrict.On Then
Binding\Binder_Statements.vb (7)
1278If OptionStrict = OptionStrict.On Then 1286If OptionStrict = OptionStrict.On 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\SourceFileBinder.vb (1)
44Return If(_sourceFile.OptionStrict.Value, OptionStrict.On, OptionStrict.Off)
CommandLine\VisualBasicCommandLineParser.vb (2)
255optionStrict = VisualBasic.OptionStrict.On 270optionStrict = VisualBasic.OptionStrict.On
OptionStrict.vb (1)
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 (1)
333If binder.OptionStrict = OptionStrict.On Then
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
114If binder.OptionStrict = OptionStrict.On Then
Symbols\Source\SourceMemberFieldSymbol.vb (1)
178If binder.OptionStrict = OptionStrict.On Then
Symbols\Source\SourceMethodSymbol.vb (1)
2276If binder.OptionStrict = OptionStrict.On Then
Symbols\Source\SourcePropertySymbol.vb (1)
362If binder.OptionStrict = OptionStrict.On Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
CastAnalyzer.vb (1)
339Not _semanticModel.OptionStrict = OptionStrict.On Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
2205Assert.Equal(VisualBasic.OptionStrict.On, parsedArgs.CompilationOptions.OptionStrict) 2209Assert.Equal(VisualBasic.OptionStrict.On, parsedArgs.CompilationOptions.OptionStrict)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenDelegateCreation.vb (1)
2443c = c.WithOptions(c.Options.WithOptionStrict(OptionStrict.On))
CodeGen\CodeGenNullable.vb (4)
3637compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(False)) 3685compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(True)) 3821compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(False)) 3845compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On).WithOptionInfer(True))
XmlLiteralTests.vb (1)
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.Semantic.UnitTests (156)
Binding\BindingErrorTests.vb (3)
9157</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 9203</compilation>, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 9243</compilation>, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Binding\ForEachTests.vb (2)
1138compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 1150compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On))
Compilation\SemanticModelAPITests.vb (2)
4169</compilation>, Nothing, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 4475</compilation>, Nothing, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On))
Compilation\VisualBasicCompilationOptionsTests.vb (1)
97TestProperty(Function(old, value) old.WithOptionStrict(value), Function(opt) opt.OptionStrict, OptionStrict.On)
Semantics\ArrayLiteralTests.vb (4)
25Private ReadOnly _strictOn As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On) 810Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False) 852Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False) 895Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)
Semantics\AsyncAwait.vb (1)
832compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On))
Semantics\ConditionalExpressionsTests.vb (11)
41TestCondition("if(nothing, GetString, 1.234)", strict:=OptionStrict.On, errors:= 81TestCondition("if(GetString, 1.234)", strict:=OptionStrict.On, errors:= 99TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", strict:=OptionStrict.On, errors:= 123TestCondition("if(GetUserGeneric(Of T), ""abc"")", strict:=OptionStrict.On, errors:= 159TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.On) 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) 584TestInvalidTernaryIfOperatorsStrict(OptionStrict.On, 744TestInvalidBinaryIfOperatorsStrict(OptionStrict.On,
Semantics\Conversions.vb (15)
2761Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3032Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 3209Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 4459compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4468compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4498compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4507compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4532compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4547compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4592compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4609compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4634compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4643compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True)) 4668compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(False)) 4677compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.On).WithOverflowChecks(True))
Semantics\Conversions_AnonymousDelegates.vb (29)
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} 378compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 380Assert.Equal(OptionStrict.On, 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} 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} 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} 2009compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2011Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 2161compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2328For Each optStrict In {OptionStrict.Off, OptionStrict.On, OptionStrict.Custom} 2378compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\Lambda_AnonymousDelegateInference.vb (5)
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} 350compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 352Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict)
Semantics\Lambda_Relaxation.vb (28)
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} 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} 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} 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))
Semantics\LambdaTests.vb (25)
788compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 790Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 840compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 842Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 898compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 900Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 950compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 952Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1058compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1060Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1098compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1100Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1154compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1156Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1210compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1212Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1267compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1269Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict) 1558Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1578Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1601Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1621Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1648Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1671Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1695Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\MultiDimensionalTest.vb (2)
683Dim compilation = CreateCompilationWithCustomILSource(source, s_arraysOfRank1IlSource, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 792Dim compilation = CreateCompilationWithCustomILSource(source, ilSource, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\NewOnInterfaceTests.vb (1)
678</compilation>, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\OptionApis.vb (1)
39Assert.Equal(OptionStrict.On, semanticModelAllOn.OptionStrict)
Semantics\OverloadResolution.vb (8)
4053compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 4055Assert.Equal(OptionStrict.On, 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)) 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))
Semantics\QueryExpressions.vb (2)
2844compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 2845Assert.Equal(OptionStrict.On, compilation.Options.OptionStrict)
Semantics\TypeArgumentInference.vb (3)
852Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1035Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On)) 1824compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\UsingStatementTest.vb (1)
295compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
Semantics\VariableTypeInference.vb (6)
426</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 429compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 469</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 484compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On)) 533</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.On)) 549compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.On))
Semantics\VarianceConversions.vb (6)
788compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On)) 1057compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 2579compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On)) 2712compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.On)) 2796Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 2838Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (31)
SymbolsTests\ExtensionMethods\LookupAndInvocation.vb (2)
1503Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On)) 1615CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On),
SymbolsTests\Source\BindingsTests.vb (3)
174Assert.Equal(OptionStrict.On, context.OptionStrict) 181Assert.Equal(OptionStrict.On, context.OptionStrict) 193Assert.Equal(OptionStrict.On, context.OptionStrict)
SymbolsTests\Source\DelegateTests.vb (3)
394Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 412Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 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 (15)
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)) 243Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.On)) 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 (1)
553Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.On))
SymbolsTests\SymbolErrorTests.vb (6)
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)) 20059</compilation>, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.On).WithOptionInfer(True))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CastAnalyzer.vb (1)
339Not _semanticModel.OptionStrict = OptionStrict.On Then
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1732await AssertVBCompilationOptionsAsync(VB.OptionStrict.On, options => options.OptionStrict);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
88.WithOptionStrict(If(compilerOptions.bOptionStrictOff, OptionStrict.Custom, OptionStrict.On)) _