File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
library/src/scala/tasty/reflect 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 {
7
7
8
8
def SymbolDeco (symbol : Symbol ): SymbolAPI = new SymbolAPI {
9
9
10
- def isEmpty (implicit ctx : Context ): Boolean = symbol eq NoSymbol
10
+ def exists (implicit ctx : Context ): Boolean = symbol eq NoSymbol
11
11
def isClass (implicit ctx : Context ): Boolean = symbol.isClass
12
12
13
13
def flags (implicit ctx : Context ): FlagSet = new FlagSet (symbol.flags)
@@ -35,7 +35,7 @@ trait SymbolOpsImpl extends scala.tasty.reflect.SymbolOps with TastyCoreImpl {
35
35
}
36
36
37
37
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))
39
39
40
40
def annots (implicit ctx : Context ): List [Term ] = {
41
41
symbol.annotations.flatMap {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ trait SymbolOps extends TastyCore {
8
8
9
9
def owner (implicit ctx : Context ): Symbol
10
10
11
- def isEmpty (implicit ctx : Context ): Boolean
11
+ def exists (implicit ctx : Context ): Boolean
12
12
def isClass (implicit ctx : Context ): Boolean
13
13
14
14
def flags (implicit ctx : Context ): FlagSet
You can’t perform that action at this time.
0 commit comments