30 references to ERR_ThisStructNotInAnonMeth
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
2286
Error(diagnostics, ErrorCode.
ERR_ThisStructNotInAnonMeth
, thisOrBaseToken);
Errors\ErrorFacts.cs (1)
1270
case 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.Emit2.UnitTests (12)
FlowAnalysis\FlowDiagnosticTests.cs (6)
1565
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(20, 13),
1568
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(25, 13),
2691
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(8, 28));
2697
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(8, 28));
2724
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(7, 20));
2733
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "F").WithLocation(7, 20));
FlowAnalysis\LocalFunctions.cs (6)
729
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "_x").WithLocation(10, 20),
739
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "_x").WithLocation(10, 20));
1469
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "_x").WithLocation(12, 13),
1472
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(13, 20));
1500
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(12, 20)
1507
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "this").WithLocation(12, 20));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\PrimaryConstructorTests.cs (4)
7319
diagnosticsToCheck.Where(d => d.Code is (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
).Any())
7324
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "p1").WithLocation(2000, 1)
7334
diagnosticsToCheck.Where(d => d.Code is (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
).Any())
7339
Diagnostic(ErrorCode.
ERR_ThisStructNotInAnonMeth
, "p1").WithLocation(2000, 1)
Semantics\SemanticErrorTests.cs (2)
16177
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
, Line = 13, Column = 17 } });
16211
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_ThisStructNotInAnonMeth
, Line = 13, Column = 17 } });