From c39c2af036e9e69fc339b805a0869126efadae0f Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 27 Nov 2013 19:08:17 +0100 Subject: Optimizing signatures Interesting signatures are now cached. --- src/dotty/tools/dotc/core/Denotations.scala | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/dotty/tools/dotc/core/Denotations.scala') diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index f904f8d78..223079570 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -360,12 +360,7 @@ object Denotations { override def signature(implicit ctx: Context): Signature = { if (isType) Signature.NotAMethod else info match { - case tp: PolyType => - tp.resultType match { - case mt: MethodType => mt.signature - case tp => Signature(tp) - } - case mt: MethodType => mt.signature + case info: SignedType => info.signature case _ => Signature.NotAMethod } } -- cgit v1.2.3