Skip to content

Commit 35b6b7c

Browse files
committed
Add documentation
1 parent a7ce985 commit 35b6b7c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ trait SymbolOps extends Core { selfSymbolOps: FlagsOps =>
4242
/** The comment for this symbol, if any */
4343
def comment(given ctx: Context): Option[Comment] = internal.Symbol_comment(self)
4444

45-
/** Tree of this definition */
45+
/** 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+
*/
4653
def tree(given ctx: Context): Tree =
4754
internal.Symbol_tree(self)
4855

0 commit comments

Comments
 (0)