From 6c7497dff45b3c373d9f061c031968b822740fa3 Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 15 Dec 2009 16:19:47 +0000 Subject: corrected @usecase and imports in plugin example --- .../plugintemplate/src/plugintemplate/standalone/Main.scala | 4 ++-- .../src/plugintemplate/standalone/PluginRunner.scala | 8 ++++---- src/library/scala/collection/MapLike.scala | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/examples/plugintemplate/src/plugintemplate/standalone/Main.scala b/docs/examples/plugintemplate/src/plugintemplate/standalone/Main.scala index 3e93526c68..53e5e40104 100644 --- a/docs/examples/plugintemplate/src/plugintemplate/standalone/Main.scala +++ b/docs/examples/plugintemplate/src/plugintemplate/standalone/Main.scala @@ -1,6 +1,6 @@ -package plugintemplate -package standalone +package plugintemplate.standalone +import plugintemplate.PluginProperties import scala.tools.nsc.CompilerCommand import scala.tools.nsc.Settings diff --git a/docs/examples/plugintemplate/src/plugintemplate/standalone/PluginRunner.scala b/docs/examples/plugintemplate/src/plugintemplate/standalone/PluginRunner.scala index 7443f9260f..786d72d37c 100644 --- a/docs/examples/plugintemplate/src/plugintemplate/standalone/PluginRunner.scala +++ b/docs/examples/plugintemplate/src/plugintemplate/standalone/PluginRunner.scala @@ -1,6 +1,6 @@ -package plugintemplate -package standalone +package plugintemplate.standalone +import plugintemplate.{TemplateAnnotationChecker, TemplatePlugin} import scala.tools.nsc.{Global, Settings, SubComponent} import scala.tools.nsc.reporters.{ConsoleReporter, Reporter} @@ -12,7 +12,7 @@ extends Global(settings, reporter) { def this(settings: Settings) = this(settings, new ConsoleReporter(settings)) val annotChecker = new TemplateAnnotationChecker { - val global: PluginRunner.this.type = PluginRunner.this + val global: PluginRunner.this.type = PluginRunner.this } addAnnotationChecker(annotChecker.checker) @@ -20,7 +20,7 @@ extends Global(settings, reporter) { * * @todo: Adapt to specific plugin implementation */ - override protected def computeInternalPhases() : Unit = { + override protected def computeInternalPhases() { phasesSet += syntaxAnalyzer phasesSet += analyzer.namerFactory phasesSet += analyzer.typerFactory diff --git a/src/library/scala/collection/MapLike.scala b/src/library/scala/collection/MapLike.scala index 812d420331..55cea1a678 100644 --- a/src/library/scala/collection/MapLike.scala +++ b/src/library/scala/collection/MapLike.scala @@ -111,7 +111,7 @@ self => * @tparam B1 the result type of the default computation. * @return the value assocuated with `key` if it exists, * otherwise the result of the `default` computation. - * @usecase getOrElse(key: A, default: => B): B + * @usecase def getOrElse(key: A, default: => B): B */ def getOrElse[B1 >: B](key: A, default: => B1): B1 = get(key) match { case Some(v) => v -- cgit v1.2.3