We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 457c812 commit 1489a06Copy full SHA for 1489a06
compiler/src/dotty/tools/dotc/tastyreflect/TastyImpl.scala
@@ -133,11 +133,12 @@ class TastyImpl(val rootContext: Contexts.Context) extends scala.tasty.Tasty wit
133
134
// ----- Definitions ----------------------------------------------
135
136
- type Definition = tpd.Tree
+ type Definition = tpd.Tree /* tpd.MemberDef | PackageDefinition */
137
138
object IsDefinition extends IsDefinitionExtractor {
139
def unapply(tree: Tree)(implicit ctx: Context): Option[Definition] = tree match {
140
case tree: tpd.MemberDef => Some(tree)
141
+ case tree: PackageDefinition => Some(tree)
142
case _ => None
143
}
144
0 commit comments