Skip to content

Commit c613076

Browse files
committed
Add untpd.ImportSelector#isUnimport
1 parent b2e31fe commit c613076

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/ast/untpd.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
137137
val rename: TermName = renamed match
138138
case Ident(rename: TermName) => rename
139139
case _ => name
140+
141+
def isUnimport = rename == nme.WILDCARD
140142
}
141143

142144
case class Number(digits: String, kind: NumberKind)(implicit @constructorOnly src: SourceFile) extends TermTree

0 commit comments

Comments
 (0)