Skip to content

Commit 64c8586

Browse files
Merge branch 'master' into add-transparent-7
2 parents b105108 + 7463afe commit 64c8586

File tree

502 files changed

+7598
-7558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

502 files changed

+7598
-7558
lines changed

.drone.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ pipeline:
2323
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
2424
test:
2525
group: test
26-
image: lampepfl/dotty:2018-09-14-2
26+
image: lampepfl/dotty:2018-10-01
2727
commands:
2828
- cp -R . /tmp/1/ && cd /tmp/1/
2929
- ./project/scripts/sbt ";compile ;test"
3030
- ./project/scripts/cmdTests
3131

3232
test_bootstrapped:
3333
group: test
34-
image: lampepfl/dotty:2018-09-14-2
34+
image: lampepfl/dotty:2018-10-01
3535
commands:
3636
- cp -R . /tmp/2/ && cd /tmp/2/
3737
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
3838
- ./project/scripts/bootstrapCmdTests
3939

4040
test_sbt:
4141
group: test
42-
image: lampepfl/dotty:2018-09-14-2
42+
image: lampepfl/dotty:2018-10-01
4343
commands:
4444
- cp -R . /tmp/4/ && cd /tmp/4/
4545
- ./project/scripts/sbt sbt-dotty/scripted
@@ -49,7 +49,7 @@ pipeline:
4949

5050
# DOCUMENTATION:
5151
documentation:
52-
image: lampepfl/dotty:2018-09-14-2
52+
image: lampepfl/dotty:2018-10-01
5353
commands:
5454
- ./project/scripts/genDocs
5555
secrets: [ bot_pass ]
@@ -61,7 +61,7 @@ pipeline:
6161
# PUBLISHING:
6262
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
6363
publish_nightly:
64-
image: lampepfl/dotty:2018-09-14-2
64+
image: lampepfl/dotty:2018-10-01
6565
environment:
6666
- NIGHTLYBUILD=yes
6767
commands:
@@ -72,7 +72,7 @@ pipeline:
7272
environment: nightly
7373

7474
publish_release:
75-
image: lampepfl/dotty:2018-09-14-2
75+
image: lampepfl/dotty:2018-10-01
7676
environment:
7777
- RELEASEBUILD=yes
7878
commands:
@@ -96,7 +96,7 @@ pipeline:
9696
event: tag
9797

9898
publish_sbt_release:
99-
image: lampepfl/dotty:2018-09-14-2
99+
image: lampepfl/dotty:2018-10-01
100100
environment:
101101
- RELEASEBUILD=yes
102102
commands:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ project/local-plugins.sbt
1919
.ensime
2020
.ensime_cache/
2121
.sbt-scripted/
22+
local.sbt
2223

2324
# npm
2425
node_modules

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ val `dotty-sbt-bridge-bootstrapped` = Build.`dotty-sbt-bridge-bootstrapped`
1212
val `dotty-language-server` = Build.`dotty-language-server`
1313
val `dotty-bench` = Build.`dotty-bench`
1414
val `dotty-bench-bootstrapped` = Build.`dotty-bench-bootstrapped`
15+
val `dotty-semanticdb` = Build.`dotty-semanticdb`
1516
val `scala-library` = Build.`scala-library`
1617
val `scala-compiler` = Build.`scala-compiler`
1718
val `scala-reflect` = Build.`scala-reflect`

compiler/sjs/backend/sjs/JSCodeGen.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ class JSCodeGen()(implicit ctx: Context) {
17041704
nme.UNARY_! -> js.JSUnaryOp.!
17051705
)
17061706

1707-
def unapply(name: Names.TermName): Option[js.JSUnaryOp.Code] =
1707+
def unapply(name: TermName): Option[js.JSUnaryOp.Code] =
17081708
map.get(name)
17091709
}
17101710

@@ -1732,7 +1732,7 @@ class JSCodeGen()(implicit ctx: Context) {
17321732
nme.ZOR -> js.JSBinaryOp.||
17331733
)
17341734

1735-
def unapply(name: Names.TermName): Option[js.JSBinaryOp.Code] =
1735+
def unapply(name: TermName): Option[js.JSBinaryOp.Code] =
17361736
map.get(name)
17371737
}
17381738

