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 @@ -73,7 +73,7 @@ class ExtractSemanticDB extends Phase {
73
73
/** Is symbol global? Non-global symbols get localX names */
74
74
def isGlobal (sym : Symbol ): Boolean =
75
75
sym.is(Package )
76
- || (sym.is(Param ) || sym.owner.isClass) && isGlobal(sym.owner)
76
+ || ! sym.isSelfSym && (sym.is(Param ) || sym.owner.isClass) && isGlobal(sym.owner)
77
77
78
78
def addOwner (owner : Symbol ): Unit =
79
79
if ! owner.isRoot && ! owner.isEmptyPackage then addSymName(b, owner)
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ import scala.annotation.meta._
5
5
import scala .language /* =>>scalaShadowing.language.*/ .experimental /* =>>scalaShadowing.language.experimental.*/ .macros /* =>>scalaShadowing.language.experimental.macros.*/
6
6
7
7
@ ClassAnnotation
8
- class /* =>>java.lang.Object#`<init>`().*/ Annotations /* <<=annot.Annotations#*/ [@ Type /* <<=annot.Annotations#`<init>`().*/ ParameterAnnotation T /* <<=annot.Annotations#`<init>`().(T)*//* <<=annot.Annotations#(T)*/ ](@ ParameterAnnotation x/* <<=annot.Annotations#`<init>`().(x)*//* <<=annot.Annotations#(x)*/ : T /* =>>annot.Annotations#`<init>`().(T)*/ ) { self/* <<=annot.Annotations#self. */ : AnyRef /* =>>scala.AnyRef#*/ =>
8
+ class /* =>>java.lang.Object#`<init>`().*/ Annotations /* <<=annot.Annotations#*/ [@ Type /* <<=annot.Annotations#`<init>`().*/ ParameterAnnotation T /* <<=annot.Annotations#`<init>`().(T)*//* <<=annot.Annotations#(T)*/ ](@ ParameterAnnotation x/* <<=annot.Annotations#`<init>`().(x)*//* <<=annot.Annotations#(x)*/ : T /* =>>annot.Annotations#`<init>`().(T)*/ ) { self/* <<=local0 */ : AnyRef /* =>>scala.AnyRef#*/ =>
9
9
@ FieldAnnotation
10
10
val field /* <<=annot.Annotations#field.*/ = 42
11
11
12
12
@ MethodAnnotation
13
13
def method /* <<=annot.Annotations#method().*/ = {
14
14
@ LocalAnnotation
15
- val local /* <<=local0 */ = 42
16
- local/* =>>local0 */
15
+ val local /* <<=local1 */ = 42
16
+ local/* =>>local1 */
17
17
}
18
18
@ TypeAnnotation
19
19
type S /* <<=annot.Annotations#S#*/
You can’t perform that action at this time.
0 commit comments