#REFACTORING by exept
authorClaus Gittinger <cg@exept.de>
Sun, 13 Oct 2019 23:46:34 +0200
changeset 1204 46185a561338
parent 1203 a4f2355ceacc
child 1205 ffac189ba5ac
#REFACTORING by exept class: JavaScriptVariableNode removed: #whoDefines:
JavaScriptVariableNode.st
--- a/JavaScriptVariableNode.st	Mon Oct 07 18:17:49 2019 +0200
+++ b/JavaScriptVariableNode.st	Sun Oct 13 23:46:34 2019 +0200
@@ -43,25 +43,6 @@
     ^ false
 
     "Modified: / 23-02-2007 / 13:26:20 / cg"
-!
-
-whoDefines: aName
-    "return the node (blockNode) in which this variable is defined.
-     (nil if instvar, classvar or global)"
-
-    |p|
-
-    "/ TODO
-"/    block notNil ifTrue:[
-"/        self halt
-"/    ].
-    p := parent.
-    [p notNil and:[p isFunctionNode not]] whileTrue:[ p := p parent].
-    p notNil ifTrue:[
-        ((p arguments ? #()) contains:[:var | var name = aName]) ifTrue:[^ p].
-        ((p localVariables ? #()) contains:[:var | var name = aName]) ifTrue:[^ p].
-    ].
-    ^ nil
 ! !
 
 !JavaScriptVariableNode methodsFor:'visiting'!