78 references to ERR_ExternHasBody
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Statements.cs (1)
590
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, localSymbol.GetFirstLocation(), localSymbol);
Errors\ErrorFacts.cs (1)
762
or ErrorCode.
ERR_ExternHasBody
Symbols\Source\SourceConstructorSymbol.cs (1)
65
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Symbols\Source\SourceCustomEventAccessorSymbol.cs (1)
47
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, this.Location, this);
Symbols\Source\SourceDestructorSymbol.cs (1)
41
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1044
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
126
diagnostics.Add(ErrorCode.
ERR_ExternHasBody
, location, this);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Semantics\ExtensionOperatorsTests.cs (4)
3616
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "-").WithArguments("Extensions1.extension(C2).operator -(C2)").WithLocation(7, 42),
9834
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "--").WithArguments("Extensions1.extension(C2).operator --()").WithLocation(7, 37),
18352
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "-").WithArguments("Extensions1.extension(C2).operator -(C2, C2)").WithLocation(7, 42),
26434
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "-=").WithArguments("Extensions1.extension(C2).operator -=(C2)").WithLocation(7, 37),
Semantics\ExtensionTests.cs (7)
37524
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M").WithArguments("E.extension(int).M()").WithLocation(5, 21),
37527
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("E.extension(int).P.get").WithLocation(6, 24),
37530
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("E.extension(int).P.set").WithLocation(6, 34));
38149
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("E.extension(int).this[int].get").WithLocation(5, 34));
38432
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M").WithArguments("E.extension(int).M()").WithLocation(7, 21),
38435
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("E.extension(int).P.get").WithLocation(12, 13),
38438
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("E.extension(int).P.set").WithLocation(14, 13));
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));
4462
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "local1").WithArguments("local1(out int)").WithLocation(13, 28),
Semantics\TopLevelStatementsTests.cs (1)
4435
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "localH").WithArguments("localH()").WithLocation(16, 13),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (47)
Symbols\DefaultInterfaceImplementationTests.cs (28)
10584
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M2").WithArguments("I1.M2()").WithLocation(5, 17),
10695
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M4").WithArguments("I1.M4()").WithLocation(7, 24),
16979
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "0").WithArguments("I2.P2.get").WithLocation(8, 22),
16982
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I3.P3.get").WithLocation(12, 27),
16985
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I3.P3.set").WithLocation(12, 37),
16988
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I4.P4.get").WithLocation(16, 29),
16991
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I4.P4.set").WithLocation(16, 47),
24302
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "0").WithArguments("I2.this[int].get").WithLocation(8, 31),
24308
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I3.this[int].get").WithLocation(12, 36),
24311
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I3.this[int].set").WithLocation(12, 46),
24314
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I4.this[int].get").WithLocation(16, 38),
24317
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I4.this[int].set").WithLocation(16, 56),
26812
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.P11.add").WithLocation(14, 37),
26815
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.P11.remove").WithLocation(14, 43),
27179
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.P11.add").WithLocation(14, 37),
27185
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.P11.remove").WithLocation(14, 43),
27272
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.P11.add").WithLocation(14, 37),
27278
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.P11.remove").WithLocation(14, 43),
30408
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I3.P3.add").WithLocation(12, 43),
30411
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I3.P3.remove").WithLocation(12, 62),
30414
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I4.P4.add").WithLocation(16, 45),
30417
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I4.P4.remove").WithLocation(16, 63),
33891
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M1").WithArguments("I1.I2.M1()").WithLocation(9, 20 + implModifiers.Length)
37944
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I1.I2.M1.set").WithLocation(10, 7)
38110
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I1.I2.M1.set").WithLocation(10, 7)
43008
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("I1.I2.this[int].set").WithLocation(10, 7)
44623
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "I18").WithArguments("I18.I18()").WithLocation(82, 19),
44626
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "I19").WithArguments("I19.I19()").WithLocation(86, 19)
Symbols\StaticAbstractMembersInInterfacesTests.cs (5)
4998
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M01").WithArguments("I1.M01()").WithLocation(4, 32),
5001
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("I1.P01.get").WithLocation(5, 38),
5004
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("I1.E01.add").WithLocation(6, 53),
5007
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("I1.E01.remove").WithLocation(6, 60),
5010
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "+").WithArguments("I1.operator +(I1)").WithLocation(7, 38)
Symbols\SymbolErrorTests.cs (13)
2668
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "C").WithArguments("NS.C.C()").WithLocation(6, 16),
2671
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M1").WithArguments("NS.C.M1()").WithLocation(7, 21),
2674
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "M2").WithArguments("NS.C.M2()").WithLocation(8, 20),
2677
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "get").WithArguments("NS.C.P1.get").WithLocation(9, 28),
2680
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "set").WithArguments("NS.C.P1.set").WithLocation(9, 49),
2683
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "1").WithArguments("NS.C.P2.get").WithLocation(10, 26),
2686
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "add").WithArguments("NS.C.E.add").WithLocation(11, 40),
2689
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "remove").WithArguments("NS.C.E.remove").WithLocation(11, 48),
2692
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "+").WithArguments("NS.C.operator +(NS.C, NS.C)").WithLocation(12, 43),
2695
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "-").WithArguments("NS.C.operator -(NS.C, NS.C)").WithLocation(13, 43));
18590
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "B").WithArguments("B.B()").WithLocation(8, 17)
18613
Diagnostic(ErrorCode.
ERR_ExternHasBody
, "B").WithArguments("B.B()").WithLocation(8, 17)
18685
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),