67 references to ERR_ExternHasBody
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Statements.cs (1)
585
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, localSymbol.Locations[0], localSymbol);
Errors\ErrorFacts.cs (1)
701
case ErrorCode.
ERR_ExternHasBody
:
Symbols\Source\SourceConstructorSymbol.cs (1)
62
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
46
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, this.Location, this);
Symbols\Source\SourceDestructorSymbol.cs (1)
45
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
973
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
102
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\InheritanceBindingTests.cs (2)
352
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("AbstractGoo.IGoo.Event11.add").WithLocation(34, 47),
355
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("AbstractGoo.IGoo.Event11.remove").WithLocation(34, 55),
Semantics\LocalFunctionTests.cs (8)
1131
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local2").WithArguments("local2()").WithLocation(11, 38),
1137
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local3").WithArguments("local3()").WithLocation(12, 37),
1143
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local8").WithArguments("local8()").WithLocation(19, 45),
1146
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local9").WithArguments("local9()").WithLocation(20, 44),
1149
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local11").WithArguments("local11()").WithLocation(23, 45),
1152
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local12").WithArguments("local12()").WithLocation(24, 44));
1355
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local2").WithArguments("local2()").WithLocation(13, 28));
4378
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local1").WithArguments("local1(out int)").WithLocation(13, 28),
Semantics\TopLevelStatementsTests.cs (1)
4422
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "localH").WithArguments("localH()").WithLocation(16, 13),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (47)
Symbols\DefaultInterfaceImplementationTests.cs (28)
10399
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M2").WithArguments("I1.M2()").WithLocation(5, 17),
10510
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M4").WithArguments("I1.M4()").WithLocation(7, 24),
16794
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "0").WithArguments("I2.P2.get").WithLocation(8, 22),
16797
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I3.P3.get").WithLocation(12, 27),
16800
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I3.P3.set").WithLocation(12, 37),
16803
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I4.P4.get").WithLocation(16, 29),
16806
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I4.P4.set").WithLocation(16, 47),
24117
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "0").WithArguments("I2.this[int].get").WithLocation(8, 31),
24123
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I3.this[int].get").WithLocation(12, 36),
24126
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I3.this[int].set").WithLocation(12, 46),
24129
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I4.this[int].get").WithLocation(16, 38),
24132
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I4.this[int].set").WithLocation(16, 56),
26627
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.P11.add").WithLocation(14, 37),
26630
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.P11.remove").WithLocation(14, 43),
26994
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.P11.add").WithLocation(14, 37),
27000
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.P11.remove").WithLocation(14, 43),
27087
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.P11.add").WithLocation(14, 37),
27093
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.P11.remove").WithLocation(14, 43),
30223
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I3.P3.add").WithLocation(12, 43),
30226
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I3.P3.remove").WithLocation(12, 62),
30229
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I4.P4.add").WithLocation(16, 45),
30232
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I4.P4.remove").WithLocation(16, 63),
33706
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M1").WithArguments("I1.I2.M1()").WithLocation(9, 20 + implModifiers.Length)
37759
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I1.I2.M1.set").WithLocation(10, 7)
37925
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I1.I2.M1.set").WithLocation(10, 7)
42823
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I1.I2.this[int].set").WithLocation(10, 7)
44432
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "I18").WithArguments("I18.I18()").WithLocation(82, 19),
44435
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "I19").WithArguments("I19.I19()").WithLocation(86, 19)
Symbols\StaticAbstractMembersInInterfacesTests.cs (5)
5016
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M01").WithArguments("I1.M01()").WithLocation(4, 32),
5019
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I1.P01.get").WithLocation(5, 38),
5022
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.E01.add").WithLocation(6, 53),
5025
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.E01.remove").WithLocation(6, 60),
5028
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(7, 38)
Symbols\SymbolErrorTests.cs (13)
2655
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "C").WithArguments("NS.C.C()").WithLocation(6, 16),
2658
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M1").WithArguments("NS.C.M1()").WithLocation(7, 21),
2661
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M2").WithArguments("NS.C.M2()").WithLocation(8, 20),
2664
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("NS.C.P1.get").WithLocation(9, 28),
2667
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("NS.C.P1.set").WithLocation(9, 49),
2670
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "1").WithArguments("NS.C.P2.get").WithLocation(10, 26),
2673
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("NS.C.E.add").WithLocation(11, 40),
2676
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("NS.C.E.remove").WithLocation(11, 48),
2679
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "+").WithArguments("NS.C.operator +(NS.C, NS.C)").WithLocation(12, 43),
2682
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "-").WithArguments("NS.C.operator -(NS.C, NS.C)").WithLocation(13, 43));
18445
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "B").WithArguments("B.B()").WithLocation(8, 17)
18468
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "B").WithArguments("B.B()").WithLocation(8, 17)
18540
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "B").WithArguments("B.B()").WithLocation(8, 17)
Symbols\UserDefinedOperatorErrorTests.cs (1)
242
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "^").WithArguments("C.operator ^(C, C)").WithLocation(13, 39),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\LocalFunctionParsingTests.cs (2)
791
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local").WithArguments("local()").WithLocation(6, 21),
801
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local").WithArguments("local()").WithLocation(6, 21),