32 references to ERR_ThisStructNotInAnonMeth
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
2546
return new CSDiagnosticInfo(ErrorCode.
ERR_ThisStructNotInAnonMeth
);
Errors\ErrorFacts.cs (1)
1331
or ErrorCode.
ERR_ThisStructNotInAnonMeth
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenReadonlyStructTests.cs (10)
714
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "x").WithLocation(19, 24),
717
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "x").WithLocation(20, 32),
720
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(26, 24),
723
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(27, 32),
726
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(33, 24),
729
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(34, 32),
732
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(40, 37),
735
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(41, 45),
738
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(47, 37),
741
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(48, 45)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
FieldKeywordTests.cs (2)
10698
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "P").WithLocation(9, 22),
10701
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "P").WithLocation(10, 21));
FlowAnalysis\FlowDiagnosticTests.cs (6)
1583
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(20, 13),
1586
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(25, 13),
2709
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(8, 28));
2715
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(8, 28));
2742
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(7, 20));
2751
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(7, 20));
FlowAnalysis\LocalFunctions.cs (6)
729
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "_x").WithLocation(10, 20),
745
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "_x").WithLocation(10, 20));
1475
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "_x").WithLocation(12, 13),
1478
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(13, 20));
1506
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(12, 20),
1516
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(12, 20));
Semantics\PrimaryConstructorTests.cs (4)
7935
diagnosticsToCheck.Where(d => d.Code is (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
).Any())
7940
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "p1").WithLocation(2000, 1)
7950
diagnosticsToCheck.Where(d => d.Code is (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
).Any())
7955
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "p1").WithLocation(2000, 1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SemanticErrorTests.cs (2)
16303
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
, Line = 13, Column = 17 } });
16337
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
, Line = 13, Column = 17 } });