4 overrides of OptionStrict
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\BackstopBinder.vb (1)
151
Public Overrides ReadOnly Property
OptionStrict
As OptionStrict
Binding\OptionStrictOffBinder.vb (1)
26
Public Overrides ReadOnly Property
OptionStrict
As OptionStrict
Binding\SourceFileBinder.vb (1)
39
Public Overrides ReadOnly Property
OptionStrict
As OptionStrict
Binding\SourceModuleBinder.vb (1)
41
Public Overrides ReadOnly Property
OptionStrict
As OptionStrict
69 references to OptionStrict
Microsoft.CodeAnalysis.VisualBasic (69)
Binding\Binder.vb (1)
716
Return m_containingBinder.
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 (7)
1615
Select Case
OptionStrict
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\SourceFileBinder.vb (1)
46
Return m_containingBinder.
OptionStrict
Compilation\SemanticModel.vb (1)
2999
Return binder.
OptionStrict
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