@@ -54,8 +54,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
54
54
* Emits an error and throws if the expression does not represent a value or possibly contains side effects.
55
55
* Otherwise returns the value.
56
56
*/
57
- // TODO: deprecate in 3.1.0 and remove @experimental from valueOrAbort
58
- // @deprecated("Use valueOrThrow ", "3.1 .0")
57
+ // TODO: deprecate after 3.1.x
58
+ // @deprecated("Use valueOrAbort ", "3.2 .0")
59
59
def valueOrError (using FromExpr [T ]): T =
60
60
val fromExpr = summon[FromExpr [T ]]
61
61
def reportError =
@@ -69,7 +69,6 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
69
69
* Emits an error and aborts if the expression does not represent a value or possibly contains side effects.
70
70
* Otherwise returns the value.
71
71
*/
72
- @ experimental
73
72
def valueOrAbort (using FromExpr [T ]): T
74
73
75
74
end extension
@@ -4193,30 +4192,27 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
4193
4192
def error (msg : String , pos : Position ): Unit
4194
4193
4195
4194
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4196
- @ experimental
4197
4195
def errorAndAbort (msg : String ): Nothing
4198
4196
4199
4197
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4200
- @ experimental
4201
4198
def errorAndAbort (msg : String , expr : Expr [Any ]): Nothing
4202
4199
4203
4200
/** Report an error message at the given position and throw a StopMacroExpansion */
4204
- @ experimental
4205
4201
def errorAndAbort (msg : String , pos : Position ): Nothing
4206
4202
4207
4203
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4208
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4209
- // @deprecated("Use errorAndAbort", "3.1 .0")
4204
+ // TODO: deprecate after 3.1.x
4205
+ // @deprecated("Use errorAndAbort", "3.2 .0")
4210
4206
def throwError (msg : String ): Nothing
4211
4207
4212
4208
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4213
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4214
- // @deprecated("Use errorAndAbort", "3.1 .0")
4209
+ // TODO: deprecate after 3.1.x
4210
+ // @deprecated("Use errorAndAbort", "3.2 .0")
4215
4211
def throwError (msg : String , expr : Expr [Any ]): Nothing
4216
4212
4217
4213
/** Report an error message at the given position and throw a StopMacroExpansion */
4218
- // TODO: deprecate in 3.1.0 and remove @experimental from errorAndAbort
4219
- // @deprecated("Use errorAndAbort", "3.1 .0")
4214
+ // TODO: deprecate after 3.1.x
4215
+ // @deprecated("Use errorAndAbort", "3.2 .0")
4220
4216
def throwError (msg : String , pos : Position ): Nothing
4221
4217
4222
4218
/** Report a warning at the position of the macro expansion */
0 commit comments