81 references to Error
Microsoft.CodeAnalysis.CSharp (81)
Binder\Binder.ValueChecks.cs (27)
558
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
577
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
603
Error
(diagnostics, errorCode, node);
617
Error
(diagnostics, ErrorCode.ERR_UnboxNotLValue, node);
637
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
649
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
674
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
765
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
772
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
783
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
795
Error
(diagnostics, errorCode, node);
822
Error
(diagnostics, ErrorCode.WRN_AddressOfInAsync, node);
916
Error
(diagnostics, ErrorCode.WRN_AddressOfInAsync, node);
930
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
1018
Error
(diagnostics, errorCode, node);
1160
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1173
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
1255
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1376
Error
(diagnostics, ErrorCode.ERR_WinRtEventPassedByRef, eventSyntax);
1444
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1458
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
1495
Error
(diagnostics, ErrorCode.ERR_RefProperty, node);
1499
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1626
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
2679
Error
(diagnostics, GetStandardLvalueError(kind), node);
2850
Error
(diagnostics, ReadOnlyErrors[index], node);
2863
Error
(diagnostics, ErrorCode.ERR_InvalidAddrOp, node);
Binder\Binder_Attributes.cs (1)
1111
Binder.
Error
(diagnostics, ErrorCode.ERR_BadAttributeArgument, node.Syntax);
Binder\Binder_Await.cs (1)
328
Error
(diagnostics, ErrorCode.ERR_BadAwaitArgVoidCall, node);
Binder\Binder_Conversions.cs (1)
328
Error
(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, 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 (17)
2286
Error
(diagnostics, ErrorCode.ERR_ThisStructNotInAnonMeth, thisOrBaseToken);
3738
Error
(diagnostics, ErrorCode.ERR_ConstantExpected, size.Syntax);
3884
Error
(diagnostics, ErrorCode.ERR_StackallocInCatchFinally, node);
3975
Error
(diagnostics, ErrorCode.ERR_ConstantExpected, sizeOpt.Syntax);
4520
Error
(diagnostics, ErrorCode.ERR_ObjectOrCollectionInitializerWithDelegateCreation, node);
6920
Error
(diagnostics, ErrorCode.ERR_OmittedTypeArgument, node);
7483
Error
(diagnostics, isFixedStatementExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedBufferNotFixed, node);
7624
Error
(diagnostics, ErrorCode.ERR_BadAbstractStaticMemberAccess, node);
7630
Error
(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, node);
7640
Error
(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, node);
7650
Error
(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, node);
7982
Error
(diagnostics, ErrorCode.ERR_NamedArgumentForArray, node);
8019
Error
(diagnostics, ErrorCode.WRN_NegativeArrayIndex, index.Syntax);
8191
Error
(diagnostics, ErrorCode.ERR_NamedArgumentForArray, node);
8206
Error
(diagnostics, ErrorCode.ERR_PtrIndexSingle, node);
8214
Error
(diagnostics, ErrorCode.ERR_VoidError, expr.Syntax);
8365
Error
(diagnostics, ErrorCode.ERR_NoDynamicPhantomOnBaseIndexer, syntax);
Binder\Binder_Invocation.cs (8)
218
Error
(diagnostics, ErrorCode.ERR_CantUseVoidInArglist, argument.Syntax);
233
Error
(diagnostics, ErrorCode.ERR_CantUseInOrOutInArglist, argument.Syntax);
419
Error
(diagnostics, ErrorCode.ERR_NamedArgumentSpecificationBeforeFixedArgumentInDynamicInvocation, arguments.Arguments[i].Syntax);
459
Error
(diagnostics, ErrorCode.ERR_InDynamicMethodArg, arguments[argIndex].Syntax);
472
Error
(diagnostics, ErrorCode.ERR_BadDynamicQuery, node);
480
Error
(diagnostics, ErrorCode.ERR_BadDynamicMethodArgLambda, arg.Syntax);
486
Error
(diagnostics, ErrorCode.ERR_BadDynamicMethodArgMemgrp, arg.Syntax);
1123
Error
(diagnostics, code, node);
Binder\Binder_Operators.cs (6)
1818
Error
(diagnostics, ErrorCode.ERR_ConstantStringTooLong, right.Syntax);
2359
Error
(diagnostics, ErrorCode.ERR_BadAbstractStaticMemberAccess, node);
2369
Error
(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, node);
2417
Error
(diagnostics, ErrorCode.ERR_IllegalSuppression, expr.Syntax);
2423
Error
(diagnostics, ErrorCode.ERR_DuplicateNullSuppression, expr.Syntax);
2675
Error
(diagnostics, ErrorCode.ERR_IllegalSuppression, expr.Syntax);
Binder\Binder_Patterns.cs (1)
751
Error
(diagnostics, ErrorCode.ERR_PatternDynamicType, typeSyntax);
Binder\Binder_Statements.cs (11)
679
Error
(diagnostics, ErrorCode.WRN_UnobservedAwaitableExpression, expression.Syntax);
1246
Error
(diagnostics, ErrorCode.ERR_ExprCannotBeFixed, initializerSyntax);
1314
Error
(diagnostics, ErrorCode.ERR_ExprCannotBeFixed, initializerSyntax);
2015
Error
(diagnostics, ErrorCode.ERR_CannotInferDelegateType, syntax);
2037
Error
(diagnostics, ErrorCode.ERR_AnonymousMethodToExpressionTree, syntax);
2368
Error
(diagnostics, ErrorCode.ERR_InvalidAddrOp, ((BoundAddressOfOperator)operand).Operand.Syntax);
2587
Error
(diagnostics, ErrorCode.WRN_IncorrectBooleanAssg, assignment.Syntax);
3355
Error
(diagnostics, ErrorCode.ERR_MustNotHaveRefReturn, syntax);
3366
Error
(diagnostics, errorCode, syntax);
3381
Error
(diagnostics, ErrorCode.ERR_IllegalStatement, syntax);
3397
Error
(diagnostics, ErrorCode.ERR_ReturnInIterator, syntax);
Binder\Binder_Symbols.cs (1)
801
Error
(diagnostics, ErrorCode.ERR_TupleDuplicateElementName, syntax);
Binder\ForEachLoopBinder.cs (1)
231
Error
(diagnostics, ErrorCode.ERR_RefLvalueExpected, collectionExpr.Syntax);
BoundTree\BoundDiscardExpression.cs (1)
23
Binder.
Error
(diagnosticsOpt, ErrorCode.ERR_DiscardTypeInferenceFailed, this.Syntax);