aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/StdNames.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-23 23:35:17 +0100
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:10 +0200
commita2731a8be2f3434218623c0b0ecd4078107f14a5 (patch)
tree3077df892ba46e4142cb6a38555cc7604be36222 /compiler/src/dotty/tools/dotc/core/StdNames.scala
parente2056bb62e8d4ce5806111f0c54f7331eb690f0a (diff)
downloaddotty-a2731a8be2f3434218623c0b0ecd4078107f14a5.tar.gz
dotty-a2731a8be2f3434218623c0b0ecd4078107f14a5.tar.bz2
dotty-a2731a8be2f3434218623c0b0ecd4078107f14a5.zip
Handle expansion and flattening
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/StdNames.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/StdNames.scala9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/StdNames.scala b/compiler/src/dotty/tools/dotc/core/StdNames.scala
index 56f8ca189..9e05d4bce 100644
--- a/compiler/src/dotty/tools/dotc/core/StdNames.scala
+++ b/compiler/src/dotty/tools/dotc/core/StdNames.scala
@@ -15,6 +15,11 @@ object StdNames {
/** Base strings from which synthetic names are derived. */
+ object str {
+ val EXPAND_SEPARATOR = "$$"
+ val TRAIT_SETTER_SEPARATOR = "$_setter_$"
+ }
+
abstract class DefinedNames[N <: Name] {
protected implicit def fromString(s: String): N
protected def fromName(name: Name): N = fromString(name.toString)
@@ -99,7 +104,7 @@ object StdNames {
val EVIDENCE_PARAM_PREFIX: N = "evidence$"
val DEP_PARAM_PREFIX = "<param>"
val EXCEPTION_RESULT_PREFIX: N = "exceptionResult"
- val EXPAND_SEPARATOR: N = "$$"
+ val EXPAND_SEPARATOR: N = str.EXPAND_SEPARATOR
val IMPL_CLASS_SUFFIX: N = "$class"
val IMPORT: N = "<import>"
val INLINE_ACCESSOR_PREFIX = "$inlineAccessor$"
@@ -129,7 +134,7 @@ object StdNames {
val INITIALIZER_PREFIX: N = "initial$"
val COMPANION_MODULE_METHOD: N = "companion$module"
val COMPANION_CLASS_METHOD: N = "companion$class"
- val TRAIT_SETTER_SEPARATOR: N = "$_setter_$"
+ val TRAIT_SETTER_SEPARATOR: N = str.TRAIT_SETTER_SEPARATOR
val DIRECT_SUFFIX: N = "$direct"
val LAZY_IMPLICIT_PREFIX: N = "$lazy_implicit$"
val DOLLAR_VALUES: N = "$values"