Skip to content

Commit 4c3e766

Browse files
committed
it's Scaladoc, not "ScalaDoc" or "Scala doc"
renaming the existing ScalaDoc and ScalaDocReporter classes might break stuff, sadly, but at least we can fix the rest
1 parent e10413e commit 4c3e766

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

src/compiler/scala/tools/nsc/Global.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter)
231231
/** Called from parser, which signals hereby that a method definition has been parsed. */
232232
def signalParseProgress(pos: Position) {}
233233

234-
/** Called by ScalaDocAnalyzer when a doc comment has been parsed. */
234+
/** Called by ScaladocAnalyzer when a doc comment has been parsed. */
235235
def signalParsedDocComment(comment: String, pos: Position) = {
236236
// TODO: this is all very broken (only works for scaladoc comments, not regular ones)
237237
// --> add hooks to parser and refactor Interactive global to handle comments directly

src/compiler/scala/tools/nsc/Reporting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ trait Reporting extends scala.reflect.internal.Reporting { self: ast.Positions w
7878
s"""|
7979
|This can be achieved by adding the import clause 'import $fqname'
8080
|or by setting the compiler option -language:$featureName.
81-
|See the Scala docs for value $fqname for a discussion
81+
|See the Scaladoc for value $fqname for a discussion
8282
|why the feature $req be explicitly enabled.""".stripMargin
8383
)
8484
reportedFeature += featureTrait

src/compiler/scala/tools/nsc/settings/Warnings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ trait Warnings {
4949
val NullaryOverride = LintWarning("nullary-override", "Warn when non-nullary `def f()' overrides nullary `def f'.", true)
5050
val InferAny = LintWarning("infer-any", "Warn when a type argument is inferred to be `Any`.", true)
5151
val MissingInterpolator = LintWarning("missing-interpolator", "A string literal appears to be missing an interpolator id.")
52-
val DocDetached = LintWarning("doc-detached", "A ScalaDoc comment appears to be detached from its element.")
52+
val DocDetached = LintWarning("doc-detached", "A Scaladoc comment appears to be detached from its element.")
5353
val PrivateShadow = LintWarning("private-shadow", "A private field (or class parameter) shadows a superclass field.")
5454
val TypeParameterShadow = LintWarning("type-parameter-shadow", "A local type parameter shadows a type already in scope.")
5555
val PolyImplicitOverload = LintWarning("poly-implicit-overload", "Parameterized overloaded implicit methods are not visible as view bounds.")

src/compiler/scala/tools/nsc/typechecker/Implicits.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,10 @@ trait Implicits {
588588
if (Statistics.canEnable) Statistics.incCounter(matchingImplicits)
589589

590590
// workaround for deficient context provided by ModelFactoryImplicitSupport#makeImplicitConstraints
591-
val isScalaDoc = context.tree == EmptyTree
591+
val isScaladoc = context.tree == EmptyTree
592592

593593
val itree0 = atPos(pos.focus) {
594-
if (isLocalToCallsite && !isScalaDoc) {
594+
if (isLocalToCallsite && !isScaladoc) {
595595
// SI-4270 SI-5376 Always use an unattributed Ident for implicits in the local scope,
596596
// rather than an attributed Select, to detect shadowing.
597597
Ident(info.name)
@@ -628,7 +628,7 @@ trait Implicits {
628628
// for instance, if we have `class C[T]` and `implicit def conv[T: Numeric](c: C[T]) = ???`
629629
// then Scaladoc will give us something of type `C[T]`, and it would like to know
630630
// that `conv` is potentially available under such and such conditions
631-
case tree if isImplicitMethodType(tree.tpe) && !isScalaDoc =>
631+
case tree if isImplicitMethodType(tree.tpe) && !isScaladoc =>
632632
applyImplicitArgs(tree)
633633
case tree => tree
634634
}

src/interactive/scala/tools/nsc/interactive/Global.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ trait InteractiveAnalyzer extends Analyzer {
8080
val existingDerivedSym = owningInfo.decl(sym.name.toTermName).filter(sym => sym.isSynthetic && sym.isMethod)
8181
existingDerivedSym.alternatives foreach (owningInfo.decls.unlink)
8282
val defTree = tree match {
83-
case dd: DocDef => dd.definition // See SI-9011, Scala IDE's presentation compiler incorporates ScalaDocGlobal with InterativeGlobal, so we have to unwrap DocDefs.
83+
case dd: DocDef => dd.definition // See SI-9011, Scala IDE's presentation compiler incorporates ScaladocGlobal with InteractiveGlobal, so we have to unwrap DocDefs.
8484
case _ => tree
8585
}
8686
enterImplicitWrapper(defTree.asInstanceOf[ClassDef])

src/scaladoc/scala/tools/nsc/doc/ScaladocAnalyzer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ abstract class ScaladocSyntaxAnalyzer[G <: Global](val global: G) extends Syntax
125125
} else if (in.ch == '*') {
126126
docBuffer = null
127127
in.next
128-
val scalaDoc = ("/**", "*/")
128+
val scaladoc = ("/**", "*/")
129129
if (in.ch == '*')
130-
docBuffer = new StringBuilder(scalaDoc._1)
130+
docBuffer = new StringBuilder(scaladoc._1)
131131
do {
132132
do {
133133
if (in.ch != '*' && in.ch != SU) {

src/scaladoc/scala/tools/nsc/doc/Settings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Settings(error: String => Unit, val printMsg: String => Unit = println(_))
4545
val docfooter = StringSetting (
4646
"-doc-footer",
4747
"footer",
48-
"A footer on every ScalaDoc page, by default the EPFL/Typesafe copyright notice. Can be overridden with a custom footer.",
48+
"A footer on every Scaladoc page, by default the EPFL/Typesafe copyright notice. Can be overridden with a custom footer.",
4949
""
5050
)
5151

test/disabled/presentation/akka/src/akka/actor/Supervisor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ case class SupervisorFactory(val config: SupervisorConfig) {
9595
* wire the children together using 'link', 'spawnLink' etc. and set the 'trapExit' flag in the
9696
* children that should trap error signals and trigger restart.
9797
* <p/>
98-
* See the ScalaDoc for the SupervisorFactory for an example on how to declaratively wire up children.
98+
* See the Scaladoc for the SupervisorFactory for an example on how to declaratively wire up children.
9999
*
100100
* @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a>
101101
*/

test/files/neg/macro-without-xmacros-a.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Macros_2.scala:5: error: macro definition needs to be enabled
22
by making the implicit value scala.language.experimental.macros visible.
33
This can be achieved by adding the import clause 'import scala.language.experimental.macros'
44
or by setting the compiler option -language:experimental.macros.
5-
See the Scala docs for value scala.language.experimental.macros for a discussion
5+
See the Scaladoc for value scala.language.experimental.macros for a discussion
66
why the feature needs to be explicitly enabled.
77
def foo(x: Int): Int = macro foo_impl
88
^

test/files/neg/macro-without-xmacros-b.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Macros_2.scala:3: error: macro definition needs to be enabled
22
by making the implicit value scala.language.experimental.macros visible.
33
This can be achieved by adding the import clause 'import scala.language.experimental.macros'
44
or by setting the compiler option -language:experimental.macros.
5-
See the Scala docs for value scala.language.experimental.macros for a discussion
5+
See the Scaladoc for value scala.language.experimental.macros for a discussion
66
why the feature needs to be explicitly enabled.
77
def foo(x: Int): Int = macro Impls.foo_impl
88
^

0 commit comments

Comments
 (0)