|
@@ -2631,11 +2631,17 @@ selector: "visitIRVariable:",
|
|
category: 'visiting',
|
|
category: 'visiting',
|
|
fn: function (anIRVariable){
|
|
fn: function (anIRVariable){
|
|
var self=this;
|
|
var self=this;
|
|
|
|
+var $1;
|
|
|
|
+$1=smalltalk.send(smalltalk.send(anIRVariable,"_name",[]),"__eq",["thisContext"]);
|
|
|
|
+if(smalltalk.assert($1)){
|
|
|
|
+smalltalk.send(smalltalk.send(self,"_stream",[]),"_nextPutAll_",["smalltalk.getThisContext()"]);
|
|
|
|
+} else {
|
|
smalltalk.send(smalltalk.send(self,"_stream",[]),"_nextPutAll_",[smalltalk.send(smalltalk.send(anIRVariable,"_variable",[]),"_alias",[])]);
|
|
smalltalk.send(smalltalk.send(self,"_stream",[]),"_nextPutAll_",[smalltalk.send(smalltalk.send(anIRVariable,"_variable",[]),"_alias",[])]);
|
|
|
|
+};
|
|
return self},
|
|
return self},
|
|
args: ["anIRVariable"],
|
|
args: ["anIRVariable"],
|
|
-source: "visitIRVariable: anIRVariable\x0a\x09self stream nextPutAll: anIRVariable variable alias",
|
|
|
|
-messageSends: ["nextPutAll:", "alias", "variable", "stream"],
|
|
|
|
|
|
+source: "visitIRVariable: anIRVariable\x0a\x09anIRVariable name = 'thisContext'\x0a \x09ifTrue: [ self stream nextPutAll: 'smalltalk.getThisContext()' ]\x0a \x09ifFalse: [ self stream nextPutAll: anIRVariable variable alias ]",
|
|
|
|
+messageSends: ["ifTrue:ifFalse:", "nextPutAll:", "stream", "alias", "variable", "=", "name"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.IRJSTranslator);
|
|
smalltalk.IRJSTranslator);
|