Skip to content

Commit

Permalink
Add untpd.ImportSelector#isUnimport
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jun 22, 2024
1 parent 930c4aa commit adbfa5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/src/dotty/tools/dotc/ast/untpd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
val rename: TermName = renamed match
case Ident(rename: TermName) => rename
case _ => name

def isUnimport = rename == nme.WILDCARD
}

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

0 comments on commit adbfa5e

Please sign in to comment.