blob: 2aa177eac9614541c4e9a1c27627864d6a5fcb3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package scala.scalajs.tools.jsdep
import scala.scalajs.ir.Trees.isValidIdentifier
/** Information about a resolved JSDependency
*
* @param resourceName Filename of the JavaScript file
* @param dependencies Filenames this dependency depends on
* @param origins Who declared this dependency
* @param commonJSName Variable name in commonJS environments
*/
final class ResolutionInfo(
val resourceName: String,
val dependencies: Set[String],
val origins: List[Origin],
val commonJSName: Option[String]) {
require(commonJSName.forall(isValidIdentifier),
"commonJSName must be a valid JavaScript identifier")
}
|