summaryrefslogtreecommitdiff
path: root/examples/scala-js/tools/shared/src/main/scala/scala/scalajs/tools/classpath/builder/ClasspathContentHandler.scala
blob: 71106c21a1565f4bf08c4855b610992da34c885f (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
/*                     __                                               *\
**     ________ ___   / /  ___      __ ____  Scala.js tools             **
**    / __/ __// _ | / /  / _ | __ / // __/  (c) 2013-2014, LAMP/EPFL   **
**  __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \    http://scala-js.org/       **
** /____/\___/_/ |_/____/_/ | |__/ /____/                               **
**                          |/____/                                     **
\*                                                                      */


package scala.scalajs.tools.classpath.builder

import scala.scalajs.tools.io._
import scala.scalajs.tools.jsdep._
import scala.scalajs.tools.classpath._

import java.io._

import scala.collection.immutable.Seq

/** Base-trait used by traversers to handle content with callbacks */
trait ClasspathContentHandler {
  protected def handleIR(relPath: String, ir: => VirtualScalaJSIRFile): Unit
  protected def handleJS(js: => VirtualJSFile): Unit
  protected def handleDepManifest(m: => JSDependencyManifest): Unit
}