Module org.kink_lang.kink
Interface DeepTransformer.Callback
- All Known Implementing Classes:
SsaChecker
,Ssafier.Callback
- Enclosing class:
- DeepTransformer
public static interface DeepTransformer.Callback
Callback for
DeepTransformer.deepTransform(Itree, Callback)
.-
Method Summary
-
Method Details
-
derefLvar
Transforms dereference of a local var.Dereference of
NoTraitNewValItree
,TraitNewValItree
,IfItree
,BranchItree
, andBranchWithElseItree
must not be transformed.- Parameters:
lvar
- the local var.- Returns:
- the result of transformation.
-
storeLvar
Transforms storing to a local var.- Parameters:
lvar
- the original local var to be transformed.- Returns:
- the result of transformation.
-
itree
Transforms the itree.If
itree
isFastFunItree
, the result must also beFastFunItree
.- Parameters:
itree
- the itree to be transformed.- Returns:
- the result of transformation.
-