40 references to ERR_ScopedRefAndRefStructOnly
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Deconstruct.cs (1)
899
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
Binder\Binder_Expressions.cs (1)
2972
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
Binder\Binder_Statements.cs (1)
1104
localDiagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
Binder\ForEachLoopBinder.cs (1)
305
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
BoundTree\VariablePendingInference.cs (1)
69
diagnosticsOpt.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
,
Errors\ErrorFacts.cs (1)
2237
case ErrorCode.
ERR_ScopedRefAndRefStructOnly
:
Symbols\Source\ParameterHelpers.cs (1)
674
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, syntax.Location);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\LambdaTests.cs (1)
616
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped int n").WithLocation(5, 20));
Semantics\RefFieldTests.cs (32)
11172
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "params scoped object[] args").WithLocation(4, 20));
13936
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 21),
13939
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(10, 21),
13942
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(10, 21)
13966
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 17),
13969
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(9, 17)
13995
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 22),
13998
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(9, 22)
15172
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 25),
15175
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(9, 25)
15212
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(6, 26),
15215
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(6, 41)
16278
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(3, 17)
17459
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped S s").WithLocation(4, 20));
17478
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(4, 16),
17481
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(5, 16),
17484
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(6, 16),
17487
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(7, 16));
17508
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped E y").WithLocation(6, 34),
17511
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped E y").WithLocation(8, 39));
17530
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped C c").WithLocation(1, 17),
17633
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(9, 16),
17636
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(11, 16),
17639
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(11, 16)
17661
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped Unknown x").WithLocation(4, 20),
19403
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T? s").WithLocation(8, 17),
27027
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 22),
27030
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 22),
27033
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 22)
27066
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 23),
27069
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 23),
27072
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 23)