April 19, 2013
8:15 p.m.
On Apr 17, 2013, at 5:51 PM, Marcus Denker <marcus.denker@inria.fr> wrote:
Hi,
We implemented this today:
#sourceNode for MethodContext. It returns the AST node of context, as part of the whole AST of the method.
today we added: [ 1 + 2 ] sourceNode. ==> RBBlockNode([ 1 + 2 ]) (Object>>#halt) sourceNodeForPC: 22. ==> RBMessageNode(Halt now) And (of course): |block blockNodeViaContext blockNodeViaClosure | block := [blockNodeViaContext := thisContext sourceNode]. block value. blockNodeViaClosure := block sourceNode. blockNodeViaContext == blockNodeViaClosure ==> true Marcus