55 references to ERR_ScopedDiscard
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Deconstruct.cs (1)
827
diagnostics.Add(ErrorCode.
ERR_ScopedDiscard
, scopedType.ScopedKeyword.GetLocation());
Binder\Binder_Expressions.cs (1)
3239
diagnostics.Add(ErrorCode.
ERR_ScopedDiscard
, scopedType.ScopedKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
2300
or ErrorCode.
ERR_ScopedDiscard
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (52)
Semantics\RefFieldTests.cs (52)
12383
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 10),
12386
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 10),
12389
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 10),
12395
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 10),
12401
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 10),
12407
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 10),
12440
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 10),
12443
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 10),
12446
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 10),
12452
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 10),
12458
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 10),
12464
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 10),
12609
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(6, 2),
12612
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 2),
12615
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 2),
12621
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2),
12627
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 2),
12633
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 2),
12779
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 16),
12782
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 16),
12785
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 16),
12791
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 16),
12797
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 16),
12803
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 16),
12827
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(21, 16),
12845
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 16),
12848
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 16),
12851
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 16),
12857
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 16),
12863
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(14, 16),
12869
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(15, 16),
12884
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(21, 16),
13019
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(6, 8),
13022
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 8),
13025
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 8),
13031
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 8),
13037
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(10, 8),
13043
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 8),
13351
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2)
13359
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 2)
14836
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 32),
14845
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 36),
14857
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 45),
14866
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 35),
14875
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 39),
14887
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 48),
14898
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(7, 32),
14904
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(8, 36),
14913
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(9, 45),
14919
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(11, 35),
14925
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(12, 39),
14934
Diagnostic(ErrorCode.
ERR_ScopedDiscard
, "scoped").WithLocation(13, 48),