99 references to OptionStrict
Microsoft.CodeAnalysis.VisualBasic (99)
Binding\BackstopBinder.vb (1)
151
Public Overrides ReadOnly Property OptionStrict As
OptionStrict
Binding\Binder.vb (1)
714
Public Overridable ReadOnly Property OptionStrict As
OptionStrict
Binding\Binder_Conversions.vb (11)
522
If OptionStrict = VisualBasic.
OptionStrict
.On Then
525
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom Then
540
If OptionStrict = VisualBasic.
OptionStrict
.On Then
557
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom Then
993
If isExplicit OrElse OptionStrict <> VisualBasic.
OptionStrict
.On OrElse Conversions.IsWideningConversion(convKind) Then
1006
If isExplicit AndAlso Me.OptionStrict <> VisualBasic.
OptionStrict
.Off Then
1012
Debug.Assert(Not isExplicit OrElse relaxationBinder.OptionStrict = VisualBasic.
OptionStrict
.Off)
1251
If isExplicit AndAlso Me.OptionStrict <> VisualBasic.
OptionStrict
.Off Then
1257
Debug.Assert(Not isExplicit OrElse reclassifyBinder.OptionStrict = VisualBasic.
OptionStrict
.Off)
1471
If isExplicit AndAlso Me.OptionStrict <> VisualBasic.
OptionStrict
.Off Then
1477
Debug.Assert(Not isExplicit OrElse relaxationBinder.OptionStrict = VisualBasic.
OptionStrict
.Off)
Binding\Binder_Delegates.vb (3)
488
If addressOfExpression.Binder.OptionStrict <> VisualBasic.
OptionStrict
.Off Then
494
Debug.Assert(resolutionBinder.OptionStrict = VisualBasic.
OptionStrict
.Off)
993
If Me.OptionStrict =
OptionStrict
.On AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then
Binding\Binder_Expressions.vb (8)
1616
Case VisualBasic.
OptionStrict
.On
1622
Case VisualBasic.
OptionStrict
.Custom
2196
If OptionStrict = VisualBasic.
OptionStrict
.On Then
2200
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom Then
2206
If OptionStrict = VisualBasic.
OptionStrict
.On Then
2210
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom Then
4681
If OptionStrict =
OptionStrict
.On Then
4684
ElseIf OptionStrict =
OptionStrict
.Custom 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)
2505
If OptionStrict = VisualBasic.
OptionStrict
.On Then
2573
If OptionStrict = VisualBasic.
OptionStrict
.On Then
Binding\Binder_Lambda.vb (4)
652
If OptionStrict =
OptionStrict
.On Then
654
ElseIf OptionStrict =
OptionStrict
.Custom Then
967
If OptionStrict =
OptionStrict
.On Then
977
ElseIf OptionStrict =
OptionStrict
.Custom Then
Binding\Binder_Latebound.vb (4)
39
If OptionStrict = VisualBasic.
OptionStrict
.On Then
56
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then
143
If OptionStrict = VisualBasic.
OptionStrict
.On Then
160
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then
Binding\Binder_Operators.vb (4)
411
If OptionStrict = VisualBasic.
OptionStrict
.On Then
432
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom Then 'warn if option strict is off
1208
If OptionStrict = VisualBasic.
OptionStrict
.On Then
1210
ElseIf OptionStrict = VisualBasic.
OptionStrict
.Custom Then
Binding\Binder_Statements.vb (9)
1307
If OptionStrict =
OptionStrict
.On Then
1310
ElseIf OptionStrict =
OptionStrict
.Custom Then
1315
If OptionStrict =
OptionStrict
.On Then
1318
ElseIf OptionStrict =
OptionStrict
.Custom Then
1439
ElseIf Not symbol.IsStatic AndAlso OptionStrict <>
OptionStrict
.On AndAlso
3812
If ((collection.IsNothingLiteral OrElse collectionType.IsObjectType) AndAlso Me.OptionStrict <>
OptionStrict
.On) OrElse
3828
Debug.Assert(collectionType IsNot Nothing OrElse collection.IsNothingLiteral AndAlso Me.OptionStrict =
OptionStrict
.On)
4008
Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <>
OptionStrict
.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.IsNothingLiteral)
4612
(resourceType.IsObjectType() AndAlso OptionStrict <>
OptionStrict
.On) Then
Binding\Binder_XmlLiterals.vb (1)
180
If argument.Type.IsObjectType AndAlso OptionStrict <> VisualBasic.
OptionStrict
.On Then
Binding\OptionStrictOffBinder.vb (2)
26
Public Overrides ReadOnly Property OptionStrict As
OptionStrict
28
Return
OptionStrict
.Off
Binding\SourceFileBinder.vb (3)
39
Public Overrides ReadOnly Property OptionStrict As
OptionStrict
44
Return If(_sourceFile.OptionStrict.Value,
OptionStrict
.On,
OptionStrict
.Off)
Binding\SourceModuleBinder.vb (1)
41
Public Overrides ReadOnly Property OptionStrict As
OptionStrict
CommandLine\VisualBasicCommandLineParser.vb (6)
136
Dim optionStrict As
OptionStrict
=
OptionStrict
.Off
256
optionStrict = VisualBasic.
OptionStrict
.On
258
optionStrict = VisualBasic.
OptionStrict
.Custom
271
optionStrict = VisualBasic.
OptionStrict
.On
280
optionStrict = VisualBasic.
OptionStrict
.Off
Compilation\SemanticModel.vb (1)
2995
Public ReadOnly Property OptionStrict As VisualBasic.
OptionStrict
OptionStrict.vb (3)
35
Friend Function IsValid(value As
OptionStrict
) As Boolean
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
4898
If binder.OptionStrict =
OptionStrict
.On AndAlso Not inferredTypeByAssumption.IsNull Then
Semantics\TypeInference\TypeArgumentInference.vb (1)
1946
(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)
333
If binder.OptionStrict =
OptionStrict
.On Then
335
ElseIf binder.OptionStrict =
OptionStrict
.Custom Then
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
114
If binder.OptionStrict =
OptionStrict
.On Then
116
ElseIf binder.OptionStrict =
OptionStrict
.Custom Then
Symbols\Source\SourceMemberFieldSymbol.vb (2)
191
If binder.OptionStrict =
OptionStrict
.On Then
193
ElseIf binder.OptionStrict =
OptionStrict
.Custom Then
Symbols\Source\SourceMethodSymbol.vb (2)
2286
If binder.OptionStrict =
OptionStrict
.On Then
2288
ElseIf binder.OptionStrict =
OptionStrict
.Custom Then
Symbols\Source\SourcePropertySymbol.vb (2)
365
If binder.OptionStrict =
OptionStrict
.On Then
367
ElseIf binder.OptionStrict =
OptionStrict
.Custom Then
VisualBasicCompilationOptions.vb (13)
21
Private _optionStrict As
OptionStrict
44
''' <param name="optionStrict">An optional parameter to specify the default Option Strict behavior. <see cref="VisualBasic.
OptionStrict
"/></param>
75
Optional optionStrict As
OptionStrict
=
OptionStrict
.Off,
152
optionStrict As
OptionStrict
,
220
optionStrict As
OptionStrict
,
391
Public ReadOnly Property OptionStrict As
OptionStrict
573
''' <param name="value">The Option Strict setting. <see cref="Microsoft.CodeAnalysis.VisualBasic.
OptionStrict
"/></param>
575
Public Shadows Function WithOptionStrict(value As
OptionStrict
) As VisualBasicCompilationOptions
1151
optionStrict As
OptionStrict
,
1216
optionStrict As
OptionStrict
,
1282
Optional optionStrict As
OptionStrict
=
OptionStrict
.Off,
VisualBasicExtensions.vb (1)
665
Public Function OptionStrict(semanticModel As SemanticModel) As
OptionStrict