We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ce985 commit 35b6b7cCopy full SHA for 35b6b7c
library/src/scala/tasty/reflect/SymbolOps.scala
@@ -42,7 +42,14 @@ trait SymbolOps extends Core { selfSymbolOps: FlagsOps =>
42
/** The comment for this symbol, if any */
43
def comment(given ctx: Context): Option[Comment] = internal.Symbol_comment(self)
44
45
- /** Tree of this definition */
+ /** Tree of this definition
46
+ *
47
+ * if this symbol `isPackageDef` it will return a `PackageDef`,
48
+ * if this symbol `isClassDef` it will return a `ClassDef`,
49
+ * if this symbol `isTypeDef` it will return a `TypeDef`,
50
+ * if this symbol `isValDef` it will return a `ValDef`,
51
+ * if this symbol `isDefDef` it will return a `DefDef`
52
+ */
53
def tree(given ctx: Context): Tree =
54
internal.Symbol_tree(self)
55
0 commit comments