79 references to Error
Microsoft.CodeAnalysis.CSharp (79)
Binder\Binder.ValueChecks.cs (29)
705Error(diagnostics, GetStandardLvalueError(valueKind), node); 724Error(diagnostics, GetStandardLvalueError(valueKind), node); 750Error(diagnostics, errorCode, node); 764Error(diagnostics, ErrorCode.ERR_UnboxNotLValue, node); 784Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 796Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 821Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 907Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 934Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 951Error(diagnostics, GetStandardLvalueError(valueKind), node); 958Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 969Error(diagnostics, GetStandardLvalueError(valueKind), node); 981Error(diagnostics, errorCode, node); 1010Error(diagnostics, ErrorCode.WRN_AddressOfInAsync, node); 1014Error(diagnostics, ErrorCode.ERR_AddressOfInIterator, node); 1126Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 1214Error(diagnostics, errorCode, node); 1355Error(diagnostics, GetStandardLvalueError(valueKind), node); 1368Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 1465Error(diagnostics, GetStandardLvalueError(valueKind), node); 1586Error(diagnostics, ErrorCode.ERR_WinRtEventPassedByRef, eventSyntax); 1654Error(diagnostics, GetStandardLvalueError(valueKind), node); 1668Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 1705Error(diagnostics, ErrorCode.ERR_RefProperty, node); 1709Error(diagnostics, GetStandardLvalueError(valueKind), node); 1836Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 3084Error(diagnostics, GetStandardLvalueError(kind), node); 3255Error(diagnostics, ReadOnlyErrors[index], node); 3268Error(diagnostics, ErrorCode.ERR_InvalidAddrOp, node);
Binder\Binder_Attributes.cs (2)
891Binder.Error(diagnostics, ErrorCode.ERR_BadAttributeArgument, node.Syntax); 1046Binder.Error(diagnostics, ErrorCode.ERR_BadAttributeArgument, node.Syntax);
Binder\Binder_Await.cs (1)
328Error(diagnostics, ErrorCode.ERR_BadAwaitArgVoidCall, node);
Binder\Binder_Conversions.cs (2)
425Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, syntax); 441Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportInlineArrayTypes, syntax);
Binder\Binder_Deconstruct.cs (5)
228Error(diagnostics, ErrorCode.ERR_DeconstructRequiresExpression, boundRHS.Syntax); 272Error(diagnostics, ErrorCode.ERR_DeconstructTooFewElements, syntax); 496Error(diagnostics, ErrorCode.ERR_DeconstructRequiresExpression, element.Syntax); 514Error(diagnostics, ErrorCode.ERR_DeconstructRequiresExpression, element.Syntax); 624Error(diagnostics, ErrorCode.ERR_CannotDeconstructDynamic, rightSyntax);
Binder\Binder_Expressions.cs (18)
4395Error(diagnostics, ErrorCode.ERR_ConstantExpected, size.Syntax); 4541Error(diagnostics, ErrorCode.ERR_StackallocInCatchFinally, node); 4632Error(diagnostics, ErrorCode.ERR_ConstantExpected, sizeOpt.Syntax); 5320Error(diagnostics, ErrorCode.ERR_ObjectOrCollectionInitializerWithDelegateCreation, node); 7989Error(diagnostics, ErrorCode.ERR_OmittedTypeArgument, node); 8568Error(diagnostics, isFixedStatementExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedBufferNotFixed, node); 8709Error(diagnostics, ErrorCode.ERR_BadAbstractStaticMemberAccess, node); 8715Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, node); 8723Error(diagnostics, ErrorCode.ERR_BadNonVirtualInterfaceMemberAccessOnAllowsRefLike, node); 8729Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, node); 8739Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, node); 9213Error(diagnostics, ErrorCode.ERR_InlineArrayIndexOutOfRange, location); 9323Error(diagnostics, ErrorCode.ERR_NamedArgumentForArray, node); 9360Error(diagnostics, ErrorCode.WRN_NegativeArrayIndex, index.Syntax); 9532Error(diagnostics, ErrorCode.ERR_NamedArgumentForArray, node); 9547Error(diagnostics, ErrorCode.ERR_PtrIndexSingle, node); 9555Error(diagnostics, ErrorCode.ERR_VoidError, expr.Syntax); 9706Error(diagnostics, ErrorCode.ERR_NoDynamicPhantomOnBaseIndexer, syntax);
Binder\Binder_Invocation.cs (7)
291Error(diagnostics, ErrorCode.ERR_CantUseVoidInArglist, argument.Syntax); 306Error(diagnostics, ErrorCode.ERR_CantUseInOrOutInArglist, argument.Syntax); 567Error(diagnostics, ErrorCode.ERR_InDynamicMethodArg, arguments[argIndex].Syntax); 580Error(diagnostics, ErrorCode.ERR_BadDynamicQuery, node); 588Error(diagnostics, ErrorCode.ERR_BadDynamicMethodArgLambda, arg.Syntax); 594Error(diagnostics, ErrorCode.ERR_BadDynamicMethodArgMemgrp, arg.Syntax); 1295Error(diagnostics, code, node);
Binder\Binder_Operators.cs (6)
1849Error(diagnostics, ErrorCode.ERR_ConstantStringTooLong, right.Syntax); 2390Error(diagnostics, ErrorCode.ERR_BadAbstractStaticMemberAccess, node); 2400Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, node); 2448Error(diagnostics, ErrorCode.ERR_IllegalSuppression, expr.Syntax); 2454Error(diagnostics, ErrorCode.ERR_DuplicateNullSuppression, expr.Syntax); 2718Error(diagnostics, ErrorCode.ERR_IllegalSuppression, expr.Syntax);
Binder\Binder_Patterns.cs (1)
760Error(diagnostics, ErrorCode.ERR_PatternDynamicType, typeSyntax);
Binder\Binder_Statements.cs (5)
682Error(diagnostics, ErrorCode.WRN_UnobservedAwaitableExpression, expression.Syntax); 1237Error(diagnostics, ErrorCode.ERR_ExprCannotBeFixed, initializerSyntax); 1305Error(diagnostics, ErrorCode.ERR_ExprCannotBeFixed, initializerSyntax); 2408Error(diagnostics, ErrorCode.ERR_InvalidAddrOp, ((BoundAddressOfOperator)operand).Operand.Syntax); 2688Error(diagnostics, ErrorCode.WRN_IncorrectBooleanAssg, assignment.Syntax);
Binder\Binder_Symbols.cs (1)
803Error(diagnostics, ErrorCode.ERR_TupleDuplicateElementName, syntax);
Binder\ForEachLoopBinder.cs (1)
246Error(diagnostics, ErrorCode.ERR_RefLvalueExpected, collectionExpr.Syntax);
BoundTree\BoundDiscardExpression.cs (1)
23Binder.Error(diagnosticsOpt, ErrorCode.ERR_DiscardTypeInferenceFailed, this.Syntax);