Skip to content

Commit c17c7c7

Browse files
committed
Replace ClassSymbol.of with Symbol.classSymbol
1 parent 4e6c615 commit c17c7c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/src/scala/tasty/reflect/SymbolOps.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ trait SymbolOps extends Core {
66

77
// Symbol
88

9+
object Symbol {
10+
/** The ClassSymbol of a global class definition */
11+
def classSymbol(fullName: String)(given ctx: Context): ClassDefSymbol =
12+
internal.ClassDefSymbol_of(fullName)
13+
}
14+
915
implicit class SymbolAPI(self: Symbol) {
1016

1117
/** Owner of this symbol. The owner is the symbol in which this symbol is defined */
@@ -97,12 +103,6 @@ trait SymbolOps extends Core {
97103
def isNoSymbol(given ctx: Context): Boolean = internal.isNoSymbol(self)
98104
}
99105

100-
object ClassDefSymbol {
101-
/** The ClassSymbol of a global class definition */
102-
def of(fullName: String)(given ctx: Context): ClassDefSymbol =
103-
internal.ClassDefSymbol_of(fullName)
104-
}
105-
106106
implicit class ClassDefSymbolAPI(self: ClassDefSymbol) {
107107

108108
/** Fields directly declared in the class */

0 commit comments

Comments
 (0)