34 references to ERR_InaccessibleGetter
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder.ValueChecks.cs (1)
1850
Error(diagnostics, ErrorCode.
ERR_InaccessibleGetter
, node, propertySymbol);
CommandLine\CSharpCompiler.cs (1)
389
{ Code: (int)ErrorCode.
ERR_InaccessibleGetter
, Arguments: [Symbol s] } => s,
Errors\ErrorFacts.cs (1)
837
or ErrorCode.
ERR_InaccessibleGetter
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\PatternMatchingTests_ListPatterns.cs (4)
1883
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "[0]").WithArguments("Test1.this[System.Index]").WithLocation(4, 20),
1886
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "new Test1()[^1]").WithArguments("Test1.this[System.Index]").WithLocation(5, 5)
2069
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "..var p").WithArguments("Test1.this[System.Range]").WithLocation(4, 21),
2072
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "new Test1()[..]").WithArguments("Test1.this[System.Range]").WithLocation(6, 5)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\AccessCheckTests.cs (1)
1144
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "b3.P").WithArguments("B3.P").WithLocation(14, 13));
Semantics\IndexAndRangeTests.cs (1)
402
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "b[^0]").WithArguments("B.this[int]").WithLocation(12, 13),
Semantics\SemanticErrorTests.cs (16)
9484
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "C.P").WithArguments("C.P").WithLocation(10, 20),
9486
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "c.Q").WithArguments("C.Q").WithLocation(11, 11));
9514
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "b.P").WithArguments("B.P").WithLocation(17, 20));
9540
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "b.P").WithArguments("N2.B.P").WithLocation(7, 24));
9576
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "Q").WithArguments("A.Q").WithLocation(17, 13),
9578
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "B.P").WithArguments("A.P").WithLocation(24, 20),
9580
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "A.Q").WithArguments("A.Q").WithLocation(25, 13));
9616
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, @"this[""hello""]").WithArguments("A.this[string]"),
9618
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "new B()[0]").WithArguments("A.this[int]"),
9620
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, @"new A()[""hello""]").WithArguments("A.this[string]"));
14627
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "base.S").WithArguments("A.S"),
14645
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "a.S").WithArguments("A.S"),
14663
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "G().S").WithArguments("A.S"),
14666
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "S").WithArguments("A.S"),
14669
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "this.S").WithArguments("A.S"),
14687
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "((A)this).S").WithArguments("A.S"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\DefaultInterfaceImplementationTests.cs (9)
19975
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P1").WithArguments("I1.P1").WithLocation(18, 13),
20006
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P1").WithArguments("I1.P1").WithLocation(7, 13),
20009
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P2").WithArguments("I1.P2").WithLocation(9, 13),
20482
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P4").WithArguments("I1.P4").WithLocation(12, 13),
20488
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P6").WithArguments("I1.P6").WithLocation(14, 13)
20505
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P6").WithArguments("I1.P6").WithLocation(16, 13)
26538
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "i1[0]").WithArguments("I1.this[int]").WithLocation(29, 13),
26575
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "i1[0]").WithArguments("I1.this[int]").WithLocation(12, 13),
26578
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "i2[0]").WithArguments("I2.this[int]").WithLocation(14, 13),