aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-28 22:35:15 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:11 +0200
commit3fe4e061ef90b8dde10b2e9542f17a34c0fbcb5d (patch)
tree2780821f32afabb8fac92cd9a38ad462b69191b5 /compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala
parentca5652cc5a74f00277ce942a001fa6e931ee3728 (diff)
downloaddotty-3fe4e061ef90b8dde10b2e9542f17a34c0fbcb5d.tar.gz
dotty-3fe4e061ef90b8dde10b2e9542f17a34c0fbcb5d.tar.bz2
dotty-3fe4e061ef90b8dde10b2e9542f17a34c0fbcb5d.zip
Rename NameExtractor -> NameKind
Diffstat (limited to 'compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala b/compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala
index 529e30f05..5dbec3e5a 100644
--- a/compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala
+++ b/compiler/src/dotty/tools/dotc/util/FreshNameCreator.scala
@@ -4,11 +4,11 @@ package util
import scala.collection.mutable
import core.Names.TermName
-import core.NameExtractors.UniqueNameExtractor
+import core.NameKinds.UniqueNameKind
import core.StdNames.str
abstract class FreshNameCreator {
- def newName(prefix: TermName, unique: UniqueNameExtractor): TermName
+ def newName(prefix: TermName, unique: UniqueNameKind): TermName
}
object FreshNameCreator {
@@ -21,7 +21,7 @@ object FreshNameCreator {
* that the returned name has never been returned by a previous
* call to this function (provided the prefix does not end in a digit).
*/
- def newName(prefix: TermName, unique: UniqueNameExtractor): TermName = {
+ def newName(prefix: TermName, unique: UniqueNameKind): TermName = {
val key = str.sanitize(prefix.toString + unique.separator)
counters(key) += 1
val counter = counters(key)