21 references to Error
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (18)
1108
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal2 : ErrorCode.ERR_RefReturnLocal2, local.Syntax, localSymbol);
1112
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal : ErrorCode.ERR_RefReturnLocal, node, localSymbol);
1119
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal2 : ErrorCode.ERR_RefReturnNonreturnableLocal2, local.Syntax, localSymbol);
1123
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal : ErrorCode.ERR_RefReturnNonreturnableLocal, node, localSymbol);
1128
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
1288
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, parameter);
1311
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnStructThis : ErrorCode.ERR_RefReturnStructThis, node);
1332
Error
(diagnostics, errorCode, syntax, parameterSymbol.Name);
2832
Error
(diagnostics, errorCode, syntax, symbol, parameterName);
2952
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbolForReporting, parameterName);
3022
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbolForReporting, parameterName);
3768
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
4111
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
4933
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, expr.Syntax);
4942
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
4956
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeStackAlloc : ErrorCode.ERR_EscapeStackAlloc, node, expr.Type);
5265
Error
(diagnostics, ErrorCode.ERR_CollectionExpressionEscape, node, expr.Type);
5752
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)
881
Error
(_diagnostics, ErrorCode.ERR_CallArgMixing, argument.Syntax, constructor, parameter.Name);