compiler/sjs/backend/sjs/JSEncoding.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ object JSEncoding {
3939
private final val ScalaJSEnvironmentName = "ScalaJS"
4040

4141
implicit class SymOps(val self: Symbol) extends AnyVal {
42-
def unexpandedName(implicit ctx: Context): Names.Name =
42+
def unexpandedName(implicit ctx: Context): Name =
4343
self.name.unexpandedName
4444
}
4545

46-
implicit class MyNameOps(val self: Names.Name) extends AnyVal {
46+
implicit class MyNameOps(val self: Name) extends AnyVal {
4747
def decoded: String = self.decode.toString
4848
}
4949

compiler/sjs/backend/sjs/JSPositions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.scalajs.core.ir
1111
class JSPositions()(implicit ctx: Context) {
1212

1313
/** Implicit conversion from dotty Position to ir.Position. */
14-
implicit def pos2irPos(pos: Positions.Position): ir.Position = {
14+
implicit def pos2irPos(pos: Position): ir.Position = {
1515
if (!pos.exists) ir.Position.NoPosition
1616
else {
1717
val source = pos2irPosCache.toIRSource(ctx.compilationUnit.source)
@@ -23,7 +23,7 @@ class JSPositions()(implicit ctx: Context) {
2323

2424
/** Implicitly materializes an ir.Position from an implicit dotty Position. */
2525
implicit def implicitPos2irPos(
26-
implicit pos: Positions.Position): ir.Position = {
26+
implicit pos: Position): ir.Position = {
2727
pos2irPos(pos)
2828
}
2929

compiler/src/dotty/tools/backend/jvm/CollectEntryPoints.scala

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,15 @@ import dotty.tools.dotc.core.Contexts.Context
55
import dotty.tools.dotc.core.Types
66
import dotty.tools.dotc.transform.MegaPhase._
77
import dotty.tools.dotc.ast.tpd
8-
import dotty.tools.dotc
9-
import dotty.tools.dotc.core.Flags.FlagSet
10-
import dotty.tools.dotc.transform.Erasure
11-
import dotty.tools.dotc.transform.SymUtils._
12-
import java.io.{File => JFile}
8+
import java.io.{File => _}
139

14-
import scala.collection.generic.Clearable
15-
import scala.collection.mutable
16-
import scala.reflect.ClassTag
17-
import dotty.tools.io.{Directory, PlainDirectory, AbstractFile}
18-
import scala.tools.asm.{ClassVisitor, FieldVisitor, MethodVisitor}
19-
import scala.tools.nsc.backend.jvm.{BCodeHelpers, BackendInterface}
2010
import dotty.tools.dotc.core._
21-
import Periods._
2211
import SymDenotations._
2312
import Contexts._
2413
import Types._
2514
import Symbols._
26-
import Denotations._
27-
import Phases._
28-
import java.lang.AssertionError
2915
import dotty.tools.dotc.util.Positions.Position
3016
import Decorators._
31-
import tpd._
3217
import StdNames.nme
3318

3419
/**
@@ -46,7 +31,7 @@ class CollectEntryPoints extends MiniPhase {
4631
}
4732

4833
object CollectEntryPoints{
49-
def isJavaMainMethod(sym: Symbol)(implicit ctx: Context) = {
34+
def isJavaMainMethod(sym: Symbol)(implicit ctx: Context): Boolean = {
5035
(sym.name == nme.main) && (sym.info match {
5136
case r@MethodTpe(_, List(defn.ArrayOf(t)), _) =>
5237
(t.widenDealias =:= defn.StringType) && (
@@ -56,7 +41,6 @@ object CollectEntryPoints{
5641
}
5742

5843
def isJavaEntryPoint(sym: Symbol)(implicit ctx: Context): Boolean = {
59-
import Types.MethodType
6044
val d = ctx.definitions
6145
val StringType = d.StringType
6246
// The given class has a main method.

compiler/src/dotty/tools/backend/jvm/CollectSuperCalls.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package dotty.tools.backend.jvm
22

33
import dotty.tools.dotc.ast.tpd
4-
import dotty.tools.dotc.ast.Trees._
54
import dotty.tools.dotc.core.Contexts.Context
65
import dotty.tools.dotc.core.Symbols._
76
import dotty.tools.dotc.core.Flags.Trait

0 commit comments

Comments
 (0)