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)
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 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)
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 (6)
1267Dim hasErrors = _hasDeclarationErrors OrElse diagsForCurrentMethod.HasAnyErrors() OrElse processedInitializers.HasAnyErrors OrElse block.HasErrors 1435If stmt Is Nothing OrElse stmt.HasErrors Then 1470If constructorInitializerOpt IsNot Nothing AndAlso constructorInitializerOpt.HasErrors Then 1532Dim hasErrors = body.HasErrors OrElse diagsForCurrentMethod.HasAnyErrors OrElse (diagnostics IsNot diagsForCurrentMethod AndAlso diagnostics.HasAnyErrors) 1553body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.HasErrors).MakeCompilerGenerated() 1841If theFirstStatementOpt.HasErrors Then
Compilation\SemanticModel.vb (1)
800If 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) 881Dim result = New BoundGetType(Me.Syntax, sourceType, getTypeFromHandle, type, Me.HasErrors) 925Dim result = New BoundFieldInfo(Me.Syntax, field, type, Me.HasErrors) 980Dim result = New BoundMethodInfo(Me.Syntax, method, getMethodFromHandle, type, Me.HasErrors) 1022Dim result = New BoundTypeExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, type, Me.HasErrors) 1064Dim result = New BoundTypeOrValueExpression(Me.Syntax, data, type, Me.HasErrors) 1119Dim result = New BoundNamespaceExpression(Me.Syntax, unevaluatedReceiverOpt, aliasOpt, namespaceSymbol, Me.HasErrors) 1163Dim result = New BoundMethodDefIndex(Me.Syntax, method, type, Me.HasErrors) 1196Dim result = New BoundMaximumMethodDefIndex(Me.Syntax, type, Me.HasErrors) 1247Dim result = New BoundInstrumentationPayloadRoot(Me.Syntax, analysisKind, isLValue, type, Me.HasErrors) 1289Dim result = New BoundModuleVersionId(Me.Syntax, isLValue, type, Me.HasErrors) 1322Dim result = New BoundModuleVersionIdString(Me.Syntax, type, Me.HasErrors) 1366Dim result = New BoundSourceDocumentIndex(Me.Syntax, document, type, Me.HasErrors) 1430Dim result = New BoundUnaryOperator(Me.Syntax, operatorKind, operand, checked, constantValueOpt, type, Me.HasErrors) 1478Dim result = New BoundUserDefinedUnaryOperator(Me.Syntax, operatorKind, underlyingExpression, type, Me.HasErrors) 1518Dim result = New BoundNullableIsTrueOperator(Me.Syntax, operand, type, Me.HasErrors) 1591Dim result = New BoundBinaryOperator(Me.Syntax, operatorKind, left, right, checked, constantValueOpt, type, Me.HasErrors) 1647Dim result = New BoundUserDefinedBinaryOperator(Me.Syntax, operatorKind, underlyingExpression, checked, type, Me.HasErrors) 1711Dim result = New BoundUserDefinedShortCircuitingOperator(Me.Syntax, leftOperand, leftOperandPlaceholder, leftTest, bitwiseOperator, type, Me.HasErrors) 1744Dim result = New BoundCompoundAssignmentTargetPlaceholder(Me.Syntax, type, Me.HasErrors) 1809Dim result = New BoundAssignmentOperator(Me.Syntax, left, leftOnTheRightOpt, right, suppressObjectClone, type, Me.HasErrors) 1865Dim result = New BoundReferenceAssignment(Me.Syntax, byRefLocal, lValue, isLValue, type, Me.HasErrors) 1916Dim result = New BoundAddressOfOperator(Me.Syntax, binder, withDependencies, methodGroup, Me.HasErrors) 1982Dim result = New BoundTernaryConditionalExpression(Me.Syntax, condition, whenTrue, whenFalse, constantValueOpt, type, Me.HasErrors) 2055Dim result = New BoundBinaryConditionalExpression(Me.Syntax, testExpression, convertedTestExpression, testExpressionPlaceholder, elseExpression, constantValueOpt, type, Me.HasErrors) 2154Dim result = New BoundConversion(Me.Syntax, operand, conversionKind, checked, explicitCastInCode, constantValueOpt, extendedInfoOpt, type, Me.HasErrors) 2209Dim result = New BoundRelaxationLambda(Me.Syntax, lambda, receiverPlaceholderOpt, Me.HasErrors) 2257Dim result = New BoundConvertedTupleElements(Me.Syntax, elementPlaceholders, convertedElements, Me.HasErrors) 2305Dim result = New BoundUserDefinedConversion(Me.Syntax, underlyingExpression, inOutConversionFlags, type, Me.HasErrors) 2377Dim result = New BoundDirectCast(Me.Syntax, operand, conversionKind, suppressVirtualCalls, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors) 2441Dim result = New BoundTryCast(Me.Syntax, operand, conversionKind, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors) 2493Dim result = New BoundTypeOf(Me.Syntax, operand, isTypeOfIsNotExpression, targetType, type, Me.HasErrors) 2537Dim result = New BoundSequencePoint(Me.Syntax, statementOpt, Me.HasErrors) 2571Dim result = New BoundSequencePointExpression(Me.Syntax, expression, type, Me.HasErrors) 2610Dim result = New BoundSequencePointWithSpan(Me.Syntax, statementOpt, span, Me.HasErrors) 2646Dim result = New BoundNoOpStatement(Me.Syntax, flavor, Me.HasErrors) 2729Dim result = New BoundMethodGroup(Me.Syntax, typeArgumentsOpt, methods, pendingExtensionMethodsOpt, resultKind, receiverOpt, qualificationKind, Me.HasErrors) 2771Dim result = New BoundPropertyGroup(Me.Syntax, properties, resultKind, receiverOpt, qualificationKind, Me.HasErrors) 2823Dim result = New BoundReturnStatement(Me.Syntax, expressionOpt, functionLocalOpt, exitLabelOpt, Me.HasErrors) 2862Dim result = New BoundYieldStatement(Me.Syntax, expression, Me.HasErrors) 2893Dim result = New BoundThrowStatement(Me.Syntax, expressionOpt, Me.HasErrors) 2927Dim result = New BoundRedimStatement(Me.Syntax, clauses, Me.HasErrors) 2991Dim result = New BoundRedimClause(Me.Syntax, operand, indices, arrayTypeOpt, preserve, Me.HasErrors) 3025Dim result = New BoundEraseStatement(Me.Syntax, clauses, Me.HasErrors) 3122Dim result = New BoundCall(Me.Syntax, method, methodGroupOpt, receiverOpt, arguments, defaultArguments, constantValueOpt, isLValue, suppressObjectClone, type, Me.HasErrors) 3190Dim result = New BoundAttribute(Me.Syntax, constructor, constructorArguments, constructorDefaultArguments, namedArguments, resultKind, type, Me.HasErrors) 3261Dim result = New BoundLateMemberAccess(Me.Syntax, nameOpt, containerTypeOpt, receiverOpt, typeArgumentsOpt, accessKind, type, Me.HasErrors) 3333Dim result = New BoundLateInvocation(Me.Syntax, member, argumentsOpt, argumentNamesOpt, accessKind, methodOrPropertyGroupOpt, type, Me.HasErrors) 3376Dim result = New BoundLateAddressOfOperator(Me.Syntax, binder, memberAccess, type, Me.HasErrors) 3446Dim result = New BoundTupleLiteral(Me.Syntax, inferredType, argumentNamesOpt, inferredNamesOpt, arguments, type, Me.HasErrors) 3481Dim result = New BoundConvertedTupleLiteral(Me.Syntax, naturalTypeOpt, arguments, type, Me.HasErrors) 3570Dim result = New BoundObjectCreationExpression(Me.Syntax, constructorOpt, methodGroupOpt, arguments, defaultArguments, initializerOpt, type, Me.HasErrors) 3604Dim result = New BoundNoPiaObjectCreationExpression(Me.Syntax, guidString, initializerOpt, type, Me.HasErrors) 3655Dim result = New BoundAnonymousTypeCreationExpression(Me.Syntax, binderOpt, declarations, arguments, type, Me.HasErrors) 3706Dim result = New BoundAnonymousTypePropertyAccess(Me.Syntax, binder, propertyIndex, type, Me.HasErrors) 3749Dim result = New BoundAnonymousTypeFieldInitializer(Me.Syntax, binder, value, type, Me.HasErrors) 3816Dim result = New BoundObjectInitializerExpression(Me.Syntax, createTemporaryLocalForInitialization, placeholderOpt, initializers, type, Me.HasErrors) 3847Dim result = New BoundCollectionInitializerExpression(Me.Syntax, placeholderOpt, initializers, type, Me.HasErrors) 3878Dim result = New BoundNewT(Me.Syntax, initializerOpt, type, Me.HasErrors) 3945Dim result = New BoundDelegateCreationExpression(Me.Syntax, receiverOpt, method, relaxationLambdaOpt, relaxationReceiverPlaceholderOpt, methodGroupOpt, type, Me.HasErrors) 4017Dim result = New BoundArrayCreation(Me.Syntax, isParamArrayArgument, bounds, initializerOpt, arrayLiteralOpt, arrayLiteralConversion, type, Me.HasErrors) 4094Dim result = New BoundArrayLiteral(Me.Syntax, hasDominantType, numberOfCandidates, inferredType, bounds, initializer, binder, Me.HasErrors) 4128Dim result = New BoundArrayInitialization(Me.Syntax, initializers, type, Me.HasErrors) 4200Dim result = New BoundFieldAccess(Me.Syntax, receiverOpt, fieldSymbol, isLValue, suppressVirtualCalls, constantsInProgressOpt, type, Me.HasErrors) 4297Dim result = New BoundPropertyAccess(Me.Syntax, propertySymbol, propertyGroupOpt, accessKind, isWriteable, isLValue, receiverOpt, arguments, defaultArguments, type, Me.HasErrors) 4340Dim result = New BoundEventAccess(Me.Syntax, receiverOpt, eventSymbol, type, Me.HasErrors) 4391Dim result = New BoundBlock(Me.Syntax, statementListSyntax, locals, statements, Me.HasErrors) 4434Dim result = New BoundStateMachineScope(Me.Syntax, fields, statement, Me.HasErrors) 4510Dim result = New BoundLocalDeclaration(Me.Syntax, localSymbol, declarationInitializerOpt, identifierInitializerOpt, initializedByAsNew, Me.HasErrors) 4562Dim result = New BoundAsNewLocalDeclarations(Me.Syntax, localDeclarations, initializer, binder, Me.HasErrors) 4604Dim result = New BoundDimStatement(Me.Syntax, localDeclarations, initializerOpt, Me.HasErrors) 4701Dim result = New BoundFieldInitializer(Me.Syntax, initializedFields, memberAccessExpressionOpt, initialValue, binderOpt, Me.HasErrors) 4736Dim result = New BoundPropertyInitializer(Me.Syntax, initializedProperties, memberAccessExpressionOpt, initialValue, binderOpt, Me.HasErrors) 4779Dim result = New BoundParameterEqualsValue(Me.Syntax, parameter, value, Me.HasErrors) 4813Dim result = New BoundGlobalStatementInitializer(Me.Syntax, statement, Me.HasErrors) 4870Dim result = New BoundSequence(Me.Syntax, locals, sideEffects, valueOpt, type, Me.HasErrors) 4904Dim result = New BoundExpressionStatement(Me.Syntax, expression, Me.HasErrors) 4955Dim result = New BoundIfStatement(Me.Syntax, condition, consequence, alternativeOpt, Me.HasErrors) 5023Dim result = New BoundSelectStatement(Me.Syntax, expressionStatement, exprPlaceholderOpt, caseBlocks, recommendSwitchTable, exitLabel, Me.HasErrors) 5066Dim result = New BoundCaseBlock(Me.Syntax, caseStatement, body, Me.HasErrors) 5108Dim result = New BoundCaseStatement(Me.Syntax, caseClauses, conditionOpt, Me.HasErrors) 5174Dim result = New BoundSimpleCaseClause(Me.Syntax, valueOpt, conditionOpt, Me.HasErrors) 5234Dim result = New BoundRangeCaseClause(Me.Syntax, lowerBoundOpt, upperBoundOpt, lowerBoundConditionOpt, upperBoundConditionOpt, Me.HasErrors) 5270Dim result = New BoundRelationalCaseClause(Me.Syntax, operatorKind, valueOpt, conditionOpt, Me.HasErrors) 5377Dim result = New BoundDoLoopStatement(Me.Syntax, topConditionOpt, bottomConditionOpt, topConditionIsUntil, bottomConditionIsUntil, body, continueLabel, exitLabel, Me.HasErrors) 5422Dim result = New BoundWhileStatement(Me.Syntax, condition, body, continueLabel, exitLabel, Me.HasErrors) 5553Dim result = New BoundForToUserDefinedOperators(Me.Syntax, leftOperandPlaceholder, rightOperandPlaceholder, addition, subtraction, lessThanOrEqual, greaterThanOrEqual, Me.HasErrors) 5625Dim result = New BoundForToStatement(Me.Syntax, initialValue, limitValue, stepValue, checked, operatorsOpt, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.HasErrors) 5672Dim result = New BoundForEachStatement(Me.Syntax, collection, enumeratorInfo, declaredOrInferredLocalOpt, controlVariable, body, nextVariablesOpt, continueLabel, exitLabel, Me.HasErrors) 5714Dim result = New BoundExitStatement(Me.Syntax, label, Me.HasErrors) 5756Dim result = New BoundContinueStatement(Me.Syntax, label, Me.HasErrors) 5815Dim result = New BoundTryStatement(Me.Syntax, tryBlock, catchBlocks, finallyBlockOpt, exitLabelOpt, Me.HasErrors) 5889Dim result = New BoundCatchBlock(Me.Syntax, localOpt, exceptionSourceOpt, errorLineNumberOpt, exceptionFilterOpt, body, isSynthesizedAsyncCatchAll, Me.HasErrors) 5938Dim result = New BoundLiteral(Me.Syntax, value, type, Me.HasErrors) 5971Dim result = New BoundMeReference(Me.Syntax, type, Me.HasErrors) 6011Dim result = New BoundValueTypeMeReference(Me.Syntax, type, Me.HasErrors) 6044Dim result = New BoundMyBaseReference(Me.Syntax, type, Me.HasErrors) 6077Dim result = New BoundMyClassReference(Me.Syntax, type, Me.HasErrors) 6121Dim result = New BoundPreviousSubmissionReference(Me.Syntax, sourceType, type, Me.HasErrors) 6154Dim result = New BoundHostObjectMemberReference(Me.Syntax, type, Me.HasErrors) 6214Dim result = New BoundLocal(Me.Syntax, localSymbol, isLValue, type, Me.HasErrors) 6285Dim result = New BoundPseudoVariable(Me.Syntax, localSymbol, isLValue, emitExpressions, type, Me.HasErrors) 6347Dim result = New BoundParameter(Me.Syntax, parameterSymbol, isLValue, suppressVirtualCalls, type, Me.HasErrors) 6389Dim result = New BoundByRefArgumentPlaceholder(Me.Syntax, isOut, type, Me.HasErrors) 6464Dim result = New BoundByRefArgumentWithCopyBack(Me.Syntax, originalArgument, inConversion, inPlaceholder, outConversion, outPlaceholder, type, Me.HasErrors) 6512Dim result = New BoundLateBoundArgumentSupportingAssignmentWithCapture(Me.Syntax, originalArgument, localSymbol, type, Me.HasErrors) 6554Dim result = New BoundLabelStatement(Me.Syntax, label, Me.HasErrors) 6596Dim result = New BoundLabel(Me.Syntax, label, type, Me.HasErrors) 6638Dim result = New BoundGotoStatement(Me.Syntax, label, labelExpressionOpt, Me.HasErrors) 6672Dim result = New BoundStatementList(Me.Syntax, statements, Me.HasErrors) 6723Dim result = New BoundConditionalGoto(Me.Syntax, condition, jumpIfTrue, label, Me.HasErrors) 6775Dim result = New BoundWithStatement(Me.Syntax, originalExpression, body, binder, Me.HasErrors) 6864Dim result = New UnboundLambda(Me.Syntax, binder, flags, parameters, returnType, bindingCache, Me.HasErrors) 6944Dim result = New BoundLambda(Me.Syntax, lambdaSymbol, body, diagnostics, lambdaBinderOpt, delegateRelaxation, methodConversionKind, Me.HasErrors) 6979Dim result = New BoundQueryExpression(Me.Syntax, lastOperator, type, Me.HasErrors) 7033Dim result = New BoundQuerySource(Me.Syntax, expression, type, Me.HasErrors) 7068Dim result = New BoundToQueryableCollectionConversion(Me.Syntax, conversionCall, type, Me.HasErrors) 7171Dim result = New BoundQueryableSource(Me.Syntax, source, rangeVariableOpt, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7209Dim result = New BoundQueryClause(Me.Syntax, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7244Dim result = New BoundOrdering(Me.Syntax, underlyingExpression, type, Me.HasErrors) 7304Dim result = New BoundQueryLambda(Me.Syntax, lambdaSymbol, rangeVariables, expression, exprIsOperandOfConditionalBranch, Me.HasErrors) 7348Dim result = New BoundRangeVariableAssignment(Me.Syntax, rangeVariable, value, type, Me.HasErrors) 7412Dim result = New GroupTypeInferenceLambda(Me.Syntax, binder, parameters, compilation, Me.HasErrors) 7466Dim result = New BoundAggregateClause(Me.Syntax, capturedGroupOpt, groupPlaceholderOpt, underlyingExpression, rangeVariables, compoundVariableType, binders, type, Me.HasErrors) 7501Dim result = New BoundGroupAggregation(Me.Syntax, group, type, Me.HasErrors) 7545Dim result = New BoundRangeVariable(Me.Syntax, rangeVariable, type, Me.HasErrors) 7601Dim result = New BoundAddHandlerStatement(Me.Syntax, eventAccess, handler, Me.HasErrors) 7628Dim result = New BoundRemoveHandlerStatement(Me.Syntax, eventAccess, handler, Me.HasErrors) 7671Dim result = New BoundRaiseEventStatement(Me.Syntax, eventSymbol, eventInvocation, Me.HasErrors) 7739Dim result = New BoundUsingStatement(Me.Syntax, resourceList, resourceExpressionOpt, body, usingInfo, locals, Me.HasErrors) 7782Dim result = New BoundSyncLockStatement(Me.Syntax, lockExpression, body, Me.HasErrors) 7835Dim result = New BoundXmlName(Me.Syntax, xmlNamespace, localName, objectCreation, type, Me.HasErrors) 7879Dim result = New BoundXmlNamespace(Me.Syntax, xmlNamespace, objectCreation, type, Me.HasErrors) 7932Dim result = New BoundXmlDocument(Me.Syntax, declaration, childNodes, rewriterInfo, type, Me.HasErrors) 7991Dim result = New BoundXmlDeclaration(Me.Syntax, version, encoding, standalone, objectCreation, type, Me.HasErrors) 8044Dim result = New BoundXmlProcessingInstruction(Me.Syntax, target, data, objectCreation, type, Me.HasErrors) 8088Dim result = New BoundXmlComment(Me.Syntax, value, objectCreation, type, Me.HasErrors) 8154Dim result = New BoundXmlAttribute(Me.Syntax, name, value, matchesImport, objectCreation, type, Me.HasErrors) 8207Dim result = New BoundXmlElement(Me.Syntax, argument, childNodes, rewriterInfo, type, Me.HasErrors) 8242Dim result = New BoundXmlMemberAccess(Me.Syntax, memberAccess, type, Me.HasErrors) 8277Dim result = New BoundXmlEmbeddedExpression(Me.Syntax, expression, type, Me.HasErrors) 8321Dim result = New BoundXmlCData(Me.Syntax, value, objectCreation, type, Me.HasErrors) 8373Dim result = New BoundResumeStatement(Me.Syntax, resumeKind, labelOpt, labelExpressionOpt, Me.HasErrors) 8425Dim result = New BoundOnErrorStatement(Me.Syntax, onErrorKind, labelOpt, labelExpressionOpt, Me.HasErrors) 8496Dim result = New BoundUnstructuredExceptionHandlingStatement(Me.Syntax, containsOnError, containsResume, resumeWithoutLabelOpt, trackLineNumber, body, Me.HasErrors) 8545Dim result = New BoundUnstructuredExceptionHandlingCatchFilter(Me.Syntax, activeHandlerLocal, resumeTargetLocal, type, Me.HasErrors) 8593Dim result = New BoundUnstructuredExceptionOnErrorSwitch(Me.Syntax, value, jumps, Me.HasErrors) 8659Dim result = New BoundUnstructuredExceptionResumeSwitch(Me.Syntax, resumeTargetTemporary, resumeLabel, resumeNextLabel, jumps, Me.HasErrors) 8744Dim result = New BoundAwaitOperator(Me.Syntax, operand, awaitableInstancePlaceholder, getAwaiter, awaiterInstancePlaceholder, isCompleted, getResult, type, Me.HasErrors) 8809Dim result = New BoundSpillSequence(Me.Syntax, locals, spillFields, statements, valueOpt, type, Me.HasErrors) 8911Dim result = New BoundMidResult(Me.Syntax, original, start, lengthOpt, source, type, Me.HasErrors) 8963Dim result = New BoundConditionalAccess(Me.Syntax, receiver, placeholder, accessExpression, type, Me.HasErrors) 9021Dim result = New BoundConditionalAccessReceiverPlaceholder(Me.Syntax, placeholderId, capture, type, Me.HasErrors) 9094Dim result = New BoundLoweredConditionalAccess(Me.Syntax, receiverOrCondition, captureReceiver, placeholderId, whenNotNull, whenNullOpt, type, Me.HasErrors) 9143Dim result = New BoundComplexConditionalAccessReceiver(Me.Syntax, valueTypeReceiver, referenceTypeReceiver, type, Me.HasErrors) 9191Dim result = New BoundNameOfOperator(Me.Syntax, argument, constantValueOpt, type, Me.HasErrors) 9231Dim result = New BoundTypeAsValueExpression(Me.Syntax, expression, type, Me.HasErrors) 9279Dim result = New BoundInterpolatedStringExpression(Me.Syntax, contents, constructionOpt, type, Me.HasErrors) 9329Dim 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)
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)
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)
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)
37Debug.Assert(Not body.HasErrors) 71If loweredBody.HasErrors OrElse localDiagnostics.HasAnyErrors Then 107If bodyWithoutLambdas.HasErrors OrElse localDiagnostics.HasAnyErrors Then 147If 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)
2956Not paramArrayArgument.HasErrors AndAlso CanPassToParamArray(paramArrayArgument, targetType, arrayConversion, binder, useSiteInfo)) Then 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 (4)
944If paramArrayArgument Is Nothing OrElse paramArrayArgument.HasErrors OrElse 990If argument Is Nothing OrElse argument.HasErrors OrElse targetType.IsErrorType() OrElse argument.Kind = BoundKind.OmittedArgument Then 2153If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors Then 2207If Not boundLambda.HasErrors AndAlso Not boundLambda.Diagnostics.Diagnostics.HasAnyErrors() Then
Symbols\Source\LocalSymbol.vb (1)
886Not valueExpression.HasErrors AndAlso