93 references to Error
Microsoft.CodeAnalysis.CSharp (93)
Lowering\DiagnosticsPass_ExpressionTrees.cs (70)
73Error(ErrorCode.ERR_ExpressionTreeContainsPointerOp, node); 83Error(ErrorCode.ERR_ExpressionTreeContainsMultiDimensionalArrayInitializer, node); 95Error(ErrorCode.ERR_ExpressionTreeContainsPatternImplicitIndexer, node); 105Error(ErrorCode.ERR_ExpressionTreeContainsPatternImplicitIndexer, node); 115Error(ErrorCode.ERR_ExpressionTreeContainsInlineArrayOperation, node); 125Error(ErrorCode.ERR_ExpressionTreeContainsFromEndIndexExpression, node); 135Error(ErrorCode.ERR_ExpressionTreeContainsRangeExpression, node); 145Error(ErrorCode.ERR_ExpressionTreeContainsPointerOp, node); 175Error(ErrorCode.ERR_ExpressionTreeContainsBaseAccess, node); 201Error(diagnostic, node); 233Error(ErrorCode.ERR_ExpressionTreeContainsSwitchExpression, node); 255Error(ErrorCode.ERR_ExpressionTreeContainsAssignment, node); 265Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 288Error(ErrorCode.ERR_ExpressionTreeContainsAssignment, node); 325Error(ErrorCode.ERR_PartialMethodInExpressionTree, node); 329Error(ErrorCode.ERR_ExpressionTreeContainsIndexedProperty, node); 333Error(ErrorCode.ERR_ExpressionTreeContainsOptionalArgument, node); 337Error(ErrorCode.ERR_ExpressionTreeContainsNamedArgument, node); 341Error(ErrorCode.ERR_ComRefCallInExpressionTree, node); 345Error(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, node); 349Error(ErrorCode.ERR_RefReturningCallInExpressionTree, node); 353Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 380Error(ErrorCode.ERR_ExpressionTreeCantContainRefStruct, node, type.Name); 389Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, "__reftype"); 399Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, "__refvalue"); 409Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, "__makeref"); 419Error(ErrorCode.ERR_VarArgsInExpressionTree, node); 429Error(ErrorCode.ERR_NullPropagatingOpInExpressionTree, node); 439Error(ErrorCode.ERR_DictionaryInitializerInExpressionTree, node); 497Error(ErrorCode.ERR_ExpressionTreeContainsOutVariable, local); 505Error(ErrorCode.ERR_ExpressionTreeContainsDiscard, argument); 513Error(ErrorCode.ERR_ExtensionCollectionElementInitializerInExpressionTree, node); 542Error(ErrorCode.ERR_RefReturningCallInExpressionTree, node); 554Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 569Error(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, node); 598Error(ErrorCode.ERR_BadAsyncExpressionTree, node); 602Error(ErrorCode.ERR_StatementLambdaToExpressionTree, node); 606Error(ErrorCode.ERR_BadRefReturnExpressionTree, node); 616Error(ErrorCode.ERR_BadAsyncExpressionTree, node); 620Error(ErrorCode.ERR_StatementLambdaToExpressionTree, node); 624Error(ErrorCode.ERR_BadRefReturnExpressionTree, node); 630Error(ErrorCode.ERR_ExpressionTreeContainsAnonymousMethod, node); 712Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 723Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 731Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 743Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 764Error(ErrorCode.ERR_ExpressionTreeContainsAssignment, node); 808Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 818Error(ErrorCode.ERR_ExpressionTreeContainsTupleConversion, node); 825Error(ErrorCode.ERR_ExpressionTreeContainsInlineArrayOperation, node); 832Error(ErrorCode.ERR_ExpressionTreeContainsInterpolatedStringHandlerConversion, node); 840Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 882Error(ErrorCode.ERR_ExpressionTreeContainsLocalFunction, node); 886Error(ErrorCode.ERR_AddressOfMethodGroupInExpressionTree, node); 890Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 914Error(ErrorCode.ERR_ExpressionTreeContainsBadCoalesce, node.LeftOperand); 924Error(ErrorCode.ERR_ExpressionTreeCantContainNullCoalescingAssignment, node); 934Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 950Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 961Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 971Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 981Error(ErrorCode.ERR_ExpressionTreeContainsDynamicOperation, node); 991Error(ErrorCode.ERR_ExpressionTreeContainsIsMatch, node); 1001Error(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, node); 1011Error(ErrorCode.ERR_ExpressionTreeContainsTupleLiteral, node); 1021Error(ErrorCode.ERR_ExpressionTreeContainsTupleBinOp, node); 1031Error(ErrorCode.ERR_ExpressionTreeContainsThrowExpression, node); 1041Error(ErrorCode.ERR_ExpressionTreeContainsWithExpression, node); 1051Error(ErrorCode.ERR_ExpressionTreeContainsPointerOp, node); 1061Error(
Lowering\DiagnosticsPass_Warnings.cs (23)
63Error(ErrorCode.WRN_VolatileByRef, fieldAccess, fieldSymbol); 68Error(ErrorCode.WRN_ByRefNonAgileField, fieldAccess, fieldSymbol); 91Error(ErrorCode.WRN_CallOnNonAgileField, fieldAccess, fieldSymbol); 258Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, method); 262Error(ErrorCode.ERR_ExpressionTreeContainsAbstractStaticMemberAccess, node); 280Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, ">>>"); 300Error(ErrorCode.ERR_ExpressionTreeContainsAssignment, node); 388Error(ErrorCode.WRN_ComparisonToSelf, node); 454Error(ErrorCode.WRN_VacuousIntegralComp, tree, conversion.Operand.Type); 569Error(ErrorCode.WRN_BitwiseOrSignExtend, node); 729Error(ErrorCode.WRN_AlwaysNull, node, node.Type); 745Error(ErrorCode.WRN_AlwaysNull, node, node.Type); 770Error(ErrorCode.WRN_NubExprIsConstBool, node, always, node.Left.Type.GetNullableUnderlyingType(), node.Left.Type); 774Error(ErrorCode.WRN_NubExprIsConstBool, node, always, node.Right.Type.GetNullableUnderlyingType(), node.Right.Type); 800Error(ErrorCode.WRN_CmpAlwaysFalse, node, GetTypeForLiftedComparisonWarning(node.Right)); 804Error(ErrorCode.WRN_CmpAlwaysFalse, node, GetTypeForLiftedComparisonWarning(node.Left)); 818Error(node.OperatorKind.IsUserDefined() ? ErrorCode.WRN_NubExprIsConstBool2 : ErrorCode.WRN_NubExprIsConstBool, node, always, node.Left.Type.GetNullableUnderlyingType(), GetTypeForLiftedComparisonWarning(node.Right)); 822Error(node.OperatorKind.IsUserDefined() ? ErrorCode.WRN_NubExprIsConstBool2 : ErrorCode.WRN_NubExprIsConstBool, node, always, node.Right.Type.GetNullableUnderlyingType(), GetTypeForLiftedComparisonWarning(node.Left)); 830Error(ErrorCode.WRN_AlwaysNull, node, node.Type); 836Error(ErrorCode.WRN_AlwaysNull, node, node.Type); 847Error(ErrorCode.WRN_AlwaysNull, node, node.Type); 881Error(ErrorCode.WRN_AssignmentToSelf, node); 925Error(ErrorCode.WRN_AssignmentToSelf, leftArgument);