52 references to ERR_InitializerOnNonAutoProperty
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1692
or ErrorCode.
ERR_InitializerOnNonAutoProperty
Symbols\Source\SourcePropertySymbolBase.cs (1)
313
diagnostics.Add(ErrorCode.
ERR_InitializerOnNonAutoProperty
, Location);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
FieldKeywordTests.cs (24)
508
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P").WithLocation(3, 12),
2280
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "PA").WithLocation(3, 23),
2283
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "PB").WithLocation(4, 23));
2302
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "PA").WithLocation(3, 16),
2305
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "PB").WithLocation(4, 16));
8782
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
8785
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(4, 27),
8788
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(5, 27),
8791
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P4").WithLocation(6, 27));
9030
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
9042
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(5, 27),
9054
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(7, 27),
9119
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
9122
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(4, 27),
9125
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(5, 27),
9128
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "Q1").WithLocation(6, 27),
9131
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "Q2").WithLocation(7, 27),
9134
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "Q3").WithLocation(8, 27));
9324
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
9327
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
9333
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(4, 27),
9336
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(4, 27),
9342
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(5, 27),
9345
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(5, 27));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\RecordStructTests.cs (2)
4074
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "X").WithLocation(5, 16)
4081
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "X").WithLocation(5, 16)
Semantics\StructsTests.cs (2)
679
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "I").WithLocation(3, 16));
688
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "I").WithLocation(3, 16));
Semantics\UninitializedNonNullableFieldTests.cs (1)
2636
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(7, 19),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\DefaultInterfaceImplementationTests.cs (6)
3213
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(4, 25),
3247
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(4, 24),
3305
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(4, 25)
56873
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(9, 28),
56931
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(9, 28),
56989
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(9, 28),
Symbols\PartialPropertiesTests.cs (12)
4117
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
4120
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(7, 27),
4123
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(9, 27),
4129
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(10, 27));
4173
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(3, 27),
4179
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(7, 27),
4185
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(9, 27),
4194
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(10, 27),
4254
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P1").WithLocation(7, 27),
4266
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P2").WithLocation(14, 27),
4272
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(17, 27),
4281
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P3").WithLocation(19, 27));
Symbols\SymbolErrorTests.cs (3)
16935
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "I").WithLocation(5, 9),
16938
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "S").WithLocation(6, 16),
16941
Diagnostic(ErrorCode.
ERR_InitializerOnNonAutoProperty
, "P").WithLocation(7, 19)