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