48 references to ERR_InterfacesCantContainFields
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
937
or ErrorCode.
ERR_InterfacesCantContainFields
Symbols\Source\SourceMemberFieldSymbol.cs (1)
383
diagnostics.Add(ErrorCode.
ERR_InterfacesCantContainFields
, ErrorLocation);
Symbols\Source\SourcePropertySymbolBase.cs (1)
929
diagnostics.Add(ErrorCode.
ERR_InterfacesCantContainFields
, Location);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
FieldKeywordTests.cs (23)
965
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q1").WithLocation(3, 12),
974
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q2").WithLocation(4, 12),
983
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q3").WithLocation(5, 12),
989
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q4").WithLocation(6, 12));
996
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q1").WithLocation(3, 12),
999
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q2").WithLocation(4, 12),
1002
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q3").WithLocation(5, 12),
1008
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q4").WithLocation(6, 12),
2208
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P2").WithLocation(4, 16),
2211
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P3").WithLocation(5, 16),
2214
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P4").WithLocation(6, 16),
2220
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P5").WithLocation(7, 16),
2226
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P7").WithLocation(9, 16),
2232
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P8").WithLocation(10, 16),
2235
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P9").WithLocation(11, 16));
8253
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q2").WithLocation(10, 7),
8259
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Q3").WithLocation(11, 7));
8592
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(3, 20),
8598
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P2").WithLocation(4, 20));
8605
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(3, 20),
8611
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P2").WithLocation(4, 20),
8728
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(3, 27),
8731
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P2").WithLocation(4, 27));
Semantics\InlineArrayTests.cs (1)
967
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "_element0").WithLocation(5, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RefFieldTests.cs (1)
20917
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "field").WithLocation(12, 20),
Semantics\UninitializedNonNullableFieldTests.cs (1)
1986
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 19),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Symbols\DefaultInterfaceImplementationTests.cs (14)
3390
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(4, 9));
3398
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(4, 9),
3549
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(4, 9));
3557
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "P1").WithLocation(4, 9),
8103
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 16),
8106
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F2").WithLocation(39, 16)
8381
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 16),
8384
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F2").WithLocation(39, 16)
12911
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 16)
12966
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 16),
43714
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 9),
43726
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F5").WithLocation(8, 9)
43738
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F1").WithLocation(4, 9),
43741
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F5").WithLocation(8, 9)
Symbols\RequiredMembersTests.cs (1)
182
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "Field").WithLocation(21, 18),
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
4863
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F3").WithLocation(6, 18),
4869
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "F4").WithLocation(7, 16),
Symbols\SymbolErrorTests.cs (2)
9249
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "field1").WithLocation(5, 16),
9255
Diagnostic(ErrorCode.
ERR_InterfacesCantContainFields
, "field3").WithLocation(7, 21)