dotty.tools.sjs.ir.Trees.UnaryOp
See theUnaryOp companion object
Unary operation.
All unary operations follow common evaluation steps:
- Let
lhsValue
be the result of evaluatinglhs
. - Perform an operation that depends on
op
andlhsValue
.
The Class_x
operations take a jl.Class!
argument, i.e., a non-nullable jl.Class
.
Likewise, Array_length
, GetClass
, Clone
and UnwrapFromThrowable
take arguments of non-nullable types.
CheckNotNull
throws NPEs subject to UB.
Throw
always throws, obviously.
Clone
and WrapAsThrowable
are side-effect-free but not pure.
Otherwise, unary operations preserve pureness.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Treetrait TreeOrJSSpreadclass IRNodeclass Objecttrait Matchableclass Any
Members list
In this article