LinkTimeIf
dotty.tools.sjs.ir.Trees.LinkTimeIf
Link-time if expression.
The cond must be a well-typed link-time tree of type boolean.
A link-time tree is a Tree matching the following sub-grammar:
link-time-tree ::=
BooleanLiteral
| IntLiteral
| StringLiteral
| LinkTimeProperty
| UnaryOp(link-time-unary-op, link-time-tree)
| BinaryOp(link-time-binary-op, link-time-tree, link-time-tree)
| LinkTimeIf(link-time-tree, link-time-tree, link-time-tree)
link-time-unary-op ::=
Boolean_!
link-time-binary-op ::=
Boolean_== | Boolean_!= | Boolean_| | Boolean_&
| Int_== | Int_!= | Int_< | Int_<= | Int_> | Int_>=
Note: nested LinkTimeIf nodes in the cond are used to encode short-circuiting boolean && and ||, just like we do with regular If nodes.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Treetrait TreeOrJSSpreadclass IRNodeclass Objecttrait Matchableclass Any
Members list
In this article