15 references to Error
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.cs (1)
570Error(diagnostics, code, location, args);
Binder\Binder_Conversions.cs (7)
2390Error(diagnostics, ErrorCode.WRN_ParamsArrayInLambdaOnly, lambdaParameter.GetFirstLocation(), p + 1); 2880Error(diagnostics, getMethodMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 2888Error(diagnostics, getRefMismatchErrorCode(delegateType.TypeKind), errorLocation, method, delegateType); 2911Error(diagnostics, ErrorCode.ERR_BadRetType, errorLocation, method, method.ReturnType); 2931Error(diagnostics, ErrorCode.ERR_FuncPtrMethMustBeStatic, errorLocation, method); 3030Error(diagnostics, ErrorCode.ERR_DelegateOnConditional, syntax.Location, selectedMethod); 3038Error(diagnostics, ErrorCode.ERR_PartialMethodToDelegate, syntax.Location, selectedMethod);
Binder\Binder_Statements.cs (5)
2189Error(diagnostics, ErrorFacts.GetStaticClassParameterCode(useWarning: false), anonymousFunction.ParameterLocation(i), delegateParameters[i].Type); 2243=> Error(diagnostics, code, GetAnonymousFunctionLocation(syntax), args); 2516Error(diagnostics, errorCode, location, methodGroup.Name, targetType); 3403Error(diagnostics, ErrorCode.ERR_CantConvAsyncAnonFuncReturns, 3410Error(diagnostics, ErrorCode.ERR_CantConvAnonMethReturns,
Binder\ExecutableCodeBinder.cs (2)
148Error(diagnostics, ErrorCode.ERR_BadIteratorReturnRef, errorLocation, iterator); 152Error(diagnostics, ErrorCode.ERR_BadIteratorReturn, errorLocation, iterator, returnType);