26 references to ERR_LocalCantBeFixedAndHoisted
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1351
or ErrorCode.
ERR_LocalCantBeFixedAndHoisted
FlowAnalysis\DefiniteAssignment.cs (1)
645
diagnostics.Add(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, location, captured.Name);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\PrimaryConstructorTests.cs (10)
13327
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(6, 29),
13330
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(7, 29),
13365
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(9, 50),
13368
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(10, 50),
13409
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(4, 15),
13412
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(5, 15)
13442
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(12, 15),
13445
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(13, 15)
13479
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(7, 36),
13482
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(7, 40)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\SemanticErrorTests.cs (3)
16529
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&j").WithArguments("j"));
16562
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "data.buffer").WithArguments("data")
16588
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "t.i").WithArguments("t")
Semantics\UnsafeTests.cs (11)
6951
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
6971
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
6990
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
7011
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
7033
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7056
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7077
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7100
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7124
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"),
7127
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s")
7149
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "t.i").WithArguments("t")