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