File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed
compiler/src/dotty/tools/dotc
sbt-dotty/src/dotty/tools/sbtplugin Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -340,14 +340,6 @@ object SymDenotations {
340340 case Nil => Nil
341341 }
342342
343- final def children (implicit ctx : Context ): List [Symbol ] =
344- this .annotations.filter(_.symbol == ctx.definitions.ChildAnnot ).map { annot =>
345- // refer to definition of Annotation.makeChild
346- annot.tree match {
347- case Apply (TypeApply (_, List (tpTree)), _) => tpTree.symbol
348- }
349- }
350-
351343 /** The denotation is completed: info is not a lazy type and attributes have defined values */
352344 final def isCompleted : Boolean = ! myInfo.isInstanceOf [LazyType ]
353345
@@ -934,7 +926,7 @@ object SymDenotations {
934926 * except for a toplevel module, where its module class is returned.
935927 */
936928 final def topLevelClass (implicit ctx : Context ): Symbol = {
937- def topLevel (d : SymDenotation ): Symbol = {
929+ @ tailrec def topLevel (d : SymDenotation ): Symbol = {
938930 if (d.isTopLevelClass) d.symbol
939931 else topLevel(d.owner)
940932 }
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
502502
503503 /** Decompose a type into subspaces -- assume the type can be decomposed */
504504 def decompose (tp : Type ): List [Space ] = {
505- val children = tp.classSymbol.denot. children
505+ val children = tp.classSymbol.children
506506
507507 debug.println(s " candidates for ${tp.show} : [ ${children.map(_.show).mkString(" , " )}] " )
508508
Original file line number Diff line number Diff line change @@ -143,17 +143,8 @@ object DottyPlugin extends AutoPlugin {
143143
144144 override def projectSettings : Seq [Setting [_]] = {
145145 Seq (
146- isDotty := {
147- val log = sLog.value
146+ isDotty := scalaVersion.value.startsWith(" 0." ),
148147
149- sbtFullVersion(sbtVersion.value) match {
150- case Some ((sbtMajor, sbtMinor, sbtPatch)) if sbtMajor == 0 && sbtMinor == 13 && sbtPatch < 15 =>
151- log.error(s " The sbt-dotty plugin cannot work with this version of sbt ( ${sbtVersion.value}), sbt >= 0.13.15 is required. " )
152- false
153- case _ =>
154- scalaVersion.value.startsWith(" 0." )
155- }
156- },
157148 scalaOrganization := {
158149 if (isDotty.value)
159150 " ch.epfl.lamp"
@@ -176,13 +167,6 @@ object DottyPlugin extends AutoPlugin {
176167 dottyBridge
177168 else
178169 scalaBridge
179- },
180-
181- scalaBinaryVersion := {
182- if (isDotty.value)
183- scalaVersion.value.split(" \\ ." ).take(2 ).mkString(" ." ) // Not needed with sbt >= 0.13.16
184- else
185- scalaBinaryVersion.value
186170 }
187171 )
188172 }
You can’t perform that action at this time.
0 commit comments