aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/util/Chars.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-09-26 15:33:42 +0200
committerMartin Odersky <odersky@gmail.com>2013-09-26 15:33:42 +0200
commitfcb68309c2760a6797b0a9ec23722808060e9aa1 (patch)
treefc0a9189baeb3991f3a7a67b98683cebeb8fd244 /src/dotty/tools/dotc/util/Chars.scala
parent54acd26dcf377e2eb2a474399894e10cfd4322f5 (diff)
downloaddotty-fcb68309c2760a6797b0a9ec23722808060e9aa1.tar.gz
dotty-fcb68309c2760a6797b0a9ec23722808060e9aa1.tar.bz2
dotty-fcb68309c2760a6797b0a9ec23722808060e9aa1.zip
Direct access to symbol in TermRef
If symbol was given explicitly, return it directly rather than going through denot.
Diffstat (limited to 'src/dotty/tools/dotc/util/Chars.scala')
-rw-r--r--src/dotty/tools/dotc/util/Chars.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/util/Chars.scala b/src/dotty/tools/dotc/util/Chars.scala
index 99aad620a..bae3b4732 100644
--- a/src/dotty/tools/dotc/util/Chars.scala
+++ b/src/dotty/tools/dotc/util/Chars.scala
@@ -40,7 +40,7 @@ object Chars {
/** Convert a character to a backslash-u escape */
def char2uescape(c: Char): String = {
@inline def hexChar(ch: Int): Char =
- ( if (ch < 10) '0' else 'A' - 10 ) + ch toChar
+ (( if (ch < 10) '0' else 'A' - 10 ) + ch).toChar
char2uescapeArray(2) = hexChar((c >> 12) )
char2uescapeArray(3) = hexChar((c >> 8) % 16)