34 references to ERR_InaccessibleGetter
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder.ValueChecks.cs (1)
2073
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)
9529
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "C.P").WithArguments("C.P").WithLocation(10, 20),
9531
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "c.Q").WithArguments("C.Q").WithLocation(11, 11));
9559
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "b.P").WithArguments("B.P").WithLocation(17, 20));
9585
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "b.P").WithArguments("N2.B.P").WithLocation(7, 24));
9621
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "Q").WithArguments("A.Q").WithLocation(17, 13),
9623
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "B.P").WithArguments("A.P").WithLocation(24, 20),
9625
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "A.Q").WithArguments("A.Q").WithLocation(25, 13));
9661
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, @"this[""hello""]").WithArguments("A.this[string]"),
9663
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "new B()[0]").WithArguments("A.this[int]"),
9665
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, @"new A()[""hello""]").WithArguments("A.this[string]"));
14672
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "base.S").WithArguments("A.S"),
14690
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "a.S").WithArguments("A.S"),
14708
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "G().S").WithArguments("A.S"),
14711
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "S").WithArguments("A.S"),
14714
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "this.S").WithArguments("A.S"),
14732
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "((A)this).S").WithArguments("A.S"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\DefaultInterfaceImplementationTests.cs (9)
19986
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P1").WithArguments("I1.P1").WithLocation(18, 13),
20017
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P1").WithArguments("I1.P1").WithLocation(7, 13),
20020
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P2").WithArguments("I1.P2").WithLocation(9, 13),
20493
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P4").WithArguments("I1.P4").WithLocation(12, 13),
20499
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P6").WithArguments("I1.P6").WithLocation(14, 13)
20516
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "I1.P6").WithArguments("I1.P6").WithLocation(16, 13)
26549
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "i1[0]").WithArguments("I1.this[int]").WithLocation(29, 13),
26586
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "i1[0]").WithArguments("I1.this[int]").WithLocation(12, 13),
26589
Diagnostic(ErrorCode.
ERR_InaccessibleGetter
, "i2[0]").WithArguments("I2.this[int]").WithLocation(14, 13),