Le 09/01/2014 01:57, Nicolas Passerini a �crit :You test the binding associated with the RBVariableNode
I am looking at the AST of a method like this:
someMethod
^ SomeClass new
It was a surprise to me that the note for 'SomeClass' is an
RBVariableNode instead of a RBClassReference. Which is the best way to
tell if an RBVariableNode represents a global reference or an instance
variable?
self binding isInstance -> instance variable name
self binding isLiteral or: [ self isGlobal]
� � � � Class reference or a global reference (singleton) or a literal
self binding isTemp -> temporary
Thierry
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Syst�mes Temps R�el Embarqu�s
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95