@@ -68,6 +68,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
6868 * Emits an error and aborts if the expression does not represent a value or possibly contains side effects.
6969 * Otherwise returns the value.
7070 */
71+ @ since(" 3.1" )
7172 def valueOrAbort (using FromExpr [T ]): T
7273
7374 end extension
@@ -803,15 +804,18 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
803804 end IdentMethods
804805
805806 /** Pattern representing a `_` wildcard. */
807+ @ since(" 3.1" )
806808 type Wildcard <: Ident
807809
808810 /** `TypeTest` that allows testing at runtime in a pattern match if a `Tree` is a `Wildcard` */
811+ @ since(" 3.1" )
809812 given WildcardTypeTest : TypeTest [Tree , Wildcard ]
810813
811814 /** Module object of `type Wildcard` */
812815 val Wildcard : WildcardModule
813816
814817 /** Methods of the module object `val Wildcard` */
818+ @ since(" 3.1" )
815819 trait WildcardModule { this : Wildcard .type =>
816820 /** Create a tree representing a `_` wildcard. */
817821 def apply (): Wildcard
@@ -1614,15 +1618,19 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
16141618 end WhileMethods
16151619
16161620 /** `TypeTest` that allows testing at runtime in a pattern match if a `Tree` is a `TypedOrTest` */
1621+ @ since(" 3.1" )
16171622 given TypedOrTestTypeTest : TypeTest [Tree , TypedOrTest ]
16181623
16191624 /** Tree representing a type ascription or type test pattern `x: T` in the source code. */
1625+ @ since(" 3.1" )
16201626 type TypedOrTest <: Tree
16211627
16221628 /** Module object of `type TypedOrTest` */
1629+ @ since(" 3.1" )
16231630 val TypedOrTest : TypedOrTestModule
16241631
16251632 /** Methods of the module object `val TypedOrTest` */
1633+ @ since(" 3.1" )
16261634 trait TypedOrTestModule { this : TypedOrTest .type =>
16271635
16281636 /** Create a type ascription `<x: Tree>: <tpt: TypeTree>` */
@@ -1635,9 +1643,11 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
16351643 }
16361644
16371645 /** Makes extension methods on `TypedOrTest` available without any imports */
1646+ @ since(" 3.1" )
16381647 given TypedOrTestMethods : TypedOrTestMethods
16391648
16401649 /** Extension methods of `TypedOrTest` */
1650+ @ since(" 3.1" )
16411651 trait TypedOrTestMethods :
16421652 extension (self : TypedOrTest )
16431653 def tree : Tree
@@ -2165,6 +2175,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
21652175 /** Methods of the module object `val Unapply` */
21662176 trait UnapplyModule { this : Unapply .type =>
21672177 /** Create an `Unapply` tree representing a pattern `<fun>(<patterns*>)(using <implicits*>)` */
2178+ @ since(" 3.1" )
21682179 def apply (fun : Term , implicits : List [Term ], patterns : List [Tree ]): Unapply
21692180 /** Copy an `Unapply` tree representing a pattern `<fun>(<patterns*>)(using <implicits*>)` */
21702181 def copy (original : Tree )(fun : Term , implicits : List [Term ], patterns : List [Tree ]): Unapply
@@ -2278,6 +2289,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
22782289 /** Is this a given parameter clause `(using X1, ..., Xn)` or `(using x1: X1, ..., xn: Xn)` */
22792290 def isGiven : Boolean
22802291 /** Is this a erased parameter clause `(erased x1: X1, ..., xn: Xn)` */
2292+ @ since(" 3.1" )
22812293 def isErased : Boolean
22822294 end TermParamClauseMethods
22832295
@@ -2563,6 +2575,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
25632575 *
25642576 * @return true if the dealiased type of `self` is `TupleN[T1, T2, ..., Tn]`
25652577 */
2578+ @ since(" 3.1" )
25662579 def isTupleN : Boolean
25672580
25682581 /** The type <this . sym>, reduced if possible */
@@ -3712,6 +3725,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
37123725 def memberFields : List [Symbol ]
37133726
37143727 /** Get all non-private fields declared or inherited */
3728+ @ since(" 3.1" )
37153729 def fieldMembers : List [Symbol ]
37163730
37173731 /** Get non-private named methods defined directly inside the class */
0 commit comments