static interface GatherSideEffectSubexpressionsCallback.SideEffectAccumulator
Modifier and Type | Method and Description |
---|---|
boolean |
classDefiningCallsHaveSideEffects()
Returns true if the "mixin" and "inherits" function calls
should be treated as if they had side effects.
|
void |
keepSimplifiedHookExpression(Node hook,
boolean thenHasSideEffects,
boolean elseHasSideEffects)
Simplifies a subtree whose root node is a HOOK expression
and adds the resulting subtree to the list of nodes that have
side effects.
|
void |
keepSimplifiedShortCircuitExpression(Node original)
Simplifies a subtree whose root node is an AND or OR expression
and adds the resulting subtree to the list of nodes that have
side effects.
|
void |
keepSubTree(Node original)
Adds subtree to the list of nodes that have side effects.
|
boolean classDefiningCallsHaveSideEffects()
void keepSubTree(Node original)
original
- - root of the tree.void keepSimplifiedShortCircuitExpression(Node original)
original
- - root of the and/or expression.void keepSimplifiedHookExpression(Node hook, boolean thenHasSideEffects, boolean elseHasSideEffects)
hook
- - root of the hook expression.thenHasSideEffects
- - then branch has side effectselseHasSideEffects
- - else branch has side effects