21 references to Error
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (18)
1329
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal2 : ErrorCode.ERR_RefReturnLocal2, local.Syntax, localSymbol);
1333
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal : ErrorCode.ERR_RefReturnLocal, node, localSymbol);
1340
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal2 : ErrorCode.ERR_RefReturnNonreturnableLocal2, local.Syntax, localSymbol);
1344
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal : ErrorCode.ERR_RefReturnNonreturnableLocal, node, localSymbol);
1349
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
1509
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, parameter);
1532
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnStructThis : ErrorCode.ERR_RefReturnStructThis, node);
1553
Error
(diagnostics, errorCode, syntax, parameterSymbol.Name);
3091
Error
(diagnostics, errorCode, syntax, symbol, parameterName);
3197
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbolForReporting, parameterName);
3255
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbolForReporting, parameterName);
3961
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
4262
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
5012
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, expr.Syntax);
5021
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
5035
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeStackAlloc : ErrorCode.ERR_EscapeStackAlloc, node, expr.Type);
5290
Error
(diagnostics, ErrorCode.ERR_CollectionExpressionEscape, node, expr.Type);
5759
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, initExpr.Syntax, expr.Syntax);
Binder\Binder_Statements.cs (2)
1576
Error
(diagnostics, errorCode, node, getName(op1), op2.Syntax);
1598
Error
(diagnostics, errorCode, node, getName(op1), op2.Syntax);
Binder\RefSafetyAnalysis.cs (1)
978
Error
(_diagnostics, ErrorCode.ERR_CallArgMixing, argument.Syntax, node.Constructor, parameter.Name);