aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Contexts.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r--src/dotty/tools/dotc/core/Contexts.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala
index 15f1e80c5..2838f1c7f 100644
--- a/src/dotty/tools/dotc/core/Contexts.scala
+++ b/src/dotty/tools/dotc/core/Contexts.scala
@@ -290,7 +290,10 @@ object Contexts {
val platform: Platform = new JavaPlatform
/** The standard fresh name creator */
- val fresh = new FreshNameCreator.Default
+ val freshNames = new FreshNameCreator.Default
+
+ def freshName(): String = freshNames.newName()
+ def freshName(prefix: String): String = freshNames.newName(prefix)
/** The loader that loads the members of _root_ */
def rootLoader(root: TermSymbol)(implicit ctx: Context): SymbolLoader = platform.rootLoader(root)