File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
library/src/scala/tasty/reflect Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ trait SymbolOpsImpl extends scala.tasty.reflect.SymbolOps with TastyCoreImpl {
77
88 def SymbolDeco (symbol : Symbol ): SymbolAPI = new SymbolAPI {
99
10- def isEmpty (implicit ctx : Context ): Boolean = symbol eq NoSymbol
10+ def exists (implicit ctx : Context ): Boolean = symbol eq NoSymbol
1111 def isClass (implicit ctx : Context ): Boolean = symbol.isClass
1212
1313 def flags (implicit ctx : Context ): FlagSet = new FlagSet (symbol.flags)
@@ -35,7 +35,7 @@ trait SymbolOpsImpl extends scala.tasty.reflect.SymbolOps with TastyCoreImpl {
3535 }
3636
3737 def tree (implicit ctx : Context ): Option [Definition ] =
38- if (isEmpty ) None else Some (FromSymbol .definitionFromSym(symbol))
38+ if (exists ) None else Some (FromSymbol .definitionFromSym(symbol))
3939
4040 def annots (implicit ctx : Context ): List [Term ] = {
4141 symbol.annotations.flatMap {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ trait SymbolOps extends TastyCore {
88
99 def owner (implicit ctx : Context ): Symbol
1010
11- def isEmpty (implicit ctx : Context ): Boolean
11+ def exists (implicit ctx : Context ): Boolean
1212 def isClass (implicit ctx : Context ): Boolean
1313
1414 def flags (implicit ctx : Context ): FlagSet
You can’t perform that action at this time.
0 commit comments