Le 09/01/2014 01:57, Nicolas Passerini a écrit :
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?
You test the binding associated with the RBVariableNode 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