aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/sjs/JSPrimitives.scala
diff options
context:
space:
mode:
authorSébastien Doeraene <sjrdoeraene@gmail.com>2016-03-05 01:08:18 +0100
committerSébastien Doeraene <sjrdoeraene@gmail.com>2016-03-07 14:41:36 +0100
commitc14c9c096d09d9e21f1fd4ec27e6b416db01512f (patch)
tree628838c31d6d2ca6c46bb5591882501cdb608030 /src/dotty/tools/backend/sjs/JSPrimitives.scala
parenta50926701ef5171779aa025d2d307751d166cabe (diff)
downloaddotty-c14c9c096d09d9e21f1fd4ec27e6b416db01512f.tar.gz
dotty-c14c9c096d09d9e21f1fd4ec27e6b416db01512f.tar.bz2
dotty-c14c9c096d09d9e21f1fd4ec27e6b416db01512f.zip
Move the logic of ExpandSAMs.isJvmSam to Platform.isSam.
Whether a language SAM type is also a valid SAM type for the back-end is a platform-specific thing. On Scala.js, for example, the rules are completely different than for the JVM. This commit therefore moves the logic of the predicate used by ExpandSAMs to decide whether to expand a SAM as an anonymous class to the Platform.
Diffstat (limited to 'src/dotty/tools/backend/sjs/JSPrimitives.scala')
0 files changed, 0 insertions, 0 deletions