Skip to content

Commit 6b53b03

Browse files
committed
ScalaDoc fixes for compiler
1 parent a745f06 commit 6b53b03

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

src/compiler/scala/tools/nsc/ScriptRunner.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ import util.Exceptional.unwrap
1616

1717
/** An object that runs Scala code in script files.
1818
*
19-
* <p>For example, here is a complete Scala script on Unix:</pre>
20-
* <pre>
19+
* For example, here is a complete Scala script on Unix:
20+
* {{{
2121
* #!/bin/sh
2222
* exec scala "$0" "$@"
2323
* !#
2424
* Console.println("Hello, world!")
2525
* args.toList foreach Console.println
26-
* </pre>
27-
* <p>And here is a batch file example on Windows XP:</p>
28-
* <pre>
26+
* }}}
27+
* And here is a batch file example on Windows XP:
28+
* {{{
2929
* ::#!
3030
* @echo off
3131
* call scala %0 %*
3232
* goto :eof
3333
* ::!#
3434
* Console.println("Hello, world!")
3535
* args.toList foreach Console.println
36-
* </pre>
36+
* }}}
3737
*
3838
* @author Lex Spoon
3939
* @version 1.0, 15/05/2006

src/compiler/scala/tools/nsc/ast/parser/Scanners.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ trait Scanners extends ScannersCommon {
226226
* RPAREN if region starts with '('
227227
* RBRACKET if region starts with '['
228228
* RBRACE if region starts with '{'
229-
* ARROW if region starts with `case'
229+
* ARROW if region starts with 'case'
230230
* STRINGLIT if region is a string interpolation expression starting with '${'
231231
* (the STRINGLIT appears twice in succession on the stack iff the
232232
* expression is a multiline string literal).

src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ abstract class GenASM extends SubComponent with BytecodeWriters { self =>
495495
* generic classes or interfaces.
496496
*
497497
* @param superName the internal of name of the super class. For interfaces,
498-
* the super class is {@link Object}. May be <tt>null</tt>, but
499-
* only for the {@link Object} class.
498+
* the super class is [[Object]]. May be <tt>null</tt>, but
499+
* only for the [[Object]] class.
500500
*
501501
* @param interfaces the internal names of the class's interfaces (see
502502
* {@link Type#getInternalName() getInternalName}). May be

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import scala.language.postfixOps
4444
* which is essentially the intersection of X and |P|, where |P| is
4545
* the erasure of P. If XR <: P, then no warning is emitted.
4646
*
47-
* We evaluate "X with conform to P" by checking `X <: P_wild, where
47+
* We evaluate "X with conform to P" by checking `X <: P_wild`, where
4848
* P_wild is the result of substituting wildcard types in place of
4949
* pattern type variables. This is intentionally stricter than
5050
* (X matchesPattern P), see SI-8597 for motivating test cases.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ trait Implicits {
110110
* Ignore their constr field! The list of type constraints returned along with each tree specifies the constraints that
111111
* must be met by the corresponding type parameter in `tpars` (for the returned implicit view to be valid).
112112
*
113-
* @arg tp from-type for the implicit conversion
114-
* @arg context search implicits here
115-
* @arg tpars symbols that should be considered free type variables
116-
* (implicit search should not try to solve them, just track their constraints)
113+
* @param tp from-type for the implicit conversion
114+
* @param context search implicits here
115+
* @param tpars symbols that should be considered free type variables
116+
* (implicit search should not try to solve them, just track their constraints)
117117
*/
118118
def allViewsFrom(tp: Type, context: Context, tpars: List[Symbol]): List[(SearchResult, List[TypeConstraint])] = {
119119
// my untouchable typevars are better than yours (they can't be constrained by them)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ trait Infer extends Checkable {
13751375
* Otherwise, if there is no best alternative, error.
13761376
*
13771377
* @param argtpes0 contains the argument types. If an argument is named, as
1378-
* "a = 3", the corresponding type is `NamedType("a", Int)'. If the name
1378+
* "a = 3", the corresponding type is `NamedType("a", Int)`. If the name
13791379
* of some NamedType does not exist in an alternative's parameter names,
13801380
* the type is replaces by `Unit`, i.e. the argument is treated as an
13811381
* assignment expression.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ trait StdAttachments {
132132
/** Marks the tree as a macro impl reference, which is a naked reference to a method.
133133
*
134134
* This is necessary for typechecking macro impl references (see `DefaultMacroCompiler.defaultResolveMacroImpl`),
135-
* because otherwise typing a naked reference will result in the "follow this method with `_' if you want to
135+
* because otherwise typing a naked reference will result in the "follow this method with `_` if you want to
136136
* treat it as a partially applied function" errors.
137137
*
138138
* This mark suppresses adapt except for when the annottee is a macro application.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ trait Tags {
3636
* @param allowMaterialization If true (default) then the resolver is allowed to launch materialization macros when there's no class tag in scope.
3737
* If false then materialization macros are prohibited from running.
3838
*
39-
* @returns Tree that represents an `scala.reflect.ClassTag` for `tp` if everything is okay.
39+
* @return Tree that represents an `scala.reflect.ClassTag` for `tp` if everything is okay.
4040
* EmptyTree if the result contains unresolved (i.e. not spliced) type parameters and abstract type members.
4141
* EmptyTree if `allowMaterialization` is false, and there is no class tag in scope.
4242
*/
@@ -57,7 +57,7 @@ trait Tags {
5757
* @param allowMaterialization If true (default) then the resolver is allowed to launch materialization macros when there's no type tag in scope.
5858
* If false then materialization macros are prohibited from running.
5959
*
60-
* @returns Tree that represents a `scala.reflect.TypeTag` for `tp` if everything is okay.
60+
* @return Tree that represents a `scala.reflect.TypeTag` for `tp` if everything is okay.
6161
* EmptyTree if `concrete` is true and the result contains unresolved (i.e. not spliced) type parameters and abstract type members.
6262
* EmptyTree if `allowMaterialization` is false, and there is no array tag in scope.
6363
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
27252725
*
27262726
* If 'T' is not fully defined, it is inferred by type checking
27272727
* `apply$body` without a result type before type checking the block.
2728-
* The method's inferred result type is used instead of T`. [See test/files/pos/sammy_poly.scala]
2728+
* The method's inferred result type is used instead of `T`. [See test/files/pos/sammy_poly.scala]
27292729
*
27302730
* The `apply` method is identified by the argument `sam`; `S` corresponds to the argument `samClassTp`,
27312731
* and `resPt` is derived from `samClassTp` -- it may be fully defined, or not...

src/compiler/scala/tools/nsc/util/DocStrings.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object DocStrings {
3737
/** Returns index of string `str` after `start` skipping longest
3838
* sequence of space and tab characters, possibly also containing
3939
* a single `*` character or the `/``**` sequence.
40-
* @pre start == str.length || str(start) == `\n'
40+
* @pre start == str.length || str(start) == `\n`
4141
*/
4242
def skipLineLead(str: String, start: Int): Int =
4343
if (start == str.length) start
@@ -49,7 +49,7 @@ object DocStrings {
4949
else idx
5050
}
5151

52-
/** Skips to next occurrence of `\n' or to the position after the `/``**` sequence following index `start`.
52+
/** Skips to next occurrence of `\n` or to the position after the `/``**` sequence following index `start`.
5353
*/
5454
def skipToEol(str: String, start: Int): Int =
5555
if (start + 2 < str.length && (str charAt start) == '/' && (str charAt (start + 1)) == '*' && (str charAt (start + 2)) == '*') start + 3

0 commit comments

Comments
 (0)