244 references to On
Microsoft.CodeAnalysis.VisualBasic (44)
Binding\Binder_Conversions.vb (3)
514
If OptionStrict = VisualBasic.OptionStrict.
On
Then
532
If OptionStrict = VisualBasic.OptionStrict.
On
Then
985
If isExplicit OrElse OptionStrict <> VisualBasic.OptionStrict.
On
OrElse Conversions.IsWideningConversion(convKind) Then
Binding\Binder_Delegates.vb (1)
996
If Me.OptionStrict = OptionStrict.
On
AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then
Binding\Binder_Expressions.vb (4)
1591
Case VisualBasic.OptionStrict.
On
2171
If OptionStrict = VisualBasic.OptionStrict.
On
Then
2181
If OptionStrict = VisualBasic.OptionStrict.
On
Then
4654
If OptionStrict = OptionStrict.
On
Then
Binding\Binder_Initializers.vb (1)
173
initializerBinder.OptionStrict <> VisualBasic.OptionStrict.
On
AndAlso
Binding\Binder_Invocation.vb (3)
758
Debug.Assert(OptionStrict <> VisualBasic.OptionStrict.
On
)
2511
If OptionStrict = VisualBasic.OptionStrict.
On
Then
2579
If OptionStrict = VisualBasic.OptionStrict.
On
Then
Binding\Binder_Lambda.vb (2)
652
If OptionStrict = OptionStrict.
On
Then
967
If OptionStrict = OptionStrict.
On
Then
Binding\Binder_Latebound.vb (2)
39
If OptionStrict = VisualBasic.OptionStrict.
On
Then
143
If OptionStrict = VisualBasic.OptionStrict.
On
Then
Binding\Binder_Operators.vb (2)
381
If OptionStrict = VisualBasic.OptionStrict.
On
Then
1178
If OptionStrict = VisualBasic.OptionStrict.
On
Then
Binding\Binder_Statements.vb (7)
1278
If OptionStrict = OptionStrict.
On
Then
1286
If OptionStrict = OptionStrict.
On
Then
1410
ElseIf Not symbol.IsStatic AndAlso OptionStrict <> OptionStrict.
On
AndAlso
3783
If ((collection.IsNothingLiteral OrElse collectionType.IsObjectType) AndAlso Me.OptionStrict <> OptionStrict.
On
) OrElse
3799
Debug.Assert(collectionType IsNot Nothing OrElse collection.IsNothingLiteral AndAlso Me.OptionStrict = OptionStrict.
On
)
3979
Debug.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)
180
If argument.Type.IsObjectType AndAlso OptionStrict <> VisualBasic.OptionStrict.
On
Then
Binding\SourceFileBinder.vb (1)
44
Return If(_sourceFile.OptionStrict.Value, OptionStrict.
On
, OptionStrict.Off)
CommandLine\VisualBasicCommandLineParser.vb (2)
255
optionStrict = VisualBasic.OptionStrict.
On
270
optionStrict = VisualBasic.OptionStrict.
On
OptionStrict.vb (1)
36
Return value >= OptionStrict.Off AndAlso value <= OptionStrict.
[On]
Semantics\OverloadResolution.vb (7)
966
result = ReportOverloadResolutionFailedOrLateBound(candidates, applicableInstanceCandidateCount, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.
On
, asyncLambdaSubToFunctionMismatch)
1149
lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.
On
, binder,
1184
Return ReportOverloadResolutionFailedOrLateBound(candidates, applicableCandidates, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.
On
, asyncLambdaSubToFunctionMismatch)
2972
If binder.OptionStrict = OptionStrict.
On
Then
3241
If binder.OptionStrict = OptionStrict.
On
Then
3360
If binder.OptionStrict = OptionStrict.
On
Then
4896
If 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)
333
If binder.OptionStrict = OptionStrict.
On
Then
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
114
If binder.OptionStrict = OptionStrict.
On
Then
Symbols\Source\SourceMemberFieldSymbol.vb (1)
178
If binder.OptionStrict = OptionStrict.
On
Then
Symbols\Source\SourceMethodSymbol.vb (1)
2276
If binder.OptionStrict = OptionStrict.
On
Then
Symbols\Source\SourcePropertySymbol.vb (1)
362
If binder.OptionStrict = OptionStrict.
On
Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
CastAnalyzer.vb (1)
339
Not _semanticModel.OptionStrict = OptionStrict.
On
Then
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
2205
Assert.Equal(VisualBasic.OptionStrict.
On
, parsedArgs.CompilationOptions.OptionStrict)
2209
Assert.Equal(VisualBasic.OptionStrict.
On
, parsedArgs.CompilationOptions.OptionStrict)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
CodeGen\CodeGenDelegateCreation.vb (1)
2443
c = c.WithOptions(c.Options.WithOptionStrict(OptionStrict.
On
))
CodeGen\CodeGenNullable.vb (4)
3637
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
).WithOptionInfer(False))
3685
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
).WithOptionInfer(True))
3821
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
).WithOptionInfer(False))
3845
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
).WithOptionInfer(True))
XmlLiteralTests.vb (1)
4402
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
On
))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateMember\GenerateParameterizedMember\VisualBasicCommonGenerationServiceMethods.vb (1)
22
Return 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)
1138
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
On
))
1150
compilation = 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)
97
TestProperty(Function(old, value) old.WithOptionStrict(value), Function(opt) opt.OptionStrict, OptionStrict.
On
)
Semantics\ArrayLiteralTests.vb (4)
25
Private ReadOnly _strictOn As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
)
810
Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False)
852
Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False)
895
Dim strictOnOverflowChecksOff = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False)
Semantics\AsyncAwait.vb (1)
832
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
On
))
Semantics\ConditionalExpressionsTests.vb (11)
41
TestCondition("if(nothing, GetString, 1.234)", strict:=OptionStrict.
On
, errors:=
81
TestCondition("if(GetString, 1.234)", strict:=OptionStrict.
On
, errors:=
99
TestCondition("if(GetBoolean(), GetUserGeneric(Of T), ""abc"")", strict:=OptionStrict.
On
, errors:=
123
TestCondition("if(GetUserGeneric(Of T), ""abc"")", strict:=OptionStrict.
On
, errors:=
159
TestCondition("if(nothing, nothing, nothing)", expectedType:="System.Object", strict:=OptionStrict.
On
)
163
TestCondition("if(""yes"", nothing, nothing)", strict:=OptionStrict.
On
, errors:=
186
TestCondition("if(1 > 2, AddressOf Func1, AddressOf Func2)", strict:=OptionStrict.
On
, errors:=
222
TestCondition("if(AddressOf Func1, AddressOf Func2)", strict:=OptionStrict.
On
, errors:=
246
Optional strict As OptionStrict = OptionStrict.
On
)
584
TestInvalidTernaryIfOperatorsStrict(OptionStrict.
On
,
744
TestInvalidBinaryIfOperatorsStrict(OptionStrict.
On
,
Semantics\Conversions.vb (15)
2761
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
3032
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
3209
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
4459
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False))
4468
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(True))
4498
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False))
4507
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(True))
4532
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False))
4547
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(True))
4592
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False))
4609
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(True))
4634
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False))
4643
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(True))
4668
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(False))
4677
compilation = compilation.WithOptions(TestOptions.DebugExe.WithOptionStrict(OptionStrict.
On
).WithOverflowChecks(True))
Semantics\Conversions_AnonymousDelegates.vb (29)
39
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
130
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
187
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
378
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
380
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
533
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
535
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
582
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
674
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
762
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
850
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
939
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1026
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1078
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1181
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1339
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1341
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1390
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1495
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1581
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1730
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1732
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1777
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1825
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
2009
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
2011
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
2161
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
2328
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
2378
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
Semantics\Lambda_AnonymousDelegateInference.vb (5)
93
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
95
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
160
For Each strict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
350
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
352
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
Semantics\Lambda_Relaxation.vb (28)
118
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
120
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
148
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
246
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
344
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
544
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
546
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
592
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
676
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
760
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
845
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
921
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
966
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1019
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1175
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1238
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1446
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1448
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1512
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1611
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1688
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1742
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1902
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
1994
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
2168
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
2170
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
2222
For Each optStrict In {OptionStrict.Off, OptionStrict.
On
, OptionStrict.Custom}
2542
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
Semantics\LambdaTests.vb (25)
788
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
790
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
840
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
842
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
898
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
900
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
950
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
952
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1058
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1060
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1098
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1100
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1154
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1156
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1210
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1212
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1267
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1269
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
1558
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1578
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1601
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1621
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1648
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1671
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1695
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
Semantics\MultiDimensionalTest.vb (2)
683
Dim compilation = CreateCompilationWithCustomILSource(source, s_arraysOfRank1IlSource, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
792
Dim 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)
39
Assert.Equal(OptionStrict.
On
, semanticModelAllOn.OptionStrict)
Semantics\OverloadResolution.vb (8)
4053
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
4055
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
4090
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
4092
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
4126
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
4157
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
4192
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
4230
compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
Semantics\QueryExpressions.vb (2)
2844
compilation = compilation.WithOptions(New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
2845
Assert.Equal(OptionStrict.
On
, compilation.Options.OptionStrict)
Semantics\TypeArgumentInference.vb (3)
852
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1035
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication).WithOptionStrict(OptionStrict.
On
))
1824
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
Semantics\UsingStatementTest.vb (1)
295
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
Semantics\VariableTypeInference.vb (6)
426
</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.
On
))
429
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
On
))
469
</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.
On
))
484
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
On
))
533
</compilation>, TestOptions.ReleaseDll.WithOptionInfer(True).WithOptionStrict(OptionStrict.
On
))
549
compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOptionInfer(False).WithOptionStrict(OptionStrict.
On
))
Semantics\VarianceConversions.vb (6)
788
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
On
))
1057
compilation = compilation.WithOptions(TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
2579
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
On
))
2712
compilation = compilation.WithOptions(compilation.Options.WithOptionStrict(OptionStrict.
On
))
2796
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
2838
Dim verifier = CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (31)
SymbolsTests\ExtensionMethods\LookupAndInvocation.vb (2)
1503
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
1615
CompileAndVerify(compilationDef, options:=TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
),
SymbolsTests\Source\BindingsTests.vb (3)
174
Assert.Equal(OptionStrict.
On
, context.OptionStrict)
181
Assert.Equal(OptionStrict.
On
, context.OptionStrict)
193
Assert.Equal(OptionStrict.
On
, context.OptionStrict)
SymbolsTests\Source\DelegateTests.vb (3)
394
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
412
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
430
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
SymbolsTests\Source\EnumTests.vb (1)
201
comp = CompilationUtils.CreateCompilationWithMscorlib40(text, options:=TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
SymbolsTests\Source\EventTests.vb (15)
120
Dim comp = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
150
options:=TestOptions.DebugDll.WithOptionStrict(OptionStrict.
On
))
188
Dim comp = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
218
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
243
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
364
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
385
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
422
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
453
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
482
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
511
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
550
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
594
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
638
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
800
Dim comp2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseDll.WithOptionStrict(OptionStrict.
On
))
SymbolsTests\Source\VarianceTests.vb (1)
553
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.
On
))
SymbolsTests\SymbolErrorTests.vb (6)
19889
compilation1 = 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
))
19962
compilation2 = 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)
339
Not _semanticModel.OptionStrict = OptionStrict.
On
Then
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1732
await 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
)) _