org.scalajs.core

compiler

package compiler

Visibility
  1. Public
  2. All

Type Members

  1. trait Compat210Component extends AnyRef

    Hacks to have our source code compatible with 2.10 and 2.11.

    Hacks to have our source code compatible with 2.10 and 2.11. It exposes 2.11 API in a 2.10 compiler.

  2. abstract class GenJSCode extends PluginComponent with TypeKinds with JSEncoding with GenJSExports with GenJSFiles with Compat210Component

    Generate JavaScript code and output it to disk

  3. trait GenJSExports extends SubComponent

    Generation of exports for JavaScript

  4. trait GenJSFiles extends SubComponent

    Send JS ASTs to files

  5. trait JSDefinitions extends AnyRef

    Core definitions for Scala.js

  6. trait JSEncoding extends SubComponent

    Encoding of symbol names for JavaScript

    Encoding of symbol names for JavaScript

    Some issues that this encoding solves: * Overloading: encode the full signature in the JS name * Same scope for fields and methods of a class * Global access to classes and modules (by their full name)

  7. trait JSGlobalAddons extends JSDefinitions with Compat210Component

    Additions to Global meaningful for the JavaScript backend

  8. abstract class JSPrimitives extends AnyRef

    Extension of ScalaPrimitives for primitives only relevant to the JS backend

  9. trait PrepJSExports extends AnyRef

    Prepare export generation

    Prepare export generation

    Helpers for transformation of @JSExport annotations

  10. abstract class PrepJSInterop extends PluginComponent with PrepJSExports with Transform with Compat210Component

    Prepares classes extending js.Any for JavaScript interop

    Prepares classes extending js.Any for JavaScript interop

    This phase does: - Sanity checks for js.Any hierarchy - Annotate subclasses of js.Any to be treated specially - Rewrite calls to scala.Enumeration.Value (include name string) - Create JSExport methods: Dummy methods that are propagated through the whole compiler chain to mark exports. This allows exports to have the same semantics than methods.

  11. trait ScalaJSOptions extends AnyRef

    This trait allows to query all options to the ScalaJS plugin

    This trait allows to query all options to the ScalaJS plugin

    Also see the help text in ScalaJSPlugin for information about particular options.

  12. class ScalaJSPlugin extends Plugin

    Main entry point for the Scala.js compiler plugin

  13. trait TypeKinds extends SubComponent

    Glue representation of types as seen from the IR but still with a reference to the Symbols.

Value Members

  1. object Compat210Component

  2. object JSTreeExtractors

    Useful extractors for JavaScript trees

  3. object ScalaJSOptions

  4. package util

Ungrouped