|
@@ -3900,64 +3900,153 @@ selector: "visitSuperSend:",
|
|
|
protocol: 'visiting',
|
|
|
fn: function (anIRSend){
|
|
|
var self=this;
|
|
|
+
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2,$6,$5,$4,$3,$7,$8,$9,$11,$10,$12,$13,$14,$15;
|
|
|
+
|
|
|
+var $1,$2,$5,$4,$3,$6,$7,$8,$10,$9,$11,$12,$13,$14;
|
|
|
$1=self._stream();
|
|
|
+
|
|
|
$ctx1.sendIdx["stream"]=1;
|
|
|
+
|
|
|
+_st($1)._nextPutAll_("(");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=1;
|
|
|
+
|
|
|
+_st($1)._lf();
|
|
|
+
|
|
|
+$ctx1.sendIdx["lf"]=1;
|
|
|
+
|
|
|
+_st($1)._nextPutAll_("//>>excludeStart(\x22ctx\x22, pragmas.excludeDebugContexts);");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=2;
|
|
|
+
|
|
|
+_st($1)._lf();
|
|
|
+
|
|
|
+$ctx1.sendIdx["lf"]=2;
|
|
|
+
|
|
|
$2=$1;
|
|
|
-$6=_st(anIRSend)._scope();
|
|
|
+$5=_st(anIRSend)._scope();
|
|
|
+
|
|
|
$ctx1.sendIdx["scope"]=1;
|
|
|
-$5=_st($6)._alias();
|
|
|
+
|
|
|
+$4=_st($5)._alias();
|
|
|
+
|
|
|
$ctx1.sendIdx["alias"]=1;
|
|
|
-$4="(".__comma($5);
|
|
|
-$ctx1.sendIdx[","]=2;
|
|
|
+
|
|
|
$3=_st($4).__comma(".supercall = true, ");
|
|
|
+
|
|
|
$ctx1.sendIdx[","]=1;
|
|
|
+
|
|
|
_st($2)._nextPutAll_($3);
|
|
|
-$ctx1.sendIdx["nextPutAll:"]=1;
|
|
|
-_st($1)._nextPutAll_(_st(self._currentClass())._asJavascript());
|
|
|
-$ctx1.sendIdx["nextPutAll:"]=2;
|
|
|
-_st($1)._nextPutAll_(".superclass.fn.prototype.");
|
|
|
+
|
|
|
$ctx1.sendIdx["nextPutAll:"]=3;
|
|
|
-$7=$1;
|
|
|
-$8=_st(_st(_st(anIRSend)._selector())._asJavaScriptMethodName()).__comma(".apply(");
|
|
|
-$ctx1.sendIdx[","]=3;
|
|
|
-_st($7)._nextPutAll_($8);
|
|
|
+
|
|
|
+_st($1)._lf();
|
|
|
+
|
|
|
+$ctx1.sendIdx["lf"]=3;
|
|
|
+
|
|
|
+_st($1)._nextPutAll_("//>>excludeEnd(\x22ctx\x22);");
|
|
|
+
|
|
|
$ctx1.sendIdx["nextPutAll:"]=4;
|
|
|
-$9=_st($1)._nextPutAll_("_st(");
|
|
|
+
|
|
|
+_st($1)._lf();
|
|
|
+
|
|
|
+$ctx1.sendIdx["lf"]=4;
|
|
|
+
|
|
|
+_st($1)._nextPutAll_(_st(self._currentClass())._asJavascript());
|
|
|
+
|
|
|
$ctx1.sendIdx["nextPutAll:"]=5;
|
|
|
-$11=_st(anIRSend)._instructions();
|
|
|
+
|
|
|
+_st($1)._nextPutAll_(".superclass.fn.prototype.");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=6;
|
|
|
+
|
|
|
+$6=$1;
|
|
|
+$7=_st(_st(_st(anIRSend)._selector())._asJavaScriptMethodName()).__comma(".apply(");
|
|
|
+
|
|
|
+$ctx1.sendIdx[","]=2;
|
|
|
+
|
|
|
+_st($6)._nextPutAll_($7);
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=7;
|
|
|
+
|
|
|
+$8=_st($1)._nextPutAll_("_st(");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=8;
|
|
|
+
|
|
|
+$10=_st(anIRSend)._instructions();
|
|
|
+
|
|
|
$ctx1.sendIdx["instructions"]=1;
|
|
|
-$10=_st($11)._first();
|
|
|
-self._visit_($10);
|
|
|
+
|
|
|
+$9=_st($10)._first();
|
|
|
+self._visit_($9);
|
|
|
+
|
|
|
$ctx1.sendIdx["visit:"]=1;
|
|
|
-$12=self._stream();
|
|
|
+
|
|
|
+$11=self._stream();
|
|
|
+
|
|
|
$ctx1.sendIdx["stream"]=2;
|
|
|
-_st($12)._nextPutAll_("), [");
|
|
|
-$ctx1.sendIdx["nextPutAll:"]=6;
|
|
|
+
|
|
|
+_st($11)._nextPutAll_("), [");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=9;
|
|
|
+
|
|
|
_st(_st(_st(anIRSend)._instructions())._allButFirst())._do_separatedBy_((function(each){
|
|
|
+
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
|
+
|
|
|
return self._visit_(each);
|
|
|
+
|
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
|
|
|
+
|
|
|
}),(function(){
|
|
|
+
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
|
-$13=self._stream();
|
|
|
+
|
|
|
+$12=self._stream();
|
|
|
+
|
|
|
$ctx2.sendIdx["stream"]=3;
|
|
|
-return _st($13)._nextPutAll_(",");
|
|
|
-$ctx2.sendIdx["nextPutAll:"]=7;
|
|
|
+
|
|
|
+return _st($12)._nextPutAll_(",");
|
|
|
+
|
|
|
+$ctx2.sendIdx["nextPutAll:"]=10;
|
|
|
+
|
|
|
+
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,2)});
|
|
|
+
|
|
|
}));
|
|
|
-$14=self._stream();
|
|
|
-_st($14)._nextPutAll_("]));");
|
|
|
-$ctx1.sendIdx["nextPutAll:"]=8;
|
|
|
-_st($14)._lf();
|
|
|
-$15=_st($14)._nextPutAll_(_st(_st(_st(anIRSend)._scope())._alias()).__comma(".supercall = false"));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"visitSuperSend:",{anIRSend:anIRSend},globals.IRJSTranslator)});
|
|
|
+$13=self._stream();
|
|
|
+_st($13)._nextPutAll_("]));");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=11;
|
|
|
+
|
|
|
+_st($13)._lf();
|
|
|
+
|
|
|
+$ctx1.sendIdx["lf"]=5;
|
|
|
+
|
|
|
+_st($13)._nextPutAll_("//>>excludeStart(\x22ctx\x22, pragmas.excludeDebugContexts);");
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=12;
|
|
|
+
|
|
|
+_st($13)._lf();
|
|
|
+
|
|
|
+$ctx1.sendIdx["lf"]=6;
|
|
|
+
|
|
|
+_st($13)._nextPutAll_(_st(_st(_st(anIRSend)._scope())._alias()).__comma(".supercall = false;"));
|
|
|
+
|
|
|
+$ctx1.sendIdx["nextPutAll:"]=13;
|
|
|
+
|
|
|
+_st($13)._lf();
|
|
|
+$14=_st($13)._nextPutAll_("//>>excludeEnd(\x22ctx\x22);");
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"visitSuperSend:",{anIRSend:anIRSend},globals.IRJSTranslator)});
|
|
|
+
|
|
|
},
|
|
|
-messageSends: ["nextPutAll:", "stream", ",", "alias", "scope", "asJavascript", "currentClass", "asJavaScriptMethodName", "selector", "visit:", "first", "instructions", "do:separatedBy:", "allButFirst", "lf"],
|
|
|
+messageSends: ["nextPutAll:", "stream", "lf", ",", "alias", "scope", "asJavascript", "currentClass", "asJavaScriptMethodName", "selector", "visit:", "first", "instructions", "do:separatedBy:", "allButFirst"],
|
|
|
|
|
|
args: ["anIRSend"],
|
|
|
-source: "visitSuperSend: anIRSend\x0a\x09self stream\x0a\x09\x09nextPutAll: '(', anIRSend scope alias, '.supercall = true, ';\x0a\x09\x09nextPutAll: self currentClass asJavascript;\x0a\x09\x09nextPutAll: '.superclass.fn.prototype.';\x0a\x09\x09nextPutAll: anIRSend selector asJavaScriptMethodName, '.apply(';\x0a\x09\x09nextPutAll: '_st('.\x0a\x09self visit: anIRSend instructions first.\x0a\x09self stream nextPutAll: '), ['.\x0a\x09anIRSend instructions allButFirst\x0a\x09\x09do: [ :each | self visit: each ]\x0a\x09\x09separatedBy: [ self stream nextPutAll: ',' ].\x0a\x09self stream \x0a\x09\x09nextPutAll: ']));'; lf;\x0a\x09\x09nextPutAll: anIRSend scope alias, '.supercall = false'",
|
|
|
+source: "visitSuperSend: anIRSend\x0a\x09self stream\x0a\x09\x09nextPutAll: '('; lf;\x0a\x09\x09nextPutAll: '//>>excludeStart(\x22ctx\x22, pragmas.excludeDebugContexts);'; lf;\x0a\x09\x09nextPutAll: anIRSend scope alias, '.supercall = true, '; lf;\x0a\x09\x09nextPutAll: '//>>excludeEnd(\x22ctx\x22);'; lf;\x0a\x09\x09nextPutAll: self currentClass asJavascript;\x0a\x09\x09nextPutAll: '.superclass.fn.prototype.';\x0a\x09\x09nextPutAll: anIRSend selector asJavaScriptMethodName, '.apply(';\x0a\x09\x09nextPutAll: '_st('.\x0a\x09self visit: anIRSend instructions first.\x0a\x09self stream nextPutAll: '), ['.\x0a\x09anIRSend instructions allButFirst\x0a\x09\x09do: [ :each | self visit: each ]\x0a\x09\x09separatedBy: [ self stream nextPutAll: ',' ].\x0a\x09self stream \x0a\x09\x09nextPutAll: ']));'; lf;\x0a\x09\x09nextPutAll: '//>>excludeStart(\x22ctx\x22, pragmas.excludeDebugContexts);'; lf;\x0a\x09\x09nextPutAll: anIRSend scope alias, '.supercall = false;'; lf;\x0a\x09\x09nextPutAll: '//>>excludeEnd(\x22ctx\x22);'",
|
|
|
referencedClasses: []
|
|
|
|
|
|
}),
|