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)
3165
diagnostics.Add(ErrorCode.
ERR_ScopedDiscard
, scopedType.ScopedKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
2294
or ErrorCode.
ERR_ScopedDiscard
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (52)
Semantics\RefFieldTests.cs (52)
12348
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 10),
12351
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 10),
12354
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 10),
12360
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 10),
12366
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 10),
12372
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 10),
12405
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 10),
12408
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 10),
12411
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 10),
12417
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 10),
12423
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 10),
12429
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 10),
12574
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(6, 2),
12577
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 2),
12580
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 2),
12586
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2),
12592
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 2),
12598
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 2),
12744
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 16),
12747
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 16),
12750
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 16),
12756
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 16),
12762
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 16),
12768
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 16),
12792
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(21, 16),
12810
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 16),
12813
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 16),
12816
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 16),
12822
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 16),
12828
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 16),
12834
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 16),
12849
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(21, 16),
12984
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(6, 8),
12987
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 8),
12990
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 8),
12996
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 8),
13002
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 8),
13008
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 8),
13316
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2)
13324
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2)
14801
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 32),
14810
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 36),
14822
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 45),
14831
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 35),
14840
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 39),
14852
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 48),
14863
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 32),
14869
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 36),
14878
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 45),
14884
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 35),
14890
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 39),
14899
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 48),