summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/plugins/PluginComponent.scala
blob: c6e1af7ea42b9527a9a18808b9630cafc0c0bff0 (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
/* NSC -- new Scala compiler
 * Copyright 2007-2013 LAMP/EPFL
 * @author Lex Spoon
 * Updated by Anders Bach Nielsen
 */

package scala.tools.nsc
package plugins

/** A component that is part of a Plugin.
 *
 * @author Lex Spoon
 * @version 1.1, 2009/1/2
 * Updated 2009/1/2 by Anders Bach Nielsen: Added features to implement SIP 00002
 */
abstract class PluginComponent extends SubComponent {

  /** Internal flag to tell external from internal phases */
  final override val internal = false

  /** Phases supplied by plugins should not have to supply the
   *  runsRightAfter constraint, but can override it.
   */
  val runsRightAfter: Option[String] = None

  /** Useful for -Xshow-phases. */
  def description: String = ""

}