78 references to ERR_AbstractNotVirtual
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (1)
922
or ErrorCode.
ERR_AbstractNotVirtual
Symbols\Source\SourceEventSymbol.cs (1)
644
diagnostics.Add(ErrorCode.
ERR_AbstractNotVirtual
, location, this.Kind.Localize(), this);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
883
diagnostics.Add(ErrorCode.
ERR_AbstractNotVirtual
, location, this.Kind.Localize(), this);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1135
diagnostics.Add(ErrorCode.
ERR_AbstractNotVirtual
, location, this.Kind.Localize(), this);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
119
diagnostics.Add(ErrorCode.
ERR_AbstractNotVirtual
, location, this.Kind.Localize(), this);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (4)
1349
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, op).WithArguments("method", "C1.operator " + op + @"()").WithLocation(3, 42),
1352
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, op).WithArguments("method", "C1.operator checked " + op + @"()").WithLocation(4, 50)
9545
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, op).WithArguments("method", "C1.operator " + op + @"(int)").WithLocation(3, 42)
9565
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, op).WithArguments("method", "C1.operator checked " + op + @"(int)").WithLocation(4, 50)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (69)
Symbols\DefaultInterfaceImplementationTests.cs (29)
10313
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M3").WithArguments("method", "I1.M3()").WithLocation(6, 27),
10316
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M2").WithArguments("method", "I1.M2()").WithLocation(4, 27),
16492
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P0").WithArguments("property", "I0.P0").WithLocation(4, 26),
16495
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P1").WithArguments("property", "I1.P1").WithLocation(8, 26),
16501
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P2").WithArguments("property", "I2.P2").WithLocation(12, 26),
16510
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P3").WithArguments("property", "I3.P3").WithLocation(20, 26),
16516
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P4").WithArguments("property", "I4.P4").WithLocation(24, 26),
16522
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P5").WithArguments("property", "I5.P5").WithLocation(28, 26),
16531
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P6").WithArguments("property", "I6.P6").WithLocation(36, 26),
16537
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P7").WithArguments("property", "I7.P7").WithLocation(40, 26),
16543
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P8").WithArguments("property", "I8.P8").WithLocation(44, 26),
24076
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I0.this[int]").WithLocation(4, 26),
24079
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I1.this[int]").WithLocation(8, 26),
24085
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I2.this[int]").WithLocation(12, 26),
24094
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I3.this[int]").WithLocation(20, 26),
24100
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I4.this[int]").WithLocation(24, 26),
24106
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I5.this[int]").WithLocation(28, 26),
24115
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I6.this[int]").WithLocation(36, 26),
24121
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I7.this[int]").WithLocation(40, 26),
24127
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "this").WithArguments("property", "I8.this[int]").WithLocation(44, 26),
29893
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P0").WithArguments("event", "I0.P0").WithLocation(4, 42),
29896
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P1").WithArguments("event", "I1.P1").WithLocation(8, 42),
29902
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P2").WithArguments("event", "I2.P2").WithLocation(12, 42),
29908
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P3").WithArguments("event", "I3.P3").WithLocation(20, 42),
29914
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P4").WithArguments("event", "I4.P4").WithLocation(24, 42),
29920
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P5").WithArguments("event", "I5.P5").WithLocation(28, 42),
29926
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P6").WithArguments("event", "I6.P6").WithLocation(36, 42),
29932
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P7").WithArguments("event", "I7.P7").WithLocation(40, 42),
29938
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P8").WithArguments("event", "I8.P8").WithLocation(44, 42),
Symbols\StaticAbstractMembersInInterfacesTests.cs (36)
102
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("method", "I1.M05()").WithLocation(16, 34),
340
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("method", "I1.M05()").WithLocation(16, 34),
439
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("method", "I1.M05()").WithLocation(16, 34),
520
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("method", "I1.M05()").WithLocation(16, 34),
625
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("method", "I1.M05()").WithLocation(16, 34),
742
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("method", "I1.M05()").WithLocation(16, 34),
1675
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("property", "I1.M05").WithLocation(16, 34),
2005
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("property", "I1.M05").WithLocation(16, 34),
2098
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("property", "I1.M05").WithLocation(16, 34),
2170
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("property", "I1.M05").WithLocation(16, 34),
2266
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("property", "I1.M05").WithLocation(16, 34),
2371
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("property", "I1.M05").WithLocation(16, 34),
2481
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("event", "I1.M05").WithLocation(16, 37),
2819
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("event", "I1.M05").WithLocation(16, 37),
2914
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("event", "I1.M05").WithLocation(16, 37),
2987
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("event", "I1.M05").WithLocation(16, 37),
3085
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("event", "I1.M05").WithLocation(16, 37),
3191
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M05").WithArguments("event", "I1.M05").WithLocation(16, 37),
3305
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!").WithArguments("method", "I1.operator !(I1)").WithLocation(16, 40),
3537
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!").WithArguments("method", "I1.operator !(I1)").WithLocation(16, 40),
3636
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!").WithArguments("method", "I1.operator !(I1)").WithLocation(16, 40),
3717
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!").WithArguments("method", "I1.operator !(I1)").WithLocation(16, 40),
3816
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!").WithArguments("method", "I1.operator !(I1)").WithLocation(16, 40),
3927
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!").WithArguments("method", "I1.operator !(I1)").WithLocation(16, 40),
4467
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "==").WithArguments("method", "I3.operator ==(I3, I3)").WithLocation(18, 42),
4473
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!=").WithArguments("method", "I3.operator !=(I3, I3)").WithLocation(20, 42)
4512
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "==").WithArguments("method", "I3.operator ==(I3, I3)").WithLocation(18, 42),
4518
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!=").WithArguments("method", "I3.operator !=(I3, I3)").WithLocation(20, 42)
4542
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "==").WithArguments("method", "I3.operator ==(I3, I3)").WithLocation(18, 42),
4545
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "!=").WithArguments("method", "I3.operator !=(I3, I3)").WithLocation(20, 42)
4665
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "int").WithArguments("method", "I3.implicit operator int(I3)").WithLocation(18, 47),
4674
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "I3").WithArguments("method", "I3.explicit operator I3(bool)").WithLocation(20, 47),
4728
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "int").WithArguments("method", "I3.implicit operator int(I3)").WithLocation(18, 47),
4737
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "I3").WithArguments("method", "I3.explicit operator I3(bool)").WithLocation(20, 47),
4776
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "int").WithArguments("method", "I3.implicit operator int(I3)").WithLocation(18, 47),
4782
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "I3").WithArguments("method", "I3.explicit operator I3(bool)").WithLocation(20, 47),
Symbols\SymbolErrorTests.cs (4)
8224
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "P").WithArguments("property", "NS.clx.P").WithLocation(7, 40),
8227
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M2").WithArguments("method", "NS.clx.M2<T>(T)").WithLocation(6, 41),
8230
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "M1").WithArguments("method", "NS.clx.M1()").WithLocation(5, 40),
8233
Diagnostic(ErrorCode.
ERR_AbstractNotVirtual
, "E").WithArguments("event", "NS.clx.E").WithLocation(8, 53));