21 references to Error
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.cs (1)
570Error(diagnostics, code, location, args);
Binder\Binder_Conversions.cs (8)
2388Error(diagnostics, ErrorCode.WRN_OptionalParamValueMismatch, lambdaParameter.GetFirstLocation(), p + 1, lambdaParamDefault, delegateParamDefault ?? ((object)MessageID.IDS_Missing.Localize())); 2395Error(diagnostics, ErrorCode.WRN_ParamsArrayInLambdaOnly, lambdaParameter.GetFirstLocation(), p + 1); 2885Error(diagnostics, getMethodMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 2893Error(diagnostics, getRefMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 2916Error(diagnostics, ErrorCode.ERR_BadRetType, errorLocation, method, method.ReturnType); 2936Error(diagnostics, ErrorCode.ERR_FuncPtrMethMustBeStatic, errorLocation, method); 3035Error(diagnostics, ErrorCode.ERR_DelegateOnConditional, syntax.Location, selectedMethod); 3043Error(diagnostics, ErrorCode.ERR_PartialMethodToDelegate, syntax.Location, selectedMethod);
Binder\Binder_Query.cs (2)
735Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Display); 740Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Type!);
Binder\Binder_Statements.cs (8)
2167Error(diagnostics, ErrorCode.ERR_BadParamExtraRef, lambdaParameterLocation, i + 1, lambdaRefKind.ToParameterDisplayString()); 2172Error(diagnostics, ErrorCode.ERR_BadParamRef, lambdaParameterLocation, i + 1, delegateRefKind.ToParameterDisplayString()); 2189Error(diagnostics, ErrorFacts.GetStaticClassParameterCode(useWarning: false), anonymousFunction.ParameterLocation(i), delegateParameters[i].Type); 2222Error(diagnostics, ErrorCode.ERR_BadParamType, lambdaParameterLocation, 2243=> Error(diagnostics, code, GetAnonymousFunctionLocation(syntax), args); 2516Error(diagnostics, errorCode, location, methodGroup.Name, targetType); 3401Error(diagnostics, ErrorCode.ERR_CantConvAsyncAnonFuncReturns, 3408Error(diagnostics, ErrorCode.ERR_CantConvAnonMethReturns,
Binder\ExecutableCodeBinder.cs (2)
148Error(diagnostics, ErrorCode.ERR_BadIteratorReturnRef, errorLocation, iterator); 152Error(diagnostics, ErrorCode.ERR_BadIteratorReturn, errorLocation, iterator, returnType);