File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
library/src-bootstrapped/scala/quoted Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,6 @@ abstract class Expr[+T] private[scala] {
2929 def isExprOf [X ](using tp : scala.quoted.Type [X ])(using qctx : QuoteContext ): Boolean =
3030 this .unseal.tpe <:< tp.unseal.tpe
3131
32- /** Convert this to an `Some[quoted.Expr[X]]` if this expression is a valid expression of type `X`.
33- * Otherwise returns None.
34- */
35- def toExprOf [X ](using tp : scala.quoted.Type [X ])(using qctx : QuoteContext ): Option [scala.quoted.Expr [X ]] =
36- if isExprOf[X ] then Some (this .asInstanceOf [scala.quoted.Expr [X ]])
37- else None
38-
3932 /** Convert this to an `quoted.Expr[X]` if this expression is a valid expression of type `X` or throws */
4033 def asExprOf [X ](using tp : scala.quoted.Type [X ])(using qctx : QuoteContext ): scala.quoted.Expr [X ] = {
4134 if isExprOf[X ] then
Original file line number Diff line number Diff line change 11import scala .quoted ._
22import scala .quoted .staging ._
3- import scala .quoted .util ._
43import language .experimental .namedTypeArguments
54
65/**
You can’t perform that action at this time.
0 commit comments