Skip to content

Commit 3b9306b

Browse files
committed
Add documentation for Select constructors
1 parent 29d4ccb commit 3b9306b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/src/scala/tasty/reflect/TreeOps.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,15 @@ trait TreeOps extends Core {
272272
/** Scala term selection */
273273
val Select: SelectModule
274274
abstract class SelectModule {
275+
/** Select a field or a non-overloaded method by name
276+
*
277+
* @note The method will produce an assertion error if the selected
278+
* method is overloaded. The method `overloaded` should be used
279+
* in that case.
280+
*/
275281
def unique(qualifier: Term, name: String)(implicit ctx: Context): Select
276282

283+
/** Call an overloaded method with the given type and term parameters */
277284
def overloaded(qualifier: Term, name: String, targs: List[Type], args: List[Term])(implicit ctx: Context): Apply
278285

279286
def copy(original: Tree)(qualifier: Term, name: String)(implicit ctx: Context): Select

0 commit comments

Comments
 (0)