Skip to content

Commit 234dbbf

Browse files
committed
Deprecate reflect report throwXYZ API
1 parent 6142700 commit 234dbbf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
5454
* Emits an error and throws if the expression does not represent a value or possibly contains side effects.
5555
* Otherwise returns the value.
5656
*/
57-
// TODO: deprecate after 3.1.x
58-
// @deprecated("Use valueOrAbort", "3.2.0")
57+
@deprecated("Use valueOrAbort", "3.1.0")
5958
def valueOrError(using FromExpr[T]): T =
6059
val fromExpr = summon[FromExpr[T]]
6160
def reportError =
@@ -4201,18 +4200,15 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
42014200
def errorAndAbort(msg: String, pos: Position): Nothing
42024201

42034202
/** Report an error at the position of the macro expansion and throw a StopMacroExpansion */
4204-
// TODO: deprecate after 3.1.x
4205-
// @deprecated("Use errorAndAbort", "3.2.0")
4203+
@deprecated("Use errorAndAbort", "3.1.0")
42064204
def throwError(msg: String): Nothing
42074205

42084206
/** Report an error at the position of `expr` and throw a StopMacroExpansion */
4209-
// TODO: deprecate after 3.1.x
4210-
// @deprecated("Use errorAndAbort", "3.2.0")
4207+
@deprecated("Use errorAndAbort", "3.1.0")
42114208
def throwError(msg: String, expr: Expr[Any]): Nothing
42124209

42134210
/** Report an error message at the given position and throw a StopMacroExpansion */
4214-
// TODO: deprecate after 3.1.x
4215-
// @deprecated("Use errorAndAbort", "3.2.0")
4211+
@deprecated("Use errorAndAbort", "3.1.0")
42164212
def throwError(msg: String, pos: Position): Nothing
42174213

42184214
/** Report a warning at the position of the macro expansion */

0 commit comments

Comments
 (0)