55 references to ERR_ScopedDiscard
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (1)
825
diagnostics.Add(ErrorCode.
ERR_ScopedDiscard
, scopedType.ScopedKeyword.GetLocation());
Binder\Binder_Expressions.cs (1)
3238
diagnostics.Add(ErrorCode.
ERR_ScopedDiscard
, scopedType.ScopedKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
2295
or ErrorCode.
ERR_ScopedDiscard
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (52)
Semantics\RefFieldTests.cs (52)
12311
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 10),
12314
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 10),
12317
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 10),
12323
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 10),
12329
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 10),
12335
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 10),
12368
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 10),
12371
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 10),
12374
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 10),
12380
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 10),
12386
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 10),
12392
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 10),
12537
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(6, 2),
12540
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 2),
12543
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 2),
12549
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2),
12555
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 2),
12561
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 2),
12707
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 16),
12710
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 16),
12713
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 16),
12719
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 16),
12725
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 16),
12731
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 16),
12755
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(21, 16),
12773
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 16),
12776
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 16),
12779
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 16),
12785
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 16),
12791
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 16),
12797
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 16),
12812
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(21, 16),
12947
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(6, 8),
12950
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 8),
12953
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 8),
12959
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 8),
12965
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 8),
12971
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 8),
13279
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2)
13287
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2)
14764
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 32),
14773
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 36),
14785
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 45),
14794
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 35),
14803
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 39),
14815
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 48),
14826
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 32),
14832
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 36),
14841
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 45),
14847
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 35),
14853
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 39),
14862
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 48),