75 references to ERR_PropertyLacksGet
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder.ValueChecks.cs (1)
1831
Error(diagnostics, ErrorCode.
ERR_PropertyLacksGet
, node, propertySymbol);
Binder\Binder_Await.cs (1)
389
Error(diagnostics, ErrorCode.
ERR_PropertyLacksGet
, node, isCompletedProperty);
Binder\Binder_Patterns.cs (1)
1594
Error(diagnostics, ErrorCode.
ERR_PropertyLacksGet
, memberName, name);
Errors\ErrorFacts.cs (1)
740
or 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)
2449
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "{ yield return 42; }").WithArguments("System.Collections.Generic.IEnumerator<T>.Current").WithLocation(31, 57),
2518
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.Emit3.UnitTests (16)
OverloadResolutionPriorityTests.cs (1)
2980
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Module1.M1").WithArguments("Module1.M1").WithLocation(5, 9)
Semantics\PatternMatchingTests_ListPatterns.cs (12)
1857
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "[0]").WithArguments("Test1.this[System.Index]").WithLocation(4, 20),
1860
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new Test1()[^1]").WithArguments("Test1.this[System.Index]").WithLocation(5, 5)
2041
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "..var p").WithArguments("Test1.this[System.Range]").WithLocation(4, 21),
2044
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new Test1()[..]").WithArguments("Test1.this[System.Range]").WithLocation(6, 5)
7984
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "[var x, .. var y]").WithArguments("C.this[System.Index]").WithLocation(2, 16),
7987
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, ".. var y").WithArguments("C.this[System.Range]").WithLocation(2, 24),
7990
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[^1]").WithArguments("C.this[System.Index]").WithLocation(3, 5),
7993
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[..]").WithArguments("C.this[System.Range]").WithLocation(4, 5)
8016
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "[var x, .. var y]").WithArguments("C.this[System.Index]").WithLocation(2, 16),
8019
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, ".. var y").WithArguments("C.this[System.Range]").WithLocation(2, 24),
8022
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[^1]").WithArguments("C.this[System.Index]").WithLocation(3, 5),
8025
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "new C()[..]").WithArguments("C.this[System.Range]").WithLocation(4, 5)
Semantics\PatternMatchingTests2.cs (2)
1895
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "X:").WithArguments("Blah.X").WithLocation(6, 25)
1952
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "X:").WithArguments("Blah.X").WithLocation(8, 25)
Semantics\PatternMatchingTests4.cs (1)
3113
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 (40)
Semantics\BindingAwaitTests.cs (2)
2205
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "await new A()").WithArguments("Awaiter.IsCompleted"));
2240
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "await new A()").WithArguments("Awaiter.IsCompleted"));
Semantics\DynamicTests.cs (2)
4072
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "i.d").WithArguments("Program.I.d").WithLocation(7, 25)
4098
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "i[null]").WithArguments("Program.I.this[string]").WithLocation(7, 25)
Semantics\NameOfTests.cs (1)
3209
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "r[0]").WithArguments("R<object>.this[int]").WithLocation(10, 20),
Semantics\NullableReferenceTypesTests.cs (3)
27709
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "IsOk:").WithArguments("C.IsOk").WithLocation(15, 20),
80931
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.P").WithArguments("C.P").WithLocation(6, 11));
80940
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.P").WithArguments("C.P").WithLocation(6, 11));
Semantics\NullableReferenceTypesVsPatterns.cs (3)
2780
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Inner1").WithArguments("Inner1").WithLocation(14, 25)
2819
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Inner1").WithArguments("Inner1").WithLocation(16, 30)
2853
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Method").WithArguments("Method").WithLocation(14, 25)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1268
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\RefFieldTests.cs (1)
26851
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "s1.S2").WithArguments("S1.S2").WithLocation(6, 35),
Semantics\SemanticAnalyzerTests.cs (1)
1312
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(21, 40));
Semantics\SemanticErrorTests.cs (22)
4401
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "C.P").WithArguments("C.P"),
4403
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P"),
4405
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "C.Q").WithArguments("C.Q"));
4437
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("A.Q").WithLocation(11, 11),
4440
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "b.Q").WithArguments("A.Q").WithLocation(16, 13),
4443
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "b.P.Q").WithArguments("A.Q").WithLocation(18, 13));
4462
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(6, 9));
4478
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(4, 26));
4499
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(7, 20),
4501
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(8, 13),
4503
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("C.Q").WithLocation(8, 18),
4505
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P").WithArguments("C.P").WithLocation(9, 27),
4507
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("C.Q").WithLocation(9, 31),
4509
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "Q").WithArguments("C.Q").WithLocation(10, 14));
4530
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[0]").WithArguments("C.this[int]"),
4532
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[1]").WithArguments("C.this[int]"),
4534
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[2]").WithArguments("C.this[int]"),
4536
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[3]").WithArguments("C.this[int]"),
4538
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "this[4]").WithArguments("C.this[int]"));
4569
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "b.P").WithArguments("B.P").WithLocation(5, 17));
24153
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "p.P1").WithArguments("Program.P1").WithLocation(16, 18),
24263
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "p.P1").WithArguments("Program.P1").WithLocation(19, 18),
Semantics\UninitializedNonNullableFieldTests.cs (2)
2645
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "P2").WithArguments("C.P2").WithLocation(11, 27),
2648
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)
891
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c[0]").WithArguments("C.this[int]"));
Symbols\Metadata\MetadataMemberTests.cs (1)
546
Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c.GetterIsGap").WithArguments("Class.GetterIsGap"),
Symbols\OverriddenOrHiddenMembersTests.cs (1)
1111
.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_PropertyLacksGet
, "c2.P1").WithArguments("TestClass2.P1"));