Navigate from Variables to AST Node accessing that variable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Navigate from Variables to AST Node accessing that variable

Marcus Denker-4
Hi,

https://pharo.fogbugz.com/f/cases/16674/Navigate-from-Variables-to-AST-Node-accessing-that-variable

The Slice adds the method #astNodes to LiteralVariable, Slot and TemporaryVariable.

e.g. inspect

Object binding astNodes

With the magic of GTInspector, this is a browser that show the source for that AST node nicely highlighted:


Reply | Threaded
Open this post in threaded view
|

Re: Navigate from Variables to AST Node accessing that variable

Tudor Girba-2
Great! This is so cool.

We should just change the gtDisplayOn: for RBGlobalNode to show something like:
BehaviorTest>>testallSuperclassesIncluding -> Object

What do you think?

Doru

On Wed, Sep 30, 2015 at 2:28 PM, Marcus Denker <[hidden email]> wrote:
Hi,

https://pharo.fogbugz.com/f/cases/16674/Navigate-from-Variables-to-AST-Node-accessing-that-variable

The Slice adds the method #astNodes to LiteralVariable, Slot and TemporaryVariable.

e.g. inspect

Object binding astNodes

With the magic of GTInspector, this is a browser that show the source for that AST node nicely highlighted:





--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: Navigate from Variables to AST Node accessing that variable

Marcus Denker-4

> On 30 Sep 2015, at 17:48, Tudor Girba <[hidden email]> wrote:
>
> Great! This is so cool.
>
> We should just change the gtDisplayOn: for RBGlobalNode to show something like:
> BehaviorTest>>testallSuperclassesIncluding -> Object
>
> What do you think?

Not sureā€¦ being in a method is not really that of an important property of a variable node
that I would print it.

        Marcus