diff options
author | Paul Phillips <paulp@improving.org> | 2012-11-13 08:29:42 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-11-20 14:10:52 -0800 |
commit | e5b050814deb2e7e1d6d05511d3a6cb6b013b549 (patch) | |
tree | 0ff097e17c202bf9060a28757b081239b04f424c /src/compiler/scala/reflect/reify/codegen/GenUtils.scala | |
parent | 50712cf5639bd42f420c540f526393a110f3349c (diff) | |
download | scala-e5b050814deb2e7e1d6d05511d3a6cb6b013b549.tar.gz scala-e5b050814deb2e7e1d6d05511d3a6cb6b013b549.tar.bz2 scala-e5b050814deb2e7e1d6d05511d3a6cb6b013b549.zip |
Members removed in scala.reflect.
Not a bad showing for a newcomer. Of course most of this
code predates scala.reflect by a lot.
Diffstat (limited to 'src/compiler/scala/reflect/reify/codegen/GenUtils.scala')
-rw-r--r-- | src/compiler/scala/reflect/reify/codegen/GenUtils.scala | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/compiler/scala/reflect/reify/codegen/GenUtils.scala b/src/compiler/scala/reflect/reify/codegen/GenUtils.scala index 6554947f88..e2275f79ff 100644 --- a/src/compiler/scala/reflect/reify/codegen/GenUtils.scala +++ b/src/compiler/scala/reflect/reify/codegen/GenUtils.scala @@ -90,22 +90,6 @@ trait GenUtils { /** An (unreified) path that refers to term definition with given fully qualified name */ def termPath(fullname: String): Tree = path(fullname, newTermName) - /** An (unreified) path that refers to type definition with given fully qualified name */ - def typePath(fullname: String): Tree = path(fullname, newTypeName) - - def isTough(tpe: Type) = { - def isTough(tpe: Type) = tpe match { - case _: RefinedType => true - case _: ExistentialType => true - case _: ClassInfoType => true - case _: MethodType => true - case _: PolyType => true - case _ => false - } - - tpe != null && (tpe exists isTough) - } - object TypedOrAnnotated { def unapply(tree: Tree): Option[Tree] = tree match { case ty @ Typed(_, _) => @@ -117,15 +101,6 @@ trait GenUtils { } } - def isAnnotated(tpe: Type) = { - def isAnnotated(tpe: Type) = tpe match { - case _: AnnotatedType => true - case _ => false - } - - tpe != null && (tpe exists isAnnotated) - } - def isSemiConcreteTypeMember(tpe: Type) = tpe match { case TypeRef(SingleType(_, _), sym, _) if sym.isAbstractType && !sym.isExistential => true case _ => false |