summaryrefslogtreecommitdiff
path: root/docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-12-10 11:14:46 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-12-10 11:14:46 -0800
commitf40541788957c257ee8b4035e0063a8a48945c11 (patch)
treedf574bd0aefe1e809fb890e42cdf2bf189659cfa /docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala
parent0c927046dc5df974e6c39187107cf3548825282b (diff)
parent27a38602decb891399fc9868b4dd7135f6e1ec2c (diff)
downloadscala-f40541788957c257ee8b4035e0063a8a48945c11.tar.gz
scala-f40541788957c257ee8b4035e0063a8a48945c11.tar.bz2
scala-f40541788957c257ee8b4035e0063a8a48945c11.zip
Merge pull request #3248 from adriaanm/dist-cleanup-licenses
Clean up Scala distribution a bit.
Diffstat (limited to 'docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala')
-rw-r--r--docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala35
1 files changed, 0 insertions, 35 deletions
diff --git a/docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala b/docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala
deleted file mode 100644
index b63f3203b5..0000000000
--- a/docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala
+++ /dev/null
@@ -1,35 +0,0 @@
-package plugintemplate
-
-import scala.tools.nsc._
-import scala.tools.nsc.plugins.PluginComponent
-
-/** This class shows how to implement a compiler component that
- * can be used in a compiler plugin. If the plugin uses a tree
- * transformer and / or an InfoTransformer, look at the two
- * classes <code>TemplateTransformComponent</code> and
- * <code>TemplateInfoTransformComponent</code>.
- *
- * @todo Adapt the name of this class to the plugin, and implement it.
- */
-class TemplateComponent(val global: Global) extends PluginComponent {
- import global._
-
- val runsAfter = List[String]("refchecks")
-
- /** The name of this plugin phase
- * @todo Adapt to specific plugin.
- */
- val phaseName = "plugintemplate"
-
- def newPhase(prev: Phase) = new Phase(prev) {
- def name = phaseName
-
- /** The implementation of this Phase's behavior
- *
- * @todo Implementation.
- */
- def run {
- println("Hello from phase "+ name)
- }
- }
-}