34 references to ERR_RefReturnStructThis
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1090
Error(diagnostics, inUnsafeRegion ? ErrorCode.WRN_RefReturnStructThis : ErrorCode.
ERR_RefReturnStructThis
, node);
Errors\ErrorFacts.cs (1)
1730
case 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.Semantic.UnitTests (30)
Semantics\RefEscapingTests.cs (1)
3543
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "x").WithLocation(31, 28)
Semantics\RefFieldTests.cs (23)
2820
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(3, 25),
2823
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(7, 25)
9618
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "t").WithLocation(5, 31));
18117
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(5, 34),
18120
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 51));
18138
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(5, 34),
18141
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "F").WithLocation(6, 51));
19684
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(4, 23),
19687
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(5, 32));
19709
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(5, 32));
19753
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "field").WithLocation(11, 26),
19756
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "refField = ref this.field").WithLocation(18, 24),
19759
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "refField = ref this.field").WithLocation(23, 23),
21803
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_field").WithLocation(5, 39));
21912
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(11, 24),
21918
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(15, 24),
21924
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(22, 23),
21930
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(26, 23));
21948
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_field").WithLocation(5, 37));
22044
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_t").WithLocation(7, 20));
22328
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "_t").WithLocation(7, 50));
27437
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(31, 24),
27443
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(36, 24));
Semantics\RefLocalsAndReturnsTests.cs (6)
2168
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(10, 24),
2171
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "x").WithLocation(15, 24),
2174
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this.x").WithLocation(20, 24),
3633
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "d").WithLocation(10, 20)
3682
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "i").WithLocation(13, 20)
3796
Diagnostic(ErrorCode.
ERR_RefReturnStructThis
, "this").WithLocation(6, 20));