99 references to OptionStrict
Microsoft.CodeAnalysis.VisualBasic (99)
Binding\BackstopBinder.vb (1)
151Public Overrides ReadOnly Property OptionStrict As OptionStrict
Binding\Binder.vb (1)
714Public Overridable ReadOnly Property OptionStrict As 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 (8)
1616Case VisualBasic.OptionStrict.On 1622Case VisualBasic.OptionStrict.Custom 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\OptionStrictOffBinder.vb (2)
26Public Overrides ReadOnly Property OptionStrict As OptionStrict 28Return OptionStrict.Off
Binding\SourceFileBinder.vb (3)
39Public Overrides ReadOnly Property OptionStrict As OptionStrict 44Return If(_sourceFile.OptionStrict.Value, OptionStrict.On, OptionStrict.Off)
Binding\SourceModuleBinder.vb (1)
41Public Overrides ReadOnly Property OptionStrict As OptionStrict
CommandLine\VisualBasicCommandLineParser.vb (6)
136Dim optionStrict As OptionStrict = OptionStrict.Off 256optionStrict = VisualBasic.OptionStrict.On 258optionStrict = VisualBasic.OptionStrict.Custom 271optionStrict = VisualBasic.OptionStrict.On 280optionStrict = VisualBasic.OptionStrict.Off
Compilation\SemanticModel.vb (1)
2995Public ReadOnly Property OptionStrict As VisualBasic.OptionStrict
OptionStrict.vb (3)
35Friend Function IsValid(value As OptionStrict) As Boolean 36Return value >= OptionStrict.Off AndAlso value <= OptionStrict.[On]
Semantics\OverloadResolution.vb (7)
966result = ReportOverloadResolutionFailedOrLateBound(candidates, applicableInstanceCandidateCount, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, asyncLambdaSubToFunctionMismatch) 1149lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, binder, 1184Return ReportOverloadResolutionFailedOrLateBound(candidates, applicableCandidates, lateBindingIsAllowed AndAlso binder.OptionStrict <> OptionStrict.On, asyncLambdaSubToFunctionMismatch) 2972If binder.OptionStrict = OptionStrict.On Then 3241If binder.OptionStrict = OptionStrict.On Then 3360If binder.OptionStrict = OptionStrict.On Then 4898If 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)
2286If binder.OptionStrict = OptionStrict.On Then 2288ElseIf binder.OptionStrict = OptionStrict.Custom Then
Symbols\Source\SourcePropertySymbol.vb (2)
365If binder.OptionStrict = OptionStrict.On Then 367ElseIf binder.OptionStrict = OptionStrict.Custom Then
VisualBasicCompilationOptions.vb (13)
21Private _optionStrict As OptionStrict 44''' <param name="optionStrict">An optional parameter to specify the default Option Strict behavior. <see cref="VisualBasic.OptionStrict"/></param> 75Optional optionStrict As OptionStrict = OptionStrict.Off, 152optionStrict As OptionStrict, 220optionStrict As OptionStrict, 391Public ReadOnly Property OptionStrict As OptionStrict 573''' <param name="value">The Option Strict setting. <see cref="Microsoft.CodeAnalysis.VisualBasic.OptionStrict"/></param> 575Public Shadows Function WithOptionStrict(value As OptionStrict) As VisualBasicCompilationOptions 1151optionStrict As OptionStrict, 1216optionStrict As OptionStrict, 1282Optional optionStrict As OptionStrict = OptionStrict.Off,
VisualBasicExtensions.vb (1)
665Public Function OptionStrict(semanticModel As SemanticModel) As OptionStrict