> On 31 Aug 2015, at 09:00, Guillermo Polito <[email protected]> wrote:
> 
> Does it also work with Block contexts and optimized ones?
> 
> 
Yes, I think so. But we should add tests.

It uses the same mechanism that manages highlighting in the debugger.

> Le 31 août 2015 08:45, "stepharo" <[email protected] 
> <mailto:[email protected]>> a écrit :
> Nice :)
> I hope you put this example as comment. 
> 
> 
> Le 31/8/15 08:37, Marcus Denker a écrit :
>> Hi,
>> 
>> I added a method that returns the sub-tree of the AST that was executed by 
>> this context.
>> (e.g. the message send node of the message that was send that is the reason 
>> why we
>> are now executing thisContext).
>> 
>> e.g.
>> 
>> testSourceNodeExecuted
>>     | sourceNode |
>>     
>>     sourceNode := thisContext sender sender sourceNodeExecuted.
>>     self assert: sourceNode selector = #performTest.
>> 
>> AST caching guarantees that this is a true subtree of the method’s AST.
>> 
>>      Marcus
>> 
> 

Reply via email to