Package

org.scalajs

linker

Permalink

package linker

Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class CheckedBehavior extends AnyRef

    Permalink
  2. trait ClearableLinker extends Linker

    Permalink

    A box around a Linker to support clearing.

    A box around a Linker to support clearing.

    Calling clear() completely resets the state of this ClearableLinker, so that it can be used again without being affected by previous calls to link, even of those would have corrupted the internal state.

    In addition to the contract of Linker, if Linker.link throws an exception, the ClearableLinker is automatically clear()'ed.

    Implementations are allowed to automatically clear() in other cases, but never while a linking is in progress.

    Unless otherwise specified, instances of this trait are not thread-safe.

  3. final class ESFeatures extends AnyRef

    Permalink

    ECMAScript features to use when linking to JavaScript.

    ECMAScript features to use when linking to JavaScript.

    The options in ESFeatures specify what features of modern versions of JavaScript are used by the Scala.js linker.

    • Options whose name is of the form useX *force* the linker to use the corresponding features, guaranteeing that the specific semantics that they provide will be used.
    • Options whose name is of the form allowX *allow* the linker to use the corresponding features if it supports them. Support for such options can be dropped in any subsequent version of the linker, including patch versions.
  4. abstract class Linker extends AnyRef

    Permalink

    A Scala.js linker, with its most abstract API.

    A Scala.js linker, with its most abstract API.

    A linker can take a sequence of virtual .sjsir files and a sequence of module initializers, link them together, and write the output to a writable .js file.

  5. final class LinkerOutput extends AnyRef

    Permalink

    Output specification for a linker run.

  6. class LinkingException extends Exception

    Permalink

    Thrown by the linker when linking cannot be performed.

  7. sealed abstract class ModuleInitializer extends AnyRef

    Permalink

    A module initializer for a Scala.js application.

    A module initializer for a Scala.js application.

    When linking a Scala.js application, a sequence of ModuleInitializers can be given. Those module initializers will be executed at the startup of the application. More specifically, the top-level code of the ECMAScript 2015 module emitted for the application will invoke the specified module initializers in the specified order, after having initialized everything else (notably static initializers).

    Instances of ModuleInitializer can be created with methods of the ModuleInitializer companion object.

  8. abstract class ModuleKind extends AnyRef

    Permalink

    Kind of module structure emitted for the Scala.js output.

  9. final class Semantics extends AnyRef

    Permalink

Value Members

  1. object CheckedBehavior

    Permalink
  2. object ClearableLinker

    Permalink
  3. object ESFeatures

    Permalink
  4. object LinkerOutput

    Permalink
  5. object ModuleInitializer

    Permalink

    Factory for ModuleInitializers.

  6. object ModuleKind

    Permalink
  7. object Semantics

    Permalink
  8. object StandardLinker

    Permalink
  9. object StandardLinkerPlatformExtensions

    Permalink
  10. package analyzer

    Permalink
  11. package backend

    Permalink
  12. package checker

    Permalink
  13. package frontend

    Permalink
  14. package irio

    Permalink
  15. package standard

    Permalink

Ungrouped