49 references to ERR_ScopedRefAndRefStructOnly
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Deconstruct.cs (1)
902
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
Binder\Binder_Expressions.cs (1)
3240
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
Binder\Binder_Statements.cs (1)
1103
localDiagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
Binder\ForEachLoopBinder.cs (1)
330
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, typeSyntax.Location);
BoundTree\VariablePendingInference.cs (1)
69
diagnosticsOpt.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
,
Errors\ErrorFacts.cs (1)
2293
or ErrorCode.
ERR_ScopedRefAndRefStructOnly
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1539
diagnostics.Add(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, ParameterSyntax);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
RefStructInterfacesTests.cs (5)
21198
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T z").WithLocation(13, 26),
21201
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T u").WithLocation(19, 23),
21204
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T u").WithLocation(25, 21),
21207
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T u").WithLocation(31, 24)
21301
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "T").WithLocation(19, 16)
Semantics\ExtensionTests.cs (1)
3985
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped int i").WithLocation(3, 15));
Semantics\ParamsCollectionTests.cs (4)
8709
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "params scoped IEnumerable<long> paramsParameter").WithLocation(100, 1)
8759
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "[UnscopedRef] params scoped IEnumerable<long> paramsParameter").WithLocation(100, 1),
8808
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "params scoped long[] paramsParameter").WithLocation(100, 1)
8858
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "[UnscopedRef] params scoped long[] paramsParameter").WithLocation(100, 1),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (32)
Semantics\LambdaTests.cs (1)
618
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped int n").WithLocation(5, 20));
Semantics\RefFieldTests.cs (31)
11688
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "params scoped object[] args").WithLocation(4, 20));
14496
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 21),
14499
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(10, 21),
14502
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(10, 21)
14526
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 17),
14529
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(9, 17)
14555
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 22),
14558
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(9, 22)
15732
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 25),
15735
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(9, 25)
15772
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(6, 26),
15775
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(6, 41)
16835
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(3, 17)
18074
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped S s").WithLocation(4, 20));
18093
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(4, 16),
18096
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(5, 16),
18099
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(6, 16),
18102
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T t").WithLocation(7, 16));
18123
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped E y").WithLocation(6, 34),
18126
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped E y").WithLocation(8, 39));
18145
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped C c").WithLocation(1, 17),
18248
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(9, 16),
18251
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(11, 16),
18254
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(11, 16)
20019
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "scoped T? s").WithLocation(8, 17),
28399
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 22),
28402
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 22),
28405
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 22)
28438
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "var").WithLocation(7, 23),
28441
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 23),
28444
Diagnostic(ErrorCode.
ERR_ScopedRefAndRefStructOnly
, "S<int>").WithLocation(8, 23)