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 {
340
340
case Nil => Nil
341
341
}
342
342
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
-
351
343
/** The denotation is completed: info is not a lazy type and attributes have defined values */
352
344
final def isCompleted : Boolean = ! myInfo.isInstanceOf [LazyType ]
353
345
@@ -934,7 +926,7 @@ object SymDenotations {
934
926
* except for a toplevel module, where its module class is returned.
935
927
*/
936
928
final def topLevelClass (implicit ctx : Context ): Symbol = {
937
- def topLevel (d : SymDenotation ): Symbol = {
929
+ @ tailrec def topLevel (d : SymDenotation ): Symbol = {
938
930
if (d.isTopLevelClass) d.symbol
939
931
else topLevel(d.owner)
940
932
}
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
502
502
503
503
/** Decompose a type into subspaces -- assume the type can be decomposed */
504
504
def decompose (tp : Type ): List [Space ] = {
505
- val children = tp.classSymbol.denot. children
505
+ val children = tp.classSymbol.children
506
506
507
507
debug.println(s " candidates for ${tp.show} : [ ${children.map(_.show).mkString(" , " )}] " )
508
508
Original file line number Diff line number Diff line change @@ -143,17 +143,8 @@ object DottyPlugin extends AutoPlugin {
143
143
144
144
override def projectSettings : Seq [Setting [_]] = {
145
145
Seq (
146
- isDotty := {
147
- val log = sLog.value
146
+ isDotty := scalaVersion.value.startsWith(" 0." ),
148
147
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
- },
157
148
scalaOrganization := {
158
149
if (isDotty.value)
159
150
" ch.epfl.lamp"
@@ -176,13 +167,6 @@ object DottyPlugin extends AutoPlugin {
176
167
dottyBridge
177
168
else
178
169
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
186
170
}
187
171
)
188
172
}
You can’t perform that action at this time.
0 commit comments