4 overrides of OptionStrict
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\BackstopBinder.vb (1)
151Public Overrides ReadOnly Property OptionStrict As OptionStrict
Binding\OptionStrictOffBinder.vb (1)
26Public Overrides ReadOnly Property OptionStrict As OptionStrict
Binding\SourceFileBinder.vb (1)
39Public Overrides ReadOnly Property OptionStrict As OptionStrict
Binding\SourceModuleBinder.vb (1)
41Public Overrides ReadOnly Property OptionStrict As OptionStrict
69 references to OptionStrict
Microsoft.CodeAnalysis.VisualBasic (69)
Binding\Binder.vb (1)
716Return m_containingBinder.OptionStrict
Binding\Binder_Conversions.vb (11)
522If OptionStrict = VisualBasic.OptionStrict.On Then 525ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 540If OptionStrict = VisualBasic.OptionStrict.On Then 557ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 993If isExplicit OrElse OptionStrict <> VisualBasic.OptionStrict.On OrElse Conversions.IsWideningConversion(convKind) Then 1006If isExplicit AndAlso Me.OptionStrict <> VisualBasic.OptionStrict.Off Then 1012Debug.Assert(Not isExplicit OrElse relaxationBinder.OptionStrict = VisualBasic.OptionStrict.Off) 1251If isExplicit AndAlso Me.OptionStrict <> VisualBasic.OptionStrict.Off Then 1257Debug.Assert(Not isExplicit OrElse reclassifyBinder.OptionStrict = VisualBasic.OptionStrict.Off) 1471If isExplicit AndAlso Me.OptionStrict <> VisualBasic.OptionStrict.Off Then 1477Debug.Assert(Not isExplicit OrElse relaxationBinder.OptionStrict = VisualBasic.OptionStrict.Off)
Binding\Binder_Delegates.vb (3)
488If addressOfExpression.Binder.OptionStrict <> VisualBasic.OptionStrict.Off Then 494Debug.Assert(resolutionBinder.OptionStrict = VisualBasic.OptionStrict.Off) 993If Me.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then
Binding\Binder_Expressions.vb (7)
1615Select Case OptionStrict 2196If OptionStrict = VisualBasic.OptionStrict.On Then 2200ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 2206If OptionStrict = VisualBasic.OptionStrict.On Then 2210ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 4681If OptionStrict = OptionStrict.On Then 4684ElseIf OptionStrict = OptionStrict.Custom Then
Binding\Binder_Initializers.vb (1)
173initializerBinder.OptionStrict <> VisualBasic.OptionStrict.On AndAlso
Binding\Binder_Invocation.vb (3)
758Debug.Assert(OptionStrict <> VisualBasic.OptionStrict.On) 2505If OptionStrict = VisualBasic.OptionStrict.On Then 2573If OptionStrict = VisualBasic.OptionStrict.On Then
Binding\Binder_Lambda.vb (4)
652If OptionStrict = OptionStrict.On Then 654ElseIf OptionStrict = OptionStrict.Custom Then 967If OptionStrict = OptionStrict.On Then 977ElseIf OptionStrict = OptionStrict.Custom Then
Binding\Binder_Latebound.vb (4)
39If OptionStrict = VisualBasic.OptionStrict.On Then 56ElseIf OptionStrict = VisualBasic.OptionStrict.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then 143If OptionStrict = VisualBasic.OptionStrict.On Then 160ElseIf OptionStrict = VisualBasic.OptionStrict.Custom AndAlso Not suppressLateBindingResolutionDiagnostics Then
Binding\Binder_Operators.vb (4)
411If OptionStrict = VisualBasic.OptionStrict.On Then 432ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then 'warn if option strict is off 1208If OptionStrict = VisualBasic.OptionStrict.On Then 1210ElseIf OptionStrict = VisualBasic.OptionStrict.Custom Then
Binding\Binder_Statements.vb (9)
1307If OptionStrict = OptionStrict.On Then 1310ElseIf OptionStrict = OptionStrict.Custom Then 1315If OptionStrict = OptionStrict.On Then 1318ElseIf OptionStrict = OptionStrict.Custom Then 1439ElseIf Not symbol.IsStatic AndAlso OptionStrict <> OptionStrict.On AndAlso 3812If ((collection.IsNothingLiteral OrElse collectionType.IsObjectType) AndAlso Me.OptionStrict <> OptionStrict.On) OrElse 3828Debug.Assert(collectionType IsNot Nothing OrElse collection.IsNothingLiteral AndAlso Me.OptionStrict = OptionStrict.On) 4008Debug.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)
180If argument.Type.IsObjectType AndAlso OptionStrict <> VisualBasic.OptionStrict.On Then
Binding\SourceFileBinder.vb (1)
46Return m_containingBinder.OptionStrict
Compilation\SemanticModel.vb (1)
2999Return binder.OptionStrict
Semantics\OverloadResolution.vb (7)
1042result = ReportOverloadResolutionFailedOrLateBound(candidates, applicableInstanceCandidateCount, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, asyncLambdaSubToFunctionMismatch) 1254lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, binder, 1289Return ReportOverloadResolutionFailedOrLateBound(candidates, applicableCandidates, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, asyncLambdaSubToFunctionMismatch) 3332If binder.OptionStrict = OptionStrict.On Then 3601If binder.OptionStrict = OptionStrict.On Then 3720If binder.OptionStrict = OptionStrict.On Then 5298If 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)
333If binder.OptionStrict = OptionStrict.On Then 335ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
114If binder.OptionStrict = OptionStrict.On Then 116ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceMemberFieldSymbol.vb (2)
191If binder.OptionStrict = OptionStrict.On Then 193ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourceMethodSymbol.vb (2)
2319If binder.OptionStrict = OptionStrict.On Then 2321ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourcePropertySymbol.vb (2)
365If binder.OptionStrict = OptionStrict.On Then 367ElseIf binder.OptionStrict = OptionStrict.Custom Then