From 7f79ef0e30f088b41b14763f44338c240acf1a63 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 5 Apr 2012 17:04:55 -0700 Subject: Added overloading resolution to reflect.api.Symbol --- src/library/scala/reflect/api/Symbols.scala | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/library') diff --git a/src/library/scala/reflect/api/Symbols.scala b/src/library/scala/reflect/api/Symbols.scala index 44dc2ce1c2..6fd83f4821 100755 --- a/src/library/scala/reflect/api/Symbols.scala +++ b/src/library/scala/reflect/api/Symbols.scala @@ -134,6 +134,10 @@ trait Symbols { self: Universe => */ def isAbstractType : Boolean + /** Is this symbol an overloaded method? + */ + def isOverloaded: Boolean + /** The type signature of this symbol. * Note if the symbol is a member of a class, one almost always is interested * in `typeSignatureIn` with a site type instead. @@ -180,6 +184,11 @@ trait Symbols { self: Universe => */ def selfType: Type + /** The overloaded alternatives of this symbol */ + def alternatives: List[Symbol] + + def resolveOverloaded(pre: Type = NoPrefix, targs: Seq[Type] = List(), actuals: Seq[Type]): Symbol + /** A fresh symbol with given name `name`, position `pos` and flags `flags` that has * the current symbol as its owner. */ -- cgit v1.2.3