79 references to Error
Microsoft.CodeAnalysis.CSharp (79)
Binder\Binder.ValueChecks.cs (29)
728Error(diagnostics, GetStandardLvalueError(valueKind), node); 747Error(diagnostics, GetStandardLvalueError(valueKind), node); 773Error(diagnostics, errorCode, node); 787Error(diagnostics, ErrorCode.ERR_UnboxNotLValue, node); 807Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 819Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 844Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 930Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 957Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 974Error(diagnostics, GetStandardLvalueError(valueKind), node); 981Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 992Error(diagnostics, GetStandardLvalueError(valueKind), node); 1004Error(diagnostics, errorCode, node); 1033Error(diagnostics, ErrorCode.WRN_AddressOfInAsync, node); 1037Error(diagnostics, ErrorCode.ERR_AddressOfInIterator, node); 1149Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 1237Error(diagnostics, errorCode, node); 1378Error(diagnostics, GetStandardLvalueError(valueKind), node); 1391Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 1488Error(diagnostics, GetStandardLvalueError(valueKind), node); 1609Error(diagnostics, ErrorCode.ERR_WinRtEventPassedByRef, eventSyntax); 1677Error(diagnostics, GetStandardLvalueError(valueKind), node); 1691Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 1728Error(diagnostics, ErrorCode.ERR_RefProperty, node); 1732Error(diagnostics, GetStandardLvalueError(valueKind), node); 1859Error(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node); 3107Error(diagnostics, GetStandardLvalueError(kind), node); 3278Error(diagnostics, ReadOnlyErrors[index], node); 3291Error(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)
4392Error(diagnostics, ErrorCode.ERR_ConstantExpected, size.Syntax); 4538Error(diagnostics, ErrorCode.ERR_StackallocInCatchFinally, node); 4629Error(diagnostics, ErrorCode.ERR_ConstantExpected, sizeOpt.Syntax); 5317Error(diagnostics, ErrorCode.ERR_ObjectOrCollectionInitializerWithDelegateCreation, node); 7986Error(diagnostics, ErrorCode.ERR_OmittedTypeArgument, node); 8565Error(diagnostics, isFixedStatementExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedBufferNotFixed, node); 8706Error(diagnostics, ErrorCode.ERR_BadAbstractStaticMemberAccess, node); 8712Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, node); 8720Error(diagnostics, ErrorCode.ERR_BadNonVirtualInterfaceMemberAccessOnAllowsRefLike, node); 8726Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, node); 8736Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, node); 9210Error(diagnostics, ErrorCode.ERR_InlineArrayIndexOutOfRange, location); 9320Error(diagnostics, ErrorCode.ERR_NamedArgumentForArray, node); 9357Error(diagnostics, ErrorCode.WRN_NegativeArrayIndex, index.Syntax); 9529Error(diagnostics, ErrorCode.ERR_NamedArgumentForArray, node); 9544Error(diagnostics, ErrorCode.ERR_PtrIndexSingle, node); 9552Error(diagnostics, ErrorCode.ERR_VoidError, expr.Syntax); 9703Error(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); 2405Error(diagnostics, ErrorCode.ERR_InvalidAddrOp, ((BoundAddressOfOperator)operand).Operand.Syntax); 2685Error(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);