File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -464,8 +464,8 @@ class ExtractSemanticDB extends Phase:
464
464
else PublicAccess ()
465
465
else
466
466
val ssym = symbolName(sym.privateWithin)
467
- if (sym.isPrivate) PrivateWithinAccess (ssym)
468
- else ProtectedWithinAccess (ssym)
467
+ if (sym.is( Protected )) ProtectedWithinAccess (ssym)
468
+ else PrivateWithinAccess (ssym)
469
469
470
470
private def symbolInfo (sym : Symbol , symbolName : String , symkinds : Set [SymbolKind ])(using Context ): SymbolInformation =
471
471
val kind = symbolKind(sym, symkinds)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ example/Access# => class Access
14
14
example/Access#`<init>`(). => primary ctor <init>
15
15
example/Access#m1(). => private[this] method m1
16
16
example/Access#m2(). => private[this] method m2
17
- example/Access#m3(). => protected [example/Access#] method m3
17
+ example/Access#m3(). => private [example/Access#] method m3
18
18
example/Access#m4(). => protected method m4
19
19
example/Access#m5(). => protected[this] method m5
20
20
example/Access#m6(). => protected[example/] method m6
@@ -3812,7 +3812,7 @@ flags/p/package.`y_=`(). => protected var method y_=
3812
3812
flags/p/package.`y_=`().(x$1) => param x$1
3813
3813
flags/p/package.m(). => macro m
3814
3814
flags/p/package.m().[TT] => typeparam TT
3815
- flags/p/package.x. => protected [flags/p/] lazy val method x
3815
+ flags/p/package.x. => private [flags/p/] lazy val method x
3816
3816
flags/p/package.xs1. => val method xs1
3817
3817
flags/p/package.y(). => protected implicit var method y
3818
3818
flags/p/package.z(). => method z
You can’t perform that action at this time.
0 commit comments