421 references to HasErrors
Microsoft.CodeAnalysis.VisualBasic (421)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
830
Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.
HasErrors
OrElse node.Type.SpecialType = SpecialType.System_Void)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
284
If value IsNot Nothing AndAlso (local IsNot Nothing AndAlso Not local.IsConst AndAlso local.Type.IsReferenceType OrElse value.
HasErrors
) Then
Analysis\ForLoopVerification.vb (3)
74
controlVariable.
HasErrors
)
111
If Not controlVariable.
HasErrors
AndAlso
112
Not nextVariable.
HasErrors
AndAlso
Analysis\InitializerRewriter.vb (2)
171
Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.Locals, boundStatements.ToImmutableAndFree(), block.
HasErrors
)
185
Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.Locals, boundStatements.ToImmutableAndFree(), block.
HasErrors
)
Binding\Binder_Attributes.vb (8)
78
Dim visitor As New AttributeExpressionVisitor(Me, boundAttribute.
HasErrors
)
565
If (Me.Compilation.EmbeddedSymbolManager.Embedded <> 0) AndAlso Not expression.
HasErrors
Then
764
If conv.
HasErrors
OrElse
768
If Not conv.
HasErrors
Then
778
If conv.
HasErrors
OrElse
782
If Not conv.
HasErrors
Then
792
If conv.
HasErrors
OrElse
796
If Not conv.
HasErrors
Then
Binding\Binder_Conversions.vb (9)
79
If (argument.
HasErrors
OrElse targetType.IsErrorType) Then
107
If argument.
HasErrors
Then
190
If (argument.
HasErrors
OrElse targetType.IsErrorType) Then
224
If argument.
HasErrors
Then
350
If argument.
HasErrors
Then
496
If argument.
HasErrors
Then
603
If argument.
HasErrors
OrElse (sourceType IsNot Nothing AndAlso sourceType.IsErrorType()) Then
1261
hasErrors = argument.
HasErrors
1419
Not reportedAnError AndAlso Not boundLambda.
HasErrors
Then
Binding\Binder_Delegates.vb (5)
56
If Not boundOperand.
HasErrors
Then
121
hadErrorsInFirstArgument = boundFirstArgument.
HasErrors
970
If addressOfExpression.
HasErrors
Then
987
Not addressOfExpression.
HasErrors
AndAlso
1094
If actualReceiver IsNot Nothing AndAlso actualReceiver.IsValue() AndAlso Not actualReceiver.
HasErrors
Then
Binding\Binder_Expressions.vb (33)
123
Return New BoundTypeExpression(node, asType.UnevaluatedReceiverOpt, asType.AliasOpt, operand.Type, operand.
HasErrors
)
780
If operand.
HasErrors
OrElse operandType.IsErrorType() OrElse targetType.IsErrorType() Then
984
If expr.
HasErrors
Then
1127
If result.
HasErrors
OrElse exprDiagnostics.HasAnyErrors() Then
1158
hasErrors:=access.
HasErrors
)
1163
access.SuppressVirtualCalls, access.ConstantsInProgressOpt, access.Type, access.
HasErrors
)
1172
hasErrors:=[call].
HasErrors
)
1245
If expr.
HasErrors
Then
1365
If expr.
HasErrors
Then
1720
If Not expression.
HasErrors
Then
1938
Dim hasErrors = boundConditionArg.
HasErrors
OrElse boundWhenTrueArg.
HasErrors
OrElse boundWhenFalseArg.
HasErrors
1970
hasErrors = hasErrors OrElse boundWhenTrueArg.
HasErrors
OrElse boundWhenFalseArg.
HasErrors
2004
Dim hasErrors = boundFirstArg.
HasErrors
OrElse boundSecondArg.
HasErrors
OrElse node.ContainsDiagnostics
2088
hasErrors = boundFirstArg.
HasErrors
2100
hasErrors = boundFirstArg.
HasErrors
2111
hasErrors = boundSecondArgWithConversions.
HasErrors
2815
If (left.
HasErrors
) Then
2838
If (left.
HasErrors
) Then
2846
Dim hasErrors As Boolean = left.
HasErrors
2953
ElseIf left.
HasErrors
Then
3086
hasError = receiver.
HasErrors
' don't report subsequent errors if LHS was already an error.
3645
Not receiver.
HasErrors
Then
3785
defaultPropertyGroup.Kind = BoundKind.MethodGroup OrElse defaultPropertyGroup.
HasErrors
)
3802
ElseIf defaultPropertyGroup Is Nothing OrElse Not defaultPropertyGroup.
HasErrors
Then
4666
If Not operand.
HasErrors
AndAlso
4693
If operand.
HasErrors
Then
4770
If getAwaiter.
HasErrors
OrElse
4818
If isCompleted.
HasErrors
OrElse
4865
If getResult.
HasErrors
OrElse
Binding\Binder_Initializers.vb (6)
52
Me.HasAnyErrors = boundInitializers.Any(Function(i) i.
HasErrors
)
211
If Me.Compilation.IsSubmission AndAlso isLast AndAlso boundStatement.Kind = BoundKind.ExpressionStatement AndAlso Not boundStatement.
HasErrors
Then
217
boundStatement = New BoundExpressionStatement(boundStatement.Syntax, expression, expression.
HasErrors
)
537
If Not boundInitValue.
HasErrors
Then
616
If Not valueExpression.
HasErrors
Then
654
If Not boundInitValue.
HasErrors
Then
Binding\Binder_InterpolatedString.vb (3)
144
node.
HasErrors
OrElse
146
Function(interpolation) interpolation.Expression.
HasErrors
OrElse
233
If hasErrors OrElse result.
HasErrors
Then
Binding\Binder_Invocation.vb (14)
129
If Not group.
HasErrors
Then
295
If Not target.
HasErrors
Then
347
If Not target.
HasErrors
Then
354
defaultPropertyGroup.
HasErrors
)
380
ElseIf Not target.
HasErrors
Then
860
hasErrors = hasErrors Or group.
HasErrors
1529
If boundArguments(i).
HasErrors
OrElse (type IsNot Nothing AndAlso type.IsErrorType()) Then
2324
Not (Not paramArrayArgument.
HasErrors
AndAlso
2481
If targetType.IsErrorType() OrElse argument.
HasErrors
Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011]
2550
If targetType.IsErrorType() OrElse argument.
HasErrors
Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011]
2850
Dim inPlaceholder = New BoundByRefArgumentPlaceholder(argument.Syntax, isOutParameter, argument.Type, argument.
HasErrors
).MakeCompilerGenerated()
2877
Debug.Assert(copyBackExpression.
HasErrors
OrElse
2894
targetType, copyBackExpression.
HasErrors
).MakeCompilerGenerated()
3186
If Not convertedValue.
HasErrors
AndAlso Not ignoreDiagnostics.HasAnyErrors Then
Binding\Binder_Lambda.vb (7)
225
If block.
HasErrors
OrElse diagnostics.HasAnyErrors() Then
465
expression.
HasErrors
)
470
expression.
HasErrors
).MakeCompilerGenerated()
566
Not block.
HasErrors
AndAlso Not lambdaSymbol.IsIterator Then
669
If argument.
HasErrors
Then
906
If block.
HasErrors
OrElse diagnostics.HasAnyErrors() Then
939
If returnExpression IsNot Nothing AndAlso Not returnExpression.
HasErrors
AndAlso Not diagnostics.HasAnyErrors() Then
Binding\Binder_ObjectInitializer.vb (1)
750
If Not target.
HasErrors
Then
Binding\Binder_Operators.vb (12)
116
If Not otherArgument.
HasErrors
AndAlso Not otherArgument.IsNothingLiteral() Then
125
If Not otherArgument.
HasErrors
AndAlso Not otherArgument.IsNothingLiteral() Then
242
If (left.
HasErrors
OrElse right.
HasErrors
) Then
253
If (left.
HasErrors
OrElse right.
HasErrors
) Then
519
If Not (left.
HasErrors
OrElse right.
HasErrors
) Then
933
If cast.
HasErrors
Then
1139
If Not operand.
HasErrors
AndAlso operand.IsNothingLiteral Then
1149
If operand.
HasErrors
Then
1219
If Not operand.
HasErrors
Then
Binding\Binder_Query.vb (19)
413
If Not suppressCallDiagnostics AndAlso firstSelectExpression.
HasErrors
AndAlso firstSelectExpression.Kind = BoundKind.QueryClause Then
606
Debug.Assert(Not selector.
HasErrors
)
614
Debug.Assert(Not selectorLambda.
HasErrors
)
708
If lambda.
HasErrors
Then
1523
If inner.
HasErrors
OrElse inner.Type.IsErrorType() OrElse
1706
If inner.
HasErrors
OrElse inner.Type.IsErrorType() OrElse
1998
ElseIf Not source.
HasErrors
Then
2043
Not inner.
HasErrors
AndAlso Not inner.Type.IsErrorType() Then
2073
ElseIf Not outer.
HasErrors
Then
2353
ElseIf convertedToBoolean.
HasErrors
AndAlso conversionDiagnostic.HasAnyErrors() Then
2486
If boundCount.
HasErrors
OrElse (boundCount.Type IsNot Nothing AndAlso boundCount.Type.IsErrorType()) Then
3536
If outerKey.
HasErrors
OrElse innerKey.
HasErrors
Then
4136
If Not source.
HasErrors
Then
4356
If Not asQueryable.
HasErrors
AndAlso asQueryable.Kind = BoundKind.Call Then
4374
If Not asEnumerable.
HasErrors
AndAlso asEnumerable.Kind = BoundKind.Call Then
4397
If Not cast.
HasErrors
AndAlso cast.Kind = BoundKind.Call Then
4714
If boundCall.
HasErrors
AndAlso Not source.
HasErrors
Then
Binding\Binder_SelectCase.vb (3)
27
If expression.
HasErrors
Then
87
If boundExpr.
HasErrors
() Then
379
Debug.Assert(Not selectExpression.
HasErrors
)
Binding\Binder_Statements.vb (43)
336
Not containsAwait AndAlso Not body.
HasErrors
AndAlso
428
(initializer.
HasErrors
AndAlso
712
If redimTarget.
HasErrors
Then
723
If temp.
HasErrors
Then
733
If arg.
HasErrors
Then
805
If target.
HasErrors
Then
837
Dim hasErrors As Boolean = boundLabel.
HasErrors
1240
ElseIf declarationInitializer IsNot Nothing AndAlso Not declarationInitializer.
HasErrors
AndAlso
1412
Dim localDiagnostics = If(inferFrom.
HasErrors
, BindingDiagnosticBag.Discarded, diagnostics)
1494
If toValueExpression.
HasErrors
OrElse fromValueExpression.
HasErrors
OrElse
1495
(stepValueExpression IsNot Nothing AndAlso stepValueExpression.
HasErrors
) Then
2044
isError = rValue.
HasErrors
2140
If (op1.
HasErrors
OrElse op2.
HasErrors
) Then
2141
If Not op1.
HasErrors
AndAlso node.Kind = SyntaxKind.SimpleAssignmentStatement Then
2231
isError = MakeRValue(target, diagnostics).
HasErrors
2258
Debug.Assert((original.Kind = BoundKind.CompoundAssignmentTargetPlaceholder) = (right.Kind = BoundKind.MidResult) OrElse original.
HasErrors
OrElse right.
HasErrors
)
2448
If Not notParenthesized.
HasErrors
Then
2465
If Not target.
HasErrors
Then
2638
If Not boundExpression.
HasErrors
AndAlso
2683
If Not BindAwait(statement, boundExpression, diagBag, bindAsStatement:=True).
HasErrors
AndAlso Not diagBag.HasAnyErrors Then
2725
If Not boundInvocation.
HasErrors
Then
2739
If Not lateInvocation.
HasErrors
AndAlso
3199
If Not (initialValue.
HasErrors
OrElse limit.
HasErrors
OrElse stepValue.
HasErrors
) AndAlso
3221
If(lessThanOrEqual IsNot Nothing AndAlso lessThanOrEqual.
HasErrors
, BindingDiagnosticBag.Discarded, diagnostics),
3240
initialValue.
HasErrors
OrElse
3241
stepValue.
HasErrors
OrElse
3242
controlVariableOpt.
HasErrors
3442
If currentType IsNot Nothing AndAlso Not controlVariableOpt.
HasErrors
Then
3598
If controlVariable.
HasErrors
Then
3640
If Not controlVariable.
HasErrors
Then
3646
If Not controlVariable.
HasErrors
AndAlso IsInAsyncContext() AndAlso
3733
If collection.
HasErrors
Then
3992
Not boundGetEnumeratorCall.
HasErrors
AndAlso Not boundGetEnumeratorCall.Type.IsErrorType Then
4127
If boundGetEnumeratorCall.
HasErrors
Then
4163
If boundMoveNextCall.
HasErrors
OrElse
4199
If boundCurrentAccess.
HasErrors
Then
4729
If Not lockExpression.
HasErrors
Then
4819
If originalExceptionValue.
HasErrors
Then
Binding\Binder_Utils.vb (1)
1392
If conv.
HasErrors
Then
Binding\Binder_XmlLiterals.vb (3)
1373
Me.HasErrors = objectCreation.
HasErrors
1404
Me.HasErrors = objectCreation.
HasErrors
OrElse sideEffects.Any(Function(s) s.
HasErrors
)
Binding\EarlyWellKnownAttributeBinder.vb (1)
174
If boundExpression.
HasErrors
Then
Binding\MemberSemanticModel.vb (4)
1683
If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.
HasErrors
Then
1737
If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.
HasErrors
Then
2263
Debug.Assert(receiver Is Nothing OrElse Not node.Method.IsShared OrElse receiver.
HasErrors
)
2286
Debug.Assert(receiver Is Nothing OrElse Not node.PropertySymbol.IsShared OrElse receiver.
HasErrors
)
BoundTree\BoundExpressionExtensions.vb (3)
425
If Not expression.
HasErrors
AndAlso expression.IsConstant Then
631
Return New BoundExpressionStatement(node.Syntax, node, node.
HasErrors
)
636
If Not node.
HasErrors
Then
BoundTree\BoundLocal.vb (1)
41
If
HasErrors
OrElse Type.IsErrorType Then
BoundTree\BoundNodeExtensions.vb (2)
26
If nodeArray(i).
HasErrors
Then
37
Return node IsNot Nothing AndAlso node.
HasErrors
BoundTree\BoundSequence.vb (1)
16
Debug.Assert(Me.ValueOpt IsNot Nothing OrElse Me.
HasErrors
OrElse Me.Type.SpecialType = SpecialType.System_Void)
BoundTree\BoundUnaryOperator.vb (1)
21
Me.New(syntax, operatorKind, operand, checked, constantValueOpt:=Nothing, type:=type, hasErrors:=hasErrors OrElse operand.
HasErrors
())
Compilation\MethodCompiler.vb (6)
1272
Dim hasErrors = _hasDeclarationErrors OrElse diagsForCurrentMethod.HasAnyErrors() OrElse processedInitializers.HasAnyErrors OrElse block.
HasErrors
1441
If stmt Is Nothing OrElse stmt.
HasErrors
Then
1476
If constructorInitializerOpt IsNot Nothing AndAlso constructorInitializerOpt.
HasErrors
Then
1538
Dim hasErrors = body.
HasErrors
OrElse diagsForCurrentMethod.HasAnyErrors OrElse (diagnostics IsNot diagsForCurrentMethod AndAlso diagnostics.HasAnyErrors)
1559
body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.
HasErrors
).MakeCompilerGenerated()
1849
If theFirstStatementOpt.
HasErrors
Then
Compilation\SemanticModel.vb (1)
800
If Not resultNode.
HasErrors
AndAlso resultNode.Type Is Nothing Then
Generated\BoundNodes.xml.Generated.vb (172)
253
Dim result = New BoundTypeArguments(Me.Syntax, arguments, Me.
HasErrors
)
280
Dim result = New BoundOmittedArgument(Me.Syntax, type, Me.
HasErrors
)
339
Dim result = New BoundLValueToRValueWrapper(Me.Syntax, underlyingLValue, type, Me.
HasErrors
)
410
Dim result = New BoundWithLValueExpressionPlaceholder(Me.Syntax, type, Me.
HasErrors
)
443
Dim result = New BoundWithRValueExpressionPlaceholder(Me.Syntax, type, Me.
HasErrors
)
483
Dim result = New BoundRValuePlaceholder(Me.Syntax, type, Me.
HasErrors
)
523
Dim result = New BoundLValuePlaceholder(Me.Syntax, type, Me.
HasErrors
)
559
Dim result = New BoundDup(Me.Syntax, isReference, type, Me.
HasErrors
)
615
Dim result = New BoundBadExpression(Me.Syntax, resultKind, symbols, childBoundNodes, type, Me.
HasErrors
)
649
Dim result = New BoundBadStatement(Me.Syntax, childBoundNodes, Me.
HasErrors
)
688
Dim result = New BoundParenthesized(Me.Syntax, expression, type, Me.
HasErrors
)
730
Dim result = New BoundBadVariable(Me.Syntax, expression, isLValue, type, Me.
HasErrors
)
787
Dim result = New BoundArrayAccess(Me.Syntax, expression, indices, isLValue, type, Me.
HasErrors
)
822
Dim result = New BoundArrayLength(Me.Syntax, expression, type, Me.
HasErrors
)
865
Dim result = New BoundGetType(Me.Syntax, sourceType, getTypeFromHandle, type, Me.
HasErrors
)
909
Dim result = New BoundFieldInfo(Me.Syntax, field, type, Me.
HasErrors
)
964
Dim result = New BoundMethodInfo(Me.Syntax, method, getMethodFromHandle, type, Me.
HasErrors
)
1006
Dim result = New BoundTypeExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, type, Me.
HasErrors
)
1048
Dim result = New BoundTypeOrValueExpression(Me.Syntax, data, type, Me.
HasErrors
)
1103
Dim result = New BoundNamespaceExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, namespaceSymbol, Me.
HasErrors
)
1154
Dim result = New BoundMethodDefIndex(Me.Syntax, method, type, Me.
HasErrors
)
1187
Dim result = New BoundMaximumMethodDefIndex(Me.Syntax, type, Me.
HasErrors
)
1238
Dim result = New BoundInstrumentationPayloadRoot(Me.Syntax, analysisKind, isLValue, type, Me.
HasErrors
)
1280
Dim result = New BoundModuleVersionId(Me.Syntax, isLValue, type, Me.
HasErrors
)
1313
Dim result = New BoundModuleVersionIdString(Me.Syntax, type, Me.
HasErrors
)
1357
Dim result = New BoundSourceDocumentIndex(Me.Syntax, document, type, Me.
HasErrors
)
1421
Dim result = New BoundUnaryOperator(Me.Syntax, operatorKind, operand, checked, constantValueOpt, type, Me.
HasErrors
)
1469
Dim result = New BoundUserDefinedUnaryOperator(Me.Syntax, operatorKind, underlyingExpression, type, Me.
HasErrors
)
1509
Dim result = New BoundNullableIsTrueOperator(Me.Syntax, operand, type, Me.
HasErrors
)
1582
Dim result = New BoundBinaryOperator(Me.Syntax, operatorKind, left, right, checked, constantValueOpt, type, Me.
HasErrors
)
1638
Dim result = New BoundUserDefinedBinaryOperator(Me.Syntax, operatorKind, underlyingExpression, checked, type, Me.
HasErrors
)
1702
Dim result = New BoundUserDefinedShortCircuitingOperator(Me.Syntax, leftOperand, leftOperandPlaceholder, leftTest, bitwiseOperator, type, Me.
HasErrors
)
1735
Dim result = New BoundCompoundAssignmentTargetPlaceholder(Me.Syntax, type, Me.
HasErrors
)
1800
Dim result = New BoundAssignmentOperator(Me.Syntax, left, leftOnTheRightOpt, right, suppressObjectClone, type, Me.
HasErrors
)
1856
Dim result = New BoundReferenceAssignment(Me.Syntax, byRefLocal, lValue, isLValue, type, Me.
HasErrors
)
1907
Dim result = New BoundAddressOfOperator(Me.Syntax, binder, withDependencies, methodGroup, Me.
HasErrors
)
1973
Dim result = New BoundTernaryConditionalExpression(Me.Syntax, condition, whenTrue, whenFalse, constantValueOpt, type, Me.
HasErrors
)
2046
Dim result = New BoundBinaryConditionalExpression(Me.Syntax, testExpression, convertedTestExpression, testExpressionPlaceholder, elseExpression, constantValueOpt, type, Me.
HasErrors
)
2145
Dim result = New BoundConversion(Me.Syntax, operand, conversionKind, checked, explicitCastInCode, constantValueOpt, extendedInfoOpt, type, Me.
HasErrors
)
2200
Dim result = New BoundRelaxationLambda(Me.Syntax, lambda, receiverPlaceholderOpt, Me.
HasErrors
)
2248
Dim result = New BoundConvertedTupleElements(Me.Syntax, elementPlaceholders, convertedElements, Me.
HasErrors
)
2296
Dim result = New BoundUserDefinedConversion(Me.Syntax, underlyingExpression, inOutConversionFlags, type, Me.
HasErrors
)
2368
Dim result = New BoundDirectCast(Me.Syntax, operand, conversionKind, suppressVirtualCalls, constantValueOpt, relaxationLambdaOpt, type, Me.
HasErrors
)
2432
Dim result = New BoundTryCast(Me.Syntax, operand, conversionKind, constantValueOpt, relaxationLambdaOpt, type, Me.
HasErrors
)
2484
Dim result = New BoundTypeOf(Me.Syntax, operand, isTypeOfIsNotExpression, targetType, type, Me.
HasErrors
)
2528
Dim result = New BoundSequencePoint(Me.Syntax, statementOpt, Me.
HasErrors
)
2562
Dim result = New BoundSequencePointExpression(Me.Syntax, expression, type, Me.
HasErrors
)
2601
Dim result = New BoundSequencePointWithSpan(Me.Syntax, statementOpt, span, Me.
HasErrors
)
2637
Dim result = New BoundNoOpStatement(Me.Syntax, flavor, Me.
HasErrors
)
2720
Dim result = New BoundMethodGroup(Me.Syntax, typeArgumentsOpt, methods, pendingExtensionMethodsOpt, resultKind, receiverOpt, qualificationKind, Me.
HasErrors
)
2762
Dim result = New BoundPropertyGroup(Me.Syntax, properties, resultKind, receiverOpt, qualificationKind, Me.
HasErrors
)
2814
Dim result = New BoundReturnStatement(Me.Syntax, expressionOpt, functionLocalOpt, exitLabelOpt, Me.
HasErrors
)
2853
Dim result = New BoundYieldStatement(Me.Syntax, expression, Me.
HasErrors
)
2884
Dim result = New BoundThrowStatement(Me.Syntax, expressionOpt, Me.
HasErrors
)
2918
Dim result = New BoundRedimStatement(Me.Syntax, clauses, Me.
HasErrors
)
2982
Dim result = New BoundRedimClause(Me.Syntax, operand, indices, arrayTypeOpt, preserve, Me.
HasErrors
)
3016
Dim result = New BoundEraseStatement(Me.Syntax, clauses, Me.
HasErrors
)
3113
Dim result = New BoundCall(Me.Syntax, method, methodGroupOpt, receiverOpt, arguments, defaultArguments, constantValueOpt, isLValue, suppressObjectClone, type, Me.
HasErrors
)
3181
Dim result = New BoundAttribute(Me.Syntax, constructor, constructorArguments, constructorDefaultArguments, namedArguments, resultKind, type, Me.
HasErrors
)
3252
Dim result = New BoundLateMemberAccess(Me.Syntax, nameOpt, containerTypeOpt, receiverOpt, typeArgumentsOpt, accessKind, type, Me.
HasErrors
)
3324
Dim result = New BoundLateInvocation(Me.Syntax, member, argumentsOpt, argumentNamesOpt, accessKind, methodOrPropertyGroupOpt, type, Me.
HasErrors
)
3367
Dim result = New BoundLateAddressOfOperator(Me.Syntax, binder, memberAccess, type, Me.
HasErrors
)
3437
Dim result = New BoundTupleLiteral(Me.Syntax, inferredType, argumentNamesOpt, inferredNamesOpt, arguments, type, Me.
HasErrors
)
3472
Dim result = New BoundConvertedTupleLiteral(Me.Syntax, naturalTypeOpt, arguments, type, Me.
HasErrors
)
3561
Dim result = New BoundObjectCreationExpression(Me.Syntax, constructorOpt, methodGroupOpt, arguments, defaultArguments, initializerOpt, type, Me.
HasErrors
)
3595
Dim result = New BoundNoPiaObjectCreationExpression(Me.Syntax, guidString, initializerOpt, type, Me.
HasErrors
)
3646
Dim result = New BoundAnonymousTypeCreationExpression(Me.Syntax, binderOpt, declarations, arguments, type, Me.
HasErrors
)
3697
Dim result = New BoundAnonymousTypePropertyAccess(Me.Syntax, binder, propertyIndex, type, Me.
HasErrors
)
3740
Dim result = New BoundAnonymousTypeFieldInitializer(Me.Syntax, binder, value, type, Me.
HasErrors
)
3807
Dim result = New BoundObjectInitializerExpression(Me.Syntax, createTemporaryLocalForInitialization, placeholderOpt, initializers, type, Me.
HasErrors
)
3838
Dim result = New BoundCollectionInitializerExpression(Me.Syntax, placeholderOpt, initializers, type, Me.
HasErrors
)
3869
Dim result = New BoundNewT(Me.Syntax, initializerOpt, type, Me.
HasErrors
)
3936
Dim result = New BoundDelegateCreationExpression(Me.Syntax, receiverOpt, method, relaxationLambdaOpt, relaxationReceiverPlaceholderOpt, methodGroupOpt, type, Me.
HasErrors
)
4008
Dim result = New BoundArrayCreation(Me.Syntax, isParamArrayArgument, bounds, initializerOpt, arrayLiteralOpt, arrayLiteralConversion, type, Me.
HasErrors
)
4085
Dim result = New BoundArrayLiteral(Me.Syntax, hasDominantType, numberOfCandidates, inferredType, bounds, initializer, binder, Me.
HasErrors
)
4119
Dim result = New BoundArrayInitialization(Me.Syntax, initializers, type, Me.
HasErrors
)
4191
Dim result = New BoundFieldAccess(Me.Syntax, receiverOpt, fieldSymbol, isLValue, suppressVirtualCalls, constantsInProgressOpt, type, Me.
HasErrors
)
4288
Dim result = New BoundPropertyAccess(Me.Syntax, propertySymbol, propertyGroupOpt, accessKind, isWriteable, isLValue, receiverOpt, arguments, defaultArguments, type, Me.
HasErrors
)
4331
Dim result = New BoundEventAccess(Me.Syntax, receiverOpt, eventSymbol, type, Me.
HasErrors
)
4382
Dim result = New BoundBlock(Me.Syntax, statementListSyntax, locals, statements, Me.
HasErrors
)
4425
Dim result = New BoundStateMachineScope(Me.Syntax, fields, statement, Me.
HasErrors
)
4501
Dim result = New BoundLocalDeclaration(Me.Syntax, localSymbol, declarationInitializerOpt, identifierInitializerOpt, initializedByAsNew, Me.
HasErrors
)
4553
Dim result = New BoundAsNewLocalDeclarations(Me.Syntax, localDeclarations, initializer, binder, Me.
HasErrors
)
4595
Dim result = New BoundDimStatement(Me.Syntax, localDeclarations, initializerOpt, Me.
HasErrors
)
4692
Dim result = New BoundFieldInitializer(Me.Syntax, initializedFields, memberAccessExpressionOpt, initialValue, binderOpt, Me.
HasErrors
)
4727
Dim result = New BoundPropertyInitializer(Me.Syntax, initializedProperties, memberAccessExpressionOpt, initialValue, binderOpt, Me.
HasErrors
)
4770
Dim result = New BoundParameterEqualsValue(Me.Syntax, parameter, value, Me.
HasErrors
)
4804
Dim result = New BoundGlobalStatementInitializer(Me.Syntax, statement, Me.
HasErrors
)
4861
Dim result = New BoundSequence(Me.Syntax, locals, sideEffects, valueOpt, type, Me.
HasErrors
)
4895
Dim result = New BoundExpressionStatement(Me.Syntax, expression, Me.
HasErrors
)
4946
Dim result = New BoundIfStatement(Me.Syntax, condition, consequence, alternativeOpt, Me.
HasErrors
)
5014
Dim result = New BoundSelectStatement(Me.Syntax, expressionStatement, exprPlaceholderOpt, caseBlocks, recommendSwitchTable, exitLabel, Me.
HasErrors
)
5057
Dim result = New BoundCaseBlock(Me.Syntax, caseStatement, body, Me.
HasErrors
)
5099
Dim result = New BoundCaseStatement(Me.Syntax, caseClauses, conditionOpt, Me.
HasErrors
)
5165
Dim result = New BoundSimpleCaseClause(Me.Syntax, valueOpt, conditionOpt, Me.
HasErrors
)
5225
Dim result = New BoundRangeCaseClause(Me.Syntax, lowerBoundOpt, upperBoundOpt, lowerBoundConditionOpt, upperBoundConditionOpt, Me.
HasErrors
)
5261
Dim result = New BoundRelationalCaseClause(Me.Syntax, operatorKind, valueOpt, conditionOpt, Me.
HasErrors
)
5368
Dim result = New BoundDoLoopStatement(Me.Syntax, topConditionOpt, bottomConditionOpt, topConditionIsUntil, bottomConditionIsUntil, body, continueLabel, exitLabel, Me.
HasErrors
)
5413
Dim result = New BoundWhileStatement(Me.Syntax, condition, body, continueLabel, exitLabel, Me.
HasErrors
)
5544
Dim result = New BoundForToUserDefinedOperators(Me.Syntax, leftOperandPlaceholder, rightOperandPlaceholder, addition, subtraction, lessThanOrEqual, greaterThanOrEqual, Me.
HasErrors
)
5616
Dim result = New BoundForToStatement(Me.Syntax, initialValue, limitValue, stepValue, checked, operatorsOpt, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.
HasErrors
)
5663
Dim result = New BoundForEachStatement(Me.Syntax, collection, enumeratorInfo, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.
HasErrors
)
5705
Dim result = New BoundExitStatement(Me.Syntax, label, Me.
HasErrors
)
5747
Dim result = New BoundContinueStatement(Me.Syntax, label, Me.
HasErrors
)
5806
Dim result = New BoundTryStatement(Me.Syntax, tryBlock, catchBlocks, finallyBlockOpt, exitLabelOpt, Me.
HasErrors
)
5880
Dim result = New BoundCatchBlock(Me.Syntax, localOpt, exceptionSourceOpt, errorLineNumberOpt, exceptionFilterOpt, body, isSynthesizedAsyncCatchAll, Me.
HasErrors
)
5929
Dim result = New BoundLiteral(Me.Syntax, value, type, Me.
HasErrors
)
5962
Dim result = New BoundMeReference(Me.Syntax, type, Me.
HasErrors
)
6002
Dim result = New BoundValueTypeMeReference(Me.Syntax, type, Me.
HasErrors
)
6035
Dim result = New BoundMyBaseReference(Me.Syntax, type, Me.
HasErrors
)
6068
Dim result = New BoundMyClassReference(Me.Syntax, type, Me.
HasErrors
)
6112
Dim result = New BoundPreviousSubmissionReference(Me.Syntax, sourceType, type, Me.
HasErrors
)
6145
Dim result = New BoundHostObjectMemberReference(Me.Syntax, type, Me.
HasErrors
)
6205
Dim result = New BoundLocal(Me.Syntax, localSymbol, isLValue, type, Me.
HasErrors
)
6276
Dim result = New BoundPseudoVariable(Me.Syntax, localSymbol, isLValue, emitExpressions, type, Me.
HasErrors
)
6338
Dim result = New BoundParameter(Me.Syntax, parameterSymbol, isLValue, suppressVirtualCalls, type, Me.
HasErrors
)
6380
Dim result = New BoundByRefArgumentPlaceholder(Me.Syntax, isOut, type, Me.
HasErrors
)
6455
Dim result = New BoundByRefArgumentWithCopyBack(Me.Syntax, originalArgument, inConversion, inPlaceholder, outConversion, outPlaceholder, type, Me.
HasErrors
)
6503
Dim result = New BoundLateBoundArgumentSupportingAssignmentWithCapture(Me.Syntax, originalArgument, localSymbol, type, Me.
HasErrors
)
6545
Dim result = New BoundLabelStatement(Me.Syntax, label, Me.
HasErrors
)
6587
Dim result = New BoundLabel(Me.Syntax, label, type, Me.
HasErrors
)
6629
Dim result = New BoundGotoStatement(Me.Syntax, label, labelExpressionOpt, Me.
HasErrors
)
6663
Dim result = New BoundStatementList(Me.Syntax, statements, Me.
HasErrors
)
6714
Dim result = New BoundConditionalGoto(Me.Syntax, condition, jumpIfTrue, label, Me.
HasErrors
)
6766
Dim result = New BoundWithStatement(Me.Syntax, originalExpression, body, binder, Me.
HasErrors
)
6855
Dim result = New UnboundLambda(Me.Syntax, binder, flags, parameters, returnType, bindingCache, Me.
HasErrors
)
6935
Dim result = New BoundLambda(Me.Syntax, lambdaSymbol, body, diagnostics, lambdaBinderOpt, delegateRelaxation, methodConversionKind, Me.
HasErrors
)
6970
Dim result = New BoundQueryExpression(Me.Syntax, lastOperator, type, Me.
HasErrors
)
7024
Dim result = New BoundQuerySource(Me.Syntax, expression, type, Me.
HasErrors
)
7059
Dim result = New BoundToQueryableCollectionConversion(Me.Syntax, conversionCall, type, Me.
HasErrors
)
7162
Dim result = New BoundQueryableSource(Me.Syntax, source, rangeVariableOpt, rangeVariables, compoundVariableType, binders, type, Me.
HasErrors
)
7200
Dim result = New BoundQueryClause(Me.Syntax, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.
HasErrors
)
7235
Dim result = New BoundOrdering(Me.Syntax, underlyingExpression, type, Me.
HasErrors
)
7295
Dim result = New BoundQueryLambda(Me.Syntax, lambdaSymbol, rangeVariables, expression, exprIsOperandOfConditionalBranch, Me.
HasErrors
)
7339
Dim result = New BoundRangeVariableAssignment(Me.Syntax, rangeVariable, value, type, Me.
HasErrors
)
7403
Dim result = New GroupTypeInferenceLambda(Me.Syntax, binder, parameters, compilation, Me.
HasErrors
)
7457
Dim result = New BoundAggregateClause(Me.Syntax, capturedGroupOpt, groupPlaceholderOpt, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.
HasErrors
)
7492
Dim result = New BoundGroupAggregation(Me.Syntax, group, type, Me.
HasErrors
)
7536
Dim result = New BoundRangeVariable(Me.Syntax, rangeVariable, type, Me.
HasErrors
)
7592
Dim result = New BoundAddHandlerStatement(Me.Syntax, eventAccess, handler, Me.
HasErrors
)
7619
Dim result = New BoundRemoveHandlerStatement(Me.Syntax, eventAccess, handler, Me.
HasErrors
)
7662
Dim result = New BoundRaiseEventStatement(Me.Syntax, eventSymbol, eventInvocation, Me.
HasErrors
)
7730
Dim result = New BoundUsingStatement(Me.Syntax, resourceList, resourceExpressionOpt, body, usingInfo, locals, Me.
HasErrors
)
7773
Dim result = New BoundSyncLockStatement(Me.Syntax, lockExpression, body, Me.
HasErrors
)
7826
Dim result = New BoundXmlName(Me.Syntax, xmlNamespace, localName, objectCreation, type, Me.
HasErrors
)
7870
Dim result = New BoundXmlNamespace(Me.Syntax, xmlNamespace, objectCreation, type, Me.
HasErrors
)
7923
Dim result = New BoundXmlDocument(Me.Syntax, declaration, childNodes, rewriterInfo, type, Me.
HasErrors
)
7982
Dim result = New BoundXmlDeclaration(Me.Syntax, version, encoding, standalone, objectCreation, type, Me.
HasErrors
)
8035
Dim result = New BoundXmlProcessingInstruction(Me.Syntax, target, data, objectCreation, type, Me.
HasErrors
)
8079
Dim result = New BoundXmlComment(Me.Syntax, value, objectCreation, type, Me.
HasErrors
)
8145
Dim result = New BoundXmlAttribute(Me.Syntax, name, value, matchesImport, objectCreation, type, Me.
HasErrors
)
8198
Dim result = New BoundXmlElement(Me.Syntax, argument, childNodes, rewriterInfo, type, Me.
HasErrors
)
8233
Dim result = New BoundXmlMemberAccess(Me.Syntax, memberAccess, type, Me.
HasErrors
)
8268
Dim result = New BoundXmlEmbeddedExpression(Me.Syntax, expression, type, Me.
HasErrors
)
8312
Dim result = New BoundXmlCData(Me.Syntax, value, objectCreation, type, Me.
HasErrors
)
8364
Dim result = New BoundResumeStatement(Me.Syntax, resumeKind, labelOpt, labelExpressionOpt, Me.
HasErrors
)
8416
Dim result = New BoundOnErrorStatement(Me.Syntax, onErrorKind, labelOpt, labelExpressionOpt, Me.
HasErrors
)
8487
Dim result = New BoundUnstructuredExceptionHandlingStatement(Me.Syntax, containsOnError, containsResume, resumeWithoutLabelOpt, trackLineNumber, body, Me.
HasErrors
)
8536
Dim result = New BoundUnstructuredExceptionHandlingCatchFilter(Me.Syntax, activeHandlerLocal, resumeTargetLocal, type, Me.
HasErrors
)
8584
Dim result = New BoundUnstructuredExceptionOnErrorSwitch(Me.Syntax, value, jumps, Me.
HasErrors
)
8650
Dim result = New BoundUnstructuredExceptionResumeSwitch(Me.Syntax, resumeTargetTemporary, resumeLabel, resumeNextLabel, jumps, Me.
HasErrors
)
8735
Dim result = New BoundAwaitOperator(Me.Syntax, operand, awaitableInstancePlaceholder, getAwaiter, awaiterInstancePlaceholder, isCompleted, getResult, type, Me.
HasErrors
)
8800
Dim result = New BoundSpillSequence(Me.Syntax, locals, spillFields, statements, valueOpt, type, Me.
HasErrors
)
8902
Dim result = New BoundMidResult(Me.Syntax, original, start, lengthOpt, source, type, Me.
HasErrors
)
8954
Dim result = New BoundConditionalAccess(Me.Syntax, receiver, placeholder, accessExpression, type, Me.
HasErrors
)
9012
Dim result = New BoundConditionalAccessReceiverPlaceholder(Me.Syntax, placeholderId, capture, type, Me.
HasErrors
)
9085
Dim result = New BoundLoweredConditionalAccess(Me.Syntax, receiver, captureReceiver, placeholderId, whenNotNull, whenNullOpt, type, Me.
HasErrors
)
9134
Dim result = New BoundComplexConditionalAccessReceiver(Me.Syntax, valueTypeReceiver, referenceTypeReceiver, type, Me.
HasErrors
)
9182
Dim result = New BoundNameOfOperator(Me.Syntax, argument, constantValueOpt, type, Me.
HasErrors
)
9222
Dim result = New BoundTypeAsValueExpression(Me.Syntax, expression, type, Me.
HasErrors
)
9270
Dim result = New BoundInterpolatedStringExpression(Me.Syntax, contents, constructionOpt, type, Me.
HasErrors
)
9320
Dim result = New BoundInterpolation(Me.Syntax, expression, alignmentOpt, formatStringOpt, Me.
HasErrors
)
Lowering\AsyncRewriter\AsyncRewriter.vb (5)
81
If body.
HasErrors
Then
271
If body.
HasErrors
Then
522
arguments.Any(Function(a) a.
HasErrors
) OrElse
523
(receiver IsNot Nothing AndAlso receiver.
HasErrors
) Then
579
If propertyGroup Is Nothing OrElse (receiver IsNot Nothing AndAlso receiver.
HasErrors
) Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
111
If Not expressionTree.
HasErrors
Then
346
If Not parameter.
HasErrors
Then
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
56
If body.
HasErrors
Or Not method.IsIterator Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
138
Debug.Assert(Not node.
HasErrors
)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (4)
330
Return If(suppressObjectClone OrElse right.
HasErrors
(), VisitExpression(right), GenerateObjectCloneIfNeeded(right, VisitExpression(right)))
344
If expression.
HasErrors
OrElse rewrittenExpression.
HasErrors
OrElse Me._inExpressionLambda Then
350
If Not result.
HasErrors
AndAlso result.Type.IsObjectType() AndAlso Not Me.ContainingAssembly.IsVbRuntime Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
169
If operand.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
174
If node.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
19
If Not _inExpressionLambda AndAlso Not node.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
70
If Not node.
HasErrors
AndAlso node.Type.IsBooleanType() AndAlso node.Operand.Type.IsObjectType() Then
711
If rewrittenConversion.
HasErrors
OrElse _inExpressionLambda Then
Lowering\LocalRewriter\LocalRewriter_DelegateCreation.vb (1)
49
hasErrors:=node.
HasErrors
)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
135
ElseIf Not node.Collection.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
97
If node.InitializerOpt Is Nothing OrElse node.InitializerOpt.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
341
Debug.Assert(Not node.
HasErrors
)
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
97
If Not node.
HasErrors
AndAlso ((kind And UnaryOperatorKind.Lifted) = 0) AndAlso (kind <> UnaryOperatorKind.Error) AndAlso Not _inExpressionLambda Then
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
18
If node.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
19
If Me._inExpressionLambda AndAlso Not node.
HasErrors
Then
48
If Me._inExpressionLambda AndAlso Not node.
HasErrors
Then
Lowering\LocalRewriter\LocalRewriter.vb (2)
164
Debug.Assert(node Is Nothing OrElse Not node.
HasErrors
, "node has errors")
264
Debug.Assert(node Is Nothing OrElse Not node.
HasErrors
, "node has errors")
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (3)
171
Return New BoundParameter(node.Syntax, replacementParameter, node.IsLValue, replacementParameter.Type, node.
HasErrors
)
194
Return New BoundLocal(node.Syntax, replacementLocal, node.IsLValue, replacementLocal.Type, node.
HasErrors
)
484
Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.
HasErrors
OrElse node.Type.SpecialType = SpecialType.System_Void)
Lowering\Rewriter.vb (4)
38
Debug.Assert(Not body.
HasErrors
)
72
If loweredBody.
HasErrors
OrElse localDiagnostics.HasAnyErrors Then
108
If bodyWithoutLambdas.
HasErrors
OrElse localDiagnostics.HasAnyErrors Then
148
If bodyWithoutIterators.
HasErrors
Then
Lowering\UseTwiceRewriter.vb (5)
507
Debug.Assert(result.First.
HasErrors
= result.Second.
HasErrors
AndAlso boundArgument.
HasErrors
= result.First.
HasErrors
)
508
Debug.Assert(result.First.
HasErrors
OrElse
Operations\VisualBasicOperationFactory_QueryLambdaRewriter.vb (3)
60
expression = New BoundParameter(node.Syntax, parameter.ParameterSymbol, parameter.IsLValue, parameter.SuppressVirtualCalls, parameter.Type, parameter.
HasErrors
)
65
access.DefaultArguments, access.Type, access.
HasErrors
)
91
node = New BoundParameter(node.Syntax, node.ParameterSymbol, node.IsLValue, node.SuppressVirtualCalls, node.Type, node.
HasErrors
)
Operations\VisualBasicOperationFactory.vb (1)
1517
Debug.Assert(boundRaiseEventStatement.
HasErrors
)
Semantics\Conversions.vb (2)
1285
If argument.
HasErrors
OrElse targetElementType.IsErrorType Then
4236
If expressionOpt Is Nothing OrElse expressionOpt.Kind <> BoundKind.Conversion OrElse expressionOpt.
HasErrors
Then
Semantics\OverloadResolution.vb (4)
3317
Not paramArrayArgument.
HasErrors
AndAlso CanPassToParamArray(paramArrayArgument, targetType, arrayConversion, binder, useSiteInfo)) Then
3466
If argument.
HasErrors
Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011]
3759
Debug.Assert(Not argument.
HasErrors
)
3763
Dim visitor As New Binder.AttributeExpressionVisitor(binder, passedExpression.
HasErrors
)
Semantics\TypeInference\TypeArgumentInference.vb (4)
943
If paramArrayArgument Is Nothing OrElse paramArrayArgument.
HasErrors
OrElse
989
If argument Is Nothing OrElse argument.
HasErrors
OrElse targetType.IsErrorType() OrElse argument.Kind = BoundKind.OmittedArgument Then
2152
If Not boundLambda.
HasErrors
AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors Then
2206
If Not boundLambda.
HasErrors
AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors() Then
Symbols\Source\LocalSymbol.vb (1)
889
Not valueExpression.
HasErrors
AndAlso