diff options
author | nielsen <nielsen@epfl.ch> | 2009-02-05 14:07:53 +0000 |
---|---|---|
committer | nielsen <nielsen@epfl.ch> | 2009-02-05 14:07:53 +0000 |
commit | f9d6f834b6700ce90f2235604e7f269748c92276 (patch) | |
tree | 3bbf19bdf012960863053cd49ba122e59286d7a8 /src/compiler/scala/tools/nsc/plugins/PluginComponent.scala | |
parent | ec3ee84bd2b4131a4d5942a63da7b834fd3f1daf (diff) | |
download | scala-f9d6f834b6700ce90f2235604e7f269748c92276.tar.gz scala-f9d6f834b6700ce90f2235604e7f269748c92276.tar.bz2 scala-f9d6f834b6700ce90f2235604e7f269748c92276.zip |
Compiler implementation of SIP 00002 and fixes ...
Compiler implementation of SIP 00002 and fixes for tests and other tools
like scaladoc
Diffstat (limited to 'src/compiler/scala/tools/nsc/plugins/PluginComponent.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/plugins/PluginComponent.scala | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/plugins/PluginComponent.scala b/src/compiler/scala/tools/nsc/plugins/PluginComponent.scala index 2b7b973a54..30c6d9bcb4 100644 --- a/src/compiler/scala/tools/nsc/plugins/PluginComponent.scala +++ b/src/compiler/scala/tools/nsc/plugins/PluginComponent.scala @@ -1,6 +1,7 @@ /* NSC -- new Scala compiler * Copyright 2007-2009 LAMP/EPFL * @author Lex Spoon + * Updated by Anders Bach Nielsen */ // $Id$ @@ -9,9 +10,16 @@ package scala.tools.nsc.plugins /** A component that is part of a Plugin. * * @author Lex Spoon - * @version 1.0, 2007/5/29 + * @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 { - /** the phase this plugin wants to run after */ - val runsAfter: String + + /** Internal flag to tell external from internal phases */ + final override val internal = false + + /** Phases supplied by plugins should not have give the runsRightAfter constraint, + * but can override it */ + val runsRightAfter: Option[String] = None + } |