diff options
author | Jon Pretty <jon.pretty@propensive.com> | 2018-01-05 16:16:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-05 16:16:37 +0100 |
commit | 480564092cdbd5c69f63089a2198299706690e7a (patch) | |
tree | 2243e14792b4e7428177bfea1699db276db6d187 /core/shared/src/main/scala/interface.scala | |
parent | 2e98161a4c18d8f56280437a775cf81df030c0cf (diff) | |
parent | 235f2ddd5adf5c99cf53d6e6321dbe5e2fd842c2 (diff) | |
download | magnolia-480564092cdbd5c69f63089a2198299706690e7a.tar.gz magnolia-480564092cdbd5c69f63089a2198299706690e7a.tar.bz2 magnolia-480564092cdbd5c69f63089a2198299706690e7a.zip |
Merge branch 'master' into md/debug-annotation
Diffstat (limited to 'core/shared/src/main/scala/interface.scala')
-rw-r--r-- | core/shared/src/main/scala/interface.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/shared/src/main/scala/interface.scala b/core/shared/src/main/scala/interface.scala index 93aa045..51abc22 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,8 +186,8 @@ 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" } /** @@ -198,4 +198,4 @@ final case class TypeName(ownerName: String, short: String) { * @param typeNamePart If non-empty restricts the output generation to types * whose full name contains the given [[String]] */ -final class debug(typeNamePart: String = "") extends scala.annotation.StaticAnnotation
\ No newline at end of file +final class debug(typeNamePart: String = "") extends scala.annotation.StaticAnnotation |