diff options
author | Heather Miller <heather.miller@epfl.ch> | 2012-11-02 02:32:07 +0100 |
---|---|---|
committer | Heather Miller <heather.miller@epfl.ch> | 2012-11-02 15:00:21 +0100 |
commit | 06c71e7743259b0bc4670590dcdf3273d04d0953 (patch) | |
tree | 4a09c32666c5e18270439788c4867ead19bca720 /src/reflect/scala/reflect/api/Printers.scala | |
parent | ebf5c2296bcb317748913ac37a03615c98f75a7e (diff) | |
download | scala-06c71e7743259b0bc4670590dcdf3273d04d0953.tar.gz scala-06c71e7743259b0bc4670590dcdf3273d04d0953.tar.bz2 scala-06c71e7743259b0bc4670590dcdf3273d04d0953.zip |
SI-6132 Revisited, cleaned-up, links fixed, spelling errors fixed, rewordings
Diffstat (limited to 'src/reflect/scala/reflect/api/Printers.scala')
-rw-r--r-- | src/reflect/scala/reflect/api/Printers.scala | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/reflect/scala/reflect/api/Printers.scala b/src/reflect/scala/reflect/api/Printers.scala index b1e14f798f..85ddcc6523 100644 --- a/src/reflect/scala/reflect/api/Printers.scala +++ b/src/reflect/scala/reflect/api/Printers.scala @@ -33,7 +33,7 @@ import java.io.{ PrintWriter, StringWriter } * () * } * }}} - * + * * The method `showRaw` displays internal structure of a given reflection object * as a Scala abstract syntax tree (AST), the representation that the Scala typechecker * operates on. @@ -57,7 +57,7 @@ import java.io.{ PrintWriter, StringWriter } * Literal(Constant(2))))))), * Literal(Constant(()))) * }}} - * + * * The method `showRaw` can also print [[scala.reflect.api.Types]] next to the artifacts * being inspected * {{{ @@ -92,7 +92,7 @@ import java.io.{ PrintWriter, StringWriter } * * === Printing Types === * - * The method `show` + * The method `show` * {{{ * scala> import scala.reflect.runtime.universe._ * import scala.reflect.runtime.universe._ @@ -119,17 +119,20 @@ import java.io.{ PrintWriter, StringWriter } * * `printIds` and/or `printKinds` can additionally be supplied as arguments in a call to * `showRaw` which additionally shows the unique identifiers of symbols. + * + * {{{ * scala> showRaw(tpe, printIds = true, printKinds = true) * res2: String = RefinedType( * List(TypeRef(ThisType(scala#2043#PK), newTypeName("AnyRef")#691#TPE, List())), * Scope( * newTermName("x")#2540#METH, * newTermName("y")#2541#GET)) - * }}} + * }}} * - * For more details about `Printer`s and other aspects of Scala reflection, see the + * For more details about `Printer`s and other aspects of Scala reflection, see the * [[http://docs.scala-lang.org/overviews/reflection/overview.html Reflection Guide]] * + * @group ReflectionAPI */ trait Printers { self: Universe => |