diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-05 12:51:36 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-17 18:07:15 +0200 |
commit | d78c9d360182d87ba78d55fa255859cc89e2d95d (patch) | |
tree | f31d9d322e613e8561b51723b252ac4977af5484 /src/dotty/tools/dotc/core/Denotations.scala | |
parent | 73324fa97e504e7a8cce5ae211efca95be4c33e9 (diff) | |
download | dotty-d78c9d360182d87ba78d55fa255859cc89e2d95d.tar.gz dotty-d78c9d360182d87ba78d55fa255859cc89e2d95d.tar.bz2 dotty-d78c9d360182d87ba78d55fa255859cc89e2d95d.zip |
Definitions used by pattern matcher
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Denotations.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index 507914f85..9970c5948 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -191,6 +191,11 @@ object Denotations { def requiredMethod(name: PreName)(implicit ctx: Context): TermSymbol = info.member(name.toTermName).requiredSymbol(_ is Method).asTerm + def requiredMethod(name: PreName, argTypes: List[Type])(implicit ctx: Context): TermSymbol = + info.member(name.toTermName).requiredSymbol(x=> + (x is Method) && x.info.paramTypess == List(argTypes) + ).asTerm + def requiredValue(name: PreName)(implicit ctx: Context): TermSymbol = info.member(name.toTermName).requiredSymbol(_.info.isParameterless).asTerm |