Skip to content

Commit

Permalink
Merge pull request #14619 from dotty-staging/fix-#14510
Browse files Browse the repository at this point in the history
Improve documentation `underlyingArgument`
  • Loading branch information
smarter authored Mar 16, 2022
2 parents 14e806b + 40a666b commit 3d06d94
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions library/src/scala/quoted/Quotes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,20 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
/** TypeRepr of this term */
def tpe: TypeRepr

/** Replace Inlined nodes and InlineProxy references to underlying arguments */
/** Replace Inlined nodes and InlineProxy references to underlying arguments.
* The resulting tree is useful for inspection of the value or content of a non-inline argument.
*
* Warning: This tree may contain references that are out of scope and should not be used in the generated code.
* This method should only used to port Scala 2 that used to access their outer scope unsoundly.
*/
def underlyingArgument: Term

/** Replace Ident nodes references to the underlying tree that defined them */
/** Replace Ident nodes references to the underlying tree that defined them.
* The resulting tree is useful for inspection of the definition of some bindings.
*
* Warning: This tree may contain references that are out of scope and should not be used in the generated code.
* This method should only used to port Scala 2 that used to access their outer scope unsoundly.
*/
def underlying: Term

/** Converts a partially applied term into a lambda expression */
Expand Down

0 comments on commit 3d06d94

Please sign in to comment.