30 references to WRN_EscapeVariable
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (5)
1398
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, localSymbol);
1558
Error(diagnostics, _inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, parameter);
5067
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, expr.Syntax);
5076
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, localSymbol);
5809
Error(diagnostics, _inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, initExpr.Syntax, expr.Syntax);
Errors\ErrorFacts.cs (2)
524
case ErrorCode.
WRN_EscapeVariable
:
2325
or ErrorCode.
WRN_EscapeVariable
Generated\ErrorFacts.Generated.cs (1)
295
case ErrorCode.
WRN_EscapeVariable
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
11296
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 20)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\RefEscapingTests.cs (15)
2227
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(16, 35),
2230
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 23)
2237
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(16, 35),
2240
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 23),
4532
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "r").WithArguments("r").WithLocation(27, 16),
7406
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(27, 44),
7409
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(30, 35),
7412
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(33, 60),
7418
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(36, 47),
7424
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "ternarySame1").WithArguments("ternarySame1").WithLocation(39, 47),
7785
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
7835
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
7885
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
7937
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(13, 18));
7964
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(10, 15));
Semantics\RefFieldTests.cs (5)
2600
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(9, 20));
10634
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "r2").WithArguments("r2").WithLocation(13, 18));
17892
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(4, 53),
17895
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(5, 49));
18860
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "{ I2 = ref rs.I1 }").WithArguments("I2 = ref rs.I1").WithLocation(16, 23));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
404
case ErrorCode.
WRN_EscapeVariable
: