diff options
Diffstat (limited to 'examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation')
9 files changed, 0 insertions, 178 deletions
diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSBracketAccess.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSBracketAccess.scala deleted file mode 100644 index 596e327..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSBracketAccess.scala +++ /dev/null @@ -1,17 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Marks the annotated method as representing bracket access in JavaScript. - * - * @see [[http://www.scala-js.org/doc/calling-javascript.html Calling JavaScript from Scala.js]] - */ -class JSBracketAccess extends scala.annotation.StaticAnnotation diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExport.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExport.scala deleted file mode 100644 index 0fa9a4e..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExport.scala +++ /dev/null @@ -1,19 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Specifies that the given entity should be exported for use in raw JS. - * - * @see [[http://www.scala-js.org/doc/export-to-javascript.html Export Scala.js APIs to JavaScript]] - */ -class JSExport extends scala.annotation.StaticAnnotation { - def this(name: String) = this() -} diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportAll.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportAll.scala deleted file mode 100644 index 8174595..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportAll.scala +++ /dev/null @@ -1,21 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Exports all public members directly defined in a class / object. - * - * Strictly equivalent to putting [[JSExport]] on every public member. - * Note: You are allowed to export protected members, but you'll have to do - * this explicitly on each member. - * - * @see [[http://www.scala-js.org/doc/export-to-javascript.html Export Scala.js APIs to JavaScript]] - */ -class JSExportAll extends scala.annotation.StaticAnnotation diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportDescendentClasses.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportDescendentClasses.scala deleted file mode 100644 index 9f2be96..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportDescendentClasses.scala +++ /dev/null @@ -1,20 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ __ ____ Scala.js API ** -** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | |__/ /____/ ** -** |/____/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Specifies that all the concrete classes extending the annotated class or - * should have all their public constructors exported for use in raw JS. - * The constructors exported this way are exported under their fully - * qualified name. - * - * @see [[http://www.scala-js.org/doc/export-to-javascript.html Export Scala.js APIs to JavaScript]] - */ -class JSExportDescendentClasses extends scala.annotation.StaticAnnotation diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportDescendentObjects.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportDescendentObjects.scala deleted file mode 100644 index c196b53..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportDescendentObjects.scala +++ /dev/null @@ -1,20 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ __ ____ Scala.js API ** -** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | |__/ /____/ ** -** |/____/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Specifies that all the objects extending the annotated class or trait - * should be exported for use in raw JS. - * Note that objects exported this way are exported under their fully - * qualified name. - * - * @see [[http://www.scala-js.org/doc/export-to-javascript.html Export Scala.js APIs to JavaScript]] - */ -class JSExportDescendentObjects extends scala.annotation.StaticAnnotation diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportNamed.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportNamed.scala deleted file mode 100644 index 718404a..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSExportNamed.scala +++ /dev/null @@ -1,38 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Exports the given method to JavaScript with named parameters. - * - * It can then be called like this: - * {{{ - * obj.foo({ - * param1: value1 - * param2: value2 - * param7: value3 - * }); - * }}} - * - * Note that named exports don't support overloading. Therefore the - * following will fail: - * {{{ - * class A { - * @JSExportNamed - * def a(foo: Int) = foo + 1 - * @JSExportNamed - * def a(bar: String) = "Hello " + bar - * } - * }}} - * @see [[http://www.scala-js.org/doc/export-to-javascript.html Export Scala.js APIs to JavaScript]] - */ -class JSExportNamed extends scala.annotation.StaticAnnotation { - def this(name: String) = this() -} diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSName.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSName.scala deleted file mode 100644 index 5401749..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/JSName.scala +++ /dev/null @@ -1,17 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Specifies the JavaScript name of an entity. - * - * @see [[http://www.scala-js.org/doc/calling-javascript.html Calling JavaScript from Scala.js]] - */ -class JSName(name: String) extends scala.annotation.StaticAnnotation diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/README.md b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/README.md deleted file mode 100644 index 9ce7ebf..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/README.md +++ /dev/null @@ -1,3 +0,0 @@ -**Attention**: Some files in here are also published in the Scala.js stubs JVM library (see the stubs project in the Scala.js build). - -If you add (or rename) a file, make sure the files in the stubs project are up to date. diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/RawJSType.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/RawJSType.scala deleted file mode 100644 index a5bb771..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/annotation/RawJSType.scala +++ /dev/null @@ -1,23 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003-2013, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - - - -package scala.scalajs.js.annotation - -/** Marks the annotated class, trait or object as a raw JavaScript type. - * - * This annotation is added automatically by the compiler to all classes, - * traits and objects inheriting directly or indirectly from - * [[scala.scalajs.js.Any]]. It marks the annotated entity as being a raw - * JavaScript type, i.e., one that represents type information for an entity - * defined in JavaScript code. - * - * Do not use this annotation yourself. - */ -class RawJSType extends scala.annotation.StaticAnnotation |