439 references to HasErrors
Microsoft.CodeAnalysis.VisualBasic (438)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
821Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
284If value IsNot Nothing AndAlso (local IsNot Nothing AndAlso Not local.IsConst AndAlso local.Type.IsReferenceType OrElse value.HasErrors) Then
Analysis\ForLoopVerification.vb (3)
74controlVariable.HasErrors) 111If Not controlVariable.HasErrors AndAlso 112Not nextVariable.HasErrors AndAlso
Analysis\InitializerRewriter.vb (2)
171Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.Locals, boundStatements.ToImmutableAndFree(), block.HasErrors) 185Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.Locals, boundStatements.ToImmutableAndFree(), block.HasErrors)
Binding\Binder_Attributes.vb (8)
78Dim visitor As New AttributeExpressionVisitor(Me, boundAttribute.HasErrors) 562If (Me.Compilation.EmbeddedSymbolManager.Embedded <> 0) AndAlso Not expression.HasErrors Then 761If conv.HasErrors OrElse 765If Not conv.HasErrors Then 775If conv.HasErrors OrElse 779If Not conv.HasErrors Then 789If conv.HasErrors OrElse 793If Not conv.HasErrors Then
Binding\Binder_Conversions.vb (9)
79If (argument.HasErrors OrElse targetType.IsErrorType) Then 107If argument.HasErrors Then 186If (argument.HasErrors OrElse targetType.IsErrorType) Then 220If argument.HasErrors Then 342If argument.HasErrors Then 488If argument.HasErrors Then 595If argument.HasErrors OrElse (sourceType IsNot Nothing AndAlso sourceType.IsErrorType()) Then 1248hasErrors = argument.HasErrors 1406Not reportedAnError AndAlso Not boundLambda.HasErrors Then
Binding\Binder_Delegates.vb (5)
56If Not boundOperand.HasErrors Then 121hadErrorsInFirstArgument = boundFirstArgument.HasErrors 973If addressOfExpression.HasErrors Then 990Not addressOfExpression.HasErrors AndAlso 1097If actualReceiver IsNot Nothing AndAlso actualReceiver.IsValue() AndAlso Not actualReceiver.HasErrors Then
Binding\Binder_Expressions.vb (33)
102Return New BoundTypeExpression(node, asType.UnevaluatedReceiverOpt, asType.AliasOpt, operand.Type, operand.HasErrors) 759If operand.HasErrors OrElse operandType.IsErrorType() OrElse targetType.IsErrorType() Then 963If expr.HasErrors Then 1106If result.HasErrors OrElse exprDiagnostics.HasAnyErrors() Then 1137hasErrors:=access.HasErrors) 1142access.SuppressVirtualCalls, access.ConstantsInProgressOpt, access.Type, access.HasErrors) 1151hasErrors:=[call].HasErrors) 1224If expr.HasErrors Then 1344If expr.HasErrors Then 1695If Not expression.HasErrors Then 1913Dim hasErrors = boundConditionArg.HasErrors OrElse boundWhenTrueArg.HasErrors OrElse boundWhenFalseArg.HasErrors 1945hasErrors = hasErrors OrElse boundWhenTrueArg.HasErrors OrElse boundWhenFalseArg.HasErrors 1979Dim hasErrors = boundFirstArg.HasErrors OrElse boundSecondArg.HasErrors OrElse node.ContainsDiagnostics 2063hasErrors = boundFirstArg.HasErrors 2075hasErrors = boundFirstArg.HasErrors 2086hasErrors = boundSecondArgWithConversions.HasErrors 2784If (left.HasErrors) Then 2807If (left.HasErrors) Then 2815Dim hasErrors As Boolean = left.HasErrors 2922ElseIf left.HasErrors Then 3055hasError = receiver.HasErrors ' don't report subsequent errors if LHS was already an error. 3614Not receiver.HasErrors Then 3754defaultPropertyGroup.Kind = BoundKind.MethodGroup OrElse defaultPropertyGroup.HasErrors) 3771ElseIf defaultPropertyGroup Is Nothing OrElse Not defaultPropertyGroup.HasErrors Then 4635If Not operand.HasErrors AndAlso 4662If operand.HasErrors Then 4739If getAwaiter.HasErrors OrElse 4787If isCompleted.HasErrors OrElse 4834If getResult.HasErrors OrElse
Binding\Binder_Initializers.vb (6)
52Me.HasAnyErrors = boundInitializers.Any(Function(i) i.HasErrors) 211If Me.Compilation.IsSubmission AndAlso isLast AndAlso boundStatement.Kind = BoundKind.ExpressionStatement AndAlso Not boundStatement.HasErrors Then 217boundStatement = New BoundExpressionStatement(boundStatement.Syntax, expression, expression.HasErrors) 537If Not boundInitValue.HasErrors Then 616If Not valueExpression.HasErrors Then 654If Not boundInitValue.HasErrors Then
Binding\Binder_Invocation.vb (14)
129If Not group.HasErrors Then 295If Not target.HasErrors Then 347If Not target.HasErrors Then 354defaultPropertyGroup.HasErrors) 380ElseIf Not target.HasErrors Then 862hasErrors = hasErrors Or group.HasErrors 1531If boundArguments(i).HasErrors OrElse (type IsNot Nothing AndAlso type.IsErrorType()) Then 2330Not (Not paramArrayArgument.HasErrors AndAlso 2487If targetType.IsErrorType() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 2556If targetType.IsErrorType() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 2856Dim inPlaceholder = New BoundByRefArgumentPlaceholder(argument.Syntax, isOutParameter, argument.Type, argument.HasErrors).MakeCompilerGenerated() 2883Debug.Assert(copyBackExpression.HasErrors OrElse 2900targetType, copyBackExpression.HasErrors).MakeCompilerGenerated() 3192If Not convertedValue.HasErrors AndAlso Not ignoreDiagnostics.HasAnyErrors Then
Binding\Binder_Lambda.vb (7)
225If block.HasErrors OrElse diagnostics.HasAnyErrors() Then 465expression.HasErrors) 470expression.HasErrors).MakeCompilerGenerated() 566Not block.HasErrors AndAlso Not lambdaSymbol.IsIterator Then 669If argument.HasErrors Then 906If block.HasErrors OrElse diagnostics.HasAnyErrors() Then 939If returnExpression IsNot Nothing AndAlso Not returnExpression.HasErrors AndAlso Not diagnostics.HasAnyErrors() Then
Binding\Binder_ObjectInitializer.vb (1)
681If Not target.HasErrors Then
Binding\Binder_Operators.vb (12)
86If Not otherArgument.HasErrors AndAlso Not otherArgument.IsNothingLiteral() Then 95If Not otherArgument.HasErrors AndAlso Not otherArgument.IsNothingLiteral() Then 212If (left.HasErrors OrElse right.HasErrors) Then 223If (left.HasErrors OrElse right.HasErrors) Then 489If Not (left.HasErrors OrElse right.HasErrors) Then 903If cast.HasErrors Then 1109If Not operand.HasErrors AndAlso operand.IsNothingLiteral Then 1119If operand.HasErrors Then 1189If Not operand.HasErrors Then
Binding\Binder_Query.vb (19)
414If Not suppressCallDiagnostics AndAlso firstSelectExpression.HasErrors AndAlso firstSelectExpression.Kind = BoundKind.QueryClause Then 607Debug.Assert(Not selector.HasErrors) 615Debug.Assert(Not selectorLambda.HasErrors) 709If lambda.HasErrors Then 1524If inner.HasErrors OrElse inner.Type.IsErrorType() OrElse 1707If inner.HasErrors OrElse inner.Type.IsErrorType() OrElse 1999ElseIf Not source.HasErrors Then 2044Not inner.HasErrors AndAlso Not inner.Type.IsErrorType() Then 2074ElseIf Not outer.HasErrors Then 2354ElseIf convertedToBoolean.HasErrors AndAlso conversionDiagnostic.HasAnyErrors() Then 2487If boundCount.HasErrors OrElse (boundCount.Type IsNot Nothing AndAlso boundCount.Type.IsErrorType()) Then 3537If outerKey.HasErrors OrElse innerKey.HasErrors Then 4137If Not source.HasErrors Then 4357If Not asQueryable.HasErrors AndAlso asQueryable.Kind = BoundKind.Call Then 4375If Not asEnumerable.HasErrors AndAlso asEnumerable.Kind = BoundKind.Call Then 4398If Not cast.HasErrors AndAlso cast.Kind = BoundKind.Call Then 4715If boundCall.HasErrors AndAlso Not source.HasErrors Then
Binding\Binder_SelectCase.vb (3)
27If expression.HasErrors Then 87If boundExpr.HasErrors() Then 379Debug.Assert(Not selectExpression.HasErrors)
Binding\Binder_Statements.vb (42)
336Not containsAwait AndAlso Not body.HasErrors AndAlso 681If redimTarget.HasErrors Then 692If temp.HasErrors Then 702If arg.HasErrors Then 774If target.HasErrors Then 806Dim hasErrors As Boolean = boundLabel.HasErrors 1209ElseIf declarationInitializer IsNot Nothing AndAlso Not declarationInitializer.HasErrors AndAlso 1383Dim localDiagnostics = If(inferFrom.HasErrors, BindingDiagnosticBag.Discarded, diagnostics) 1465If toValueExpression.HasErrors OrElse fromValueExpression.HasErrors OrElse 1466(stepValueExpression IsNot Nothing AndAlso stepValueExpression.HasErrors) Then 2015isError = rValue.HasErrors 2111If (op1.HasErrors OrElse op2.HasErrors) Then 2112If Not op1.HasErrors AndAlso node.Kind = SyntaxKind.SimpleAssignmentStatement Then 2202isError = MakeRValue(target, diagnostics).HasErrors 2229Debug.Assert((original.Kind = BoundKind.CompoundAssignmentTargetPlaceholder) = (right.Kind = BoundKind.MidResult) OrElse original.HasErrors OrElse right.HasErrors) 2419If Not notParenthesized.HasErrors Then 2436If Not target.HasErrors Then 2609If Not boundExpression.HasErrors AndAlso 2654If Not BindAwait(statement, boundExpression, diagBag, bindAsStatement:=True).HasErrors AndAlso Not diagBag.HasAnyErrors Then 2696If Not boundInvocation.HasErrors Then 2710If Not lateInvocation.HasErrors AndAlso 3170If Not (initialValue.HasErrors OrElse limit.HasErrors OrElse stepValue.HasErrors) AndAlso 3192If(lessThanOrEqual IsNot Nothing AndAlso lessThanOrEqual.HasErrors, BindingDiagnosticBag.Discarded, diagnostics), 3211initialValue.HasErrors OrElse 3212stepValue.HasErrors OrElse 3213controlVariableOpt.HasErrors 3413If currentType IsNot Nothing AndAlso Not controlVariableOpt.HasErrors Then 3569If controlVariable.HasErrors Then 3611If Not controlVariable.HasErrors Then 3617If Not controlVariable.HasErrors AndAlso IsInAsyncContext() AndAlso 3704If collection.HasErrors Then 3963Not boundGetEnumeratorCall.HasErrors AndAlso Not boundGetEnumeratorCall.Type.IsErrorType Then 4098If boundGetEnumeratorCall.HasErrors Then 4134If boundMoveNextCall.HasErrors OrElse 4170If boundCurrentAccess.HasErrors Then 4700If Not lockExpression.HasErrors Then 4788If originalExceptionValue.HasErrors Then
Binding\Binder_Utils.vb (1)
1392If conv.HasErrors Then
Binding\Binder_XmlLiterals.vb (3)
1373Me.HasErrors = objectCreation.HasErrors 1404Me.HasErrors = objectCreation.HasErrors OrElse sideEffects.Any(Function(s) s.HasErrors)
Binding\EarlyWellKnownAttributeBinder.vb (1)
174If boundExpression.HasErrors Then
Binding\MemberSemanticModel.vb (4)
1684If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then 1738If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then 2264Debug.Assert(receiver Is Nothing OrElse Not node.Method.IsShared OrElse receiver.HasErrors) 2287Debug.Assert(receiver Is Nothing OrElse Not node.PropertySymbol.IsShared OrElse receiver.HasErrors)
BoundTree\BoundAssignmentOperator.vb (1)
53If Not HasErrors Then
BoundTree\BoundBadExpression.vb (1)
16Debug.Assert(Me.HasErrors)
BoundTree\BoundBinaryConditionalExpression.vb (2)
20Debug.Assert(HasErrors) 24If Not HasErrors Then
BoundTree\BoundBinaryOperator.vb (1)
31Debug.Assert(HasErrors OrElse Left.Type.IsSameTypeIgnoringAll(Right.Type) OrElse
BoundTree\BoundCollectionInitializerExpression.vb (1)
15If Not Me.HasErrors Then
BoundTree\BoundConversion.vb (1)
60Debug.Assert(Operand.Kind = BoundKind.ConvertedTupleLiteral OrElse Operand.HasErrors)
BoundTree\BoundExpressionExtensions.vb (3)
425If Not expression.HasErrors AndAlso expression.IsConstant Then 631Return New BoundExpressionStatement(node.Syntax, node, node.HasErrors) 636If Not node.HasErrors Then
BoundTree\BoundLocal.vb (1)
41If HasErrors OrElse Type.IsErrorType Then
BoundTree\BoundLocalDeclaration.vb (1)
38If Not HasErrors Then
BoundTree\BoundNodeExtensions.vb (2)
26If nodeArray(i).HasErrors Then 37Return node IsNot Nothing AndAlso node.HasErrors
BoundTree\BoundObjectInitializerExpression.vb (1)
15If Not Me.HasErrors Then
BoundTree\BoundOnErrorStatement.vb (1)
28Debug.Assert(Me.LabelExpressionOpt Is Nothing OrElse Me.LabelOpt IsNot Nothing OrElse Me.HasErrors)
BoundTree\BoundResumeStatement.vb (1)
31Debug.Assert(Me.LabelExpressionOpt Is Nothing OrElse Me.LabelOpt IsNot Nothing OrElse Me.HasErrors)
BoundTree\BoundReturnStatement.vb (1)
19If ExpressionOpt IsNot Nothing AndAlso Not HasErrors Then
BoundTree\BoundSequence.vb (2)
16Debug.Assert(Me.ValueOpt IsNot Nothing OrElse Me.HasErrors OrElse Me.Type.SpecialType = SpecialType.System_Void) 46If Not val.HasErrors Then
BoundTree\BoundTernaryConditionalExpression.vb (1)
17If Not HasErrors Then
BoundTree\BoundUnaryOperator.vb (2)
21Me.New(syntax, operatorKind, operand, checked, constantValueOpt:=Nothing, type:=type, hasErrors:=hasErrors OrElse operand.HasErrors()) 28Debug.Assert(HasErrors OrElse Type.IsSameTypeIgnoringAll(Operand.Type))
BoundTree\BoundUserDefinedShortCircuitingOperator.vb (1)
17Debug.Assert(LeftOperand IsNot Nothing OrElse HasErrors)
Compilation\MethodCompiler.vb (7)
1016If Not methodWithBody.Body.HasErrors Then 1251Dim hasErrors = _hasDeclarationErrors OrElse diagsForCurrentMethod.HasAnyErrors() OrElse processedInitializers.HasAnyErrors OrElse block.HasErrors 1415If stmt Is Nothing OrElse stmt.HasErrors Then 1450If constructorInitializerOpt IsNot Nothing AndAlso constructorInitializerOpt.HasErrors Then 1508Dim hasErrors = body.HasErrors OrElse diagsForCurrentMethod.HasAnyErrors OrElse (diagnostics IsNot diagsForCurrentMethod AndAlso diagnostics.HasAnyErrors) 1528body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.HasErrors).MakeCompilerGenerated() 1792If theFirstStatement.HasErrors Then
Compilation\SemanticModel.vb (1)
796If Not resultNode.HasErrors AndAlso resultNode.Type Is Nothing Then
Generated\BoundNodes.xml.Generated.vb (172)
269Dim result = New BoundTypeArguments(Me.Syntax, arguments, Me.HasErrors) 296Dim result = New BoundOmittedArgument(Me.Syntax, type, Me.HasErrors) 355Dim result = New BoundLValueToRValueWrapper(Me.Syntax, underlyingLValue, type, Me.HasErrors) 426Dim result = New BoundWithLValueExpressionPlaceholder(Me.Syntax, type, Me.HasErrors) 459Dim result = New BoundWithRValueExpressionPlaceholder(Me.Syntax, type, Me.HasErrors) 499Dim result = New BoundRValuePlaceholder(Me.Syntax, type, Me.HasErrors) 539Dim result = New BoundLValuePlaceholder(Me.Syntax, type, Me.HasErrors) 575Dim result = New BoundDup(Me.Syntax, isReference, type, Me.HasErrors) 631Dim result = New BoundBadExpression(Me.Syntax, resultKind, symbols, childBoundNodes, type, Me.HasErrors) 665Dim result = New BoundBadStatement(Me.Syntax, childBoundNodes, Me.HasErrors) 704Dim result = New BoundParenthesized(Me.Syntax, expression, type, Me.HasErrors) 746Dim result = New BoundBadVariable(Me.Syntax, expression, isLValue, type, Me.HasErrors) 803Dim result = New BoundArrayAccess(Me.Syntax, expression, indices, isLValue, type, Me.HasErrors) 838Dim result = New BoundArrayLength(Me.Syntax, expression, type, Me.HasErrors) 873Dim result = New BoundGetType(Me.Syntax, sourceType, type, Me.HasErrors) 917Dim result = New BoundFieldInfo(Me.Syntax, field, type, Me.HasErrors) 961Dim result = New BoundMethodInfo(Me.Syntax, method, type, Me.HasErrors) 1003Dim result = New BoundTypeExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, type, Me.HasErrors) 1045Dim result = New BoundTypeOrValueExpression(Me.Syntax, data, type, Me.HasErrors) 1100Dim result = New BoundNamespaceExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, namespaceSymbol, Me.HasErrors) 1144Dim result = New BoundMethodDefIndex(Me.Syntax, method, type, Me.HasErrors) 1177Dim result = New BoundMaximumMethodDefIndex(Me.Syntax, type, Me.HasErrors) 1228Dim result = New BoundInstrumentationPayloadRoot(Me.Syntax, analysisKind, isLValue, type, Me.HasErrors) 1270Dim result = New BoundModuleVersionId(Me.Syntax, isLValue, type, Me.HasErrors) 1303Dim result = New BoundModuleVersionIdString(Me.Syntax, type, Me.HasErrors) 1347Dim result = New BoundSourceDocumentIndex(Me.Syntax, document, type, Me.HasErrors) 1411Dim result = New BoundUnaryOperator(Me.Syntax, operatorKind, operand, checked, constantValueOpt, type, Me.HasErrors) 1459Dim result = New BoundUserDefinedUnaryOperator(Me.Syntax, operatorKind, underlyingExpression, type, Me.HasErrors) 1499Dim result = New BoundNullableIsTrueOperator(Me.Syntax, operand, type, Me.HasErrors) 1572Dim result = New BoundBinaryOperator(Me.Syntax, operatorKind, left, right, checked, constantValueOpt, type, Me.HasErrors) 1628Dim result = New BoundUserDefinedBinaryOperator(Me.Syntax, operatorKind, underlyingExpression, checked, type, Me.HasErrors) 1692Dim result = New BoundUserDefinedShortCircuitingOperator(Me.Syntax, leftOperand, leftOperandPlaceholder, leftTest, bitwiseOperator, type, Me.HasErrors) 1725Dim result = New BoundCompoundAssignmentTargetPlaceholder(Me.Syntax, type, Me.HasErrors) 1790Dim result = New BoundAssignmentOperator(Me.Syntax, left, leftOnTheRightOpt, right, suppressObjectClone, type, Me.HasErrors) 1846Dim result = New BoundReferenceAssignment(Me.Syntax, byRefLocal, lValue, isLValue, type, Me.HasErrors) 1897Dim result = New BoundAddressOfOperator(Me.Syntax, binder, withDependencies, methodGroup, Me.HasErrors) 1963Dim result = New BoundTernaryConditionalExpression(Me.Syntax, condition, whenTrue, whenFalse, constantValueOpt, type, Me.HasErrors) 2036Dim result = New BoundBinaryConditionalExpression(Me.Syntax, testExpression, convertedTestExpression, testExpressionPlaceholder, elseExpression, constantValueOpt, type, Me.HasErrors) 2135Dim result = New BoundConversion(Me.Syntax, operand, conversionKind, checked, explicitCastInCode, constantValueOpt, extendedInfoOpt, type, Me.HasErrors) 2190Dim result = New BoundRelaxationLambda(Me.Syntax, lambda, receiverPlaceholderOpt, Me.HasErrors) 2238Dim result = New BoundConvertedTupleElements(Me.Syntax, elementPlaceholders, convertedElements, Me.HasErrors) 2286Dim result = New BoundUserDefinedConversion(Me.Syntax, underlyingExpression, inOutConversionFlags, type, Me.HasErrors) 2358Dim result = New BoundDirectCast(Me.Syntax, operand, conversionKind, suppressVirtualCalls, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors) 2422Dim result = New BoundTryCast(Me.Syntax, operand, conversionKind, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors) 2474Dim result = New BoundTypeOf(Me.Syntax, operand, isTypeOfIsNotExpression, targetType, type, Me.HasErrors) 2518Dim result = New BoundSequencePoint(Me.Syntax, statementOpt, Me.HasErrors) 2552Dim result = New BoundSequencePointExpression(Me.Syntax, expression, type, Me.HasErrors) 2591Dim result = New BoundSequencePointWithSpan(Me.Syntax, statementOpt, span, Me.HasErrors) 2627Dim result = New BoundNoOpStatement(Me.Syntax, flavor, Me.HasErrors) 2710Dim result = New BoundMethodGroup(Me.Syntax, typeArgumentsOpt, methods, pendingExtensionMethodsOpt, resultKind, receiverOpt, qualificationKind, Me.HasErrors) 2752Dim result = New BoundPropertyGroup(Me.Syntax, properties, resultKind, receiverOpt, qualificationKind, Me.HasErrors) 2804Dim result = New BoundReturnStatement(Me.Syntax, expressionOpt, functionLocalOpt, exitLabelOpt, Me.HasErrors) 2843Dim result = New BoundYieldStatement(Me.Syntax, expression, Me.HasErrors) 2874Dim result = New BoundThrowStatement(Me.Syntax, expressionOpt, Me.HasErrors) 2908Dim result = New BoundRedimStatement(Me.Syntax, clauses, Me.HasErrors) 2972Dim result = New BoundRedimClause(Me.Syntax, operand, indices, arrayTypeOpt, preserve, Me.HasErrors) 3006Dim result = New BoundEraseStatement(Me.Syntax, clauses, Me.HasErrors) 3103Dim result = New BoundCall(Me.Syntax, method, methodGroupOpt, receiverOpt, arguments, defaultArguments, constantValueOpt, isLValue, suppressObjectClone, type, Me.HasErrors) 3171Dim result = New BoundAttribute(Me.Syntax, constructor, constructorArguments, constructorDefaultArguments, namedArguments, resultKind, type, Me.HasErrors) 3242Dim result = New BoundLateMemberAccess(Me.Syntax, nameOpt, containerTypeOpt, receiverOpt, typeArgumentsOpt, accessKind, type, Me.HasErrors) 3314Dim result = New BoundLateInvocation(Me.Syntax, member, argumentsOpt, argumentNamesOpt, accessKind, methodOrPropertyGroupOpt, type, Me.HasErrors) 3357Dim result = New BoundLateAddressOfOperator(Me.Syntax, binder, memberAccess, type, Me.HasErrors) 3427Dim result = New BoundTupleLiteral(Me.Syntax, inferredType, argumentNamesOpt, inferredNamesOpt, arguments, type, Me.HasErrors) 3462Dim result = New BoundConvertedTupleLiteral(Me.Syntax, naturalTypeOpt, arguments, type, Me.HasErrors) 3551Dim result = New BoundObjectCreationExpression(Me.Syntax, constructorOpt, methodGroupOpt, arguments, defaultArguments, initializerOpt, type, Me.HasErrors) 3585Dim result = New BoundNoPiaObjectCreationExpression(Me.Syntax, guidString, initializerOpt, type, Me.HasErrors) 3636Dim result = New BoundAnonymousTypeCreationExpression(Me.Syntax, binderOpt, declarations, arguments, type, Me.HasErrors) 3687Dim result = New BoundAnonymousTypePropertyAccess(Me.Syntax, binder, propertyIndex, type, Me.HasErrors) 3730Dim result = New BoundAnonymousTypeFieldInitializer(Me.Syntax, binder, value, type, Me.HasErrors) 3797Dim result = New BoundObjectInitializerExpression(Me.Syntax, createTemporaryLocalForInitialization, placeholderOpt, initializers, type, Me.HasErrors) 3828Dim result = New BoundCollectionInitializerExpression(Me.Syntax, placeholderOpt, initializers, type, Me.HasErrors) 3859Dim result = New BoundNewT(Me.Syntax, initializerOpt, type, Me.HasErrors) 3926Dim result = New BoundDelegateCreationExpression(Me.Syntax, receiverOpt, method, relaxationLambdaOpt, relaxationReceiverPlaceholderOpt, methodGroupOpt, type, Me.HasErrors) 3998Dim result = New BoundArrayCreation(Me.Syntax, isParamArrayArgument, bounds, initializerOpt, arrayLiteralOpt, arrayLiteralConversion, type, Me.HasErrors) 4075Dim result = New BoundArrayLiteral(Me.Syntax, hasDominantType, numberOfCandidates, inferredType, bounds, initializer, binder, Me.HasErrors) 4109Dim result = New BoundArrayInitialization(Me.Syntax, initializers, type, Me.HasErrors) 4181Dim result = New BoundFieldAccess(Me.Syntax, receiverOpt, fieldSymbol, isLValue, suppressVirtualCalls, constantsInProgressOpt, type, Me.HasErrors) 4278Dim result = New BoundPropertyAccess(Me.Syntax, propertySymbol, propertyGroupOpt, accessKind, isWriteable, isLValue, receiverOpt, arguments, defaultArguments, type, Me.HasErrors) 4321Dim result = New BoundEventAccess(Me.Syntax, receiverOpt, eventSymbol, type, Me.HasErrors) 4372Dim result = New BoundBlock(Me.Syntax, statementListSyntax, locals, statements, Me.HasErrors) 4415Dim result = New BoundStateMachineScope(Me.Syntax, fields, statement, Me.HasErrors) 4491Dim result = New BoundLocalDeclaration(Me.Syntax, localSymbol, declarationInitializerOpt, identifierInitializerOpt, initializedByAsNew, Me.HasErrors) 4543Dim result = New BoundAsNewLocalDeclarations(Me.Syntax, localDeclarations, initializer, binder, Me.HasErrors) 4585Dim result = New BoundDimStatement(Me.Syntax, localDeclarations, initializerOpt, Me.HasErrors) 4682Dim result = New BoundFieldInitializer(Me.Syntax, initializedFields, memberAccessExpressionOpt, initialValue, binderOpt, Me.HasErrors) 4717Dim result = New BoundPropertyInitializer(Me.Syntax, initializedProperties, memberAccessExpressionOpt, initialValue, binderOpt, Me.HasErrors) 4760Dim result = New BoundParameterEqualsValue(Me.Syntax, parameter, value, Me.HasErrors) 4794Dim result = New BoundGlobalStatementInitializer(Me.Syntax, statement, Me.HasErrors) 4851Dim result = New BoundSequence(Me.Syntax, locals, sideEffects, valueOpt, type, Me.HasErrors) 4885Dim result = New BoundExpressionStatement(Me.Syntax, expression, Me.HasErrors) 4936Dim result = New BoundIfStatement(Me.Syntax, condition, consequence, alternativeOpt, Me.HasErrors) 5004Dim result = New BoundSelectStatement(Me.Syntax, expressionStatement, exprPlaceholderOpt, caseBlocks, recommendSwitchTable, exitLabel, Me.HasErrors) 5047Dim result = New BoundCaseBlock(Me.Syntax, caseStatement, body, Me.HasErrors) 5089Dim result = New BoundCaseStatement(Me.Syntax, caseClauses, conditionOpt, Me.HasErrors) 5155Dim result = New BoundSimpleCaseClause(Me.Syntax, valueOpt, conditionOpt, Me.HasErrors) 5215Dim result = New BoundRangeCaseClause(Me.Syntax, lowerBoundOpt, upperBoundOpt, lowerBoundConditionOpt, upperBoundConditionOpt, Me.HasErrors) 5251Dim result = New BoundRelationalCaseClause(Me.Syntax, operatorKind, valueOpt, conditionOpt, Me.HasErrors) 5358Dim result = New BoundDoLoopStatement(Me.Syntax, topConditionOpt, bottomConditionOpt, topConditionIsUntil, bottomConditionIsUntil, body, continueLabel, exitLabel, Me.HasErrors) 5403Dim result = New BoundWhileStatement(Me.Syntax, condition, body, continueLabel, exitLabel, Me.HasErrors) 5534Dim result = New BoundForToUserDefinedOperators(Me.Syntax, leftOperandPlaceholder, rightOperandPlaceholder, addition, subtraction, lessThanOrEqual, greaterThanOrEqual, Me.HasErrors) 5606Dim result = New BoundForToStatement(Me.Syntax, initialValue, limitValue, stepValue, checked, operatorsOpt, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.HasErrors) 5653Dim result = New BoundForEachStatement(Me.Syntax, collection, enumeratorInfo, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.HasErrors) 5695Dim result = New BoundExitStatement(Me.Syntax, label, Me.HasErrors) 5737Dim result = New BoundContinueStatement(Me.Syntax, label, Me.HasErrors) 5796Dim result = New BoundTryStatement(Me.Syntax, tryBlock, catchBlocks, finallyBlockOpt, exitLabelOpt, Me.HasErrors) 5870Dim result = New BoundCatchBlock(Me.Syntax, localOpt, exceptionSourceOpt, errorLineNumberOpt, exceptionFilterOpt, body, isSynthesizedAsyncCatchAll, Me.HasErrors) 5919Dim result = New BoundLiteral(Me.Syntax, value, type, Me.HasErrors) 5952Dim result = New BoundMeReference(Me.Syntax, type, Me.HasErrors) 5992Dim result = New BoundValueTypeMeReference(Me.Syntax, type, Me.HasErrors) 6025Dim result = New BoundMyBaseReference(Me.Syntax, type, Me.HasErrors) 6058Dim result = New BoundMyClassReference(Me.Syntax, type, Me.HasErrors) 6102Dim result = New BoundPreviousSubmissionReference(Me.Syntax, sourceType, type, Me.HasErrors) 6135Dim result = New BoundHostObjectMemberReference(Me.Syntax, type, Me.HasErrors) 6195Dim result = New BoundLocal(Me.Syntax, localSymbol, isLValue, type, Me.HasErrors) 6259Dim result = New BoundPseudoVariable(Me.Syntax, localSymbol, isLValue, emitExpressions, type, Me.HasErrors) 6321Dim result = New BoundParameter(Me.Syntax, parameterSymbol, isLValue, suppressVirtualCalls, type, Me.HasErrors) 6363Dim result = New BoundByRefArgumentPlaceholder(Me.Syntax, isOut, type, Me.HasErrors) 6438Dim result = New BoundByRefArgumentWithCopyBack(Me.Syntax, originalArgument, inConversion, inPlaceholder, outConversion, outPlaceholder, type, Me.HasErrors) 6486Dim result = New BoundLateBoundArgumentSupportingAssignmentWithCapture(Me.Syntax, originalArgument, localSymbol, type, Me.HasErrors) 6528Dim result = New BoundLabelStatement(Me.Syntax, label, Me.HasErrors) 6570Dim result = New BoundLabel(Me.Syntax, label, type, Me.HasErrors) 6612Dim result = New BoundGotoStatement(Me.Syntax, label, labelExpressionOpt, Me.HasErrors) 6646Dim result = New BoundStatementList(Me.Syntax, statements, Me.HasErrors) 6697Dim result = New BoundConditionalGoto(Me.Syntax, condition, jumpIfTrue, label, Me.HasErrors) 6749Dim result = New BoundWithStatement(Me.Syntax, originalExpression, body, binder, Me.HasErrors) 6838Dim result = New UnboundLambda(Me.Syntax, binder, flags, parameters, returnType, bindingCache, Me.HasErrors) 6918Dim result = New BoundLambda(Me.Syntax, lambdaSymbol, body, diagnostics, lambdaBinderOpt, delegateRelaxation, methodConversionKind, Me.HasErrors) 6953Dim result = New BoundQueryExpression(Me.Syntax, lastOperator, type, Me.HasErrors) 7007Dim result = New BoundQuerySource(Me.Syntax, expression, type, Me.HasErrors) 7042Dim result = New BoundToQueryableCollectionConversion(Me.Syntax, conversionCall, type, Me.HasErrors) 7145Dim result = New BoundQueryableSource(Me.Syntax, source, rangeVariableOpt, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7183Dim result = New BoundQueryClause(Me.Syntax, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7218Dim result = New BoundOrdering(Me.Syntax, underlyingExpression, type, Me.HasErrors) 7278Dim result = New BoundQueryLambda(Me.Syntax, lambdaSymbol, rangeVariables, expression, exprIsOperandOfConditionalBranch, Me.HasErrors) 7322Dim result = New BoundRangeVariableAssignment(Me.Syntax, rangeVariable, value, type, Me.HasErrors) 7386Dim result = New GroupTypeInferenceLambda(Me.Syntax, binder, parameters, compilation, Me.HasErrors) 7440Dim result = New BoundAggregateClause(Me.Syntax, capturedGroupOpt, groupPlaceholderOpt, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7475Dim result = New BoundGroupAggregation(Me.Syntax, group, type, Me.HasErrors) 7519Dim result = New BoundRangeVariable(Me.Syntax, rangeVariable, type, Me.HasErrors) 7575Dim result = New BoundAddHandlerStatement(Me.Syntax, eventAccess, handler, Me.HasErrors) 7602Dim result = New BoundRemoveHandlerStatement(Me.Syntax, eventAccess, handler, Me.HasErrors) 7645Dim result = New BoundRaiseEventStatement(Me.Syntax, eventSymbol, eventInvocation, Me.HasErrors) 7713Dim result = New BoundUsingStatement(Me.Syntax, resourceList, resourceExpressionOpt, body, usingInfo, locals, Me.HasErrors) 7756Dim result = New BoundSyncLockStatement(Me.Syntax, lockExpression, body, Me.HasErrors) 7809Dim result = New BoundXmlName(Me.Syntax, xmlNamespace, localName, objectCreation, type, Me.HasErrors) 7853Dim result = New BoundXmlNamespace(Me.Syntax, xmlNamespace, objectCreation, type, Me.HasErrors) 7906Dim result = New BoundXmlDocument(Me.Syntax, declaration, childNodes, rewriterInfo, type, Me.HasErrors) 7965Dim result = New BoundXmlDeclaration(Me.Syntax, version, encoding, standalone, objectCreation, type, Me.HasErrors) 8018Dim result = New BoundXmlProcessingInstruction(Me.Syntax, target, data, objectCreation, type, Me.HasErrors) 8062Dim result = New BoundXmlComment(Me.Syntax, value, objectCreation, type, Me.HasErrors) 8128Dim result = New BoundXmlAttribute(Me.Syntax, name, value, matchesImport, objectCreation, type, Me.HasErrors) 8181Dim result = New BoundXmlElement(Me.Syntax, argument, childNodes, rewriterInfo, type, Me.HasErrors) 8216Dim result = New BoundXmlMemberAccess(Me.Syntax, memberAccess, type, Me.HasErrors) 8251Dim result = New BoundXmlEmbeddedExpression(Me.Syntax, expression, type, Me.HasErrors) 8295Dim result = New BoundXmlCData(Me.Syntax, value, objectCreation, type, Me.HasErrors) 8347Dim result = New BoundResumeStatement(Me.Syntax, resumeKind, labelOpt, labelExpressionOpt, Me.HasErrors) 8399Dim result = New BoundOnErrorStatement(Me.Syntax, onErrorKind, labelOpt, labelExpressionOpt, Me.HasErrors) 8470Dim result = New BoundUnstructuredExceptionHandlingStatement(Me.Syntax, containsOnError, containsResume, resumeWithoutLabelOpt, trackLineNumber, body, Me.HasErrors) 8519Dim result = New BoundUnstructuredExceptionHandlingCatchFilter(Me.Syntax, activeHandlerLocal, resumeTargetLocal, type, Me.HasErrors) 8567Dim result = New BoundUnstructuredExceptionOnErrorSwitch(Me.Syntax, value, jumps, Me.HasErrors) 8633Dim result = New BoundUnstructuredExceptionResumeSwitch(Me.Syntax, resumeTargetTemporary, resumeLabel, resumeNextLabel, jumps, Me.HasErrors) 8718Dim result = New BoundAwaitOperator(Me.Syntax, operand, awaitableInstancePlaceholder, getAwaiter, awaiterInstancePlaceholder, isCompleted, getResult, type, Me.HasErrors) 8783Dim result = New BoundSpillSequence(Me.Syntax, locals, spillFields, statements, valueOpt, type, Me.HasErrors) 8885Dim result = New BoundMidResult(Me.Syntax, original, start, lengthOpt, source, type, Me.HasErrors) 8937Dim result = New BoundConditionalAccess(Me.Syntax, receiver, placeholder, accessExpression, type, Me.HasErrors) 8986Dim result = New BoundConditionalAccessReceiverPlaceholder(Me.Syntax, placeholderId, type, Me.HasErrors) 9059Dim result = New BoundLoweredConditionalAccess(Me.Syntax, receiverOrCondition, captureReceiver, placeholderId, whenNotNull, whenNullOpt, type, Me.HasErrors) 9108Dim result = New BoundComplexConditionalAccessReceiver(Me.Syntax, valueTypeReceiver, referenceTypeReceiver, type, Me.HasErrors) 9156Dim result = New BoundNameOfOperator(Me.Syntax, argument, constantValueOpt, type, Me.HasErrors) 9196Dim result = New BoundTypeAsValueExpression(Me.Syntax, expression, type, Me.HasErrors) 9245Dim result = New BoundInterpolatedStringExpression(Me.Syntax, contents, binder, type, Me.HasErrors) 9295Dim result = New BoundInterpolation(Me.Syntax, expression, alignmentOpt, formatStringOpt, Me.HasErrors)
Lowering\AsyncRewriter\AsyncRewriter.vb (5)
81If body.HasErrors Then 271If body.HasErrors Then 522arguments.Any(Function(a) a.HasErrors) OrElse 523(receiver IsNot Nothing AndAlso receiver.HasErrors) Then 579If propertyGroup Is Nothing OrElse (receiver IsNot Nothing AndAlso receiver.HasErrors) Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (3)
111If Not expressionTree.HasErrors Then 337If Not parameter.HasErrors Then 794If a.HasErrors Then
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
56If body.HasErrors Or Not method.IsIterator Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
139Debug.Assert(Not node.HasErrors)
Lowering\LocalRewriter\LocalRewriter.vb (2)
164Debug.Assert(node Is Nothing OrElse Not node.HasErrors, "node has errors") 264Debug.Assert(node Is Nothing OrElse Not node.HasErrors, "node has errors")
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (4)
330Return If(suppressObjectClone OrElse right.HasErrors(), VisitExpression(right), GenerateObjectCloneIfNeeded(right, VisitExpression(right))) 344If expression.HasErrors OrElse rewrittenExpression.HasErrors OrElse Me._inExpressionLambda Then 350If Not result.HasErrors AndAlso result.Type.IsObjectType() AndAlso Not Me.ContainingAssembly.IsVbRuntime Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
174If operand.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
179If node.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_Constant.vb (1)
19If Not _inExpressionLambda AndAlso Not node.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
70If Not node.HasErrors AndAlso node.Type.IsBooleanType() AndAlso node.Operand.Type.IsObjectType() Then 797If rewrittenConversion.HasErrors OrElse _inExpressionLambda Then
Lowering\LocalRewriter\LocalRewriter_DelegateCreation.vb (1)
49hasErrors:=node.HasErrors)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
135ElseIf Not node.Collection.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
180If hasErrors OrElse result.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
97If node.InitializerOpt Is Nothing OrElse node.InitializerOpt.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
341Debug.Assert(Not node.HasErrors)
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
97If Not node.HasErrors AndAlso ((kind And UnaryOperatorKind.Lifted) = 0) AndAlso (kind <> UnaryOperatorKind.Error) AndAlso Not _inExpressionLambda Then
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
18If node.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
19If Me._inExpressionLambda AndAlso Not node.HasErrors Then 48If Me._inExpressionLambda AndAlso Not node.HasErrors Then
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (3)
172Return New BoundParameter(node.Syntax, replacementParameter, node.IsLValue, replacementParameter.Type, node.HasErrors) 195Return New BoundLocal(node.Syntax, replacementLocal, node.IsLValue, replacementLocal.Type, node.HasErrors) 485Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
Lowering\Rewriter.vb (4)
36Debug.Assert(Not body.HasErrors) 70If loweredBody.HasErrors OrElse localDiagnostics.HasAnyErrors Then 105If bodyWithoutLambdas.HasErrors OrElse localDiagnostics.HasAnyErrors Then 145If bodyWithoutIterators.HasErrors Then
Lowering\UseTwiceRewriter.vb (5)
470Debug.Assert(result.First.HasErrors = result.Second.HasErrors AndAlso boundArgument.HasErrors = result.First.HasErrors) 471Debug.Assert(result.First.HasErrors OrElse
Operations\VisualBasicOperationFactory.vb (1)
1515Debug.Assert(boundRaiseEventStatement.HasErrors)
Operations\VisualBasicOperationFactory_QueryLambdaRewriter.vb (3)
60expression = New BoundParameter(node.Syntax, parameter.ParameterSymbol, parameter.IsLValue, parameter.SuppressVirtualCalls, parameter.Type, parameter.HasErrors) 65access.DefaultArguments, access.Type, access.HasErrors) 91node = New BoundParameter(node.Syntax, node.ParameterSymbol, node.IsLValue, node.SuppressVirtualCalls, node.Type, node.HasErrors)
Semantics\Conversions.vb (2)
1281If argument.HasErrors OrElse targetElementType.IsErrorType Then 4231If expressionOpt Is Nothing OrElse expressionOpt.Kind <> BoundKind.Conversion OrElse expressionOpt.HasErrors Then
Semantics\OverloadResolution.vb (5)
2956Not paramArrayArgument.HasErrors AndAlso CanPassToParamArray(paramArrayArgument, targetType, arrayConversion, binder, useSiteInfo)) Then 3033If arguments(paramArrayItems(j)).HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 3105If argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 3398Debug.Assert(Not argument.HasErrors) 3402Dim visitor As New Binder.AttributeExpressionVisitor(binder, passedExpression.HasErrors)
Semantics\TypeInference\TypeArgumentInference.vb (5)
948If paramArrayArgument Is Nothing OrElse paramArrayArgument.HasErrors OrElse 980If arguments(paramArrayItems(j)).HasErrors Then 994If argument Is Nothing OrElse argument.HasErrors OrElse targetType.IsErrorType() OrElse argument.Kind = BoundKind.OmittedArgument Then 2166If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors Then 2228If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors() Then
Symbols\Source\LocalSymbol.vb (1)
886Not valueExpression.HasErrors AndAlso
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EEMethodSymbol.vb (1)
509Debug.Assert(Not newBody.HasErrors)