From fd487cdf919006fe959930f02be8a8264d914f15 Mon Sep 17 00:00:00 2001 From: Matt Bovel Date: Thu, 17 Oct 2024 17:25:00 +0200 Subject: [PATCH] Enhance documentation of `QualifiedTypeTree` --- compiler/src/dotty/tools/dotc/ast/untpd.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/ast/untpd.scala b/compiler/src/dotty/tools/dotc/ast/untpd.scala index 59497e544f4a..f34eb09f10eb 100644 --- a/compiler/src/dotty/tools/dotc/ast/untpd.scala +++ b/compiler/src/dotty/tools/dotc/ast/untpd.scala @@ -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`.