diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 17:26:10 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 17:26:10 +0200 |
commit | d7c44086cc34eee7991753fc2ea284bdefed9670 (patch) | |
tree | f1b3461a042df1b7c65628ae57d7c1a613718cb8 /src/dotty/tools/dotc/util/NameTransformer.scala | |
parent | 9f80c0d2e87819f183cf54028824bd338d780dcd (diff) | |
download | dotty-d7c44086cc34eee7991753fc2ea284bdefed9670.tar.gz dotty-d7c44086cc34eee7991753fc2ea284bdefed9670.tar.bz2 dotty-d7c44086cc34eee7991753fc2ea284bdefed9670.zip |
Add spaces around + in dotty source.
Diffstat (limited to 'src/dotty/tools/dotc/util/NameTransformer.scala')
-rw-r--r-- | src/dotty/tools/dotc/util/NameTransformer.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/util/NameTransformer.scala b/src/dotty/tools/dotc/util/NameTransformer.scala index 2c3520236..330d513fe 100644 --- a/src/dotty/tools/dotc/util/NameTransformer.scala +++ b/src/dotty/tools/dotc/util/NameTransformer.scala @@ -108,9 +108,9 @@ object NameTransformer { var unicode = false val c = name charAt i if (c == '$' && i + 2 < len) { - val ch1 = name.charAt(i+1) + val ch1 = name.charAt(i + 1) if ('a' <= ch1 && ch1 <= 'z') { - val ch2 = name.charAt(i+2) + val ch2 = name.charAt(i + 2) if ('a' <= ch2 && ch2 <= 'z') { ops = code2op((ch1 - 'a') * 26 + ch2 - 'a') while ((ops ne null) && !name.startsWith(ops.code, i)) ops = ops.next @@ -129,7 +129,7 @@ object NameTransformer { ((Character.isDigit(ch2)) || ('A' <= ch2 && ch2 <= 'F'))) { /* Skip past "$u", next four should be hexadecimal */ - val hex = name.substring(i+2, i+6) + val hex = name.substring(i + 2, i + 6) try { val str = Integer.parseInt(hex, 16).toChar if (buf eq null) { |