35 references to ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2069
or ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4041
diagnostics.Add(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, method.GetFirstLocation(), method);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
RefReadonlyParameterTests.cs (3)
6936
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("C.M(ref readonly int)").WithLocation(3, 25),
6961
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments($"C.M({modifier}int)").WithLocation(7, 25));
6981
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("C.M(ref readonly int)").WithLocation(4, 27),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
3211
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("R.M()").WithLocation(3, 24)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (29)
Symbols\DefaultInterfaceImplementationTests.cs (12)
11319
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M2").WithArguments("I1.M2()").WithLocation(5, 32),
11322
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M3").WithArguments("I1.M3()").WithLocation(6, 34),
11325
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M4").WithArguments("I1.M4()").WithLocation(7, 33),
11355
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M11").WithArguments("I1.M11()").WithLocation(23, 35),
11358
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M12").WithArguments("I1.M12()").WithLocation(24, 44),
11361
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M13").WithArguments("I1.M13()").WithLocation(25, 43)
11374
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M2").WithArguments("I1.M2()").WithLocation(5, 32),
11377
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M3").WithArguments("I1.M3()").WithLocation(6, 34),
11380
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M4").WithArguments("I1.M4()").WithLocation(7, 33),
11425
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M11").WithArguments("I1.M11()").WithLocation(23, 35),
11428
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M12").WithArguments("I1.M12()").WithLocation(24, 44),
11431
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M13").WithArguments("I1.M13()").WithLocation(25, 43)
Symbols\ExtendedPartialMethodsTests.cs (12)
75
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M1").WithArguments("C.M1()").WithLocation(4, 25)
174
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M1").WithArguments("C.M1(out int)").WithLocation(4, 26)
343
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M1").WithArguments("C.M1()")
426
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M1").WithArguments("C.M1()").WithLocation(4, 35)
746
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M1").WithArguments("D.M1()").WithLocation(9, 36)
1342
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("C.M()").WithLocation(6, 33),
1470
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M1").WithArguments("D.M1()").WithLocation(9, 31)
1739
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("I.M(string)").WithLocation(6, 27)
1976
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("I.M()").WithLocation(3, 24));
2349
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M").WithArguments("Program.M(ref object)").WithLocation(4, 34),
2735
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "Main").WithArguments("C.Main()").WithLocation(6, 32));
2783
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "Main").WithArguments("C.Main()").WithLocation(6, 37));
Symbols\StaticAbstractMembersInInterfacesTests.cs (1)
1206
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "M01").WithArguments("I1.M01()").WithLocation(4, 40)
Symbols\SymbolErrorTests.cs (4)
14082
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "PartA").WithArguments("C.PartA()").WithLocation(19, 25),
14085
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "PartB").WithArguments("C.PartB()").WithLocation(20, 26),
14088
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "PartC").WithArguments("C.PartC()").WithLocation(21, 28),
14091
Diagnostic(ErrorCode.
ERR_PartialMethodWithAccessibilityModsMustHaveImplementation
, "PartD").WithArguments("C.PartD()").WithLocation(22, 27),