File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,6 @@ class Definitions {
750
750
@ tu lazy val RefiningAnnotationClass : ClassSymbol = ctx.requiredClass(" scala.annotation.RefiningAnnotation" )
751
751
752
752
// Annotation classes
753
- @ tu lazy val ScalaAnnotationInternal : ClassSymbol = ctx.requiredClass(" scala.annotation.internal" )
754
753
@ tu lazy val AliasAnnot : ClassSymbol = ctx.requiredClass(" scala.annotation.internal.Alias" )
755
754
@ tu lazy val AnnotationDefaultAnnot : ClassSymbol = ctx.requiredClass(" scala.annotation.internal.AnnotationDefault" )
756
755
@ tu lazy val BodyAnnot : ClassSymbol = ctx.requiredClass(" scala.annotation.internal.Body" )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class ExtractSemanticDB extends Phase with
53
53
/** The index of a local symbol */
54
54
private val locals = mutable.HashMap [Symbol , Int ]()
55
55
56
- /** The bodies of synthetic localså */
56
+ /** The bodies of synthetic locals */
57
57
private val localBodies = mutable.HashMap [Symbol , Tree ]()
58
58
59
59
/** The local symbol(s) starting at given offset */
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ object Scala3 with
142
142
143
143
end LocalSymbol
144
144
145
- private inline def (char : Char ) `is/.#])` = (char : @ switch) match
145
+ private inline def (char : Char ) isGlobalTerminal = (char : @ switch) match
146
146
case '/' | '.' | '#' | ']' | ')' => true
147
147
case _ => false
148
148
@@ -152,8 +152,8 @@ object Scala3 with
152
152
def isRootPackage : Boolean = RootPackage == symbol
153
153
def isEmptyPackage : Boolean = EmptyPackage == symbol
154
154
155
- def isGlobal : Boolean = ! symbol.isEmpty && ! symbol.isMulti && symbol.last.`is/.#])`
156
- def isLocal : Boolean = ! symbol.isEmpty && ! symbol.isMulti && ! symbol.last.`is/.#])`
155
+ def isGlobal : Boolean = ! symbol.isEmpty && ! symbol.isMulti && symbol.last.isGlobalTerminal
156
+ def isLocal : Boolean = ! symbol.isEmpty && ! symbol.isMulti && ! symbol.last.isGlobalTerminal
157
157
def isMulti : Boolean = symbol startsWith " ;"
158
158
159
159
def isConstructor : Boolean = ctor matches symbol
You can’t perform that action at this time.
0 commit comments