54 references to ERR_RefReturnStructThis
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1311
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnStructThis : ErrorCode.
ERR_RefReturnStructThis
, node);
Errors\ErrorFacts.cs (1)
1792
or ErrorCode.
ERR_RefReturnStructThis
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenRefReadonlyReturnTests.cs (2)
1078
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(8, 20),
1081
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "x").WithLocation(11, 44)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
RefStructInterfacesTests.cs (8)
913
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "f").WithLocation(8, 20)
935
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "f").WithLocation(8, 20)
1501
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "f").WithLocation(8, 20)
1523
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "f").WithLocation(8, 20)
2077
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "f").WithLocation(8, 20)
2099
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "f").WithLocation(8, 20)
29024
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "genericBuffer").WithLocation(1000, 16),
29027
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "directBuffer").WithLocation(2000, 16)
Semantics\InlineArrayTests.cs (12)
2675
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 32),
2987
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 32),
6333
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 37),
6626
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 47),
9875
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(15, 20)
10226
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(13, 54)
15349
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 37),
15355
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(14, 45),
15816
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 37),
15822
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(14, 45),
15858
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 76),
15864
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(14, 92),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (30)
Semantics\RefEscapingTests.cs (1)
4905
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "x").WithLocation(31, 28)
Semantics\RefFieldTests.cs (23)
2883
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(3, 25),
2886
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(7, 25)
10130
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "t").WithLocation(5, 31));
18729
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(5, 34),
18732
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 51));
18750
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(5, 34),
18753
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 51));
20300
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(4, 23),
20303
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(5, 32));
20325
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(5, 32));
20369
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "@field").WithLocation(11, 26),
22399
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 47));
22428
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 45));
22950
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_field").WithLocation(5, 39));
23059
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(11, 24),
23065
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(15, 24),
23071
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(22, 23),
23077
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(26, 23));
23095
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_field").WithLocation(5, 37));
23191
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_t").WithLocation(7, 20));
23475
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_t").WithLocation(7, 50));
28809
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(31, 24),
28815
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(36, 24));
Semantics\RefLocalsAndReturnsTests.cs (6)
2269
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(10, 24),
2272
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "x").WithLocation(15, 24),
2275
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this.x").WithLocation(20, 24),
4028
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "d").WithLocation(10, 20)
4077
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "i").WithLocation(13, 20)
4191
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(6, 20));