133 references to ERR_AbstractHasBody
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
919
or ErrorCode.
ERR_AbstractHasBody
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1048
diagnostics.Add(ErrorCode.
ERR_AbstractHasBody
, location, this);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
130
diagnostics.Add(ErrorCode.
ERR_AbstractHasBody
, location, this);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (9)
733
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("C1.operator " + op + @"()").WithLocation(3, 34),
736
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("C1.operator checked " + op + @"()").WithLocation(4, 42)
761
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("I2.I1.operator " + op + @"()").WithLocation(10, 29),
764
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("I2.I1.operator checked " + op + @"()").WithLocation(11, 37)
8885
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("C1.operator " + op + @"(int)").WithLocation(3, 34)
8890
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("C1.operator " + op + @"(int)").WithLocation(3, 34),
8893
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("C1.operator checked " + op + @"(int)").WithLocation(5, 42)
8917
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("I2.I1.operator " + op + @"(int)").WithLocation(9, 29)
8941
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, op).WithArguments("I2.I1.operator checked " + op + @"(int)").WithLocation(10, 37)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
4414
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "localF").WithArguments("<invalid-global-code>.localF()").WithLocation(12, 15),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (120)
Symbols\DefaultInterfaceImplementationTests.cs (56)
10310
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M3").WithArguments("I1.M3()").WithLocation(6, 27),
10683
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("I1.M1()").WithLocation(4, 19),
10686
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M2").WithArguments("I1.M2()").WithLocation(5, 27),
10692
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M3").WithArguments("I1.M3()").WithLocation(6, 26),
16498
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.P1.get").WithLocation(8, 31),
16504
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.P2.get").WithLocation(14, 9),
16507
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.P2.set").WithLocation(15, 9),
16513
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I3.P3.set").WithLocation(20, 31),
16519
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.P4.get").WithLocation(24, 31),
16525
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I5.P5.get").WithLocation(30, 9),
16528
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I5.P5.set").WithLocation(31, 9),
16534
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I6.P6.set").WithLocation(36, 31),
16540
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I7.P7.get").WithLocation(40, 32),
17202
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "0").WithArguments("I2.P2.get").WithLocation(8, 32),
17205
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.P1.get").WithLocation(4, 22),
17208
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.P1.set").WithLocation(4, 32),
17220
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.P4.get").WithLocation(16, 30),
17223
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I4.P4.set").WithLocation(16, 48),
24082
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.this[int].get").WithLocation(8, 40),
24088
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.this[int].get").WithLocation(14, 9),
24091
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.this[int].set").WithLocation(15, 9),
24097
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I3.this[int].set").WithLocation(20, 40),
24103
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.this[int].get").WithLocation(24, 40),
24109
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I5.this[int].get").WithLocation(30, 9),
24112
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I5.this[int].set").WithLocation(31, 9),
24118
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I6.this[int].set").WithLocation(36, 40),
24124
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I7.this[int].get").WithLocation(40, 41),
24378
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.this[int].get").WithLocation(4, 31),
24381
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.this[int].set").WithLocation(4, 41),
24387
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "0").WithArguments("I2.this[int].get").WithLocation(8, 41),
24396
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I4.this[int].get").WithLocation(16, 39),
24399
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I4.this[int].set").WithLocation(16, 57),
33666
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("I1.I4.M1()").WithLocation(18, 32 + implModifiers.Length),
37800
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.I4.M1.get").WithLocation(21, 9),
37806
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.I4.M1.set").WithLocation(22, 19),
42868
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.I4.this[int].get").WithLocation(21, 9),
42874
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I1.I4.this[int].set").WithLocation(22, 19),
51973
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("I2.I1.M1()").WithLocation(9, 22 + implModifiers.Length),
53582
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
53585
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(15, 9),
53681
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
53684
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(12, 9),
55657
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
55693
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.P1.get").WithLocation(11, 9),
55726
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I2.I1.P1.get").WithLocation(9, 27 + implModifiers.Length),
56588
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(11, 9),
56624
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.P1.set").WithLocation(11, 9),
60033
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
60036
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(15, 9),
60069
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
60072
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(12, 9),
60980
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
61012
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I2.I1.this[int].get").WithLocation(11, 9),
61041
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "throw null").WithArguments("I2.I1.this[int].get").WithLocation(9, 36),
61734
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(11, 9),
61766
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("I2.I1.this[int].set").WithLocation(11, 9),
Symbols\PartialPropertiesTests.cs (6)
2276
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("C.P2.get").WithLocation(5, 38),
2279
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("C.P2.set").WithLocation(5, 49),
2285
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("C.P3.get").WithLocation(8, 38),
2288
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("C.P3.set").WithLocation(8, 49),
2297
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("C.P5.get").WithLocation(14, 38),
2300
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("C.P5.set").WithLocation(14, 49));
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),
1250
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(8, 34),
1527
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M01").WithArguments("I1.M01()").WithLocation(8, 34),
1987
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M01.get").WithLocation(4, 32),
2008
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M05.get").WithLocation(16, 40),
2017
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M06.get").WithLocation(19, 39),
2026
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M07.get").WithLocation(22, 41),
2164
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M01.get").WithLocation(4, 32),
2173
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M05.get").WithLocation(16, 40),
2179
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M06.get").WithLocation(19, 39),
2185
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M07.get").WithLocation(22, 41),
2350
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M01.get").WithLocation(4, 32),
2374
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M05.get").WithLocation(16, 40),
2383
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M06.get").WithLocation(19, 39),
2392
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("I1.M07.get").WithLocation(22, 41),
3522
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(4, 32),
3546
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "~").WithArguments("I1.operator ~(I1)").WithLocation(19, 39),
3555
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1, I1)").WithLocation(22, 41),
3711
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(4, 32),
3723
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "~").WithArguments("I1.operator ~(I1)").WithLocation(19, 39),
3729
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1, I1)").WithLocation(22, 41),
3909
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(4, 32),
3936
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "~").WithArguments("I1.operator ~(I1)").WithLocation(19, 39),
3945
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "+").WithArguments("I1.operator +(I1, I1)").WithLocation(22, 41),
4008
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I1.operator !=(I1, I1)").WithLocation(6, 34),
4035
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I3.operator !=(I3, I3)").WithLocation(20, 41)
4053
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I1.operator !=(I1, I1)").WithLocation(6, 34),
4080
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I3.operator !=(I3, I3)").WithLocation(20, 41)
4092
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I1.operator !=(I1, I1)").WithLocation(6, 34),
4113
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "!=").WithArguments("I3.operator !=(I3, I3)").WithLocation(20, 41)
4203
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I1").WithArguments("I1.explicit operator I1(bool)").WithLocation(6, 39),
4242
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I3").WithArguments("I3.explicit operator I3(bool)").WithLocation(20, 46),
4266
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I1").WithArguments("I1.explicit operator I1(bool)").WithLocation(6, 39),
4305
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I3").WithArguments("I3.explicit operator I3(bool)").WithLocation(20, 46),
4323
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I1").WithArguments("I1.explicit operator I1(bool)").WithLocation(6, 39),
4356
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "I3").WithArguments("I3.explicit operator I3(bool)").WithLocation(20, 46),
Symbols\SymbolErrorTests.cs (5)
8063
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M1").WithArguments("NS.clx.M1()").WithLocation(5, 30),
8066
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M2").WithArguments("NS.clx.M2()").WithLocation(6, 34),
8069
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "M3").WithArguments("NS.clx.M3(sbyte)").WithLocation(7, 42),
8072
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "get").WithArguments("NS.clx.P.get").WithLocation(8, 36),
8075
Diagnostic(ErrorCode.
ERR_AbstractHasBody
, "set").WithArguments("NS.clx.P.set").WithLocation(8, 57),