79 references to Error
Microsoft.CodeAnalysis.CSharp (79)
Binder\Binder.ValueChecks.cs (29)
728
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
747
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
773
Error
(diagnostics, errorCode, node);
787
Error
(diagnostics, ErrorCode.ERR_UnboxNotLValue, node);
807
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
819
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
844
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
930
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
957
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
974
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
981
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
992
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1004
Error
(diagnostics, errorCode, node);
1033
Error
(diagnostics, ErrorCode.WRN_AddressOfInAsync, node);
1037
Error
(diagnostics, ErrorCode.ERR_AddressOfInIterator, node);
1149
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
1237
Error
(diagnostics, errorCode, node);
1378
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1391
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
1488
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1609
Error
(diagnostics, ErrorCode.ERR_WinRtEventPassedByRef, eventSyntax);
1677
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1691
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
1728
Error
(diagnostics, ErrorCode.ERR_RefProperty, node);
1732
Error
(diagnostics, GetStandardLvalueError(valueKind), node);
1859
Error
(diagnostics, ErrorCode.ERR_RefLocalOrParamExpected, node);
3107
Error
(diagnostics, GetStandardLvalueError(kind), node);
3278
Error
(diagnostics, ReadOnlyErrors[index], node);
3291
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);
2405
Error
(diagnostics, ErrorCode.ERR_InvalidAddrOp, ((BoundAddressOfOperator)operand).Operand.Syntax);
2685
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);