diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-10 11:03:04 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-10 11:03:04 -0700 |
commit | 51a413e3327d9050f07377933eb1ca243d52c4ab (patch) | |
tree | 433351fea6467957114c8dd9143c6796c2f8b6a8 /src/reflect/scala/reflect/api | |
parent | 1c7daf40bfe529969aa423ae0d2fd454adb20acb (diff) | |
parent | 1b5a34b402cb283db6029a1d54778390ba14ef6f (diff) | |
download | scala-51a413e3327d9050f07377933eb1ca243d52c4ab.tar.gz scala-51a413e3327d9050f07377933eb1ca243d52c4ab.tar.bz2 scala-51a413e3327d9050f07377933eb1ca243d52c4ab.zip |
Merge pull request #3594 from densh/si/8331
SI-8331 make sure type select & applied type doesn't match terms
Diffstat (limited to 'src/reflect/scala/reflect/api')
-rw-r--r-- | src/reflect/scala/reflect/api/Internals.scala | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/api/Internals.scala b/src/reflect/scala/reflect/api/Internals.scala index 01f928ed61..d2e742726d 100644 --- a/src/reflect/scala/reflect/api/Internals.scala +++ b/src/reflect/scala/reflect/api/Internals.scala @@ -600,10 +600,11 @@ trait Internals { self: Universe => } val SyntacticTypeApplied: SyntacticTypeAppliedExtractor + val SyntacticAppliedType: SyntacticTypeAppliedExtractor trait SyntacticTypeAppliedExtractor { def apply(tree: Tree, targs: List[Tree]): Tree - def unapply(tree: Tree): Some[(Tree, List[Tree])] + def unapply(tree: Tree): Option[(Tree, List[Tree])] } val SyntacticApplied: SyntacticAppliedExtractor @@ -784,6 +785,18 @@ trait Internals { self: Universe => def apply(expr: Tree, selectors: List[Tree]): Import def unapply(imp: Import): Some[(Tree, List[Tree])] } + + val SyntacticSelectType: SyntacticSelectTypeExtractor + trait SyntacticSelectTypeExtractor { + def apply(qual: Tree, name: TypeName): Select + def unapply(tree: Tree): Option[(Tree, TypeName)] + } + + val SyntacticSelectTerm: SyntacticSelectTermExtractor + trait SyntacticSelectTermExtractor { + def apply(qual: Tree, name: TermName): Select + def unapply(tree: Tree): Option[(Tree, TermName)] + } } @deprecated("Use `internal.reificationSupport` instead", "2.11.0") |