Reconstructs parts of a normalized R ast into R code on an expression basis.
The normalized ast to be used as a basis for reconstruction
The selection of nodes to be reconstructed (probably the NodeIds identified by the slicer)
A predicate that can be used to force the reconstruction of a node
The number of lines for which autoSelectIf triggered, as well as the reconstructed code itself.
autoSelectIf
Optional
Reconstructs parts of a normalized R ast into R code on an expression basis.
Param: ast
The normalized ast to be used as a basis for reconstruction
Param: selection
The selection of nodes to be reconstructed (probably the NodeIds identified by the slicer)
Param: autoSelectIf
A predicate that can be used to force the reconstruction of a node
Returns
The number of lines for which
autoSelectIftriggered, as well as the reconstructed code itself.