72 references to ERR_PropertyLacksGet
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder.ValueChecks.cs (1)
1587
Error(diagnostics, ErrorCode.
ERR_PropertyLacksGet
, node, propertySymbol);
Binder\Binder_Await.cs (1)
388
Error(diagnostics, ErrorCode.
ERR_PropertyLacksGet
, node, isCompletedProperty);
Binder\Binder_Patterns.cs (1)
1584
Error(diagnostics, ErrorCode.
ERR_PropertyLacksGet
, memberName, name);
Errors\ErrorFacts.cs (1)
679
case ErrorCode.
ERR_PropertyLacksGet
:
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
162
Binder.Error(bag, ErrorCode.
ERR_PropertyLacksGet
, body.Syntax, symbol);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenIterators.cs (2)
2445
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerator<T>.Current").WithLocation(31, 57),
2514
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "{ yield return 42; }").WithArguments("System.Collections.IEnumerator.Current").WithLocation(27, 57),
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (2)
675
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.WriteOnlyProperty").WithArguments("C.WriteOnlyProperty").WithLocation(10, 9),
764
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P1").WithArguments("C.P1").WithLocation(9, 15)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
Semantics\PatternMatchingTests_ListPatterns.cs (12)
1858
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "[0]").WithArguments("Test1.this[System.Index]").WithLocation(4, 20),
1861
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new Test1()[^1]").WithArguments("Test1.this[System.Index]").WithLocation(5, 5)
2042
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "..var p").WithArguments("Test1.this[System.Range]").WithLocation(4, 21),
2045
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new Test1()[..]").WithArguments("Test1.this[System.Range]").WithLocation(6, 5)
7994
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "[var x, .. var y]").WithArguments("C.this[System.Index]").WithLocation(2, 16),
7997
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, ".. var y").WithArguments("C.this[System.Range]").WithLocation(2, 24),
8000
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[^1]").WithArguments("C.this[System.Index]").WithLocation(3, 5),
8003
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[..]").WithArguments("C.this[System.Range]").WithLocation(4, 5)
8026
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "[var x, .. var y]").WithArguments("C.this[System.Index]").WithLocation(2, 16),
8029
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, ".. var y").WithArguments("C.this[System.Range]").WithLocation(2, 24),
8032
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[^1]").WithArguments("C.this[System.Index]").WithLocation(3, 5),
8035
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[..]").WithArguments("C.this[System.Range]").WithLocation(4, 5)
Semantics\PatternMatchingTests2.cs (2)
1899
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "X:").WithArguments("Blah.X").WithLocation(6, 25)
1956
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "X:").WithArguments("Blah.X").WithLocation(8, 25)
Semantics\PatternMatchingTests4.cs (1)
3114
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("P").WithLocation(5, 20)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests_IArgument.cs (1)
1803
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[10]").WithArguments("P.this[int]").WithLocation(12, 27)
IOperation\IOperationTests_IIsPatternExpression.cs (5)
1241
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "action").WithArguments("action").WithLocation(8, 38)
1394
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Prop").WithArguments("Prop").WithLocation(6, 33));
1437
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "A").WithArguments("A").WithLocation(6, 32),
1484
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "B").WithArguments("B").WithLocation(6, 32)
1531
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "C").WithArguments("C").WithLocation(6, 32)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (38)
Semantics\BindingAwaitTests.cs (2)
2204
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "await new A()").WithArguments("Awaiter.IsCompleted"));
2239
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "await new A()").WithArguments("Awaiter.IsCompleted"));
Semantics\DynamicTests.cs (2)
3762
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "i.d").WithArguments("Program.I.d").WithLocation(7, 25)
3788
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "i[null]").WithArguments("Program.I.this[string]").WithLocation(7, 25)
Semantics\NullableReferenceTypesTests.cs (3)
25806
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "IsOk:").WithArguments("C.IsOk").WithLocation(15, 20),
77236
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.P").WithArguments("C.P").WithLocation(6, 11));
77245
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.P").WithArguments("C.P").WithLocation(6, 11));
Semantics\NullableReferenceTypesVsPatterns.cs (3)
2783
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Inner1").WithArguments("Inner1").WithLocation(14, 25)
2822
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Inner1").WithArguments("Inner1").WithLocation(16, 30)
2856
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Method").WithArguments("Method").WithLocation(14, 25)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1263
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Prop").WithArguments("Test.Prop").WithLocation(15, 40)
Semantics\OperatorTests.cs (1)
3102
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.WriteOnly").WithArguments("C.WriteOnly").WithLocation(18, 9),
Semantics\QueryTests.cs (1)
4494
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.Prop").WithArguments("C.Prop").WithLocation(6, 22)
Semantics\SemanticAnalyzerTests.cs (1)
1312
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(21, 40));
Semantics\SemanticErrorTests.cs (22)
4403
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "C.P").WithArguments("C.P"),
4405
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P"),
4407
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "C.Q").WithArguments("C.Q"));
4439
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("A.Q").WithLocation(11, 11),
4442
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "b.Q").WithArguments("A.Q").WithLocation(16, 13),
4445
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "b.P.Q").WithArguments("A.Q").WithLocation(18, 13));
4464
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(6, 9));
4480
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(4, 26));
4501
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(7, 20),
4503
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(8, 13),
4505
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("C.Q").WithLocation(8, 18),
4507
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(9, 27),
4509
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("C.Q").WithLocation(9, 31),
4511
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("C.Q").WithLocation(10, 14));
4532
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[0]").WithArguments("C.this[int]"),
4534
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[1]").WithArguments("C.this[int]"),
4536
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[2]").WithArguments("C.this[int]"),
4538
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[3]").WithArguments("C.this[int]"),
4540
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[4]").WithArguments("C.this[int]"));
4571
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "b.P").WithArguments("B.P").WithLocation(5, 17));
23897
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "p.P1").WithArguments("Program.P1").WithLocation(16, 18),
24007
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "p.P1").WithArguments("Program.P1").WithLocation(19, 18),
Semantics\UninitializedNonNullableFieldTests.cs (2)
2642
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P2").WithArguments("C.P2").WithLocation(11, 27),
2645
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P2").WithArguments("C.P2").WithLocation(12, 9)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\IndexedPropertyTests.cs (1)
1913
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "a.Q[null]").WithArguments("IA.Q[object]").WithLocation(6, 21));
Symbols\IndexerTests.cs (1)
889
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c[0]").WithArguments("C.this[int]"));
Symbols\Metadata\MetadataMemberTests.cs (1)
542
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.GetterIsGap").WithArguments("Class.GetterIsGap"),
Symbols\OverriddenOrHiddenMembersTests.cs (1)
1111
.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c2.P1").WithArguments("TestClass2.P1"));