28 references to WRN_EscapeVariable
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.ValueChecks.cs (4)
904
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, localSymbol);
1067
Error(diagnostics, _inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, parameter);
3934
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, expr.Syntax);
3943
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, localSymbol);
Errors\ErrorFacts.cs (2)
512
case ErrorCode.
WRN_EscapeVariable
:
2269
case ErrorCode.
WRN_EscapeVariable
:
Generated\ErrorFacts.Generated.cs (1)
296
case ErrorCode.
WRN_EscapeVariable
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
11260
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 20)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\RefEscapingTests.cs (15)
2219
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(16, 35),
2222
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 23)
2229
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(16, 35),
2232
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 23),
3363
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(27, 44),
3366
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(30, 35),
3369
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(33, 60),
3375
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(36, 47),
3381
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "ternarySame1").WithArguments("ternarySame1").WithLocation(39, 47),
3739
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
3789
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
3839
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
3891
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(13, 18));
3918
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(10, 15),
3921
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 11));
Semantics\RefFieldTests.cs (4)
2537
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "r2.F").WithArguments("r2").WithLocation(9, 20));
10122
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "r2").WithArguments("r2").WithLocation(13, 18));
17314
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(4, 53),
17317
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(5, 49));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
394
case ErrorCode.
WRN_EscapeVariable
: