427 references to HasErrors
Microsoft.CodeAnalysis.VisualBasic (427)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
830Debug.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 (2)
74controlVariable.HasErrors) 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) 565If (Me.Compilation.EmbeddedSymbolManager.Embedded <> 0) AndAlso Not expression.HasErrors Then 764If conv.HasErrors OrElse 768If Not conv.HasErrors Then 778If conv.HasErrors OrElse 782If Not conv.HasErrors Then 792If conv.HasErrors OrElse 796If Not conv.HasErrors Then
Binding\Binder_Conversions.vb (9)
79If (argument.HasErrors OrElse targetType.IsErrorType) Then 107If argument.HasErrors Then 190If (argument.HasErrors OrElse targetType.IsErrorType) Then 224If argument.HasErrors Then 350If argument.HasErrors Then 496If argument.HasErrors Then 603If argument.HasErrors OrElse (sourceType IsNot Nothing AndAlso sourceType.IsErrorType()) Then 1261hasErrors = argument.HasErrors 1419Not reportedAnError AndAlso Not boundLambda.HasErrors Then
Binding\Binder_Delegates.vb (5)
56If Not boundOperand.HasErrors Then 121hadErrorsInFirstArgument = boundFirstArgument.HasErrors 970If addressOfExpression.HasErrors Then 987Not addressOfExpression.HasErrors AndAlso 1094If actualReceiver IsNot Nothing AndAlso actualReceiver.IsValue() AndAlso Not actualReceiver.HasErrors Then
Binding\Binder_Expressions.vb (33)
123Return New BoundTypeExpression(node, asType.UnevaluatedReceiverOpt, asType.AliasOpt, operand.Type, operand.HasErrors) 780If operand.HasErrors OrElse operandType.IsErrorType() OrElse targetType.IsErrorType() Then 984If expr.HasErrors Then 1127If result.HasErrors OrElse exprDiagnostics.HasAnyErrors() Then 1158hasErrors:=access.HasErrors) 1163access.SuppressVirtualCalls, access.ConstantsInProgressOpt, access.Type, access.HasErrors) 1172hasErrors:=[call].HasErrors) 1245If expr.HasErrors Then 1365If expr.HasErrors Then 1720If Not expression.HasErrors Then 1938Dim hasErrors = boundConditionArg.HasErrors OrElse boundWhenTrueArg.HasErrors OrElse boundWhenFalseArg.HasErrors 1970hasErrors = hasErrors OrElse boundWhenTrueArg.HasErrors OrElse boundWhenFalseArg.HasErrors 2004Dim hasErrors = boundFirstArg.HasErrors OrElse boundSecondArg.HasErrors OrElse node.ContainsDiagnostics 2088hasErrors = boundFirstArg.HasErrors 2100hasErrors = boundFirstArg.HasErrors 2111hasErrors = boundSecondArgWithConversions.HasErrors 2811If (left.HasErrors) Then 2834If (left.HasErrors) Then 2842Dim hasErrors As Boolean = left.HasErrors 2949ElseIf left.HasErrors Then 3082hasError = receiver.HasErrors ' don't report subsequent errors if LHS was already an error. 3641Not receiver.HasErrors Then 3781defaultPropertyGroup.Kind = BoundKind.MethodGroup OrElse defaultPropertyGroup.HasErrors) 3798ElseIf defaultPropertyGroup Is Nothing OrElse Not defaultPropertyGroup.HasErrors Then 4662If Not operand.HasErrors AndAlso 4689If operand.HasErrors Then 4766If getAwaiter.HasErrors OrElse 4814If isCompleted.HasErrors OrElse 4861If getResult.HasErrors OrElse
Binding\Binder_Initializers.vb (5)
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_InterpolatedString.vb (2)
144node.HasErrors OrElse 233If hasErrors OrElse result.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 860hasErrors = hasErrors Or group.HasErrors 1529If boundArguments(i).HasErrors OrElse (type IsNot Nothing AndAlso type.IsErrorType()) Then 2324Not (Not paramArrayArgument.HasErrors AndAlso 2481If targetType.IsErrorType() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 2550If targetType.IsErrorType() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 2850Dim inPlaceholder = New BoundByRefArgumentPlaceholder(argument.Syntax, isOutParameter, argument.Type, argument.HasErrors).MakeCompilerGenerated() 2877Debug.Assert(copyBackExpression.HasErrors OrElse 2894targetType, copyBackExpression.HasErrors).MakeCompilerGenerated() 3186If 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)
750If Not target.HasErrors Then
Binding\Binder_Operators.vb (12)
116If Not otherArgument.HasErrors AndAlso Not otherArgument.IsNothingLiteral() Then 125If Not otherArgument.HasErrors AndAlso Not otherArgument.IsNothingLiteral() Then 242If (left.HasErrors OrElse right.HasErrors) Then 253If (left.HasErrors OrElse right.HasErrors) Then 519If Not (left.HasErrors OrElse right.HasErrors) Then 933If cast.HasErrors Then 1139If Not operand.HasErrors AndAlso operand.IsNothingLiteral Then 1149If operand.HasErrors Then 1219If Not operand.HasErrors Then
Binding\Binder_Query.vb (19)
413If Not suppressCallDiagnostics AndAlso firstSelectExpression.HasErrors AndAlso firstSelectExpression.Kind = BoundKind.QueryClause Then 606Debug.Assert(Not selector.HasErrors) 614Debug.Assert(Not selectorLambda.HasErrors) 708If lambda.HasErrors Then 1523If inner.HasErrors OrElse inner.Type.IsErrorType() OrElse 1706If inner.HasErrors OrElse inner.Type.IsErrorType() OrElse 1998ElseIf Not source.HasErrors Then 2043Not inner.HasErrors AndAlso Not inner.Type.IsErrorType() Then 2073ElseIf Not outer.HasErrors Then 2353ElseIf convertedToBoolean.HasErrors AndAlso conversionDiagnostic.HasAnyErrors() Then 2486If boundCount.HasErrors OrElse (boundCount.Type IsNot Nothing AndAlso boundCount.Type.IsErrorType()) Then 3536If outerKey.HasErrors OrElse innerKey.HasErrors Then 4136If Not source.HasErrors Then 4356If Not asQueryable.HasErrors AndAlso asQueryable.Kind = BoundKind.Call Then 4374If Not asEnumerable.HasErrors AndAlso asEnumerable.Kind = BoundKind.Call Then 4397If Not cast.HasErrors AndAlso cast.Kind = BoundKind.Call Then 4714If 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 428(initializer.HasErrors AndAlso 712If redimTarget.HasErrors Then 723If temp.HasErrors Then 733If arg.HasErrors Then 805If target.HasErrors Then 837Dim hasErrors As Boolean = boundLabel.HasErrors 1240ElseIf declarationInitializer IsNot Nothing AndAlso Not declarationInitializer.HasErrors AndAlso 1412Dim localDiagnostics = If(inferFrom.HasErrors, BindingDiagnosticBag.Discarded, diagnostics) 1494If toValueExpression.HasErrors OrElse fromValueExpression.HasErrors OrElse 1495(stepValueExpression IsNot Nothing AndAlso stepValueExpression.HasErrors) Then 2044isError = rValue.HasErrors 2140If (op1.HasErrors OrElse op2.HasErrors) Then 2141If Not op1.HasErrors AndAlso node.Kind = SyntaxKind.SimpleAssignmentStatement Then 2231isError = MakeRValue(target, diagnostics).HasErrors 2258Debug.Assert((original.Kind = BoundKind.CompoundAssignmentTargetPlaceholder) = (right.Kind = BoundKind.MidResult) OrElse original.HasErrors OrElse right.HasErrors) 2448If Not notParenthesized.HasErrors Then 2465If Not target.HasErrors Then 2638If Not boundExpression.HasErrors AndAlso 2725If Not boundInvocation.HasErrors Then 2739If Not lateInvocation.HasErrors AndAlso 3199If Not (initialValue.HasErrors OrElse limit.HasErrors OrElse stepValue.HasErrors) AndAlso 3221If(lessThanOrEqual IsNot Nothing AndAlso lessThanOrEqual.HasErrors, BindingDiagnosticBag.Discarded, diagnostics), 3240initialValue.HasErrors OrElse 3241stepValue.HasErrors OrElse 3242controlVariableOpt.HasErrors 3442If currentType IsNot Nothing AndAlso Not controlVariableOpt.HasErrors Then 3598If controlVariable.HasErrors Then 3640If Not controlVariable.HasErrors Then 3646If Not controlVariable.HasErrors AndAlso IsInAsyncContext() AndAlso 3733If collection.HasErrors Then 3992Not boundGetEnumeratorCall.HasErrors AndAlso Not boundGetEnumeratorCall.Type.IsErrorType Then 4127If boundGetEnumeratorCall.HasErrors Then 4163If boundMoveNextCall.HasErrors OrElse 4199If boundCurrentAccess.HasErrors Then 4729If Not lockExpression.HasErrors Then 4819If originalExceptionValue.HasErrors Then
Binding\Binder_Utils.vb (1)
1392If conv.HasErrors Then
Binding\Binder_XmlLiterals.vb (2)
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)
1683If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then 1737If boundNode Is Nothing OrElse boundNode.Kind <> BoundKind.NoOpStatement OrElse Not boundNode.HasErrors Then 2263Debug.Assert(receiver Is Nothing OrElse Not node.Method.IsShared OrElse receiver.HasErrors) 2286Debug.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 (6)
1271Dim hasErrors = _hasDeclarationErrors OrElse diagsForCurrentMethod.HasAnyErrors() OrElse processedInitializers.HasAnyErrors OrElse block.HasErrors 1439If stmt Is Nothing OrElse stmt.HasErrors Then 1474If constructorInitializerOpt IsNot Nothing AndAlso constructorInitializerOpt.HasErrors Then 1536Dim hasErrors = body.HasErrors OrElse diagsForCurrentMethod.HasAnyErrors OrElse (diagnostics IsNot diagsForCurrentMethod AndAlso diagnostics.HasAnyErrors) 1557body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.HasErrors).MakeCompilerGenerated() 1845If theFirstStatementOpt.HasErrors Then
Compilation\SemanticModel.vb (1)
800If Not resultNode.HasErrors AndAlso resultNode.Type Is Nothing Then
Generated\BoundNodes.xml.Generated.vb (172)
253Dim result = New BoundTypeArguments(Me.Syntax, arguments, Me.HasErrors) 280Dim result = New BoundOmittedArgument(Me.Syntax, type, Me.HasErrors) 339Dim result = New BoundLValueToRValueWrapper(Me.Syntax, underlyingLValue, type, Me.HasErrors) 410Dim result = New BoundWithLValueExpressionPlaceholder(Me.Syntax, type, Me.HasErrors) 443Dim result = New BoundWithRValueExpressionPlaceholder(Me.Syntax, type, Me.HasErrors) 483Dim result = New BoundRValuePlaceholder(Me.Syntax, type, Me.HasErrors) 523Dim result = New BoundLValuePlaceholder(Me.Syntax, type, Me.HasErrors) 559Dim result = New BoundDup(Me.Syntax, isReference, type, Me.HasErrors) 615Dim result = New BoundBadExpression(Me.Syntax, resultKind, symbols, childBoundNodes, type, Me.HasErrors) 649Dim result = New BoundBadStatement(Me.Syntax, childBoundNodes, Me.HasErrors) 688Dim result = New BoundParenthesized(Me.Syntax, expression, type, Me.HasErrors) 730Dim result = New BoundBadVariable(Me.Syntax, expression, isLValue, type, Me.HasErrors) 787Dim result = New BoundArrayAccess(Me.Syntax, expression, indices, isLValue, type, Me.HasErrors) 822Dim result = New BoundArrayLength(Me.Syntax, expression, type, Me.HasErrors) 865Dim result = New BoundGetType(Me.Syntax, sourceType, getTypeFromHandle, type, Me.HasErrors) 909Dim result = New BoundFieldInfo(Me.Syntax, field, type, Me.HasErrors) 964Dim result = New BoundMethodInfo(Me.Syntax, method, getMethodFromHandle, type, Me.HasErrors) 1006Dim result = New BoundTypeExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, type, Me.HasErrors) 1048Dim result = New BoundTypeOrValueExpression(Me.Syntax, data, type, Me.HasErrors) 1103Dim result = New BoundNamespaceExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, namespaceSymbol, Me.HasErrors) 1147Dim result = New BoundMethodDefIndex(Me.Syntax, method, type, Me.HasErrors) 1180Dim result = New BoundMaximumMethodDefIndex(Me.Syntax, type, Me.HasErrors) 1231Dim result = New BoundInstrumentationPayloadRoot(Me.Syntax, analysisKind, isLValue, type, Me.HasErrors) 1273Dim result = New BoundModuleVersionId(Me.Syntax, isLValue, type, Me.HasErrors) 1306Dim result = New BoundModuleVersionIdString(Me.Syntax, type, Me.HasErrors) 1350Dim result = New BoundSourceDocumentIndex(Me.Syntax, document, type, Me.HasErrors) 1414Dim result = New BoundUnaryOperator(Me.Syntax, operatorKind, operand, checked, constantValueOpt, type, Me.HasErrors) 1462Dim result = New BoundUserDefinedUnaryOperator(Me.Syntax, operatorKind, underlyingExpression, type, Me.HasErrors) 1502Dim result = New BoundNullableIsTrueOperator(Me.Syntax, operand, type, Me.HasErrors) 1575Dim result = New BoundBinaryOperator(Me.Syntax, operatorKind, left, right, checked, constantValueOpt, type, Me.HasErrors) 1631Dim result = New BoundUserDefinedBinaryOperator(Me.Syntax, operatorKind, underlyingExpression, checked, type, Me.HasErrors) 1695Dim result = New BoundUserDefinedShortCircuitingOperator(Me.Syntax, leftOperand, leftOperandPlaceholder, leftTest, bitwiseOperator, type, Me.HasErrors) 1728Dim result = New BoundCompoundAssignmentTargetPlaceholder(Me.Syntax, type, Me.HasErrors) 1793Dim result = New BoundAssignmentOperator(Me.Syntax, left, leftOnTheRightOpt, right, suppressObjectClone, type, Me.HasErrors) 1849Dim result = New BoundReferenceAssignment(Me.Syntax, byRefLocal, lValue, isLValue, type, Me.HasErrors) 1900Dim result = New BoundAddressOfOperator(Me.Syntax, binder, withDependencies, methodGroup, Me.HasErrors) 1966Dim result = New BoundTernaryConditionalExpression(Me.Syntax, condition, whenTrue, whenFalse, constantValueOpt, type, Me.HasErrors) 2039Dim result = New BoundBinaryConditionalExpression(Me.Syntax, testExpression, convertedTestExpression, testExpressionPlaceholder, elseExpression, constantValueOpt, type, Me.HasErrors) 2138Dim result = New BoundConversion(Me.Syntax, operand, conversionKind, checked, explicitCastInCode, constantValueOpt, extendedInfoOpt, type, Me.HasErrors) 2193Dim result = New BoundRelaxationLambda(Me.Syntax, lambda, receiverPlaceholderOpt, Me.HasErrors) 2241Dim result = New BoundConvertedTupleElements(Me.Syntax, elementPlaceholders, convertedElements, Me.HasErrors) 2289Dim result = New BoundUserDefinedConversion(Me.Syntax, underlyingExpression, inOutConversionFlags, type, Me.HasErrors) 2361Dim result = New BoundDirectCast(Me.Syntax, operand, conversionKind, suppressVirtualCalls, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors) 2425Dim result = New BoundTryCast(Me.Syntax, operand, conversionKind, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors) 2477Dim result = New BoundTypeOf(Me.Syntax, operand, isTypeOfIsNotExpression, targetType, type, Me.HasErrors) 2521Dim result = New BoundSequencePoint(Me.Syntax, statementOpt, Me.HasErrors) 2555Dim result = New BoundSequencePointExpression(Me.Syntax, expression, type, Me.HasErrors) 2594Dim result = New BoundSequencePointWithSpan(Me.Syntax, statementOpt, span, Me.HasErrors) 2630Dim result = New BoundNoOpStatement(Me.Syntax, flavor, Me.HasErrors) 2713Dim result = New BoundMethodGroup(Me.Syntax, typeArgumentsOpt, methods, pendingExtensionMethodsOpt, resultKind, receiverOpt, qualificationKind, Me.HasErrors) 2755Dim result = New BoundPropertyGroup(Me.Syntax, properties, resultKind, receiverOpt, qualificationKind, Me.HasErrors) 2807Dim result = New BoundReturnStatement(Me.Syntax, expressionOpt, functionLocalOpt, exitLabelOpt, Me.HasErrors) 2846Dim result = New BoundYieldStatement(Me.Syntax, expression, Me.HasErrors) 2877Dim result = New BoundThrowStatement(Me.Syntax, expressionOpt, Me.HasErrors) 2911Dim result = New BoundRedimStatement(Me.Syntax, clauses, Me.HasErrors) 2975Dim result = New BoundRedimClause(Me.Syntax, operand, indices, arrayTypeOpt, preserve, Me.HasErrors) 3009Dim result = New BoundEraseStatement(Me.Syntax, clauses, Me.HasErrors) 3106Dim result = New BoundCall(Me.Syntax, method, methodGroupOpt, receiverOpt, arguments, defaultArguments, constantValueOpt, isLValue, suppressObjectClone, type, Me.HasErrors) 3174Dim result = New BoundAttribute(Me.Syntax, constructor, constructorArguments, constructorDefaultArguments, namedArguments, resultKind, type, Me.HasErrors) 3245Dim result = New BoundLateMemberAccess(Me.Syntax, nameOpt, containerTypeOpt, receiverOpt, typeArgumentsOpt, accessKind, type, Me.HasErrors) 3317Dim result = New BoundLateInvocation(Me.Syntax, member, argumentsOpt, argumentNamesOpt, accessKind, methodOrPropertyGroupOpt, type, Me.HasErrors) 3360Dim result = New BoundLateAddressOfOperator(Me.Syntax, binder, memberAccess, type, Me.HasErrors) 3430Dim result = New BoundTupleLiteral(Me.Syntax, inferredType, argumentNamesOpt, inferredNamesOpt, arguments, type, Me.HasErrors) 3465Dim result = New BoundConvertedTupleLiteral(Me.Syntax, naturalTypeOpt, arguments, type, Me.HasErrors) 3554Dim result = New BoundObjectCreationExpression(Me.Syntax, constructorOpt, methodGroupOpt, arguments, defaultArguments, initializerOpt, type, Me.HasErrors) 3588Dim result = New BoundNoPiaObjectCreationExpression(Me.Syntax, guidString, initializerOpt, type, Me.HasErrors) 3639Dim result = New BoundAnonymousTypeCreationExpression(Me.Syntax, binderOpt, declarations, arguments, type, Me.HasErrors) 3690Dim result = New BoundAnonymousTypePropertyAccess(Me.Syntax, binder, propertyIndex, type, Me.HasErrors) 3733Dim result = New BoundAnonymousTypeFieldInitializer(Me.Syntax, binder, value, type, Me.HasErrors) 3800Dim result = New BoundObjectInitializerExpression(Me.Syntax, createTemporaryLocalForInitialization, placeholderOpt, initializers, type, Me.HasErrors) 3831Dim result = New BoundCollectionInitializerExpression(Me.Syntax, placeholderOpt, initializers, type, Me.HasErrors) 3862Dim result = New BoundNewT(Me.Syntax, initializerOpt, type, Me.HasErrors) 3929Dim result = New BoundDelegateCreationExpression(Me.Syntax, receiverOpt, method, relaxationLambdaOpt, relaxationReceiverPlaceholderOpt, methodGroupOpt, type, Me.HasErrors) 4001Dim result = New BoundArrayCreation(Me.Syntax, isParamArrayArgument, bounds, initializerOpt, arrayLiteralOpt, arrayLiteralConversion, type, Me.HasErrors) 4078Dim result = New BoundArrayLiteral(Me.Syntax, hasDominantType, numberOfCandidates, inferredType, bounds, initializer, binder, Me.HasErrors) 4112Dim result = New BoundArrayInitialization(Me.Syntax, initializers, type, Me.HasErrors) 4184Dim result = New BoundFieldAccess(Me.Syntax, receiverOpt, fieldSymbol, isLValue, suppressVirtualCalls, constantsInProgressOpt, type, Me.HasErrors) 4281Dim result = New BoundPropertyAccess(Me.Syntax, propertySymbol, propertyGroupOpt, accessKind, isWriteable, isLValue, receiverOpt, arguments, defaultArguments, type, Me.HasErrors) 4324Dim result = New BoundEventAccess(Me.Syntax, receiverOpt, eventSymbol, type, Me.HasErrors) 4375Dim result = New BoundBlock(Me.Syntax, statementListSyntax, locals, statements, Me.HasErrors) 4418Dim result = New BoundStateMachineScope(Me.Syntax, fields, statement, Me.HasErrors) 4494Dim result = New BoundLocalDeclaration(Me.Syntax, localSymbol, declarationInitializerOpt, identifierInitializerOpt, initializedByAsNew, Me.HasErrors) 4546Dim result = New BoundAsNewLocalDeclarations(Me.Syntax, localDeclarations, initializer, binder, Me.HasErrors) 4588Dim result = New BoundDimStatement(Me.Syntax, localDeclarations, initializerOpt, Me.HasErrors) 4685Dim result = New BoundFieldInitializer(Me.Syntax, initializedFields, memberAccessExpressionOpt, initialValue, binderOpt, Me.HasErrors) 4720Dim result = New BoundPropertyInitializer(Me.Syntax, initializedProperties, memberAccessExpressionOpt, initialValue, binderOpt, Me.HasErrors) 4763Dim result = New BoundParameterEqualsValue(Me.Syntax, parameter, value, Me.HasErrors) 4797Dim result = New BoundGlobalStatementInitializer(Me.Syntax, statement, Me.HasErrors) 4854Dim result = New BoundSequence(Me.Syntax, locals, sideEffects, valueOpt, type, Me.HasErrors) 4888Dim result = New BoundExpressionStatement(Me.Syntax, expression, Me.HasErrors) 4939Dim result = New BoundIfStatement(Me.Syntax, condition, consequence, alternativeOpt, Me.HasErrors) 5007Dim result = New BoundSelectStatement(Me.Syntax, expressionStatement, exprPlaceholderOpt, caseBlocks, recommendSwitchTable, exitLabel, Me.HasErrors) 5050Dim result = New BoundCaseBlock(Me.Syntax, caseStatement, body, Me.HasErrors) 5092Dim result = New BoundCaseStatement(Me.Syntax, caseClauses, conditionOpt, Me.HasErrors) 5158Dim result = New BoundSimpleCaseClause(Me.Syntax, valueOpt, conditionOpt, Me.HasErrors) 5218Dim result = New BoundRangeCaseClause(Me.Syntax, lowerBoundOpt, upperBoundOpt, lowerBoundConditionOpt, upperBoundConditionOpt, Me.HasErrors) 5254Dim result = New BoundRelationalCaseClause(Me.Syntax, operatorKind, valueOpt, conditionOpt, Me.HasErrors) 5361Dim result = New BoundDoLoopStatement(Me.Syntax, topConditionOpt, bottomConditionOpt, topConditionIsUntil, bottomConditionIsUntil, body, continueLabel, exitLabel, Me.HasErrors) 5406Dim result = New BoundWhileStatement(Me.Syntax, condition, body, continueLabel, exitLabel, Me.HasErrors) 5537Dim result = New BoundForToUserDefinedOperators(Me.Syntax, leftOperandPlaceholder, rightOperandPlaceholder, addition, subtraction, lessThanOrEqual, greaterThanOrEqual, Me.HasErrors) 5609Dim result = New BoundForToStatement(Me.Syntax, initialValue, limitValue, stepValue, checked, operatorsOpt, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.HasErrors) 5656Dim result = New BoundForEachStatement(Me.Syntax, collection, enumeratorInfo, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.HasErrors) 5698Dim result = New BoundExitStatement(Me.Syntax, label, Me.HasErrors) 5740Dim result = New BoundContinueStatement(Me.Syntax, label, Me.HasErrors) 5799Dim result = New BoundTryStatement(Me.Syntax, tryBlock, catchBlocks, finallyBlockOpt, exitLabelOpt, Me.HasErrors) 5873Dim result = New BoundCatchBlock(Me.Syntax, localOpt, exceptionSourceOpt, errorLineNumberOpt, exceptionFilterOpt, body, isSynthesizedAsyncCatchAll, Me.HasErrors) 5922Dim result = New BoundLiteral(Me.Syntax, value, type, Me.HasErrors) 5955Dim result = New BoundMeReference(Me.Syntax, type, Me.HasErrors) 5995Dim result = New BoundValueTypeMeReference(Me.Syntax, type, Me.HasErrors) 6028Dim result = New BoundMyBaseReference(Me.Syntax, type, Me.HasErrors) 6061Dim result = New BoundMyClassReference(Me.Syntax, type, Me.HasErrors) 6105Dim result = New BoundPreviousSubmissionReference(Me.Syntax, sourceType, type, Me.HasErrors) 6138Dim result = New BoundHostObjectMemberReference(Me.Syntax, type, Me.HasErrors) 6198Dim result = New BoundLocal(Me.Syntax, localSymbol, isLValue, type, Me.HasErrors) 6269Dim result = New BoundPseudoVariable(Me.Syntax, localSymbol, isLValue, emitExpressions, type, Me.HasErrors) 6331Dim result = New BoundParameter(Me.Syntax, parameterSymbol, isLValue, suppressVirtualCalls, type, Me.HasErrors) 6373Dim result = New BoundByRefArgumentPlaceholder(Me.Syntax, isOut, type, Me.HasErrors) 6448Dim result = New BoundByRefArgumentWithCopyBack(Me.Syntax, originalArgument, inConversion, inPlaceholder, outConversion, outPlaceholder, type, Me.HasErrors) 6496Dim result = New BoundLateBoundArgumentSupportingAssignmentWithCapture(Me.Syntax, originalArgument, localSymbol, type, Me.HasErrors) 6538Dim result = New BoundLabelStatement(Me.Syntax, label, Me.HasErrors) 6580Dim result = New BoundLabel(Me.Syntax, label, type, Me.HasErrors) 6622Dim result = New BoundGotoStatement(Me.Syntax, label, labelExpressionOpt, Me.HasErrors) 6656Dim result = New BoundStatementList(Me.Syntax, statements, Me.HasErrors) 6707Dim result = New BoundConditionalGoto(Me.Syntax, condition, jumpIfTrue, label, Me.HasErrors) 6759Dim result = New BoundWithStatement(Me.Syntax, originalExpression, body, binder, Me.HasErrors) 6848Dim result = New UnboundLambda(Me.Syntax, binder, flags, parameters, returnType, bindingCache, Me.HasErrors) 6928Dim result = New BoundLambda(Me.Syntax, lambdaSymbol, body, diagnostics, lambdaBinderOpt, delegateRelaxation, methodConversionKind, Me.HasErrors) 6963Dim result = New BoundQueryExpression(Me.Syntax, lastOperator, type, Me.HasErrors) 7017Dim result = New BoundQuerySource(Me.Syntax, expression, type, Me.HasErrors) 7052Dim result = New BoundToQueryableCollectionConversion(Me.Syntax, conversionCall, type, Me.HasErrors) 7155Dim result = New BoundQueryableSource(Me.Syntax, source, rangeVariableOpt, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7193Dim result = New BoundQueryClause(Me.Syntax, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7228Dim result = New BoundOrdering(Me.Syntax, underlyingExpression, type, Me.HasErrors) 7288Dim result = New BoundQueryLambda(Me.Syntax, lambdaSymbol, rangeVariables, expression, exprIsOperandOfConditionalBranch, Me.HasErrors) 7332Dim result = New BoundRangeVariableAssignment(Me.Syntax, rangeVariable, value, type, Me.HasErrors) 7396Dim result = New GroupTypeInferenceLambda(Me.Syntax, binder, parameters, compilation, Me.HasErrors) 7450Dim result = New BoundAggregateClause(Me.Syntax, capturedGroupOpt, groupPlaceholderOpt, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7485Dim result = New BoundGroupAggregation(Me.Syntax, group, type, Me.HasErrors) 7529Dim result = New BoundRangeVariable(Me.Syntax, rangeVariable, type, Me.HasErrors) 7585Dim result = New BoundAddHandlerStatement(Me.Syntax, eventAccess, handler, Me.HasErrors) 7612Dim result = New BoundRemoveHandlerStatement(Me.Syntax, eventAccess, handler, Me.HasErrors) 7655Dim result = New BoundRaiseEventStatement(Me.Syntax, eventSymbol, eventInvocation, Me.HasErrors) 7723Dim result = New BoundUsingStatement(Me.Syntax, resourceList, resourceExpressionOpt, body, usingInfo, locals, Me.HasErrors) 7766Dim result = New BoundSyncLockStatement(Me.Syntax, lockExpression, body, Me.HasErrors) 7819Dim result = New BoundXmlName(Me.Syntax, xmlNamespace, localName, objectCreation, type, Me.HasErrors) 7863Dim result = New BoundXmlNamespace(Me.Syntax, xmlNamespace, objectCreation, type, Me.HasErrors) 7916Dim result = New BoundXmlDocument(Me.Syntax, declaration, childNodes, rewriterInfo, type, Me.HasErrors) 7975Dim result = New BoundXmlDeclaration(Me.Syntax, version, encoding, standalone, objectCreation, type, Me.HasErrors) 8028Dim result = New BoundXmlProcessingInstruction(Me.Syntax, target, data, objectCreation, type, Me.HasErrors) 8072Dim result = New BoundXmlComment(Me.Syntax, value, objectCreation, type, Me.HasErrors) 8138Dim result = New BoundXmlAttribute(Me.Syntax, name, value, matchesImport, objectCreation, type, Me.HasErrors) 8191Dim result = New BoundXmlElement(Me.Syntax, argument, childNodes, rewriterInfo, type, Me.HasErrors) 8226Dim result = New BoundXmlMemberAccess(Me.Syntax, memberAccess, type, Me.HasErrors) 8261Dim result = New BoundXmlEmbeddedExpression(Me.Syntax, expression, type, Me.HasErrors) 8305Dim result = New BoundXmlCData(Me.Syntax, value, objectCreation, type, Me.HasErrors) 8357Dim result = New BoundResumeStatement(Me.Syntax, resumeKind, labelOpt, labelExpressionOpt, Me.HasErrors) 8409Dim result = New BoundOnErrorStatement(Me.Syntax, onErrorKind, labelOpt, labelExpressionOpt, Me.HasErrors) 8480Dim result = New BoundUnstructuredExceptionHandlingStatement(Me.Syntax, containsOnError, containsResume, resumeWithoutLabelOpt, trackLineNumber, body, Me.HasErrors) 8529Dim result = New BoundUnstructuredExceptionHandlingCatchFilter(Me.Syntax, activeHandlerLocal, resumeTargetLocal, type, Me.HasErrors) 8577Dim result = New BoundUnstructuredExceptionOnErrorSwitch(Me.Syntax, value, jumps, Me.HasErrors) 8643Dim result = New BoundUnstructuredExceptionResumeSwitch(Me.Syntax, resumeTargetTemporary, resumeLabel, resumeNextLabel, jumps, Me.HasErrors) 8728Dim result = New BoundAwaitOperator(Me.Syntax, operand, awaitableInstancePlaceholder, getAwaiter, awaiterInstancePlaceholder, isCompleted, getResult, type, Me.HasErrors) 8793Dim result = New BoundSpillSequence(Me.Syntax, locals, spillFields, statements, valueOpt, type, Me.HasErrors) 8895Dim result = New BoundMidResult(Me.Syntax, original, start, lengthOpt, source, type, Me.HasErrors) 8947Dim result = New BoundConditionalAccess(Me.Syntax, receiver, placeholder, accessExpression, type, Me.HasErrors) 9005Dim result = New BoundConditionalAccessReceiverPlaceholder(Me.Syntax, placeholderId, capture, type, Me.HasErrors) 9078Dim result = New BoundLoweredConditionalAccess(Me.Syntax, receiver, captureReceiver, placeholderId, whenNotNull, whenNullOpt, type, Me.HasErrors) 9127Dim result = New BoundComplexConditionalAccessReceiver(Me.Syntax, valueTypeReceiver, referenceTypeReceiver, type, Me.HasErrors) 9175Dim result = New BoundNameOfOperator(Me.Syntax, argument, constantValueOpt, type, Me.HasErrors) 9215Dim result = New BoundTypeAsValueExpression(Me.Syntax, expression, type, Me.HasErrors) 9263Dim result = New BoundInterpolatedStringExpression(Me.Syntax, contents, constructionOpt, type, Me.HasErrors) 9313Dim result = New BoundInterpolation(Me.Syntax, expression, alignmentOpt, formatStringOpt, Me.HasErrors)
Lowering\AsyncRewriter\AsyncRewriter.vb (4)
81If body.HasErrors Then 271If body.HasErrors Then 523(receiver IsNot Nothing AndAlso receiver.HasErrors) Then 579If propertyGroup Is Nothing OrElse (receiver IsNot Nothing AndAlso receiver.HasErrors) Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
111If Not expressionTree.HasErrors Then 346If Not parameter.HasErrors Then
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
56If body.HasErrors Or Not method.IsIterator Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
138Debug.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)
169If operand.HasErrors Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
174If 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 711If 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_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)
171Return New BoundParameter(node.Syntax, replacementParameter, node.IsLValue, replacementParameter.Type, node.HasErrors) 194Return New BoundLocal(node.Syntax, replacementLocal, node.IsLValue, replacementLocal.Type, node.HasErrors) 484Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
Lowering\Rewriter.vb (4)
38Debug.Assert(Not body.HasErrors) 72If loweredBody.HasErrors OrElse localDiagnostics.HasAnyErrors Then 108If bodyWithoutLambdas.HasErrors OrElse localDiagnostics.HasAnyErrors Then 148If bodyWithoutIterators.HasErrors Then
Lowering\UseTwiceRewriter.vb (5)
507Debug.Assert(result.First.HasErrors = result.Second.HasErrors AndAlso boundArgument.HasErrors = result.First.HasErrors) 508Debug.Assert(result.First.HasErrors OrElse
Semantics\Conversions.vb (2)
1285If argument.HasErrors OrElse targetElementType.IsErrorType Then 4236If expressionOpt Is Nothing OrElse expressionOpt.Kind <> BoundKind.Conversion OrElse expressionOpt.HasErrors Then
Semantics\OverloadResolution.vb (4)
3315Not paramArrayArgument.HasErrors AndAlso CanPassToParamArray(paramArrayArgument, targetType, arrayConversion, binder, useSiteInfo)) Then 3464If argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011] 3757Debug.Assert(Not argument.HasErrors) 3761Dim visitor As New Binder.AttributeExpressionVisitor(binder, passedExpression.HasErrors)
Semantics\TypeInference\TypeArgumentInference.vb (4)
943If paramArrayArgument Is Nothing OrElse paramArrayArgument.HasErrors OrElse 989If argument Is Nothing OrElse argument.HasErrors OrElse targetType.IsErrorType() OrElse argument.Kind = BoundKind.OmittedArgument Then 2152If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors Then 2206If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors() Then
Symbols\Source\LocalSymbol.vb (1)
886Not valueExpression.HasErrors AndAlso