35 references to ERR_InaccessibleSymbol2
Microsoft.CodeAnalysis.VisualBasic (2)
Binding\Binder_Lookup.vb (1)
260
ERRID.
ERR_InaccessibleSymbol2
,
Errors\ErrorFacts.vb (1)
277
ERRID.
ERR_InaccessibleSymbol2
,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
Attributes\AttributeTests.vb (3)
2795
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "x1").WithArguments("m1.X1", "Private"),
3268
comp.VerifyDiagnostics(Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "A").WithArguments("AAttribute", "Friend"))
3305
comp.VerifyDiagnostics(Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "NS").WithArguments("C.NSAttribute", "Private"))
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
1306
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "Base").WithArguments("Base", "Friend"))
PDB\PDBUsingTests.vb (1)
453
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Binding\LookupTests.vb (4)
70
r4.SetFrom(SingleLookupResult.Inaccessible(sym2, New BadSymbolDiagnostic(sym2, ERRID.
ERR_InaccessibleSymbol2
, sym2)))
77
Assert.Equal(ERRID.
ERR_InaccessibleSymbol2
, diag4.Code)
162
Assert.Equal(ERRID.
ERR_InaccessibleSymbol2
, diag13.Code)
174
Assert.Equal(ERRID.
ERR_InaccessibleSymbol2
, diag14.Code)
Semantics\GetSemanticInfoTests.vb (4)
5089
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "Nested").WithArguments("A.Nested", "Private"))
5132
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "Nested").WithArguments("A.Nested", "Private"))
5176
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "Nested").WithArguments("A.Nested", "Private"))
5221
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "A.B").WithArguments("A.B", "Private"))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (20)
SymbolsTests\Retargeting\RetargetingTests.vb (16)
1546
main_NoRetarget.VerifyDiagnostics(Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1547
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1548
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1549
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1550
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1551
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1552
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1553
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestStructure").WithArguments("TestStructure", "Friend"))
1556
Main_Retarget.VerifyDiagnostics(Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1557
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1558
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1559
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1560
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1561
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1562
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestInterface").WithArguments("TestInterface", "Friend"),
1563
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "TestStructure").WithArguments("TestStructure", "Friend"))
SymbolsTests\Source\MeMyBaseMyClassTests.vb (1)
989
VerifyDiagnostics(comp, Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "MyBase.id").WithArguments("BaseClass.ID", "Private"))
SymbolsTests\SymbolErrorTests.vb (3)
3972
comp.VerifyDiagnostics(Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "C.c_int").WithArguments("C.c_int", "Friend"),
3973
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "C.c_priv").WithArguments("C.c_priv", "Private"),
3974
Diagnostic(ERRID.
ERR_InaccessibleSymbol2
, "D").WithArguments("D", "Friend"))