118 references to ERR_AbstractHasBody
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
857
case ErrorCode.
ERR_AbstractHasBody
:
Symbols\Source\SourceMemberMethodSymbol.cs (1)
977
diagnostics.Add(ErrorCode.
ERR_AbstractHasBody
, location, this);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
106
diagnostics.Add(ErrorCode.
ERR_AbstractHasBody
, location, this);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
4401
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "localF").WithArguments("<invalid-global-code>.localF()").WithLocation(12, 15),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (114)
Symbols\DefaultInterfaceImplementationTests.cs (56)
10125
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M3").WithArguments("I1.M3()").WithLocation(6, 27),
10498
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("I1.M1()").WithLocation(4, 19),
10501
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M2").WithArguments("I1.M2()").WithLocation(5, 27),
10507
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M3").WithArguments("I1.M3()").WithLocation(6, 26),
16313
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.P1.get").WithLocation(8, 31),
16319
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.P2.get").WithLocation(14, 9),
16322
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.P2.set").WithLocation(15, 9),
16328
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I3.P3.set").WithLocation(20, 31),
16334
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.P4.get").WithLocation(24, 31),
16340
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I5.P5.get").WithLocation(30, 9),
16343
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I5.P5.set").WithLocation(31, 9),
16349
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I6.P6.set").WithLocation(36, 31),
16355
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I7.P7.get").WithLocation(40, 32),
17017
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "0").WithArguments("I2.P2.get").WithLocation(8, 32),
17020
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.P1.get").WithLocation(4, 22),
17023
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.P1.set").WithLocation(4, 32),
17035
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.P4.get").WithLocation(16, 30),
17038
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I4.P4.set").WithLocation(16, 48),
23897
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.this[int].get").WithLocation(8, 40),
23903
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.this[int].get").WithLocation(14, 9),
23906
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.this[int].set").WithLocation(15, 9),
23912
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I3.this[int].set").WithLocation(20, 40),
23918
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.this[int].get").WithLocation(24, 40),
23924
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I5.this[int].get").WithLocation(30, 9),
23927
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I5.this[int].set").WithLocation(31, 9),
23933
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I6.this[int].set").WithLocation(36, 40),
23939
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I7.this[int].get").WithLocation(40, 41),
24193
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.this[int].get").WithLocation(4, 31),
24196
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.this[int].set").WithLocation(4, 41),
24202
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "0").WithArguments("I2.this[int].get").WithLocation(8, 41),
24211
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.this[int].get").WithLocation(16, 39),
24214
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I4.this[int].set").WithLocation(16, 57),
33481
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("I1.I4.M1()").WithLocation(18, 32 + implModifiers.Length),
37615
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.I4.M1.get").WithLocation(21, 9),
37621
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.I4.M1.set").WithLocation(22, 19),
42683
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.I4.this[int].get").WithLocation(21, 9),
42689
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.I4.this[int].set").WithLocation(22, 19),
51782
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("I2.I1.M1()").WithLocation(9, 22 + implModifiers.Length),
53391
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
53394
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(15, 9),
53490
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
53493
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(12, 9),
55466
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
55502
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
55535
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I2.I1.P1.get").WithLocation(9, 27 + implModifiers.Length),
56397
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(11, 9),
56433
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(11, 9),
59842
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
59845
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(15, 9),
59878
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
59881
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(12, 9),
60789
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
60821
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
60850
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I2.I1.this[int].get").WithLocation(9, 36),
61543
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(11, 9),
61575
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(11, 9),
Symbols\Source\ExpressionBodiedMethodTests.cs (3)
110
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M").WithArguments("C.M()").WithLocation(4, 23));
124
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M").WithArguments("C.M()").WithLocation(4, 24),
141
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M").WithArguments("C.M()").WithLocation(4, 17),
Symbols\Source\ExpressionBodiedPropertyTests.cs (3)
71
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "1").WithArguments("C.P.get").WithLocation(4, 28));
85
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "1").WithArguments("C.P.get").WithLocation(4, 29),
105
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "1").WithArguments("C.P.get").WithLocation(4, 22));
Symbols\StaticAbstractMembersInInterfacesTests.cs (47)
319
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(4, 26),
337
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M05").WithArguments("I1.M05()").WithLocation(16, 34),
349
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M06").WithArguments("I1.M06()").WithLocation(19, 33),
358
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M07").WithArguments("I1.M07()").WithLocation(22, 35),
514
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(4, 26),
523
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M05").WithArguments("I1.M05()").WithLocation(16, 34),
529
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M06").WithArguments("I1.M06()").WithLocation(19, 33),
535
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M07").WithArguments("I1.M07()").WithLocation(22, 35),
718
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(4, 26),
739
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M05").WithArguments("I1.M05()").WithLocation(16, 34),
751
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M06").WithArguments("I1.M06()").WithLocation(19, 33),
760
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M07").WithArguments("I1.M07()").WithLocation(22, 35),
1268
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(8, 34),
1545
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(8, 34),
2005
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M01.get").WithLocation(4, 32),
2026
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M05.get").WithLocation(16, 40),
2035
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M06.get").WithLocation(19, 39),
2044
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M07.get").WithLocation(22, 41),
2182
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M01.get").WithLocation(4, 32),
2191
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M05.get").WithLocation(16, 40),
2197
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M06.get").WithLocation(19, 39),
2203
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M07.get").WithLocation(22, 41),
2368
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M01.get").WithLocation(4, 32),
2392
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M05.get").WithLocation(16, 40),
2401
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M06.get").WithLocation(19, 39),
2410
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M07.get").WithLocation(22, 41),
3540
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(4, 32),
3564
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "~").WithArguments("I1.operator ~(I1)").WithLocation(19, 39),
3573
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1, I1)").WithLocation(22, 41),
3729
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(4, 32),
3741
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "~").WithArguments("I1.operator ~(I1)").WithLocation(19, 39),
3747
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1, I1)").WithLocation(22, 41),
3927
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(4, 32),
3954
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "~").WithArguments("I1.operator ~(I1)").WithLocation(19, 39),
3963
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1, I1)").WithLocation(22, 41),
4026
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I1.operator !=(I1, I1)").WithLocation(6, 34),
4053
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I3.operator !=(I3, I3)").WithLocation(20, 41)
4071
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I1.operator !=(I1, I1)").WithLocation(6, 34),
4098
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I3.operator !=(I3, I3)").WithLocation(20, 41)
4110
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I1.operator !=(I1, I1)").WithLocation(6, 34),
4131
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I3.operator !=(I3, I3)").WithLocation(20, 41)
4221
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I1").WithArguments("I1.explicit operator I1(bool)").WithLocation(6, 39),
4260
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I3").WithArguments("I3.explicit operator I3(bool)").WithLocation(20, 46),
4284
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I1").WithArguments("I1.explicit operator I1(bool)").WithLocation(6, 39),
4323
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I3").WithArguments("I3.explicit operator I3(bool)").WithLocation(20, 46),
4341
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I1").WithArguments("I1.explicit operator I1(bool)").WithLocation(6, 39),
4374
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I3").WithArguments("I3.explicit operator I3(bool)").WithLocation(20, 46),
Symbols\SymbolErrorTests.cs (5)
7987
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("NS.clx.M1()").WithLocation(5, 30),
7990
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M2").WithArguments("NS.clx.M2()").WithLocation(6, 34),
7993
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M3").WithArguments("NS.clx.M3(sbyte)").WithLocation(7, 42),
7996
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("NS.clx.P.get").WithLocation(8, 36),
7999
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("NS.clx.P.set").WithLocation(8, 57),