JSAwait

dotty.tools.sjs.ir.Trees.JSAwait
sealed case class JSAwait(arg: Tree)(implicit pos: Position) extends Tree

await arg.

This is directly equivalent to a JavaScript await expression.

If used directly within a Closure node with the async flag, this node is always valid. However, when used anywhere else, it is an "orphan" await. Orphan awaits only link when targeting WebAssembly.

This is not a UnaryOp because of the above strict scoping rule. For example, unless it is orphan to begin with, it is not safe to pull this node out of or into an intervening closure, contrary to UnaryOps.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Tree
class IRNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def show: String

Attributes

Inherited from:
IRNode

Concrete fields

val tpe: Type

Implicits

Implicits

implicit val pos: Position