20 references to Error
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (18)
1082
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal2 : ErrorCode.ERR_RefReturnLocal2, local.Syntax, localSymbol);
1086
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal : ErrorCode.ERR_RefReturnLocal, node, localSymbol);
1093
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal2 : ErrorCode.ERR_RefReturnNonreturnableLocal2, local.Syntax, localSymbol);
1097
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal : ErrorCode.ERR_RefReturnNonreturnableLocal, node, localSymbol);
1102
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
1262
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, parameter);
1285
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnStructThis : ErrorCode.ERR_RefReturnStructThis, node);
1306
Error
(diagnostics, errorCode, syntax, parameterSymbol.Name);
2736
Error
(diagnostics, errorCode, syntax, symbol, parameterName);
2847
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbol, parameterName);
2915
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, methodInfo.Symbol, parameterName);
3654
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
3990
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
4778
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, expr.Syntax);
4787
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
4801
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeStackAlloc : ErrorCode.ERR_EscapeStackAlloc, node, expr.Type);
5110
Error
(diagnostics, ErrorCode.ERR_CollectionExpressionEscape, node, expr.Type);
5562
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, initExpr.Syntax, expr.Syntax);
Binder\Binder_Statements.cs (2)
1564
Error
(diagnostics, errorCode, node, getName(op1), op2.Syntax);
1586
Error
(diagnostics, errorCode, node, getName(op1), op2.Syntax);