Skip to content

Commit

Permalink
Enhance documentation of QualifiedTypeTree
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovel committed Oct 17, 2024
1 parent 361bc03 commit fd487cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/src/dotty/tools/dotc/ast/untpd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
*/
case class CapturesAndResult(refs: List[Tree], parent: Tree)(implicit @constructorOnly src: SourceFile) extends TypTree

/** { x: T with p }  (only relevant under qualifiedTypes) */
/** `{ x: parent with qualifier }` if `paramName == Some(x)`,
* `parent with qualifier` otherwise.
*
* Only relevant under `qualifiedTypes`.
*/
case class QualifiedTypeTree(parent: Tree, paramName: Option[TermName], qualifier: Tree)(implicit @constructorOnly src: SourceFile) extends TypTree

/** A type tree appearing somewhere in the untyped DefDef of a lambda, it will be typed using `tpFun`.
Expand Down

0 comments on commit fd487cd

Please sign in to comment.