29 references to WRN_EscapeVariable
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (5)
1128
Error(diagnostics, inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, localSymbol);
1288
Error(diagnostics, _inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, node, parameter);
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);
5752
Error(diagnostics, _inUnsafeRegion ? ErrorCode.
WRN_EscapeVariable
: ErrorCode.ERR_EscapeVariable, initExpr.Syntax, expr.Syntax);
Errors\ErrorFacts.cs (2)
525
case ErrorCode.
WRN_EscapeVariable
:
2324
or ErrorCode.
WRN_EscapeVariable
Generated\ErrorFacts.Generated.cs (1)
296
case ErrorCode.
WRN_EscapeVariable
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
11307
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "s").WithArguments("s").WithLocation(10, 20)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\RefEscapingTests.cs (14)
2225
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(16, 35),
2228
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 23)
2235
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "rInner").WithArguments("rInner").WithLocation(16, 35),
2238
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "inner").WithArguments("inner").WithLocation(19, 23),
4725
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(27, 44),
4728
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(30, 35),
4731
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(33, 60),
4737
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "sInner").WithArguments("sInner").WithLocation(36, 47),
4743
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "ternarySame1").WithArguments("ternarySame1").WithLocation(39, 47),
5104
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
5154
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
5204
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(11, 15));
5256
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "x").WithArguments("x").WithLocation(13, 18));
5283
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));
17929
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(4, 53),
17932
Diagnostic(ErrorCode.
WRN_EscapeVariable
, "y").WithArguments("scoped R y").WithLocation(5, 49));
18898
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)
416
case ErrorCode.
WRN_EscapeVariable
: