Skip to content

Commit 76d0daf

Browse files
committed
Add documentation
1 parent 3a045c4 commit 76d0daf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,23 @@ object Trees {
677677
override def isType = expansion.isType
678678
}
679679

680+
/** A tree representing a quote `'{ expr }
681+
*
682+
* @param expr The tree that was quoted
683+
* @param tpt The type of the tree that was quoted,
684+
* EmptyTree if this tree comes from the parser.
685+
*/
680686
case class Quote[+T <: Untyped] private[ast] (expr: Tree[T], tpt: Tree[T])(implicit @constructorOnly src: SourceFile)
681687
extends TermTree[T] {
682688
type ThisTree[+T <: Untyped] = Quote[T]
683689
}
684690

691+
/** A tree representing a splice `${ expr }`
692+
*
693+
* @param expr The tree that was spliced
694+
* @param tpt The type of the tree that was spliced,
695+
* EmptyTree if this tree comes from the parser.
696+
*/
685697
case class Splice[+T <: Untyped] private[ast] (expr: Tree[T], tpt: Tree[T])(implicit @constructorOnly src: SourceFile)
686698
extends TermTree[T] {
687699
type ThisTree[+T <: Untyped] = Splice[T]

0 commit comments

Comments
 (0)