diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-10-26 16:19:35 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:06 +0100 |
commit | 06a3d47ea9fd1b67b3acba9d115a16d18549e377 (patch) | |
tree | 36311873f40e1410154c50d00abb03715619e8cc /src/dotty/tools/dotc/config/SJSPlatform.scala | |
parent | 0da788c52121e44de6be0cdc7a0c4c6e1b125ff9 (diff) | |
download | dotty-06a3d47ea9fd1b67b3acba9d115a16d18549e377.tar.gz dotty-06a3d47ea9fd1b67b3acba9d115a16d18549e377.tar.bz2 dotty-06a3d47ea9fd1b67b3acba9d115a16d18549e377.zip |
Move sjs, make sure that partest compiles everything in dirs
Diffstat (limited to 'src/dotty/tools/dotc/config/SJSPlatform.scala')
-rw-r--r-- | src/dotty/tools/dotc/config/SJSPlatform.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/dotty/tools/dotc/config/SJSPlatform.scala b/src/dotty/tools/dotc/config/SJSPlatform.scala deleted file mode 100644 index 3ec8049ae..000000000 --- a/src/dotty/tools/dotc/config/SJSPlatform.scala +++ /dev/null @@ -1,18 +0,0 @@ -package dotty.tools.dotc.config - -import dotty.tools.dotc.core._ -import Contexts._ -import Symbols._ - -import dotty.tools.backend.sjs.JSDefinitions - -class SJSPlatform()(implicit ctx: Context) extends JavaPlatform { - - /** Scala.js-specific definitions. */ - val jsDefinitions: JSDefinitions = new JSDefinitions() - - /** Is the SAMType `cls` also a SAM under the rules of the Scala.js back-end? */ - override def isSam(cls: ClassSymbol)(implicit ctx: Context): Boolean = - defn.isFunctionClass(cls) || jsDefinitions.isJSFunctionClass(cls) - -} |