25 references to Error
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.cs (1)
570Error(diagnostics, code, location, args);
Binder\Binder_Conversions.cs (8)
2376Error(diagnostics, ErrorCode.WRN_OptionalParamValueMismatch, lambdaParameter.GetFirstLocation(), p + 1, lambdaParamDefault, delegateParamDefault ?? ((object)MessageID.IDS_Missing.Localize())); 2383Error(diagnostics, ErrorCode.WRN_ParamsArrayInLambdaOnly, lambdaParameter.GetFirstLocation(), p + 1); 2873Error(diagnostics, getMethodMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 2881Error(diagnostics, getRefMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 2904Error(diagnostics, ErrorCode.ERR_BadRetType, errorLocation, method, method.ReturnType); 2924Error(diagnostics, ErrorCode.ERR_FuncPtrMethMustBeStatic, errorLocation, method); 3023Error(diagnostics, ErrorCode.ERR_DelegateOnConditional, syntax.Location, selectedMethod); 3031Error(diagnostics, ErrorCode.ERR_PartialMethodToDelegate, syntax.Location, selectedMethod);
Binder\Binder_Expressions.cs (3)
11666Error(diagnostics, ErrorCode.ERR_BadUnaryOp, operatorToken.GetLocation(), operatorToken.Text, receiver.Display); 11673Error(diagnostics, ErrorCode.ERR_BadUnaryOp, operatorToken.GetLocation(), operatorToken.Text, receiverType); 11680Error(diagnostics, ErrorCode.ERR_BadUnaryOp, operatorToken.GetLocation(), operatorToken.Text, receiverType);
Binder\Binder_InterpolatedString.cs (1)
34Error(diagnostics,
Binder\Binder_Query.cs (2)
746Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Display); 751Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Type!);
Binder\Binder_Statements.cs (8)
2196Error(diagnostics, ErrorCode.ERR_BadParamExtraRef, lambdaParameterLocation, i + 1, lambdaRefKind.ToParameterDisplayString()); 2201Error(diagnostics, ErrorCode.ERR_BadParamRef, lambdaParameterLocation, i + 1, delegateRefKind.ToParameterDisplayString()); 2218Error(diagnostics, ErrorFacts.GetStaticClassParameterCode(useWarning: false), anonymousFunction.ParameterLocation(i), delegateParameters[i].Type); 2251Error(diagnostics, ErrorCode.ERR_BadParamType, lambdaParameterLocation, 2272=> Error(diagnostics, code, GetAnonymousFunctionLocation(syntax), args); 2545Error(diagnostics, errorCode, location, methodGroup.Name, targetType); 3433Error(diagnostics, ErrorCode.ERR_CantConvAsyncAnonFuncReturns, 3440Error(diagnostics, ErrorCode.ERR_CantConvAnonMethReturns,
Binder\ExecutableCodeBinder.cs (2)
148Error(diagnostics, ErrorCode.ERR_BadIteratorReturnRef, errorLocation, iterator); 152Error(diagnostics, ErrorCode.ERR_BadIteratorReturn, errorLocation, iterator, returnType);