aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-22 18:12:42 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-22 18:12:42 +0100
commit9e1bf7743355de040a23fbcfe9b1efb9b1db1789 (patch)
treec12488e5c5756bccfcf34ff3407c696b0e543b54 /src/dotty/tools/dotc/core/SymDenotations.scala
parent3d98269f2db2542373f76f519fd3643b7bcf75cf (diff)
downloaddotty-9e1bf7743355de040a23fbcfe9b1efb9b1db1789.tar.gz
dotty-9e1bf7743355de040a23fbcfe9b1efb9b1db1789.tar.bz2
dotty-9e1bf7743355de040a23fbcfe9b1efb9b1db1789.zip
Renaming: typeConstructor -> typeRef
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index de4a1d8e3..2e90f3170 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -634,7 +634,7 @@ object SymDenotations {
/** The named typeref representing the type constructor for this type.
* @throws ClassCastException is this is not a type
*/
- def typeConstructor(implicit ctx: Context): TypeRef =
+ def typeRef(implicit ctx: Context): TypeRef =
if ((this is PackageClass) || owner.isTerm) symTypeRef
else TypeRef(owner.thisType, name.asTypeName).withDenot(this)
@@ -779,8 +779,8 @@ object SymDenotations {
private[this] var myTypeConstructor: TypeRef = null
- override def typeConstructor(implicit ctx: Context): TypeRef = {
- if (myTypeConstructor == null) myTypeConstructor = super.typeConstructor
+ override def typeRef(implicit ctx: Context): TypeRef = {
+ if (myTypeConstructor == null) myTypeConstructor = super.typeRef
myTypeConstructor
}
@@ -1003,7 +1003,7 @@ object SymDenotations {
ctx.debugTraceIndented(s"$tp.baseType($this)") {
if (symbol.isStatic && tp.derivesFrom(symbol))
- symbol.typeConstructor
+ symbol.typeRef
else tp match {
case tp: CachedType =>
if (baseTypeValid != ctx.runId) {