21 references to Error
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.cs (1)
572Error(diagnostics, code, location, args);
Binder\Binder_Conversions.cs (8)
2861Error(diagnostics, ErrorCode.WRN_OptionalParamValueMismatch, lambdaParameter.GetFirstLocation(), p + 1, lambdaParamDefault, delegateParamDefault ?? ((object)MessageID.IDS_Missing.Localize())); 2868Error(diagnostics, ErrorCode.WRN_ParamsArrayInLambdaOnly, lambdaParameter.GetFirstLocation(), p + 1); 3380Error(diagnostics, getMethodMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 3388Error(diagnostics, getRefMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 3411Error(diagnostics, ErrorCode.ERR_BadRetType, errorLocation, method, method.ReturnType); 3431Error(diagnostics, ErrorCode.ERR_FuncPtrMethMustBeStatic, errorLocation, method); 3530Error(diagnostics, ErrorCode.ERR_DelegateOnConditional, syntax.Location, selectedMethod); 3538Error(diagnostics, ErrorCode.ERR_PartialMethodToDelegate, syntax.Location, selectedMethod);
Binder\Binder_Query.cs (2)
740Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Display); 745Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Type!);
Binder\Binder_Statements.cs (8)
2197Error(diagnostics, ErrorCode.ERR_BadParamExtraRef, lambdaParameterLocation, i + 1, lambdaRefKind.ToParameterDisplayString()); 2202Error(diagnostics, ErrorCode.ERR_BadParamRef, lambdaParameterLocation, i + 1, delegateRefKind.ToParameterDisplayString()); 2219Error(diagnostics, ErrorFacts.GetStaticClassParameterCode(useWarning: false), anonymousFunction.ParameterLocation(i), delegateParameters[i].Type); 2252Error(diagnostics, ErrorCode.ERR_BadParamType, lambdaParameterLocation, 2273=> Error(diagnostics, code, GetAnonymousFunctionLocation(syntax), args); 2546Error(diagnostics, errorCode, location, methodGroup.Name, targetType); 3452Error(diagnostics, ErrorCode.ERR_CantConvAsyncAnonFuncReturns, 3459Error(diagnostics, ErrorCode.ERR_CantConvAnonMethReturns,
Binder\ExecutableCodeBinder.cs (2)
148Error(diagnostics, ErrorCode.ERR_BadIteratorReturnRef, errorLocation, iterator); 152Error(diagnostics, ErrorCode.ERR_BadIteratorReturn, errorLocation, iterator, returnType);