summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2012-04-24 07:27:22 +0900
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2012-04-24 07:27:22 +0900
commit4a4d7e5defb6a436521e5b5c0e5a7fa0154745da (patch)
treecad21084377006352719b19f4469e8097cf58c1a
parent3b61d19cdc7a4836aaee92dd45c811808da66e18 (diff)
downloadscala-4a4d7e5defb6a436521e5b5c0e5a7fa0154745da.tar.gz
scala-4a4d7e5defb6a436521e5b5c0e5a7fa0154745da.tar.bz2
scala-4a4d7e5defb6a436521e5b5c0e5a7fa0154745da.zip
$op_name, $op_names, $plus and $eq are not macro
-rw-r--r--src/compiler/scala/reflect/internal/Names.scala4
-rwxr-xr-xsrc/library/scala/reflect/api/Names.scala8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/compiler/scala/reflect/internal/Names.scala b/src/compiler/scala/reflect/internal/Names.scala
index dc89b14869..23eaa1088c 100644
--- a/src/compiler/scala/reflect/internal/Names.scala
+++ b/src/compiler/scala/reflect/internal/Names.scala
@@ -397,14 +397,14 @@ trait Names extends api.Names {
// def decodedName: ThisNameType = newName(decoded)
def encodedName: ThisNameType = encode
- /** Replace operator symbols by corresponding $op_name. */
+ /** Replace operator symbols by corresponding \$op_name. */
def encode: ThisNameType = {
val str = toString
val res = NameTransformer.encode(str)
if (res == str) thisName else newName(res)
}
- /** Replace $op_name by corresponding operator symbol. */
+ /** Replace \$op_name by corresponding operator symbol. */
def decode: String = {
if (this containsChar '$') {
val str = toString
diff --git a/src/library/scala/reflect/api/Names.scala b/src/library/scala/reflect/api/Names.scala
index d92d056751..96651ffa88 100755
--- a/src/library/scala/reflect/api/Names.scala
+++ b/src/library/scala/reflect/api/Names.scala
@@ -33,13 +33,13 @@ trait Names {
/** Returns a type name that represents the same string as this name */
def toTypeName: TypeName
- /** Replaces all occurrences of $op_names in this name by corresponding operator symbols.
- * Example: `foo_$plus$eq` becomes `foo_+=`
+ /** Replaces all occurrences of \$op_names in this name by corresponding operator symbols.
+ * Example: `foo_\$plus\$eq` becomes `foo_+=`
*/
def decoded: String
- /** Replaces all occurrences of operator symbols in this name by corresponding $op_names.
- * Example: `foo_+=` becomes `foo_$plus$eq`.
+ /** Replaces all occurrences of operator symbols in this name by corresponding \$op_names.
+ * Example: `foo_+=` becomes `foo_\$plus\$eq`.
*/
def encoded: String