File tree 1 file changed +12
-0
lines changed
compiler/src/dotty/tools/dotc/ast 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -677,11 +677,23 @@ object Trees {
677
677
override def isType = expansion.isType
678
678
}
679
679
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
+ */
680
686
case class Quote [+ T <: Untyped ] private [ast] (expr : Tree [T ], tpt : Tree [T ])(implicit @ constructorOnly src : SourceFile )
681
687
extends TermTree [T ] {
682
688
type ThisTree [+ T <: Untyped ] = Quote [T ]
683
689
}
684
690
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
+ */
685
697
case class Splice [+ T <: Untyped ] private [ast] (expr : Tree [T ], tpt : Tree [T ])(implicit @ constructorOnly src : SourceFile )
686
698
extends TermTree [T ] {
687
699
type ThisTree [+ T <: Untyped ] = Splice [T ]
You can’t perform that action at this time.
0 commit comments