SJSPlatform

class SJSPlatform(using `x$1`: Context) extends JavaPlatform
Companion
object
class Platform
class Object
trait Matchable
class Any

Value members

Concrete methods

override def isSam(cls: ClassSymbol)(using Context): Boolean

Is the SAMType cls also a SAM under the rules of the Scala.js back-end?

Is the SAMType cls also a SAM under the rules of the Scala.js back-end?

Definition Classes

Is the given class symbol eligible for Java serialization-specific methods?

Is the given class symbol eligible for Java serialization-specific methods?

This is not simply false because we still want to add them to Scala classes and objects. They might be transitively used by macros and other compile-time code. It feels safer to have them be somewhat equivalent to the ones we would get in a JVM project. The JVM back-end will slap an extends java.io.Serializable to them, so we should be consistent and also emit the proper serialization methods.

Definition Classes

Inherited methods

Inherited from
JavaPlatform
final def hasMainMethod(sym: Symbol)(using Context): Boolean

The given class has a main method.

The given class has a main method.

Inherited from
Platform
def isMainMethod(sym: Symbol)(using Context): Boolean
Inherited from
JavaPlatform

We could get away with excluding BoxedBooleanClass for the purpose of equality testing since it need not compare equal to anything but other booleans, but it should be present in case this is put to other uses.

We could get away with excluding BoxedBooleanClass for the purpose of equality testing since it need not compare equal to anything but other booleans, but it should be present in case this is put to other uses.

Inherited from
JavaPlatform
Inherited from
JavaPlatform

Update classpath with a substituted subentry

Update classpath with a substituted subentry

Inherited from
JavaPlatform

Concrete fields

Scala.js-specific definitions.

Scala.js-specific definitions.