21 references to Error
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Statements.cs (2)
1582
Error
(diagnostics, errorCode, node, getName(op1), op2.Syntax);
1604
Error
(diagnostics, errorCode, node, getName(op1), op2.Syntax);
Binder\Binder.ValueChecks.cs (18)
1376
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal2 : ErrorCode.ERR_RefReturnLocal2, local.Syntax, localSymbol);
1380
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnLocal : ErrorCode.ERR_RefReturnLocal, node, localSymbol);
1387
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal2 : ErrorCode.ERR_RefReturnNonreturnableLocal2, local.Syntax, localSymbol);
1391
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnNonreturnableLocal : ErrorCode.ERR_RefReturnNonreturnableLocal, node, localSymbol);
1396
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
1556
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, parameter);
1579
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnStructThis : ErrorCode.ERR_RefReturnStructThis, node);
1600
Error
(diagnostics, errorCode, syntax, parameterSymbol.Name);
3123
Error
(diagnostics, errorCode, syntax, symbol, parameterName);
3227
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbolForReporting, parameterName);
3284
Error
(diagnostics, ErrorCode.ERR_CallArgMixing, syntax, symbolForReporting, parameterName);
4001
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
4309
Error
(diagnostics, GetStandardRValueRefEscapeError(escapeTo), node);
5104
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, expr.Syntax);
5113
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, node, localSymbol);
5127
Error
(diagnostics, inUnsafeRegion ? ErrorCode.WRN_EscapeStackAlloc : ErrorCode.ERR_EscapeStackAlloc, node, expr.Type);
5386
Error
(diagnostics, ErrorCode.ERR_CollectionExpressionEscape, node, expr.Type);
5850
Error
(diagnostics, _inUnsafeRegion ? ErrorCode.WRN_EscapeVariable : ErrorCode.ERR_EscapeVariable, initExpr.Syntax, expr.Syntax);
Binder\RefSafetyAnalysis.cs (1)
1054
Error
(_diagnostics, ErrorCode.ERR_CallArgMixing, argument.Syntax, node.Constructor, parameter.Name);