blob: 6646a7b52fb46c26f424f5bbf6f085c00eb5fe2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* __ *\
** ________ ___ / / ___ __ ____ Scala.js tools **
** / __/ __// _ | / / / _ | __ / // __/ (c) 2013-2014, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ **
** /____/\___/_/ |_/____/_/ | |__/ /____/ **
** |/____/ **
\* */
package scala.scalajs.tools.classpath
import scala.collection.immutable.Seq
import scala.scalajs.tools.io.VirtualJSFile
import scala.scalajs.tools.jsdep.ResolutionInfo
/** A classpath where nothing is missing. Therefore:
* - All JS libraries are resolved and ordered
* - The CoreJSLibs are present
* - Nothing can be added anymore
*/
abstract class CompleteClasspath(
/** Resolved JS libraries */
val jsLibs: Seq[ResolvedJSDependency],
val requiresDOM: Boolean,
val version: Option[String]
) {
/** Fully linked Scala.js code */
def scalaJSCode: VirtualJSFile
/** All code in this complete classpath */
final def allCode: Seq[VirtualJSFile] = jsLibs.map(_.lib) :+ scalaJSCode
}
|