26 references to ERR_LocalCantBeFixedAndHoisted
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1340
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)
13197
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(6, 29),
13200
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(7, 29),
13235
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(9, 50),
13238
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(10, 50),
13279
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(4, 15),
13282
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(5, 15)
13312
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(12, 15),
13315
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(13, 15)
13349
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x").WithLocation(7, 36),
13352
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.f").WithArguments("s").WithLocation(7, 40)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\SemanticErrorTests.cs (3)
16527
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&j").WithArguments("j"));
16560
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "data.buffer").WithArguments("data")
16586
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "t.i").WithArguments("t")
Semantics\UnsafeTests.cs (11)
6950
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
6970
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
6989
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
7010
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"));
7032
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7055
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7076
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7099
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s"));
7123
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&x").WithArguments("x"),
7126
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "&s.x").WithArguments("s")
7148
Diagnostic(ErrorCode.
ERR_LocalCantBeFixedAndHoisted
, "t.i").WithArguments("t")