|
@@ -2232,21 +2232,6 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.BlockClosure);
|
|
smalltalk.BlockClosure);
|
|
|
|
|
|
-smalltalk.addMethod(
|
|
|
|
-'_printString',
|
|
|
|
-smalltalk.method({
|
|
|
|
-selector: 'printString',
|
|
|
|
-category: 'printing',
|
|
|
|
-fn: function (){
|
|
|
|
-var self=this;
|
|
|
|
-return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Object)]);smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_compiledSource", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29")]);return smalltalk.send($rec, "_cr", []);})(aStream);})]);
|
|
|
|
-return self;},
|
|
|
|
-source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09nextPutAll%3A%20%27%28%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09nextPutAll%3A%20self%20compiledSource%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09nextPutAll%3A%20%27%29%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09cr.%0A%20%20%20%20%20%20%20%20%20%20%20%5D'),
|
|
|
|
-messageSends: ["streamContents:", "nextPutAll:", "printString", "compiledSource", "cr"],
|
|
|
|
-referencedClasses: [smalltalk.String]
|
|
|
|
-}),
|
|
|
|
-smalltalk.BlockClosure);
|
|
|
|
-
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
'_whileFalse',
|
|
'_whileFalse',
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -2292,6 +2277,21 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.BlockClosure);
|
|
smalltalk.BlockClosure);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+'_applyTo_arguments_',
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: 'applyTo:arguments:',
|
|
|
|
+category: 'evaluating',
|
|
|
|
+fn: function (anObject, aCollection){
|
|
|
|
+var self=this;
|
|
|
|
+return self.apply(anObject, aCollection);
|
|
|
|
+return self;},
|
|
|
|
+source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.BlockClosure);
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
|
|
smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
|
|
@@ -6100,7 +6100,7 @@ smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
|
|
return self;},
|
|
return self;},
|
|
source: unescape('compileMethod%3A%20aString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20class.%0A%09method%20category%3A%20category.%0A%09class%20addCompiledMethod%3A%20method'),
|
|
source: unescape('compileMethod%3A%20aString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20class.%0A%09method%20category%3A%20category.%0A%09class%20addCompiledMethod%3A%20method'),
|
|
messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
|
|
messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
|
|
-referencedClasses: [smalltalk.Compiler]
|
|
|
|
|
|
+referencedClasses: [smalltalk.nil]
|
|
}),
|
|
}),
|
|
smalltalk.ClassCategoryReader);
|
|
smalltalk.ClassCategoryReader);
|
|
|
|
|
|
@@ -7138,3 +7138,88 @@ referencedClasses: []
|
|
smalltalk.ErrorHandler.klass);
|
|
smalltalk.ErrorHandler.klass);
|
|
|
|
|
|
|
|
|
|
|
|
+smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+'_jsObject_',
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: 'jsObject:',
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (aJSObject){
|
|
|
|
+var self=this;
|
|
|
|
+self['@jsObject']=aJSObject;
|
|
|
|
+return self;},
|
|
|
|
+source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.JSObjectProxy);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+'_jsObject',
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: 'jsObject',
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+return self['@jsObject'];
|
|
|
|
+return self;},
|
|
|
|
+source: unescape('jsObject%0A%09%5EjsObject'),
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.JSObjectProxy);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+'_printString',
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: 'printString',
|
|
|
|
+category: 'proxy',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
|
|
|
|
+return self;},
|
|
|
|
+source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
|
|
|
|
+messageSends: ["toString", "jsObject"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.JSObjectProxy);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+'_inspectOn_',
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: 'inspectOn:',
|
|
|
|
+category: 'proxy',
|
|
|
|
+fn: function (anInspector){
|
|
|
|
+var self=this;
|
|
|
|
+var variables=nil;
|
|
|
|
+variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
|
|
|
|
+smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
|
|
|
|
+smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
|
|
|
|
+for(var i in self['@jsObject']) {
|
|
|
|
+ variables._at_put_(i, self['@jsObject'][i]);
|
|
|
|
+ };
|
|
|
|
+smalltalk.send(anInspector, "_setVariables_", [variables]);
|
|
|
|
+return self;},
|
|
|
|
+source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self%20jsObject.%0A%09anInspector%20setLabel%3A%20self%20printString.%0A%09%3Cfor%28var%20i%20in%20self%5B%27@jsObject%27%5D%29%20%7B%0A%09%09variables._at_put_%28i%2C%20self%5B%27@jsObject%27%5D%5Bi%5D%29%3B%0A%09%7D%3E.%0A%09anInspector%20setVariables%3A%20variables'),
|
|
|
|
+messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
|
|
|
|
+referencedClasses: [smalltalk.Dictionary]
|
|
|
|
+}),
|
|
|
|
+smalltalk.JSObjectProxy);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+'_on_',
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: 'on:',
|
|
|
|
+category: 'instance creation',
|
|
|
|
+fn: function (aJSObject){
|
|
|
|
+var self=this;
|
|
|
|
+return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
|
|
|
+return self;},
|
|
|
|
+source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
|
|
|
|
+messageSends: ["jsObject:", "yourself", "new"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.JSObjectProxy.klass);
|
|
|
|
+
|
|
|
|
+
|