aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-04-07 23:01:07 +0200
committerMartin Odersky <odersky@gmail.com>2013-04-07 23:01:07 +0200
commit19143c67d77a71bd5ef18769e222beed291fa92b (patch)
treeec309ed9e830dfe4875a0c6a2e7776fa3a8a046f /src/dotty/tools/dotc/core/Denotations.scala
parent34cdca9f2eb60facef679cca9c1d7cb4b2ae10dc (diff)
downloaddotty-19143c67d77a71bd5ef18769e222beed291fa92b.tar.gz
dotty-19143c67d77a71bd5ef18769e222beed291fa92b.tar.bz2
dotty-19143c67d77a71bd5ef18769e222beed291fa92b.zip
Changes to pre complete decls
Dropped preCompleteDecls for a general refactoring that makes decls available after a class is loaded and before it is completed. Also some other fixes to classloading problems.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 53e366bcc..2d6d107f3 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -163,6 +163,14 @@ object Denotations {
/** Does this denotation have an alternative that satisfies the predicate `p`? */
def hasAltWith(p: Symbol => Boolean): Boolean
+ /** Find member of this denotation with given name and
+ * produce a denotation that contains the type of the member
+ * as seen from given prefix `pre`. Exclude all members that have
+ * flags in `excluded` from consideration.
+ */
+ def findMember(name: Name, pre: Type, excluded: FlagSet)(implicit ctx: Context): Denotation =
+ info.findMember(name, pre, excluded)
+
/** If this denotation is overloaded, filter with given predicate.
* If result is still overloaded throw a TypeError.
* Note: disambiguate is slightly different from suchThat in that