38 references to ERR_RefLocalAcrossAwait
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
639
or ErrorCode.
ERR_RefLocalAcrossAwait
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
100
diagnostics.Add(ErrorCode.
ERR_RefLocalAcrossAwait
, syntax.Location);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAwaitForeachTests.cs (3)
2694
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "i").WithLocation(11, 19)
4081
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "s.F").WithLocation(10, 13)
4185
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "s.F").WithLocation(9, 13)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (27)
RefUnsafeInIteratorAndAsyncTests.cs (7)
229
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(8, 30));
333
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(10, 34)
554
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(8, 30));
585
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(8, 39)
613
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(10, 34));
634
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(8, 30));
656
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(9, 30));
Semantics\InlineArrayTests.cs (20)
21214
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(13, 13),
21217
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(13, 18),
21220
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(14, 34)
21319
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "buffer").WithLocation(11, 31)
21383
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(22, 27)
21467
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(11, 34)
21560
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(16, 34)
21612
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(17, 27),
21615
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(23, 27),
21618
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(25, 27)
22467
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(21, 13),
22470
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(21, 18),
22473
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(22, 34)
22588
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "buffer").WithLocation(19, 31)
22650
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(21, 27)
22734
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(11, 34)
22823
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(14, 34)
22873
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(15, 27),
22876
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(21, 27),
22879
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "f").WithLocation(23, 27)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\RefEscapingTests.cs (1)
7561
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(10, 9));
Semantics\RefLocalsAndReturnsTests.cs (4)
1301
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "x").WithLocation(15, 27)
1373
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "x").WithLocation(12, 30));
3262
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(9, 18)
3422
Diagnostic(ErrorCode.
ERR_RefLocalAcrossAwait
, "y").WithLocation(10, 19)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2992
case ErrorCode.
ERR_RefLocalAcrossAwait
: