From 6ce9fd4ce13ca5fae1c4bc8d2ba3af72bbd4dbf5 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 5 Jan 2018 11:40:27 +0100 Subject: Switch `Subtype#label` member to new `TypeName` --- core/shared/src/main/scala/interface.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/shared/src/main/scala/interface.scala') diff --git a/core/shared/src/main/scala/interface.scala b/core/shared/src/main/scala/interface.scala index f0f104c..05803f0 100644 --- a/core/shared/src/main/scala/interface.scala +++ b/core/shared/src/main/scala/interface.scala @@ -12,10 +12,10 @@ trait Subtype[Typeclass[_], Type] { /** the type of subtype */ type SType <: Type - /** the name of the subtype + /** the [[TypeName]] of the subtype * - * This is the fully-qualified name of the type of subclass. */ - def label: String + * This is the full name information for the type of subclass. */ + def typeName: TypeName /** the typeclass instance associated with this subtype * @@ -186,6 +186,6 @@ final class SealedTrait[Typeclass[_], Type](val typeName: TypeName, /** * Provides the different parts of a type's class name. */ -final case class TypeName(ownerName: String, short: String) { - def full: String = s"$ownerName.$short" +final case class TypeName(owner: String, short: String) { + def full: String = s"$owner.$short" } \ No newline at end of file -- cgit v1.2.3