26 references to ERR_LocalCantBeFixedAndHoisted
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1279
case ErrorCode.
ERR_LocalCantBeFixedAndHoisted
:
FlowAnalysis\DefiniteAssignment.cs (1)
672
diagnostics.Add(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, location, captured.Name);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\PrimaryConstructorTests.cs (10)
12169
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(6, 29),
12172
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(7, 29),
12207
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(9, 50),
12210
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(10, 50),
12251
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(4, 15),
12254
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(5, 15)
12284
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(12, 15),
12287
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(13, 15)
12321
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(7, 36),
12324
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(7, 40)
Semantics\SemanticErrorTests.cs (3)
16367
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&j").WithArguments("j"));
16400
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "data.buffer").WithArguments("data")
16426
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "t.i").WithArguments("t")
Semantics\UnsafeTests.cs (11)
4112
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
4132
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
4151
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
4172
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
4194
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
4217
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
4238
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
4261
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
4285
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"),
4288
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s")
4310
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "t.i").WithArguments("t")