|
@@ -7,16 +7,19 @@ selector: "nextChunk",
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
var char,result,chunk;
|
|
var char,result,chunk;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3;
|
|
var $early={};
|
|
var $early={};
|
|
try {
|
|
try {
|
|
result=_st("")._writeStream();
|
|
result=_st("")._writeStream();
|
|
_st((function(){
|
|
_st((function(){
|
|
-return smalltalk.withContext(function($ctx2) {
char=_st(self["@stream"])._next();
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+char=_st(self["@stream"])._next();
|
|
char;
|
|
char;
|
|
return _st(char)._notNil();
|
|
return _st(char)._notNil();
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
|
|
-return smalltalk.withContext(function($ctx2) {
$1=_st(char).__eq("!");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+$1=_st(char).__eq("!");
|
|
if(smalltalk.assert($1)){
|
|
if(smalltalk.assert($1)){
|
|
$2=_st(_st(self["@stream"])._peek()).__eq("!");
|
|
$2=_st(_st(self["@stream"])._peek()).__eq("!");
|
|
if(smalltalk.assert($2)){
|
|
if(smalltalk.assert($2)){
|
|
@@ -41,7 +44,8 @@ smalltalk.method({
|
|
selector: "stream:",
|
|
selector: "stream:",
|
|
fn: function (aStream){
|
|
fn: function (aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
self["@stream"]=aStream;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+self["@stream"]=aStream;
|
|
return self}, function($ctx1) {$ctx1.fill(self,"stream:",{aStream:aStream}, smalltalk.ChunkParser)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"stream:",{aStream:aStream}, smalltalk.ChunkParser)})},
|
|
messageSends: []}),
|
|
messageSends: []}),
|
|
smalltalk.ChunkParser);
|
|
smalltalk.ChunkParser);
|
|
@@ -53,7 +57,8 @@ smalltalk.method({
|
|
selector: "on:",
|
|
selector: "on:",
|
|
fn: function (aStream){
|
|
fn: function (aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
$1=_st(_st(self)._new())._stream_(aStream);
|
|
$1=_st(_st(self)._new())._stream_(aStream);
|
|
return $1;
|
|
return $1;
|
|
}, function($ctx1) {$ctx1.fill(self,"on:",{aStream:aStream}, smalltalk.ChunkParser.klass)})},
|
|
}, function($ctx1) {$ctx1.fill(self,"on:",{aStream:aStream}, smalltalk.ChunkParser.klass)})},
|
|
@@ -68,7 +73,8 @@ smalltalk.method({
|
|
selector: "classNameFor:",
|
|
selector: "classNameFor:",
|
|
fn: function (aClass){
|
|
fn: function (aClass){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $2,$3,$1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $2,$3,$1;
|
|
$2=_st(aClass)._isMetaclass();
|
|
$2=_st(aClass)._isMetaclass();
|
|
if(smalltalk.assert($2)){
|
|
if(smalltalk.assert($2)){
|
|
$1=_st(_st(_st(aClass)._instanceClass())._name()).__comma(".klass");
|
|
$1=_st(_st(_st(aClass)._instanceClass())._name()).__comma(".klass");
|
|
@@ -91,10 +97,13 @@ smalltalk.method({
|
|
selector: "exportAll",
|
|
selector: "exportAll",
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
$1=_st((smalltalk.String || String))._streamContents_((function(stream){
|
|
$1=_st((smalltalk.String || String))._streamContents_((function(stream){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._packages())._do_((function(pkg){
|
|
|
|
-return smalltalk.withContext(function($ctx3) {
return _st(stream)._nextPutAll_(_st(self)._exportPackage_(_st(pkg)._name()));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._packages())._do_((function(pkg){
|
|
|
|
+return smalltalk.withContext(function($ctx3) {
|
|
|
|
+return _st(stream)._nextPutAll_(_st(self)._exportPackage_(_st(pkg)._name()));
|
|
}, function($ctx3) {$ctx3.fillBlock({pkg:pkg},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({pkg:pkg},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})}));
|
|
return $1;
|
|
return $1;
|
|
@@ -108,9 +117,11 @@ smalltalk.method({
|
|
selector: "exportClass:",
|
|
selector: "exportClass:",
|
|
fn: function (aClass){
|
|
fn: function (aClass){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
$1=_st((smalltalk.String || String))._streamContents_((function(stream){
|
|
$1=_st((smalltalk.String || String))._streamContents_((function(stream){
|
|
-return smalltalk.withContext(function($ctx2) {
_st(self)._exportDefinitionOf_on_(aClass,stream);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+_st(self)._exportDefinitionOf_on_(aClass,stream);
|
|
_st(self)._exportMethodsOf_on_(aClass,stream);
|
|
_st(self)._exportMethodsOf_on_(aClass,stream);
|
|
_st(self)._exportMetaDefinitionOf_on_(aClass,stream);
|
|
_st(self)._exportMetaDefinitionOf_on_(aClass,stream);
|
|
return _st(self)._exportMethodsOf_on_(_st(aClass)._class(),stream);
|
|
return _st(self)._exportMethodsOf_on_(_st(aClass)._class(),stream);
|
|
@@ -126,16 +137,19 @@ smalltalk.method({
|
|
selector: "exportDefinitionOf:on:",
|
|
selector: "exportDefinitionOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4,$5,$6,$7;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3,$4,$5,$6,$7;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_("smalltalk.addClass(");
|
|
_st($1)._nextPutAll_("smalltalk.addClass(");
|
|
_st($1)._nextPutAll_(_st(_st("'").__comma(_st(self)._classNameFor_(aClass))).__comma("', "));
|
|
_st($1)._nextPutAll_(_st(_st("'").__comma(_st(self)._classNameFor_(aClass))).__comma("', "));
|
|
_st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._superclass())));
|
|
_st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._superclass())));
|
|
$2=_st($1)._nextPutAll_(", [");
|
|
$2=_st($1)._nextPutAll_(", [");
|
|
_st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
|
|
_st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(", ");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(", ");
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
$3=aStream;
|
|
$3=aStream;
|
|
_st($3)._nextPutAll_("], '");
|
|
_st($3)._nextPutAll_("], '");
|
|
@@ -162,7 +176,8 @@ smalltalk.method({
|
|
selector: "exportMetaDefinitionOf:on:",
|
|
selector: "exportMetaDefinitionOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3;
|
|
$1=_st(_st(_st(aClass)._class())._instanceVariableNames())._isEmpty();
|
|
$1=_st(_st(_st(aClass)._class())._instanceVariableNames())._isEmpty();
|
|
if(! smalltalk.assert($1)){
|
|
if(! smalltalk.assert($1)){
|
|
$2=aStream;
|
|
$2=aStream;
|
|
@@ -170,9 +185,11 @@ _st($2)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aCla
|
|
$3=_st($2)._nextPutAll_(".iVarNames = [");
|
|
$3=_st($2)._nextPutAll_(".iVarNames = [");
|
|
$3;
|
|
$3;
|
|
_st(_st(_st(aClass)._class())._instanceVariableNames())._do_separatedBy_((function(each){
|
|
_st(_st(_st(aClass)._class())._instanceVariableNames())._do_separatedBy_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(",");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(",");
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
_st(aStream)._nextPutAll_(_st("];").__comma(_st((smalltalk.String || String))._lf()));
|
|
_st(aStream)._nextPutAll_(_st("];").__comma(_st((smalltalk.String || String))._lf()));
|
|
};
|
|
};
|
|
@@ -186,7 +203,8 @@ smalltalk.method({
|
|
selector: "exportMethod:of:on:",
|
|
selector: "exportMethod:of:on:",
|
|
fn: function (aMethod,aClass,aStream){
|
|
fn: function (aMethod,aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3,$4;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_("smalltalk.addMethod(");
|
|
_st($1)._nextPutAll_("smalltalk.addMethod(");
|
|
_st($1)._lf();
|
|
_st($1)._lf();
|
|
@@ -225,11 +243,14 @@ smalltalk.method({
|
|
selector: "exportMethodsOf:on:",
|
|
selector: "exportMethodsOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
_st(_st(_st(_st(aClass)._methodDictionary())._values())._sorted_((function(a,b){
|
|
_st(_st(_st(_st(aClass)._methodDictionary())._values())._sorted_((function(a,b){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
|
|
}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
$1=_st(_st(each)._category())._match_("^\x5c*");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+$1=_st(_st(each)._category())._match_("^\x5c*");
|
|
if(! smalltalk.assert($1)){
|
|
if(! smalltalk.assert($1)){
|
|
return _st(self)._exportMethod_of_on_(each,aClass,aStream);
|
|
return _st(self)._exportMethod_of_on_(each,aClass,aStream);
|
|
};
|
|
};
|
|
@@ -246,13 +267,16 @@ selector: "exportPackage:",
|
|
fn: function (packageName){
|
|
fn: function (packageName){
|
|
var self=this;
|
|
var self=this;
|
|
var package_;
|
|
var package_;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
$1=_st((smalltalk.String || String))._streamContents_((function(stream){
|
|
$1=_st((smalltalk.String || String))._streamContents_((function(stream){
|
|
-return smalltalk.withContext(function($ctx2) {
package_=_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._packageAt_(packageName);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+package_=_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._packageAt_(packageName);
|
|
package_;
|
|
package_;
|
|
_st(self)._exportPackageDefinitionOf_on_(package_,stream);
|
|
_st(self)._exportPackageDefinitionOf_on_(package_,stream);
|
|
_st(_st(_st(package_)._sortedClasses())._asSet())._do_((function(each){
|
|
_st(_st(_st(package_)._sortedClasses())._asSet())._do_((function(each){
|
|
-return smalltalk.withContext(function($ctx3) {
return _st(stream)._nextPutAll_(_st(self)._exportClass_(each));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx3) {
|
|
|
|
+return _st(stream)._nextPutAll_(_st(self)._exportClass_(each));
|
|
}, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
|
|
return _st(self)._exportPackageExtensionsOf_on_(package_,stream);
|
|
return _st(self)._exportPackageExtensionsOf_on_(package_,stream);
|
|
}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})}));
|
|
@@ -267,13 +291,14 @@ smalltalk.method({
|
|
selector: "exportPackageDefinitionOf:on:",
|
|
selector: "exportPackageDefinitionOf:on:",
|
|
fn: function (package_,aStream){
|
|
fn: function (package_,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_("smalltalk.addPackage(");
|
|
_st($1)._nextPutAll_("smalltalk.addPackage(");
|
|
-$2=_st($1)._nextPutAll_(_st(_st(_st(_st("'").__comma(_st(package_)._name())).__comma("', ")).__comma(_st(package_)._propertiesAsJSON())).__comma(");"));
|
|
|
|
-_st(aStream)._lf();
|
|
|
|
|
|
+_st($1)._nextPutAll_(_st(_st("'").__comma(_st(package_)._name())).__comma("');"));
|
|
|
|
+$2=_st($1)._lf();
|
|
return self}, function($ctx1) {$ctx1.fill(self,"exportPackageDefinitionOf:on:",{package_:package_,aStream:aStream}, smalltalk.Exporter)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"exportPackageDefinitionOf:on:",{package_:package_,aStream:aStream}, smalltalk.Exporter)})},
|
|
-messageSends: ["nextPutAll:", ",", "propertiesAsJSON", "name", "lf"]}),
|
|
|
|
|
|
+messageSends: ["nextPutAll:", ",", "name", "lf"]}),
|
|
smalltalk.Exporter);
|
|
smalltalk.Exporter);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
@@ -283,14 +308,19 @@ selector: "exportPackageExtensionsOf:on:",
|
|
fn: function (package_,aStream){
|
|
fn: function (package_,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
var name;
|
|
var name;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
name=_st(package_)._name();
|
|
name=_st(package_)._name();
|
|
_st(_st((smalltalk.Package || Package))._sortedClasses_(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes()))._do_((function(each){
|
|
_st(_st((smalltalk.Package || Package))._sortedClasses_(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes()))._do_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st([each,_st(each)._class()])._do_((function(aClass){
|
|
|
|
-return smalltalk.withContext(function($ctx3) {
return _st(_st(_st(_st(aClass)._methodDictionary())._values())._sorted_((function(a,b){
|
|
|
|
-return smalltalk.withContext(function($ctx4) {
return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st([each,_st(each)._class()])._do_((function(aClass){
|
|
|
|
+return smalltalk.withContext(function($ctx3) {
|
|
|
|
+return _st(_st(_st(_st(aClass)._methodDictionary())._values())._sorted_((function(a,b){
|
|
|
|
+return smalltalk.withContext(function($ctx4) {
|
|
|
|
+return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
}, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(method){
|
|
}, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(method){
|
|
-return smalltalk.withContext(function($ctx4) {
$1=_st(_st(method)._category())._match_(_st("^\x5c*").__comma(name));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx4) {
|
|
|
|
+$1=_st(_st(method)._category())._match_(_st("^\x5c*").__comma(name));
|
|
if(smalltalk.assert($1)){
|
|
if(smalltalk.assert($1)){
|
|
return _st(self)._exportMethod_of_on_(method,aClass,aStream);
|
|
return _st(self)._exportMethod_of_on_(method,aClass,aStream);
|
|
};
|
|
};
|
|
@@ -310,7 +340,8 @@ smalltalk.method({
|
|
selector: "chunkEscape:",
|
|
selector: "chunkEscape:",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
$1=_st(_st(aString)._replace_with_("!","!!"))._trimBoth();
|
|
$1=_st(_st(aString)._replace_with_("!","!!"))._trimBoth();
|
|
return $1;
|
|
return $1;
|
|
}, function($ctx1) {$ctx1.fill(self,"chunkEscape:",{aString:aString}, smalltalk.ChunkExporter)})},
|
|
}, function($ctx1) {$ctx1.fill(self,"chunkEscape:",{aString:aString}, smalltalk.ChunkExporter)})},
|
|
@@ -323,7 +354,8 @@ smalltalk.method({
|
|
selector: "classNameFor:",
|
|
selector: "classNameFor:",
|
|
fn: function (aClass){
|
|
fn: function (aClass){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $2,$3,$1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $2,$3,$1;
|
|
$2=_st(aClass)._isMetaclass();
|
|
$2=_st(aClass)._isMetaclass();
|
|
if(smalltalk.assert($2)){
|
|
if(smalltalk.assert($2)){
|
|
$1=_st(_st(_st(aClass)._instanceClass())._name()).__comma(" class");
|
|
$1=_st(_st(_st(aClass)._instanceClass())._name()).__comma(" class");
|
|
@@ -346,16 +378,19 @@ smalltalk.method({
|
|
selector: "exportDefinitionOf:on:",
|
|
selector: "exportDefinitionOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4,$5,$6,$7;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3,$4,$5,$6,$7;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_(_st(self)._classNameFor_(_st(aClass)._superclass()));
|
|
_st($1)._nextPutAll_(_st(self)._classNameFor_(_st(aClass)._superclass()));
|
|
_st($1)._nextPutAll_(_st(" subclass: #").__comma(_st(self)._classNameFor_(aClass)));
|
|
_st($1)._nextPutAll_(_st(" subclass: #").__comma(_st(self)._classNameFor_(aClass)));
|
|
_st($1)._lf();
|
|
_st($1)._lf();
|
|
$2=_st($1)._nextPutAll_("\x09instanceVariableNames: '");
|
|
$2=_st($1)._nextPutAll_("\x09instanceVariableNames: '");
|
|
_st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
|
|
_st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(each);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(each);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(" ");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(" ");
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
$3=aStream;
|
|
$3=aStream;
|
|
_st($3)._nextPutAll_("'");
|
|
_st($3)._nextPutAll_("'");
|
|
@@ -382,7 +417,8 @@ smalltalk.method({
|
|
selector: "exportMetaDefinitionOf:on:",
|
|
selector: "exportMetaDefinitionOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4,$5;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3,$4,$5;
|
|
$1=_st(_st(_st(aClass)._class())._instanceVariableNames())._isEmpty();
|
|
$1=_st(_st(_st(aClass)._class())._instanceVariableNames())._isEmpty();
|
|
if(! smalltalk.assert($1)){
|
|
if(! smalltalk.assert($1)){
|
|
$2=aStream;
|
|
$2=aStream;
|
|
@@ -390,9 +426,11 @@ _st($2)._nextPutAll_(_st(self)._classNameFor_(_st(aClass)._class()));
|
|
$3=_st($2)._nextPutAll_(" instanceVariableNames: '");
|
|
$3=_st($2)._nextPutAll_(" instanceVariableNames: '");
|
|
$3;
|
|
$3;
|
|
_st(_st(_st(aClass)._class())._instanceVariableNames())._do_separatedBy_((function(each){
|
|
_st(_st(_st(aClass)._class())._instanceVariableNames())._do_separatedBy_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(each);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(each);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(" ");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(" ");
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
$4=aStream;
|
|
$4=aStream;
|
|
_st($4)._nextPutAll_("'!");
|
|
_st($4)._nextPutAll_("'!");
|
|
@@ -410,7 +448,8 @@ smalltalk.method({
|
|
selector: "exportMethod:of:on:",
|
|
selector: "exportMethod:of:on:",
|
|
fn: function (aMethod,aClass,aStream){
|
|
fn: function (aMethod,aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._lf();
|
|
_st($1)._lf();
|
|
_st($1)._lf();
|
|
_st($1)._lf();
|
|
@@ -427,14 +466,17 @@ smalltalk.method({
|
|
selector: "exportMethods:category:of:on:",
|
|
selector: "exportMethods:category:of:on:",
|
|
fn: function (methods,category,aClass,aStream){
|
|
fn: function (methods,category,aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3,$4;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_(_st("!").__comma(_st(self)._classNameFor_(aClass)));
|
|
_st($1)._nextPutAll_(_st("!").__comma(_st(self)._classNameFor_(aClass)));
|
|
$2=_st($1)._nextPutAll_(_st(_st(" methodsFor: '").__comma(category)).__comma("'!"));
|
|
$2=_st($1)._nextPutAll_(_st(_st(" methodsFor: '").__comma(category)).__comma("'!"));
|
|
_st(_st(methods)._sorted_((function(a,b){
|
|
_st(_st(methods)._sorted_((function(a,b){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
|
|
}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(self)._exportMethod_of_on_(each,aClass,aStream);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(self)._exportMethod_of_on_(each,aClass,aStream);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
$3=aStream;
|
|
$3=aStream;
|
|
_st($3)._nextPutAll_(" !");
|
|
_st($3)._nextPutAll_(" !");
|
|
@@ -451,19 +493,23 @@ selector: "exportMethodsOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
var map;
|
|
var map;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
map=_st((smalltalk.Dictionary || Dictionary))._new();
|
|
map=_st((smalltalk.Dictionary || Dictionary))._new();
|
|
_st(aClass)._protocolsDo_((function(category,methods){
|
|
_st(aClass)._protocolsDo_((function(category,methods){
|
|
-return smalltalk.withContext(function($ctx2) {
$1=_st(category)._match_("^\x5c*");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+$1=_st(category)._match_("^\x5c*");
|
|
if(! smalltalk.assert($1)){
|
|
if(! smalltalk.assert($1)){
|
|
return _st(map)._at_put_(category,methods);
|
|
return _st(map)._at_put_(category,methods);
|
|
};
|
|
};
|
|
}, function($ctx2) {$ctx2.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
_st(_st(_st(map)._keys())._sorted_((function(a,b){
|
|
_st(_st(_st(map)._keys())._sorted_((function(a,b){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(a).__lt_eq(b);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(a).__lt_eq(b);
|
|
}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(category){
|
|
}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(category){
|
|
var methods;
|
|
var methods;
|
|
-return smalltalk.withContext(function($ctx2) {
methods=_st(map)._at_(category);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+methods=_st(map)._at_(category);
|
|
methods;
|
|
methods;
|
|
return _st(self)._exportMethods_category_of_on_(methods,category,aClass,aStream);
|
|
return _st(self)._exportMethods_category_of_on_(methods,category,aClass,aStream);
|
|
}, function($ctx2) {$ctx2.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
@@ -477,12 +523,13 @@ smalltalk.method({
|
|
selector: "exportPackageDefinitionOf:on:",
|
|
selector: "exportPackageDefinitionOf:on:",
|
|
fn: function (package_,aStream){
|
|
fn: function (package_,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
-_st($1)._nextPutAll_(_st(_st(_st(_st("Smalltalk current createPackage: '").__comma(_st(package_)._name())).__comma("' properties: ")).__comma(_st(_st(package_)._properties())._storeString())).__comma("!"));
|
|
|
|
|
|
+_st($1)._nextPutAll_(_st(_st("Smalltalk current createPackage: '").__comma(_st(package_)._name())).__comma("'!"));
|
|
$2=_st($1)._lf();
|
|
$2=_st($1)._lf();
|
|
return self}, function($ctx1) {$ctx1.fill(self,"exportPackageDefinitionOf:on:",{package_:package_,aStream:aStream}, smalltalk.ChunkExporter)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"exportPackageDefinitionOf:on:",{package_:package_,aStream:aStream}, smalltalk.ChunkExporter)})},
|
|
-messageSends: ["nextPutAll:", ",", "storeString", "properties", "name", "lf"]}),
|
|
|
|
|
|
+messageSends: ["nextPutAll:", ",", "name", "lf"]}),
|
|
smalltalk.ChunkExporter);
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
@@ -492,23 +539,29 @@ selector: "exportPackageExtensionsOf:on:",
|
|
fn: function (package_,aStream){
|
|
fn: function (package_,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
var name,map;
|
|
var name,map;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
name=_st(package_)._name();
|
|
name=_st(package_)._name();
|
|
_st(_st((smalltalk.Package || Package))._sortedClasses_(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes()))._do_((function(each){
|
|
_st(_st((smalltalk.Package || Package))._sortedClasses_(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._classes()))._do_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st([each,_st(each)._class()])._do_((function(aClass){
|
|
|
|
-return smalltalk.withContext(function($ctx3) {
map=_st((smalltalk.Dictionary || Dictionary))._new();
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st([each,_st(each)._class()])._do_((function(aClass){
|
|
|
|
+return smalltalk.withContext(function($ctx3) {
|
|
|
|
+map=_st((smalltalk.Dictionary || Dictionary))._new();
|
|
map;
|
|
map;
|
|
_st(aClass)._protocolsDo_((function(category,methods){
|
|
_st(aClass)._protocolsDo_((function(category,methods){
|
|
-return smalltalk.withContext(function($ctx4) {
$1=_st(category)._match_(_st("^\x5c*").__comma(name));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx4) {
|
|
|
|
+$1=_st(category)._match_(_st("^\x5c*").__comma(name));
|
|
if(smalltalk.assert($1)){
|
|
if(smalltalk.assert($1)){
|
|
return _st(map)._at_put_(category,methods);
|
|
return _st(map)._at_put_(category,methods);
|
|
};
|
|
};
|
|
}, function($ctx4) {$ctx4.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
}, function($ctx4) {$ctx4.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
return _st(_st(_st(map)._keys())._sorted_((function(a,b){
|
|
return _st(_st(_st(map)._keys())._sorted_((function(a,b){
|
|
-return smalltalk.withContext(function($ctx4) {
return _st(a).__lt_eq(b);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx4) {
|
|
|
|
+return _st(a).__lt_eq(b);
|
|
}, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(category){
|
|
}, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(category){
|
|
var methods;
|
|
var methods;
|
|
-return smalltalk.withContext(function($ctx4) {
methods=_st(map)._at_(category);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx4) {
|
|
|
|
+methods=_st(map)._at_(category);
|
|
methods;
|
|
methods;
|
|
return _st(self)._exportMethods_category_of_on_(methods,category,aClass,aStream);
|
|
return _st(self)._exportMethods_category_of_on_(methods,category,aClass,aStream);
|
|
}, function($ctx4) {$ctx4.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
}, function($ctx4) {$ctx4.fillBlock({category:category,methods:methods},$ctx1)})}));
|
|
@@ -527,16 +580,19 @@ smalltalk.method({
|
|
selector: "exportDefinitionOf:on:",
|
|
selector: "exportDefinitionOf:on:",
|
|
fn: function (aClass,aStream){
|
|
fn: function (aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2,$3,$4;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_("smalltalk.addClass(");
|
|
_st($1)._nextPutAll_("smalltalk.addClass(");
|
|
_st($1)._nextPutAll_(_st(_st("'").__comma(_st(self)._classNameFor_(aClass))).__comma("', "));
|
|
_st($1)._nextPutAll_(_st(_st("'").__comma(_st(self)._classNameFor_(aClass))).__comma("', "));
|
|
_st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._superclass())));
|
|
_st($1)._nextPutAll_(_st("smalltalk.").__comma(_st(self)._classNameFor_(_st(aClass)._superclass())));
|
|
$2=_st($1)._nextPutAll_(", [");
|
|
$2=_st($1)._nextPutAll_(", [");
|
|
_st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
|
|
_st(_st(aClass)._instanceVariableNames())._do_separatedBy_((function(each){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(_st(_st("'").__comma(each)).__comma("'"));
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}),(function(){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(aStream)._nextPutAll_(", ");
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(aStream)._nextPutAll_(", ");
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
$3=aStream;
|
|
$3=aStream;
|
|
_st($3)._nextPutAll_("], '");
|
|
_st($3)._nextPutAll_("], '");
|
|
@@ -553,7 +609,8 @@ smalltalk.method({
|
|
selector: "exportMethod:of:on:",
|
|
selector: "exportMethod:of:on:",
|
|
fn: function (aMethod,aClass,aStream){
|
|
fn: function (aMethod,aClass,aStream){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2;
|
|
$1=aStream;
|
|
$1=aStream;
|
|
_st($1)._nextPutAll_("smalltalk.addMethod(");
|
|
_st($1)._nextPutAll_("smalltalk.addMethod(");
|
|
_st($1)._lf();
|
|
_st($1)._lf();
|
|
@@ -586,15 +643,18 @@ selector: "import:",
|
|
fn: function (aStream){
|
|
fn: function (aStream){
|
|
var self=this;
|
|
var self=this;
|
|
var chunk,result,parser,lastEmpty;
|
|
var chunk,result,parser,lastEmpty;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2;
|
|
parser=_st((smalltalk.ChunkParser || ChunkParser))._on_(aStream);
|
|
parser=_st((smalltalk.ChunkParser || ChunkParser))._on_(aStream);
|
|
lastEmpty=false;
|
|
lastEmpty=false;
|
|
_st((function(){
|
|
_st((function(){
|
|
-return smalltalk.withContext(function($ctx2) {
chunk=_st(parser)._nextChunk();
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+chunk=_st(parser)._nextChunk();
|
|
chunk;
|
|
chunk;
|
|
return _st(chunk)._isNil();
|
|
return _st(chunk)._isNil();
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileFalse_((function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileFalse_((function(){
|
|
-return smalltalk.withContext(function($ctx2) {
$1=_st(chunk)._isEmpty();
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+$1=_st(chunk)._isEmpty();
|
|
if(smalltalk.assert($1)){
|
|
if(smalltalk.assert($1)){
|
|
lastEmpty=true;
|
|
lastEmpty=true;
|
|
return lastEmpty;
|
|
return lastEmpty;
|
|
@@ -622,7 +682,8 @@ smalltalk.method({
|
|
selector: "initializePackageNamed:prefix:",
|
|
selector: "initializePackageNamed:prefix:",
|
|
fn: function (packageName,aString){
|
|
fn: function (packageName,aString){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1,$2;
|
|
$1=_st((smalltalk.Package || Package))._named_(packageName);
|
|
$1=_st((smalltalk.Package || Package))._named_(packageName);
|
|
_st($1)._setupClasses();
|
|
_st($1)._setupClasses();
|
|
_st($1)._commitPathJs_(_st(_st("/").__comma(aString)).__comma("/js"));
|
|
_st($1)._commitPathJs_(_st(_st("/").__comma(aString)).__comma("/js"));
|
|
@@ -638,15 +699,18 @@ selector: "loadPackage:prefix:",
|
|
fn: function (packageName,aString){
|
|
fn: function (packageName,aString){
|
|
var self=this;
|
|
var self=this;
|
|
var url;
|
|
var url;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
url=_st(_st(_st(_st("/").__comma(aString)).__comma("/js/")).__comma(packageName)).__comma(".js");
|
|
url=_st(_st(_st(_st("/").__comma(aString)).__comma("/js/")).__comma(packageName)).__comma(".js");
|
|
_st(jQuery)._ajax_options_(url,smalltalk.HashedCollection._fromPairs_([_st("type").__minus_gt("GET"),_st("dataType").__minus_gt("script"),_st("complete").__minus_gt((function(jqXHR,textStatus){
|
|
_st(jQuery)._ajax_options_(url,smalltalk.HashedCollection._fromPairs_([_st("type").__minus_gt("GET"),_st("dataType").__minus_gt("script"),_st("complete").__minus_gt((function(jqXHR,textStatus){
|
|
-return smalltalk.withContext(function($ctx2) {
$1=_st(_st(jqXHR)._readyState()).__eq((4));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+$1=_st(_st(jqXHR)._readyState()).__eq((4));
|
|
if(smalltalk.assert($1)){
|
|
if(smalltalk.assert($1)){
|
|
return _st(self)._initializePackageNamed_prefix_(packageName,aString);
|
|
return _st(self)._initializePackageNamed_prefix_(packageName,aString);
|
|
};
|
|
};
|
|
}, function($ctx2) {$ctx2.fillBlock({jqXHR:jqXHR,textStatus:textStatus},$ctx1)})})),_st("error").__minus_gt((function(){
|
|
}, function($ctx2) {$ctx2.fillBlock({jqXHR:jqXHR,textStatus:textStatus},$ctx1)})})),_st("error").__minus_gt((function(){
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(window)._alert_(_st("Could not load package at: ").__comma(url));
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(window)._alert_(_st("Could not load package at: ").__comma(url));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))]));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))]));
|
|
return self}, function($ctx1) {$ctx1.fill(self,"loadPackage:prefix:",{packageName:packageName,aString:aString,url:url}, smalltalk.PackageLoader)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"loadPackage:prefix:",{packageName:packageName,aString:aString,url:url}, smalltalk.PackageLoader)})},
|
|
messageSends: [",", "ajax:options:", "->", "ifTrue:", "initializePackageNamed:prefix:", "=", "readyState", "alert:"]}),
|
|
messageSends: [",", "ajax:options:", "->", "ifTrue:", "initializePackageNamed:prefix:", "=", "readyState", "alert:"]}),
|
|
@@ -658,8 +722,10 @@ smalltalk.method({
|
|
selector: "loadPackages:prefix:",
|
|
selector: "loadPackages:prefix:",
|
|
fn: function (aCollection,aString){
|
|
fn: function (aCollection,aString){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
_st(aCollection)._do_((function(each){
|
|
|
|
-return smalltalk.withContext(function($ctx2) {
return _st(self)._loadPackage_prefix_(each,aString);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+_st(aCollection)._do_((function(each){
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(self)._loadPackage_prefix_(each,aString);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
return self}, function($ctx1) {$ctx1.fill(self,"loadPackages:prefix:",{aCollection:aCollection,aString:aString}, smalltalk.PackageLoader)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"loadPackages:prefix:",{aCollection:aCollection,aString:aString}, smalltalk.PackageLoader)})},
|
|
messageSends: ["do:", "loadPackage:prefix:"]}),
|
|
messageSends: ["do:", "loadPackage:prefix:"]}),
|
|
@@ -672,7 +738,8 @@ smalltalk.method({
|
|
selector: "loadPackages:prefix:",
|
|
selector: "loadPackages:prefix:",
|
|
fn: function (aCollection,aString){
|
|
fn: function (aCollection,aString){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
$1=_st(_st(self)._new())._loadPackages_prefix_(aCollection,aString);
|
|
$1=_st(_st(self)._new())._loadPackages_prefix_(aCollection,aString);
|
|
return $1;
|
|
return $1;
|
|
}, function($ctx1) {$ctx1.fill(self,"loadPackages:prefix:",{aCollection:aCollection,aString:aString}, smalltalk.PackageLoader.klass)})},
|
|
}, function($ctx1) {$ctx1.fill(self,"loadPackages:prefix:",{aCollection:aCollection,aString:aString}, smalltalk.PackageLoader.klass)})},
|