ApplyTypedClosure
dotty.tools.sjs.ir.Trees.ApplyTypedClosure
sealed case class ApplyTypedClosure(flags: ApplyFlags, fun: Tree, args: List[Tree])(implicit pos: Position) extends Tree
Apply a typed closure
The given fun must have a closure type.
The arguments' types must match (be subtypes of) the parameter types of the closure type.
The tpe of this node is the result type of the closure type, or nothing if the latter is nothing.
Evaluation steps are as follows:
- Let
funVbe the result of evaluatingfun. - If
funVisnullClosure, trigger an NPE undefined behavior. - Let
argsVbe the result of evaluatingargs, in order. - Invoke
funVwith argumentsargsV, and return the result.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Treetrait TreeOrJSSpreadclass IRNodeclass Objecttrait Matchableclass Any
Members list
In this article