aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-09-26 13:46:26 +0200
committerMartin Odersky <odersky@gmail.com>2016-09-26 13:46:26 +0200
commit517aafc8e42f7204debdd2d9bff30c9fb90fab98 (patch)
tree063b9e8dbfb819614414aaf20ae3e2a1fa14c10e /src/dotty/tools/backend/jvm/DottyBackendInterface.scala
parent41ff7c286525855e345fc0641481a7cd9ec2ccee (diff)
downloaddotty-517aafc8e42f7204debdd2d9bff30c9fb90fab98.tar.gz
dotty-517aafc8e42f7204debdd2d9bff30c9fb90fab98.tar.bz2
dotty-517aafc8e42f7204debdd2d9bff30c9fb90fab98.zip
Eliminate tpd.Modifiers.
Backend does not need them after all, can just use nulls there. So the functionality is only used for printing, and it makes sense to move everything there.
Diffstat (limited to 'src/dotty/tools/backend/jvm/DottyBackendInterface.scala')
-rw-r--r--src/dotty/tools/backend/jvm/DottyBackendInterface.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index c70cb4be2..2d60d851c 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -70,7 +70,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
type Bind = tpd.Bind
type New = tpd.New
type Super = tpd.Super
- type Modifiers = tpd.Modifiers
+ type Modifiers = Null
type Annotation = Annotations.Annotation
type ArrayValue = tpd.JavaSeqLiteral
type ApplyDynamic = Null
@@ -944,7 +944,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
}
object ValDef extends ValDefDeconstructor {
- def _1: Modifiers = tpd.Modifiers(field.symbol)
+ def _1: Modifiers = null
def _2: Name = field.name
def _3: Tree = field.tpt
def _4: Tree = field.rhs
@@ -1055,7 +1055,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
}
object DefDef extends DefDefDeconstructor {
- def _1: Modifiers = tpd.Modifiers(field.symbol)
+ def _1: Modifiers = null
def _2: Name = field.name
def _3: List[TypeDef] = field.tparams
def _4: List[List[ValDef]] = field.vparamss
@@ -1081,7 +1081,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
}
object ClassDef extends ClassDefDeconstructor {
- def _1: Modifiers = tpd.Modifiers(field.symbol)
+ def _1: Modifiers = null
def _2: Name = field.name
def _4: Template = field.rhs.asInstanceOf[Template]
def _3: List[TypeDef] = Nil