From 4867b865b716c034c5318e03b3b422a781029d95 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Sun, 15 Jan 2012 22:42:49 +0100 Subject: [PATCH] Fixed issue 114 and recompiled all js files --- js/Benchfib.deploy.js | 28 +- js/Compiler.deploy.js | 598 +++++++++++++++--------------- js/Compiler.js | 6 +- js/Examples.deploy.js | 16 +- js/IDE.deploy.js | 308 +++++++-------- js/IDE.js | 308 +++++++-------- js/Kernel-Announcements.deploy.js | 36 +- js/Kernel-Classes.deploy.js | 28 +- js/Kernel-Classes.js | 28 +- js/Kernel-Exceptions.js | 42 +-- js/Kernel-Objects.deploy.js | 4 +- js/Kernel-Tests.deploy.js | 408 ++++++++++---------- js/Kernel-Transcript.js | 22 +- js/SUnit.deploy.js | 120 +++--- st/Compiler.st | 9 +- st/Kernel-Objects.st | 5 - 16 files changed, 978 insertions(+), 988 deletions(-) diff --git a/js/Benchfib.deploy.js b/js/Benchfib.deploy.js index aff58d413..da0e958a3 100644 --- a/js/Benchfib.deploy.js +++ b/js/Benchfib.deploy.js @@ -2,9 +2,9 @@ smalltalk.addPackage('Benchfib', {}); smalltalk.addClass('Benchfib', smalltalk.Object, [], 'Benchfib'); smalltalk.addMethod( -'_main', +unescape('_main'), smalltalk.method({ -selector: 'main', +selector: unescape('main'), fn: function (){ var self=this; var result=nil; @@ -16,9 +16,9 @@ smalltalk.Benchfib.klass); smalltalk.addMethod( -'_benchFib', +unescape('_benchFib'), smalltalk.method({ -selector: 'benchFib', +selector: unescape('benchFib'), fn: function (){ var self=this; return ((($receiver = self < (2)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (1);})() : (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (1);}), (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})])); @@ -27,9 +27,9 @@ return self;} smalltalk.Number); smalltalk.addMethod( -'_benchmark', +unescape('_benchmark'), smalltalk.method({ -selector: 'benchmark', +selector: unescape('benchmark'), fn: function (){ var self=this; var size=nil; @@ -45,9 +45,9 @@ return self;} smalltalk.Number); smalltalk.addMethod( -'_tinyBenchmarks', +unescape('_tinyBenchmarks'), smalltalk.method({ -selector: 'tinyBenchmarks', +selector: unescape('tinyBenchmarks'), fn: function (){ var self=this; var t1=nil; @@ -65,9 +65,9 @@ return self;} smalltalk.Number); smalltalk.addMethod( -'_jsbenchFib', +unescape('_jsbenchFib'), smalltalk.method({ -selector: 'jsbenchFib', +selector: unescape('jsbenchFib'), fn: function (){ var self=this; if (this < 2) { @@ -79,9 +79,9 @@ return self;} smalltalk.Number); smalltalk.addMethod( -'_jsbenchmark', +unescape('_jsbenchmark'), smalltalk.method({ -selector: 'jsbenchmark', +selector: unescape('jsbenchmark'), fn: function (){ var self=this; @@ -111,9 +111,9 @@ return self;} smalltalk.Number); smalltalk.addMethod( -'_jstinyBenchmarks', +unescape('_jstinyBenchmarks'), smalltalk.method({ -selector: 'jstinyBenchmarks', +selector: unescape('jstinyBenchmarks'), fn: function (){ var self=this; var t1=nil; diff --git a/js/Compiler.deploy.js b/js/Compiler.deploy.js index 270de27c7..021e15f22 100644 --- a/js/Compiler.deploy.js +++ b/js/Compiler.deploy.js @@ -1,9 +1,9 @@ smalltalk.addPackage('Compiler', {}); smalltalk.addClass('ChunkParser', smalltalk.Object, ['stream'], 'Compiler'); smalltalk.addMethod( -'_stream_', +unescape('_stream_'), smalltalk.method({ -selector: 'stream:', +selector: unescape('stream%3A'), fn: function (aStream){ var self=this; (self['@stream']=aStream); @@ -12,9 +12,9 @@ return self;} smalltalk.ChunkParser); smalltalk.addMethod( -'_nextChunk', +unescape('_nextChunk'), smalltalk.method({ -selector: 'nextChunk', +selector: unescape('nextChunk'), fn: function (){ var self=this; try{var char_=nil; @@ -30,9 +30,9 @@ smalltalk.ChunkParser); smalltalk.addMethod( -'_on_', +unescape('_on_'), smalltalk.method({ -selector: 'on:', +selector: unescape('on%3A'), fn: function (aStream){ var self=this; return smalltalk.send(smalltalk.send(self, "_new", []), "_stream_", [aStream]); @@ -43,9 +43,9 @@ smalltalk.ChunkParser.klass); smalltalk.addClass('Importer', smalltalk.Object, [], 'Compiler'); smalltalk.addMethod( -'_import_', +unescape('_import_'), smalltalk.method({ -selector: 'import:', +selector: unescape('import%3A'), fn: function (aStream){ var self=this; var chunk=nil; @@ -63,9 +63,9 @@ smalltalk.Importer); smalltalk.addClass('Exporter', smalltalk.Object, [], 'Compiler'); smalltalk.addMethod( -'_exportDefinitionOf_on_', +unescape('_exportDefinitionOf_on_'), smalltalk.method({ -selector: 'exportDefinitionOf:on:', +selector: unescape('exportDefinitionOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addClass%28")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])]), "__comma", [unescape("%27%2C%20")])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_superclass", [])])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%2C%20%5B")]);})(aStream); @@ -78,9 +78,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportMetaDefinitionOf_on_', +unescape('_exportMetaDefinitionOf_on_'), smalltalk.method({ -selector: 'exportMetaDefinitionOf:on:', +selector: unescape('exportMetaDefinitionOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_class", [])])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape(".iVarNames%20%3D%20%5B")]);})(aStream);smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [each]), "__comma", [unescape("%27")])]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%2C")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(unescape("%5D%3B"), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_class", [])])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape(".iVarNames%20%3D%20%5B")]);})(aStream);smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [each]), "__comma", [unescape("%27")])]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%2C")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(unescape("%5D%3B"), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})])); @@ -89,9 +89,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportMethodsOf_on_', +unescape('_exportMethodsOf_on_'), smalltalk.method({ -selector: 'exportMethodsOf:on:', +selector: unescape('exportMethodsOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(smalltalk.send(each, "_category", []), "_match_", [unescape("%5E%5C*")])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_exportMethod_of_on_", [each, aClass, aStream]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_exportMethod_of_on_", [each, aClass, aStream]);})]));})]); @@ -101,9 +101,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_classNameFor_', +unescape('_classNameFor_'), smalltalk.method({ -selector: 'classNameFor:', +selector: unescape('classNameFor%3A'), fn: function (aClass){ var self=this; return ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [".klass"]);})() : (function(){return ((($receiver = smalltalk.send(aClass, "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "nil";})() : (function(){return smalltalk.send(aClass, "_name", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [".klass"]);}), (function(){return ((($receiver = smalltalk.send(aClass, "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "nil";})() : (function(){return smalltalk.send(aClass, "_name", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]));})])); @@ -112,9 +112,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportMethod_of_on_', +unescape('_exportMethod_of_on_'), smalltalk.method({ -selector: 'exportMethod:of:on:', +selector: unescape('exportMethod%3Aof%3Aon%3A'), fn: function (aMethod, aClass, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("category%3A%20%27"), "__comma", [smalltalk.send(aMethod, "_category", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])]), "__comma", [unescape("%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("args: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_arguments", []), "_asJavascript", [])]), "__comma", [unescape("%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("source%3A%20unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_source", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("messageSends: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_messageSends", []), "_asJavascript", [])]), "__comma", [unescape("%2C")])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("referencedClasses: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_referencedClasses", []), "_asJavascript", [])])]);})(aStream); @@ -124,9 +124,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportPackage_', +unescape('_exportPackage_'), smalltalk.method({ -selector: 'exportPackage:', +selector: unescape('exportPackage%3A'), fn: function (packageName){ var self=this; var package=nil; @@ -136,9 +136,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportAll', +unescape('_exportAll'), smalltalk.method({ -selector: 'exportAll', +selector: unescape('exportAll'), fn: function (){ var self=this; return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packages", []), "_do_", [(function(pkg){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(self, "_exportPackage_", [smalltalk.send(pkg, "_name", [])])]);})]);})]); @@ -147,9 +147,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportClass_', +unescape('_exportClass_'), smalltalk.method({ -selector: 'exportClass:', +selector: unescape('exportClass%3A'), fn: function (aClass){ var self=this; return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){smalltalk.send(self, "_exportDefinitionOf_on_", [aClass, stream]);smalltalk.send(self, "_exportMethodsOf_on_", [aClass, stream]);smalltalk.send(self, "_exportMetaDefinitionOf_on_", [aClass, stream]);return smalltalk.send(self, "_exportMethodsOf_on_", [smalltalk.send(aClass, "_class", []), stream]);})]); @@ -158,9 +158,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportPackageExtensionsOf_on_', +unescape('_exportPackageExtensionsOf_on_'), smalltalk.method({ -selector: 'exportPackageExtensionsOf:on:', +selector: unescape('exportPackageExtensionsOf%3Aon%3A'), fn: function (package, aStream){ var self=this; var name=nil; @@ -171,9 +171,9 @@ return self;} smalltalk.Exporter); smalltalk.addMethod( -'_exportPackageDefinitionOf_on_', +unescape('_exportPackageDefinitionOf_on_'), smalltalk.method({ -selector: 'exportPackageDefinitionOf:on:', +selector: unescape('exportPackageDefinitionOf%3Aon%3A'), fn: function (package, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addPackage%28")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(package, "_name", [])]), "__comma", [unescape("%27%2C%20")]), "__comma", [smalltalk.send(package, "_propertiesAsJSON", [])]), "__comma", [unescape("%29%3B")])]);})(aStream); @@ -186,9 +186,9 @@ smalltalk.Exporter); smalltalk.addClass('ChunkExporter', smalltalk.Exporter, [], 'Compiler'); smalltalk.addMethod( -'_exportDefinitionOf_on_', +unescape('_exportDefinitionOf_on_'), smalltalk.method({ -selector: 'exportDefinitionOf:on:', +selector: unescape('exportDefinitionOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_superclass", [])])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(unescape("%20subclass%3A%20%23"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [unescape("%09instanceVariableNames%3A%20%27")]);})(aStream); @@ -201,9 +201,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_exportMethod_of_on_', +unescape('_exportMethod_of_on_'), smalltalk.method({ -selector: 'exportMethod:of:on:', +selector: unescape('exportMethod%3Aof%3Aon%3A'), fn: function (aMethod, aClass, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_chunkEscape_", [smalltalk.send(aMethod, "_source", [])])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [unescape("%21")]);})(aStream); @@ -212,9 +212,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_exportMethodsOf_on_', +unescape('_exportMethodsOf_on_'), smalltalk.method({ -selector: 'exportMethodsOf:on:', +selector: unescape('exportMethodsOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; smalltalk.send(aClass, "_protocolsDo_", [(function(category, methods){return ((($receiver = smalltalk.send(category, "_match_", [unescape("%5E%5C*")])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_exportMethods_category_of_on_", [methods, category, aClass, aStream]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_exportMethods_category_of_on_", [methods, category, aClass, aStream]);})]));})]); @@ -223,9 +223,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_exportMetaDefinitionOf_on_', +unescape('_exportMetaDefinitionOf_on_'), smalltalk.method({ -selector: 'exportMetaDefinitionOf:on:', +selector: unescape('exportMetaDefinitionOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_class", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%20instanceVariableNames%3A%20%27")]);})(aStream);smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%27%21")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_class", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%20instanceVariableNames%3A%20%27")]);})(aStream);smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%27%21")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);})])); @@ -234,9 +234,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_classNameFor_', +unescape('_classNameFor_'), smalltalk.method({ -selector: 'classNameFor:', +selector: unescape('classNameFor%3A'), fn: function (aClass){ var self=this; return ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [" class"]);})() : (function(){return ((($receiver = smalltalk.send(aClass, "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "nil";})() : (function(){return smalltalk.send(aClass, "_name", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [" class"]);}), (function(){return ((($receiver = smalltalk.send(aClass, "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "nil";})() : (function(){return smalltalk.send(aClass, "_name", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]));})])); @@ -245,9 +245,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_chunkEscape_', +unescape('_chunkEscape_'), smalltalk.method({ -selector: 'chunkEscape:', +selector: unescape('chunkEscape%3A'), fn: function (aString){ var self=this; return smalltalk.send(smalltalk.send(aString, "_replace_with_", [unescape("%21"), unescape("%21%21")]), "_trimBoth", []); @@ -256,9 +256,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_exportMethods_category_of_on_', +unescape('_exportMethods_category_of_on_'), smalltalk.method({ -selector: 'exportMethods:category:of:on:', +selector: unescape('exportMethods%3Acategory%3Aof%3Aon%3A'), fn: function (methods, category, aClass, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(unescape("%21"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%20methodsFor%3A%20%27"), "__comma", [category]), "__comma", [unescape("%27%21")])]);})(aStream); @@ -269,9 +269,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_exportPackageExtensionsOf_on_', +unescape('_exportPackageExtensionsOf_on_'), smalltalk.method({ -selector: 'exportPackageExtensionsOf:on:', +selector: unescape('exportPackageExtensionsOf%3Aon%3A'), fn: function (package, aStream){ var self=this; var name=nil; @@ -282,9 +282,9 @@ return self;} smalltalk.ChunkExporter); smalltalk.addMethod( -'_exportPackageDefinitionOf_on_', +unescape('_exportPackageDefinitionOf_on_'), smalltalk.method({ -selector: 'exportPackageDefinitionOf:on:', +selector: unescape('exportPackageDefinitionOf%3Aon%3A'), fn: function (package, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("Smalltalk%20current%20createPackage%3A%20%27"), "__comma", [smalltalk.send(package, "_name", [])]), "__comma", [unescape("%27%20properties%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(package, "_properties", []), "_storeString", [])]), "__comma", [unescape("%21")])]);return smalltalk.send($rec, "_lf", []);})(aStream); @@ -296,9 +296,9 @@ smalltalk.ChunkExporter); smalltalk.addClass('StrippedExporter', smalltalk.Exporter, [], 'Compiler'); smalltalk.addMethod( -'_exportDefinitionOf_on_', +unescape('_exportDefinitionOf_on_'), smalltalk.method({ -selector: 'exportDefinitionOf:on:', +selector: unescape('exportDefinitionOf%3Aon%3A'), fn: function (aClass, aStream){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addClass%28")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])]), "__comma", [unescape("%27%2C%20")])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(aClass, "_superclass", [])])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%2C%20%5B")]);})(aStream); @@ -310,12 +310,12 @@ return self;} smalltalk.StrippedExporter); smalltalk.addMethod( -'_exportMethod_of_on_', +unescape('_exportMethod_of_on_'), smalltalk.method({ -selector: 'exportMethod:of:on:', +selector: unescape('exportMethod%3Aof%3Aon%3A'), fn: function (aMethod, aClass, aStream){ var self=this; -(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20%27"), "__comma", [smalltalk.send(aMethod, "_selector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream); +(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream); return self;} }), smalltalk.StrippedExporter); @@ -324,9 +324,9 @@ smalltalk.StrippedExporter); smalltalk.addClass('Node', smalltalk.Object, ['nodes'], 'Compiler'); smalltalk.addMethod( -'_nodes', +unescape('_nodes'), smalltalk.method({ -selector: 'nodes', +selector: unescape('nodes'), fn: function (){ var self=this; return (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return (self['@nodes']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver; @@ -335,9 +335,9 @@ return self;} smalltalk.Node); smalltalk.addMethod( -'_nodes_', +unescape('_nodes_'), smalltalk.method({ -selector: 'nodes:', +selector: unescape('nodes%3A'), fn: function (aCollection){ var self=this; (self['@nodes']=aCollection); @@ -346,9 +346,9 @@ return self;} smalltalk.Node); smalltalk.addMethod( -'_addNode_', +unescape('_addNode_'), smalltalk.method({ -selector: 'addNode:', +selector: unescape('addNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(smalltalk.send(self, "_nodes", []), "_add_", [aNode]); @@ -357,9 +357,9 @@ return self;} smalltalk.Node); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitNode_", [self]); @@ -368,9 +368,9 @@ return self;} smalltalk.Node); smalltalk.addMethod( -'_isValueNode', +unescape('_isValueNode'), smalltalk.method({ -selector: 'isValueNode', +selector: unescape('isValueNode'), fn: function (){ var self=this; return false; @@ -379,9 +379,9 @@ return self;} smalltalk.Node); smalltalk.addMethod( -'_isBlockNode', +unescape('_isBlockNode'), smalltalk.method({ -selector: 'isBlockNode', +selector: unescape('isBlockNode'), fn: function (){ var self=this; return false; @@ -390,9 +390,9 @@ return self;} smalltalk.Node); smalltalk.addMethod( -'_isBlockSequenceNode', +unescape('_isBlockSequenceNode'), smalltalk.method({ -selector: 'isBlockSequenceNode', +selector: unescape('isBlockSequenceNode'), fn: function (){ var self=this; return false; @@ -404,9 +404,9 @@ smalltalk.Node); smalltalk.addClass('MethodNode', smalltalk.Node, ['selector', 'arguments', 'source'], 'Compiler'); smalltalk.addMethod( -'_selector', +unescape('_selector'), smalltalk.method({ -selector: 'selector', +selector: unescape('selector'), fn: function (){ var self=this; return self['@selector']; @@ -415,9 +415,9 @@ return self;} smalltalk.MethodNode); smalltalk.addMethod( -'_selector_', +unescape('_selector_'), smalltalk.method({ -selector: 'selector:', +selector: unescape('selector%3A'), fn: function (aString){ var self=this; (self['@selector']=aString); @@ -426,9 +426,9 @@ return self;} smalltalk.MethodNode); smalltalk.addMethod( -'_arguments', +unescape('_arguments'), smalltalk.method({ -selector: 'arguments', +selector: unescape('arguments'), fn: function (){ var self=this; return (($receiver = self['@arguments']) == nil || $receiver == undefined) ? (function(){return [];})() : $receiver; @@ -437,9 +437,9 @@ return self;} smalltalk.MethodNode); smalltalk.addMethod( -'_arguments_', +unescape('_arguments_'), smalltalk.method({ -selector: 'arguments:', +selector: unescape('arguments%3A'), fn: function (aCollection){ var self=this; (self['@arguments']=aCollection); @@ -448,9 +448,9 @@ return self;} smalltalk.MethodNode); smalltalk.addMethod( -'_source', +unescape('_source'), smalltalk.method({ -selector: 'source', +selector: unescape('source'), fn: function (){ var self=this; return self['@source']; @@ -459,9 +459,9 @@ return self;} smalltalk.MethodNode); smalltalk.addMethod( -'_source_', +unescape('_source_'), smalltalk.method({ -selector: 'source:', +selector: unescape('source%3A'), fn: function (aString){ var self=this; (self['@source']=aString); @@ -470,9 +470,9 @@ return self;} smalltalk.MethodNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitMethodNode_", [self]); @@ -484,9 +484,9 @@ smalltalk.MethodNode); smalltalk.addClass('SendNode', smalltalk.Node, ['selector', 'arguments', 'receiver'], 'Compiler'); smalltalk.addMethod( -'_selector', +unescape('_selector'), smalltalk.method({ -selector: 'selector', +selector: unescape('selector'), fn: function (){ var self=this; return self['@selector']; @@ -495,9 +495,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_selector_', +unescape('_selector_'), smalltalk.method({ -selector: 'selector:', +selector: unescape('selector%3A'), fn: function (aString){ var self=this; (self['@selector']=aString); @@ -506,9 +506,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_arguments', +unescape('_arguments'), smalltalk.method({ -selector: 'arguments', +selector: unescape('arguments'), fn: function (){ var self=this; return (($receiver = self['@arguments']) == nil || $receiver == undefined) ? (function(){return (self['@arguments']=[]);})() : $receiver; @@ -517,9 +517,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_arguments_', +unescape('_arguments_'), smalltalk.method({ -selector: 'arguments:', +selector: unescape('arguments%3A'), fn: function (aCollection){ var self=this; (self['@arguments']=aCollection); @@ -528,9 +528,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_receiver', +unescape('_receiver'), smalltalk.method({ -selector: 'receiver', +selector: unescape('receiver'), fn: function (){ var self=this; return self['@receiver']; @@ -539,9 +539,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_receiver_', +unescape('_receiver_'), smalltalk.method({ -selector: 'receiver:', +selector: unescape('receiver%3A'), fn: function (aNode){ var self=this; (self['@receiver']=aNode); @@ -550,9 +550,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_valueForReceiver_', +unescape('_valueForReceiver_'), smalltalk.method({ -selector: 'valueForReceiver:', +selector: unescape('valueForReceiver%3A'), fn: function (anObject){ var self=this; return (function($rec){smalltalk.send($rec, "_receiver_", [(($receiver = smalltalk.send(self, "_receiver", [])) == nil || $receiver == undefined) ? (function(){return anObject;})() : (function(){return smalltalk.send(smalltalk.send(self, "_receiver", []), "_valueForReceiver_", [anObject]);})()]);smalltalk.send($rec, "_selector_", [smalltalk.send(self, "_selector", [])]);smalltalk.send($rec, "_arguments_", [smalltalk.send(self, "_arguments", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.SendNode || SendNode), "_new", [])); @@ -561,9 +561,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_cascadeNodeWithMessages_', +unescape('_cascadeNodeWithMessages_'), smalltalk.method({ -selector: 'cascadeNodeWithMessages:', +selector: unescape('cascadeNodeWithMessages%3A'), fn: function (aCollection){ var self=this; var first=nil; @@ -574,9 +574,9 @@ return self;} smalltalk.SendNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitSendNode_", [self]); @@ -588,9 +588,9 @@ smalltalk.SendNode); smalltalk.addClass('CascadeNode', smalltalk.Node, ['receiver'], 'Compiler'); smalltalk.addMethod( -'_receiver', +unescape('_receiver'), smalltalk.method({ -selector: 'receiver', +selector: unescape('receiver'), fn: function (){ var self=this; return self['@receiver']; @@ -599,9 +599,9 @@ return self;} smalltalk.CascadeNode); smalltalk.addMethod( -'_receiver_', +unescape('_receiver_'), smalltalk.method({ -selector: 'receiver:', +selector: unescape('receiver%3A'), fn: function (aNode){ var self=this; (self['@receiver']=aNode); @@ -610,9 +610,9 @@ return self;} smalltalk.CascadeNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitCascadeNode_", [self]); @@ -624,9 +624,9 @@ smalltalk.CascadeNode); smalltalk.addClass('AssignmentNode', smalltalk.Node, ['left', 'right'], 'Compiler'); smalltalk.addMethod( -'_left', +unescape('_left'), smalltalk.method({ -selector: 'left', +selector: unescape('left'), fn: function (){ var self=this; return self['@left']; @@ -635,9 +635,9 @@ return self;} smalltalk.AssignmentNode); smalltalk.addMethod( -'_left_', +unescape('_left_'), smalltalk.method({ -selector: 'left:', +selector: unescape('left%3A'), fn: function (aNode){ var self=this; (self['@left']=aNode); @@ -647,9 +647,9 @@ return self;} smalltalk.AssignmentNode); smalltalk.addMethod( -'_right', +unescape('_right'), smalltalk.method({ -selector: 'right', +selector: unescape('right'), fn: function (){ var self=this; return self['@right']; @@ -658,9 +658,9 @@ return self;} smalltalk.AssignmentNode); smalltalk.addMethod( -'_right_', +unescape('_right_'), smalltalk.method({ -selector: 'right:', +selector: unescape('right%3A'), fn: function (aNode){ var self=this; (self['@right']=aNode); @@ -669,9 +669,9 @@ return self;} smalltalk.AssignmentNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitAssignmentNode_", [self]); @@ -683,9 +683,9 @@ smalltalk.AssignmentNode); smalltalk.addClass('BlockNode', smalltalk.Node, ['parameters', 'inlined'], 'Compiler'); smalltalk.addMethod( -'_parameters', +unescape('_parameters'), smalltalk.method({ -selector: 'parameters', +selector: unescape('parameters'), fn: function (){ var self=this; return (($receiver = self['@parameters']) == nil || $receiver == undefined) ? (function(){return (self['@parameters']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver; @@ -694,9 +694,9 @@ return self;} smalltalk.BlockNode); smalltalk.addMethod( -'_parameters_', +unescape('_parameters_'), smalltalk.method({ -selector: 'parameters:', +selector: unescape('parameters%3A'), fn: function (aCollection){ var self=this; (self['@parameters']=aCollection); @@ -705,9 +705,9 @@ return self;} smalltalk.BlockNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitBlockNode_", [self]); @@ -716,9 +716,9 @@ return self;} smalltalk.BlockNode); smalltalk.addMethod( -'_isBlockNode', +unescape('_isBlockNode'), smalltalk.method({ -selector: 'isBlockNode', +selector: unescape('isBlockNode'), fn: function (){ var self=this; return true; @@ -727,9 +727,9 @@ return self;} smalltalk.BlockNode); smalltalk.addMethod( -'_inlined', +unescape('_inlined'), smalltalk.method({ -selector: 'inlined', +selector: unescape('inlined'), fn: function (){ var self=this; return (($receiver = self['@inlined']) == nil || $receiver == undefined) ? (function(){return false;})() : $receiver; @@ -738,9 +738,9 @@ return self;} smalltalk.BlockNode); smalltalk.addMethod( -'_inlined_', +unescape('_inlined_'), smalltalk.method({ -selector: 'inlined:', +selector: unescape('inlined%3A'), fn: function (aBoolean){ var self=this; (self['@inlined']=aBoolean); @@ -752,9 +752,9 @@ smalltalk.BlockNode); smalltalk.addClass('SequenceNode', smalltalk.Node, ['temps'], 'Compiler'); smalltalk.addMethod( -'_temps', +unescape('_temps'), smalltalk.method({ -selector: 'temps', +selector: unescape('temps'), fn: function (){ var self=this; return (($receiver = self['@temps']) == nil || $receiver == undefined) ? (function(){return [];})() : $receiver; @@ -763,9 +763,9 @@ return self;} smalltalk.SequenceNode); smalltalk.addMethod( -'_temps_', +unescape('_temps_'), smalltalk.method({ -selector: 'temps:', +selector: unescape('temps%3A'), fn: function (aCollection){ var self=this; (self['@temps']=aCollection); @@ -774,9 +774,9 @@ return self;} smalltalk.SequenceNode); smalltalk.addMethod( -'_asBlockSequenceNode', +unescape('_asBlockSequenceNode'), smalltalk.method({ -selector: 'asBlockSequenceNode', +selector: unescape('asBlockSequenceNode'), fn: function (){ var self=this; return (function($rec){smalltalk.send($rec, "_nodes_", [smalltalk.send(self, "_nodes", [])]);smalltalk.send($rec, "_temps_", [smalltalk.send(self, "_temps", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.BlockSequenceNode || BlockSequenceNode), "_new", [])); @@ -785,9 +785,9 @@ return self;} smalltalk.SequenceNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitSequenceNode_", [self]); @@ -799,9 +799,9 @@ smalltalk.SequenceNode); smalltalk.addClass('BlockSequenceNode', smalltalk.SequenceNode, [], 'Compiler'); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitBlockSequenceNode_", [self]); @@ -810,9 +810,9 @@ return self;} smalltalk.BlockSequenceNode); smalltalk.addMethod( -'_isBlockSequenceNode', +unescape('_isBlockSequenceNode'), smalltalk.method({ -selector: 'isBlockSequenceNode', +selector: unescape('isBlockSequenceNode'), fn: function (){ var self=this; return true; @@ -824,9 +824,9 @@ smalltalk.BlockSequenceNode); smalltalk.addClass('ReturnNode', smalltalk.Node, [], 'Compiler'); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitReturnNode_", [self]); @@ -838,9 +838,9 @@ smalltalk.ReturnNode); smalltalk.addClass('ValueNode', smalltalk.Node, ['value'], 'Compiler'); smalltalk.addMethod( -'_value', +unescape('_value'), smalltalk.method({ -selector: 'value', +selector: unescape('value'), fn: function (){ var self=this; return self['@value']; @@ -849,9 +849,9 @@ return self;} smalltalk.ValueNode); smalltalk.addMethod( -'_value_', +unescape('_value_'), smalltalk.method({ -selector: 'value:', +selector: unescape('value%3A'), fn: function (anObject){ var self=this; (self['@value']=anObject); @@ -860,9 +860,9 @@ return self;} smalltalk.ValueNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitValueNode_", [self]); @@ -871,9 +871,9 @@ return self;} smalltalk.ValueNode); smalltalk.addMethod( -'_isValueNode', +unescape('_isValueNode'), smalltalk.method({ -selector: 'isValueNode', +selector: unescape('isValueNode'), fn: function (){ var self=this; return true; @@ -885,9 +885,9 @@ smalltalk.ValueNode); smalltalk.addClass('VariableNode', smalltalk.ValueNode, ['assigned'], 'Compiler'); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitVariableNode_", [self]); @@ -896,9 +896,9 @@ return self;} smalltalk.VariableNode); smalltalk.addMethod( -'_assigned', +unescape('_assigned'), smalltalk.method({ -selector: 'assigned', +selector: unescape('assigned'), fn: function (){ var self=this; return (($receiver = self['@assigned']) == nil || $receiver == undefined) ? (function(){return false;})() : $receiver; @@ -907,9 +907,9 @@ return self;} smalltalk.VariableNode); smalltalk.addMethod( -'_assigned_', +unescape('_assigned_'), smalltalk.method({ -selector: 'assigned:', +selector: unescape('assigned%3A'), fn: function (aBoolean){ var self=this; (self['@assigned']=aBoolean); @@ -921,9 +921,9 @@ smalltalk.VariableNode); smalltalk.addClass('ClassReferenceNode', smalltalk.VariableNode, [], 'Compiler'); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitClassReferenceNode_", [self]); @@ -935,9 +935,9 @@ smalltalk.ClassReferenceNode); smalltalk.addClass('JSStatementNode', smalltalk.Node, ['source'], 'Compiler'); smalltalk.addMethod( -'_source', +unescape('_source'), smalltalk.method({ -selector: 'source', +selector: unescape('source'), fn: function (){ var self=this; return (($receiver = self['@source']) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver; @@ -946,9 +946,9 @@ return self;} smalltalk.JSStatementNode); smalltalk.addMethod( -'_source_', +unescape('_source_'), smalltalk.method({ -selector: 'source:', +selector: unescape('source%3A'), fn: function (aString){ var self=this; (self['@source']=aString); @@ -957,9 +957,9 @@ return self;} smalltalk.JSStatementNode); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitJSStatementNode_", [self]); @@ -971,9 +971,9 @@ smalltalk.JSStatementNode); smalltalk.addClass('NodeVisitor', smalltalk.Object, [], 'Compiler'); smalltalk.addMethod( -'_visit_', +unescape('_visit_'), smalltalk.method({ -selector: 'visit:', +selector: unescape('visit%3A'), fn: function (aNode){ var self=this; smalltalk.send(aNode, "_accept_", [self]); @@ -982,9 +982,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitNode_', +unescape('_visitNode_'), smalltalk.method({ -selector: 'visitNode:', +selector: unescape('visitNode%3A'), fn: function (aNode){ var self=this; @@ -993,9 +993,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitMethodNode_', +unescape('_visitMethodNode_'), smalltalk.method({ -selector: 'visitMethodNode:', +selector: unescape('visitMethodNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1004,9 +1004,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitSequenceNode_', +unescape('_visitSequenceNode_'), smalltalk.method({ -selector: 'visitSequenceNode:', +selector: unescape('visitSequenceNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1015,9 +1015,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitBlockSequenceNode_', +unescape('_visitBlockSequenceNode_'), smalltalk.method({ -selector: 'visitBlockSequenceNode:', +selector: unescape('visitBlockSequenceNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitSequenceNode_", [aNode]); @@ -1026,9 +1026,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitBlockNode_', +unescape('_visitBlockNode_'), smalltalk.method({ -selector: 'visitBlockNode:', +selector: unescape('visitBlockNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1037,9 +1037,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitReturnNode_', +unescape('_visitReturnNode_'), smalltalk.method({ -selector: 'visitReturnNode:', +selector: unescape('visitReturnNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1048,9 +1048,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitSendNode_', +unescape('_visitSendNode_'), smalltalk.method({ -selector: 'visitSendNode:', +selector: unescape('visitSendNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1059,9 +1059,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitCascadeNode_', +unescape('_visitCascadeNode_'), smalltalk.method({ -selector: 'visitCascadeNode:', +selector: unescape('visitCascadeNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1070,9 +1070,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitValueNode_', +unescape('_visitValueNode_'), smalltalk.method({ -selector: 'visitValueNode:', +selector: unescape('visitValueNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1081,9 +1081,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitVariableNode_', +unescape('_visitVariableNode_'), smalltalk.method({ -selector: 'visitVariableNode:', +selector: unescape('visitVariableNode%3A'), fn: function (aNode){ var self=this; @@ -1092,9 +1092,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitAssignmentNode_', +unescape('_visitAssignmentNode_'), smalltalk.method({ -selector: 'visitAssignmentNode:', +selector: unescape('visitAssignmentNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1103,9 +1103,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitClassReferenceNode_', +unescape('_visitClassReferenceNode_'), smalltalk.method({ -selector: 'visitClassReferenceNode:', +selector: unescape('visitClassReferenceNode%3A'), fn: function (aNode){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", ["smalltalk."]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(aNode, "_value", [])]);})(self); @@ -1114,9 +1114,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitJSStatementNode_', +unescape('_visitJSStatementNode_'), smalltalk.method({ -selector: 'visitJSStatementNode:', +selector: unescape('visitJSStatementNode%3A'), fn: function (aNode){ var self=this; (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("function%28%29%7B")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(aNode, "_source", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%28%29")]);})(self); @@ -1125,9 +1125,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitDynamicArrayNode_', +unescape('_visitDynamicArrayNode_'), smalltalk.method({ -selector: 'visitDynamicArrayNode:', +selector: unescape('visitDynamicArrayNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1136,9 +1136,9 @@ return self;} smalltalk.NodeVisitor); smalltalk.addMethod( -'_visitDynamicDictionaryNode_', +unescape('_visitDynamicDictionaryNode_'), smalltalk.method({ -selector: 'visitDynamicDictionaryNode:', +selector: unescape('visitDynamicDictionaryNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self, "_visitNode_", [aNode]); @@ -1150,9 +1150,9 @@ smalltalk.NodeVisitor); smalltalk.addClass('Compiler', smalltalk.NodeVisitor, ['stream', 'nestedBlocks', 'earlyReturn', 'currentClass', 'currentSelector', 'unknownVariables', 'tempVariables', 'messageSends', 'referencedClasses', 'classReferenced', 'source', 'argVariables'], 'Compiler'); smalltalk.addMethod( -'_initialize', +unescape('_initialize'), smalltalk.method({ -selector: 'initialize', +selector: unescape('initialize'), fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.NodeVisitor); @@ -1167,9 +1167,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_parser', +unescape('_parser'), smalltalk.method({ -selector: 'parser', +selector: unescape('parser'), fn: function (){ var self=this; return smalltalk.send((smalltalk.SmalltalkParser || SmalltalkParser), "_new", []); @@ -1178,9 +1178,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_currentClass', +unescape('_currentClass'), smalltalk.method({ -selector: 'currentClass', +selector: unescape('currentClass'), fn: function (){ var self=this; return self['@currentClass']; @@ -1189,9 +1189,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_currentClass_', +unescape('_currentClass_'), smalltalk.method({ -selector: 'currentClass:', +selector: unescape('currentClass%3A'), fn: function (aClass){ var self=this; (self['@currentClass']=aClass); @@ -1200,9 +1200,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_loadExpression_', +unescape('_loadExpression_'), smalltalk.method({ -selector: 'loadExpression:', +selector: unescape('loadExpression%3A'), fn: function (aString){ var self=this; var result=nil; @@ -1215,9 +1215,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_load_forClass_', +unescape('_load_forClass_'), smalltalk.method({ -selector: 'load:forClass:', +selector: unescape('load%3AforClass%3A'), fn: function (aString, aClass){ var self=this; var compiled=nil; @@ -1229,9 +1229,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_compile_forClass_', +unescape('_compile_forClass_'), smalltalk.method({ -selector: 'compile:forClass:', +selector: unescape('compile%3AforClass%3A'), fn: function (aString, aClass){ var self=this; smalltalk.send(self, "_currentClass_", [aClass]); @@ -1242,9 +1242,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_compileExpression_', +unescape('_compileExpression_'), smalltalk.method({ -selector: 'compileExpression:', +selector: unescape('compileExpression%3A'), fn: function (aString){ var self=this; smalltalk.send(self, "_currentClass_", [(smalltalk.DoIt || DoIt)]); @@ -1255,9 +1255,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_eval_', +unescape('_eval_'), smalltalk.method({ -selector: 'eval:', +selector: unescape('eval%3A'), fn: function (aString){ var self=this; return eval(aString); @@ -1266,9 +1266,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_compile_', +unescape('_compile_'), smalltalk.method({ -selector: 'compile:', +selector: unescape('compile%3A'), fn: function (aString){ var self=this; return smalltalk.send(self, "_compileNode_", [smalltalk.send(self, "_parse_", [aString])]); @@ -1277,9 +1277,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_compileNode_', +unescape('_compileNode_'), smalltalk.method({ -selector: 'compileNode:', +selector: unescape('compileNode%3A'), fn: function (aNode){ var self=this; (self['@stream']=smalltalk.send("", "_writeStream", [])); @@ -1290,9 +1290,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visit_', +unescape('_visit_'), smalltalk.method({ -selector: 'visit:', +selector: unescape('visit%3A'), fn: function (aNode){ var self=this; smalltalk.send(aNode, "_accept_", [self]); @@ -1301,9 +1301,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitMethodNode_', +unescape('_visitMethodNode_'), smalltalk.method({ -selector: 'visitMethodNode:', +selector: unescape('visitMethodNode%3A'), fn: function (aNode){ var self=this; var str=nil; @@ -1339,9 +1339,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitBlockNode_', +unescape('_visitBlockNode_'), smalltalk.method({ -selector: 'visitBlockNode:', +selector: unescape('visitBlockNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28")]); @@ -1354,9 +1354,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitSequenceNode_', +unescape('_visitSequenceNode_'), smalltalk.method({ -selector: 'visitSequenceNode:', +selector: unescape('visitSequenceNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil; @@ -1367,9 +1367,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitBlockSequenceNode_', +unescape('_visitBlockSequenceNode_'), smalltalk.method({ -selector: 'visitBlockSequenceNode:', +selector: unescape('visitBlockSequenceNode%3A'), fn: function (aNode){ var self=this; var index=nil; @@ -1383,9 +1383,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitReturnNode_', +unescape('_visitReturnNode_'), smalltalk.method({ -selector: 'visitReturnNode:', +selector: unescape('visitReturnNode%3A'), fn: function (aNode){ var self=this; ((($receiver = ((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver >(0) : smalltalk.send($receiver, "__gt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (self['@earlyReturn']=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (self['@earlyReturn']=true);})])); @@ -1397,9 +1397,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitSendNode_', +unescape('_visitSendNode_'), smalltalk.method({ -selector: 'visitSendNode:', +selector: unescape('visitSendNode%3A'), fn: function (aNode){ var self=this; var str=nil; @@ -1419,9 +1419,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitCascadeNode_', +unescape('_visitCascadeNode_'), smalltalk.method({ -selector: 'visitCascadeNode:', +selector: unescape('visitCascadeNode%3A'), fn: function (aNode){ var self=this; var index=nil; @@ -1437,9 +1437,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitValueNode_', +unescape('_visitValueNode_'), smalltalk.method({ -selector: 'visitValueNode:', +selector: unescape('visitValueNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(aNode, "_value", []), "_asJavascript", [])]); @@ -1448,9 +1448,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitAssignmentNode_', +unescape('_visitAssignmentNode_'), smalltalk.method({ -selector: 'visitAssignmentNode:', +selector: unescape('visitAssignmentNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28")]); @@ -1463,9 +1463,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitClassReferenceNode_', +unescape('_visitClassReferenceNode_'), smalltalk.method({ -selector: 'visitClassReferenceNode:', +selector: unescape('visitClassReferenceNode%3A'), fn: function (aNode){ var self=this; ((($receiver = smalltalk.send(self['@referencedClasses'], "_includes_", [smalltalk.send(aNode, "_value", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@referencedClasses'], "_add_", [smalltalk.send(aNode, "_value", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@referencedClasses'], "_add_", [smalltalk.send(aNode, "_value", [])]);})])); @@ -1475,9 +1475,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitVariableNode_', +unescape('_visitVariableNode_'), smalltalk.method({ -selector: 'visitVariableNode:', +selector: unescape('visitVariableNode%3A'), fn: function (aNode){ var self=this; var varName=nil; @@ -1487,9 +1487,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitJSStatementNode_', +unescape('_visitJSStatementNode_'), smalltalk.method({ -selector: 'visitJSStatementNode:', +selector: unescape('visitJSStatementNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(aNode, "_source", []), "_replace_with_", [unescape("%3E%3E"), unescape("%3E")])]); @@ -1498,9 +1498,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_parse_', +unescape('_parse_'), smalltalk.method({ -selector: 'parse:', +selector: unescape('parse%3A'), fn: function (aString){ var self=this; return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_parse_", [aString]); @@ -1509,9 +1509,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_parseExpression_', +unescape('_parseExpression_'), smalltalk.method({ -selector: 'parseExpression:', +selector: unescape('parseExpression%3A'), fn: function (aString){ var self=this; return smalltalk.send(self, "_parse_", [smalltalk.send(smalltalk.send(unescape("doIt%20%5E%5B"), "__comma", [aString]), "__comma", [unescape("%5D%20value")])]); @@ -1520,9 +1520,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_unknownVariables', +unescape('_unknownVariables'), smalltalk.method({ -selector: 'unknownVariables', +selector: unescape('unknownVariables'), fn: function (){ var self=this; return smalltalk.send(self['@unknownVariables'], "_copy", []); @@ -1531,9 +1531,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_pseudoVariables', +unescape('_pseudoVariables'), smalltalk.method({ -selector: 'pseudoVariables', +selector: unescape('pseudoVariables'), fn: function (){ var self=this; return ["self", "super", "true", "false", "nil", "thisContext"]; @@ -1542,9 +1542,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_tempVariables', +unescape('_tempVariables'), smalltalk.method({ -selector: 'tempVariables', +selector: unescape('tempVariables'), fn: function (){ var self=this; return smalltalk.send(self['@tempVariables'], "_copy", []); @@ -1553,9 +1553,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_knownVariables', +unescape('_knownVariables'), smalltalk.method({ -selector: 'knownVariables', +selector: unescape('knownVariables'), fn: function (){ var self=this; return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_tempVariables", [])]);smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_argVariables", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_pseudoVariables", [])); @@ -1564,9 +1564,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_recompile_', +unescape('_recompile_'), smalltalk.method({ -selector: 'recompile:', +selector: unescape('recompile%3A'), fn: function (aClass){ var self=this; smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_do_", [(function(each){var method=nil; @@ -1577,9 +1577,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_recompileAll', +unescape('_recompileAll'), smalltalk.method({ -selector: 'recompileAll', +selector: unescape('recompileAll'), fn: function (){ var self=this; smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){(function($rec){smalltalk.send($rec, "_show_", [each]);return smalltalk.send($rec, "_cr", []);})((smalltalk.Transcript || Transcript));return smalltalk.send((function(){return smalltalk.send(self, "_recompile_", [each]);}), "_valueWithTimeout_", [(100)]);})]); @@ -1588,9 +1588,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_classNameFor_', +unescape('_classNameFor_'), smalltalk.method({ -selector: 'classNameFor:', +selector: unescape('classNameFor%3A'), fn: function (aClass){ var self=this; return ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [".klass"]);})() : (function(){return ((($receiver = smalltalk.send(aClass, "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "nil";})() : (function(){return smalltalk.send(aClass, "_name", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_instanceClass", []), "_name", []), "__comma", [".klass"]);}), (function(){return ((($receiver = smalltalk.send(aClass, "_isNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "nil";})() : (function(){return smalltalk.send(aClass, "_name", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "nil";}), (function(){return smalltalk.send(aClass, "_name", []);})]));})])); @@ -1599,9 +1599,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitFailure_', +unescape('_visitFailure_'), smalltalk.method({ -selector: 'visitFailure:', +selector: unescape('visitFailure%3A'), fn: function (aFailure){ var self=this; smalltalk.send(self, "_error_", [smalltalk.send(aFailure, "_asString", [])]); @@ -1610,9 +1610,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_setupClass_', +unescape('_setupClass_'), smalltalk.method({ -selector: 'setupClass:', +selector: unescape('setupClass%3A'), fn: function (aClass){ var self=this; smalltalk.init(aClass); @@ -1621,9 +1621,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_send_to_arguments_superSend_', +unescape('_send_to_arguments_superSend_'), smalltalk.method({ -selector: 'send:to:arguments:superSend:', +selector: unescape('send%3Ato%3Aarguments%3AsuperSend%3A'), fn: function (aSelector, aReceiver, aCollection, aBoolean){ var self=this; return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(str){var tmp=nil; @@ -1633,9 +1633,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_checkClass_for_', +unescape('_checkClass_for_'), smalltalk.method({ -selector: 'checkClass:for:', +selector: unescape('checkClass%3Afor%3A'), fn: function (aClassName, receiver){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28%28%28%24receiver%20%3D%20"), "__comma", [receiver]), "__comma", [unescape("%29.klass%20%3D%3D%3D%20smalltalk.")]), "__comma", [aClassName]), "__comma", [unescape("%29%20%3F%20")])]); @@ -1644,9 +1644,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_inlineLiteral_receiverNode_argumentNodes_', +unescape('_inlineLiteral_receiverNode_argumentNodes_'), smalltalk.method({ -selector: 'inlineLiteral:receiverNode:argumentNodes:', +selector: unescape('inlineLiteral%3AreceiverNode%3AargumentNodes%3A'), fn: function (aSelector, anObject, aCollection){ var self=this; var inlined=nil; @@ -1673,9 +1673,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_isNode_ofClass_', +unescape('_isNode_ofClass_'), smalltalk.method({ -selector: 'isNode:ofClass:', +selector: unescape('isNode%3AofClass%3A'), fn: function (aNode, aClass){ var self=this; return smalltalk.send(smalltalk.send(aNode, "_isValueNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_value", []), "_class", []), "__eq", [aClass]), "_or_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["self"]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_currentClass", []), "__eq", [aClass]);})]);})]);})]); @@ -1684,9 +1684,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_inline_receiver_argumentNodes_', +unescape('_inline_receiver_argumentNodes_'), smalltalk.method({ -selector: 'inline:receiver:argumentNodes:', +selector: unescape('inline%3Areceiver%3AargumentNodes%3A'), fn: function (aSelector, receiver, aCollection){ var self=this; var inlined=nil; @@ -1709,9 +1709,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_performOptimizations', +unescape('_performOptimizations'), smalltalk.method({ -selector: 'performOptimizations', +selector: unescape('performOptimizations'), fn: function (){ var self=this; return smalltalk.send(smalltalk.send(self, "_class", []), "_performOptimizations", []); @@ -1720,9 +1720,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_source', +unescape('_source'), smalltalk.method({ -selector: 'source', +selector: unescape('source'), fn: function (){ var self=this; return (($receiver = self['@source']) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver; @@ -1731,9 +1731,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_source_', +unescape('_source_'), smalltalk.method({ -selector: 'source:', +selector: unescape('source%3A'), fn: function (aString){ var self=this; (self['@source']=aString); @@ -1742,9 +1742,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitDynamicArrayNode_', +unescape('_visitDynamicArrayNode_'), smalltalk.method({ -selector: 'visitDynamicArrayNode:', +selector: unescape('visitDynamicArrayNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%5B")]); @@ -1755,9 +1755,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_visitDynamicDictionaryNode_', +unescape('_visitDynamicDictionaryNode_'), smalltalk.method({ -selector: 'visitDynamicDictionaryNode:', +selector: unescape('visitDynamicDictionaryNode%3A'), fn: function (aNode){ var self=this; smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("smalltalk.HashedCollection._fromPairs_%28%5B")]); @@ -1768,9 +1768,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_argVariables', +unescape('_argVariables'), smalltalk.method({ -selector: 'argVariables', +selector: unescape('argVariables'), fn: function (){ var self=this; return smalltalk.send(self['@argVariables'], "_copy", []); @@ -1779,9 +1779,9 @@ return self;} smalltalk.Compiler); smalltalk.addMethod( -'_safeVariableNameFor_', +unescape('_safeVariableNameFor_'), smalltalk.method({ -selector: 'safeVariableNameFor:', +selector: unescape('safeVariableNameFor%3A'), fn: function (aString){ var self=this; return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_reservedWords", []), "_includes_", [aString])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aString, "__comma", ["_"]);})() : (function(){return aString;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aString, "__comma", ["_"]);}), (function(){return aString;})])); @@ -1792,9 +1792,9 @@ smalltalk.Compiler); smalltalk.Compiler.klass.iVarNames = ['performOptimizations']; smalltalk.addMethod( -'_recompile_', +unescape('_recompile_'), smalltalk.method({ -selector: 'recompile:', +selector: unescape('recompile%3A'), fn: function (aClass){ var self=this; smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_do_", [(function(each){var method=nil; @@ -1805,9 +1805,9 @@ return self;} smalltalk.Compiler.klass); smalltalk.addMethod( -'_recompileAll', +unescape('_recompileAll'), smalltalk.method({ -selector: 'recompileAll', +selector: unescape('recompileAll'), fn: function (){ var self=this; smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_recompile_", [each]);})]); @@ -1816,9 +1816,9 @@ return self;} smalltalk.Compiler.klass); smalltalk.addMethod( -'_performOptimizations', +unescape('_performOptimizations'), smalltalk.method({ -selector: 'performOptimizations', +selector: unescape('performOptimizations'), fn: function (){ var self=this; return (($receiver = self['@performOptimizations']) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver; @@ -1827,9 +1827,9 @@ return self;} smalltalk.Compiler.klass); smalltalk.addMethod( -'_performOptimizations_', +unescape('_performOptimizations_'), smalltalk.method({ -selector: 'performOptimizations:', +selector: unescape('performOptimizations%3A'), fn: function (aBoolean){ var self=this; (self['@performOptimizations']=aBoolean); @@ -1843,9 +1843,9 @@ smalltalk.addClass('DoIt', smalltalk.Object, [], 'Compiler'); smalltalk.addClass('DynamicArrayNode', smalltalk.Node, [], 'Compiler'); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitDynamicArrayNode_", [self]); @@ -1857,9 +1857,9 @@ smalltalk.DynamicArrayNode); smalltalk.addClass('DynamicDictionaryNode', smalltalk.Node, [], 'Compiler'); smalltalk.addMethod( -'_accept_', +unescape('_accept_'), smalltalk.method({ -selector: 'accept:', +selector: unescape('accept%3A'), fn: function (aVisitor){ var self=this; smalltalk.send(aVisitor, "_visitDynamicDictionaryNode_", [self]); diff --git a/js/Compiler.js b/js/Compiler.js index ecadbef52..f977cf4a3 100644 --- a/js/Compiler.js +++ b/js/Compiler.js @@ -436,11 +436,11 @@ selector: unescape('exportMethod%3Aof%3Aon%3A'), category: 'private', fn: function (aMethod, aClass, aStream){ var self=this; -(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20%27"), "__comma", [smalltalk.send(aMethod, "_selector", [])]), "__comma", [unescape("%27%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream); +(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.addMethod%28")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_asSelector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("smalltalk.method%28%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("selector%3A%20unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aMethod, "_selector", []), "_escaped", [])]), "__comma", [unescape("%27%29%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("fn: ", "__comma", [smalltalk.send(smalltalk.send(aMethod, "_fn", []), "_compiledSource", [])])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("%7D%29%2C")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send("smalltalk.", "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream); return self;}, args: ["aMethod", "aClass", "aStream"], -source: unescape('exportMethod%3A%20aMethod%20of%3A%20aClass%20on%3A%20aStream%0A%09aStream%20%0A%09%09nextPutAll%3A%20%27smalltalk.addMethod%28%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27%27%27%27%2C%20aMethod%20selector%20asSelector%2C%20%27%27%27%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.method%28%7B%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27selector%3A%20%27%27%27%2C%20aMethod%20selector%2C%20%27%27%27%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27fn%3A%20%27%2C%20aMethod%20fn%20compiledSource%3Blf%3B%0A%09%09nextPutAll%3A%20%27%7D%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.%27%2C%20%28self%20classNameFor%3A%20aClass%29%3B%0A%09%09nextPutAll%3A%20%27%29%3B%27%3Blf%3Blf'), -messageSends: ["nextPutAll:", "lf", unescape("%2C"), "asSelector", "selector", "compiledSource", "fn", "classNameFor:"], +source: unescape('exportMethod%3A%20aMethod%20of%3A%20aClass%20on%3A%20aStream%0A%09aStream%20%0A%09%09nextPutAll%3A%20%27smalltalk.addMethod%28%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27unescape%28%27%27%27%2C%20aMethod%20selector%20asSelector%20escaped%2C%20%27%27%27%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.method%28%7B%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27selector%3A%20unescape%28%27%27%27%2C%20aMethod%20selector%20escaped%2C%20%27%27%27%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27fn%3A%20%27%2C%20aMethod%20fn%20compiledSource%3Blf%3B%0A%09%09nextPutAll%3A%20%27%7D%29%2C%27%3Blf%3B%0A%09%09nextPutAll%3A%20%27smalltalk.%27%2C%20%28self%20classNameFor%3A%20aClass%29%3B%0A%09%09nextPutAll%3A%20%27%29%3B%27%3Blf%3Blf'), +messageSends: ["nextPutAll:", "lf", unescape("%2C"), "escaped", "asSelector", "selector", "compiledSource", "fn", "classNameFor:"], referencedClasses: [] }), smalltalk.StrippedExporter); diff --git a/js/Examples.deploy.js b/js/Examples.deploy.js index e891400d9..0ff4d9517 100644 --- a/js/Examples.deploy.js +++ b/js/Examples.deploy.js @@ -1,9 +1,9 @@ smalltalk.addPackage('Examples', {}); smalltalk.addClass('Counter', smalltalk.Widget, ['count', 'header'], 'Examples'); smalltalk.addMethod( -'_increase', +unescape('_increase'), smalltalk.method({ -selector: 'increase', +selector: unescape('increase'), fn: function (){ var self=this; (self['@count']=((($receiver = self['@count']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))); @@ -13,9 +13,9 @@ return self;} smalltalk.Counter); smalltalk.addMethod( -'_decrease', +unescape('_decrease'), smalltalk.method({ -selector: 'decrease', +selector: unescape('decrease'), fn: function (){ var self=this; (self['@count']=((($receiver = self['@count']).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))); @@ -25,9 +25,9 @@ return self;} smalltalk.Counter); smalltalk.addMethod( -'_initialize', +unescape('_initialize'), smalltalk.method({ -selector: 'initialize', +selector: unescape('initialize'), fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Widget); @@ -37,9 +37,9 @@ return self;} smalltalk.Counter); smalltalk.addMethod( -'_renderOn_', +unescape('_renderOn_'), smalltalk.method({ -selector: 'renderOn:', +selector: unescape('renderOn%3A'), fn: function (html){ var self=this; (self['@header']=(function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(self['@count'], "_asString", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_h1", []))); diff --git a/js/IDE.deploy.js b/js/IDE.deploy.js index 8c15b7351..a9113a356 100644 --- a/js/IDE.deploy.js +++ b/js/IDE.deploy.js @@ -6,7 +6,7 @@ smalltalk.method({ selector: 'tabs', fn: function (){ var self=this; -return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver; +return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return (self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver; return self;} }), smalltalk.TabManager); @@ -19,9 +19,9 @@ fn: function (aWidget){ var self=this; var label=nil; var maxSize=nil; -maxSize=(15); -label=smalltalk.send(smalltalk.send(aWidget, "_label", []), "_copyFrom_to_", [(0), smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", []), "_min_", [maxSize])]); -((($receiver = ((($receiver = smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", [])).klass === smalltalk.Number) ? $receiver >maxSize : smalltalk.send($receiver, "__gt", [maxSize]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label=smalltalk.send(label, "__comma", ["..."]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return label=smalltalk.send(label, "__comma", ["..."]);})])); +(maxSize=(15)); +(label=smalltalk.send(smalltalk.send(aWidget, "_label", []), "_copyFrom_to_", [(0), smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", []), "_min_", [maxSize])])); +((($receiver = ((($receiver = smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", [])).klass === smalltalk.Number) ? $receiver >maxSize : smalltalk.send($receiver, "__gt", [maxSize]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (label=smalltalk.send(label, "__comma", ["..."]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (label=smalltalk.send(label, "__comma", ["..."]));})])); return label; return self;} }), @@ -103,7 +103,7 @@ smalltalk.method({ selector: 'open', fn: function (){ var self=this; -((($receiver = self['@opened']).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})])); +((($receiver = self['@opened']).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return (self['@opened']=true);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return (self['@opened']=true);})])); return self;} }), smalltalk.TabManager); @@ -114,7 +114,7 @@ smalltalk.method({ selector: 'close', fn: function (){ var self=this; -((($receiver = self['@opened']).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})])); +((($receiver = self['@opened']).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return (self['@opened']=false);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return (self['@opened']=false);})])); return self;} }), smalltalk.TabManager); @@ -137,7 +137,7 @@ selector: 'selectTab:', fn: function (aWidget){ var self=this; smalltalk.send(self, "_open", []); -self['@selectedTab']=aWidget; +(self['@selectedTab']=aWidget); smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]); smalltalk.send(aWidget, "_show", []); smalltalk.send(self, "_update", []); @@ -166,7 +166,7 @@ selector: 'search:', fn: function (aString){ var self=this; var searchedClass=nil; -searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]); +(searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString])); ((($receiver = smalltalk.send(searchedClass, "_isClass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [searchedClass]);})() : (function(){return smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);})])); return self;} }), @@ -204,7 +204,7 @@ selector: 'initialize', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Widget); -self['@opened']=true; +(self['@opened']=true); smalltalk.send((function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);}), "_appendToJQuery_", [smalltalk.send("body", "_asJQuery", [])]); smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]); smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(unescape("%23jtalk"), "_asJQuery", [])]); @@ -223,7 +223,7 @@ fn: function (html){ var self=this; smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["logo"]); smalltalk.send(self, "_renderToolbarOn_", [html]); -self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", [])); +(self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []))); smalltalk.send(self, "_renderTabs", []); return self;} }), @@ -236,7 +236,7 @@ selector: 'renderTabFor:on:', fn: function (aWidget, html){ var self=this; var li=nil; -li=smalltalk.send(html, "_li", []); +(li=smalltalk.send(html, "_li", [])); ((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [aWidget])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})])); (function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", [(function(){((($receiver = smalltalk.send(aWidget, "_canBeClosed", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]));return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_labelFor_", [aWidget])]);})]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(li); return self;} @@ -260,7 +260,7 @@ smalltalk.method({ selector: 'renderToolbarOn:', fn: function (html){ var self=this; -(function($rec){smalltalk.send($rec, "_id_", ["jt_toolbar"]);return smalltalk.send($rec, "_with_", [(function(){self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return ((($receiver = smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]));})]);return (function($rec){smalltalk.send($rec, "_id_", ["jt_close"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_div", []));})]);})(smalltalk.send(html, "_div", [])); +(function($rec){smalltalk.send($rec, "_id_", ["jt_toolbar"]);return smalltalk.send($rec, "_with_", [(function(){(self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", [])));smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return ((($receiver = smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]));})]);return (function($rec){smalltalk.send($rec, "_id_", ["jt_close"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_div", []));})]);})(smalltalk.send(html, "_div", [])); return self;} }), smalltalk.TabManager); @@ -284,7 +284,7 @@ smalltalk.method({ selector: 'current', fn: function (){ var self=this; -return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})() : $receiver; +return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass));})() : $receiver; return self;} }), smalltalk.TabManager.klass); @@ -375,7 +375,7 @@ smalltalk.method({ selector: 'renderOn:', fn: function (html){ var self=this; -self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", [])); +(self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []))); smalltalk.send(self, "_renderTab", []); return self;} }), @@ -522,7 +522,7 @@ smalltalk.method({ selector: 'renderBoxOn:', fn: function (html){ var self=this; -self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []); +(self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", [])); smalltalk.send(self['@sourceArea'], "_renderOn_", [html]); return self;} }), @@ -564,7 +564,7 @@ selector: 'packages', fn: function (){ var self=this; var packages=nil; -packages=smalltalk.send((smalltalk.Array || Array), "_new", []); +(packages=smalltalk.send((smalltalk.Array || Array), "_new", [])); smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(packages, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(packages, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(packages, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]); return smalltalk.send(packages, "_sort", []); return self;} @@ -589,7 +589,7 @@ selector: 'protocols', fn: function (){ var self=this; try{var klass=nil; -(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]));klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]));((($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]));return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil; +(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("comment")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]));(klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("instance")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})])));((($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]));return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil; (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_new", [])}})})(); return self; } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}} @@ -603,8 +603,8 @@ selector: 'methods', fn: function (){ var self=this; try{var klass=nil; -((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})])); -(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]));})() : nil; +((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("comment")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})])); +(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return (klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("instance")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})])));})() : nil; (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return smalltalk.send((($receiver = self['@selectedProtocol']) == nil || $receiver == undefined) ? (function(){return (($receiver = klass) == nil || $receiver == undefined) ? (function(){return [];})() : (function(){return smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []);})();})() : (function(){return smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedProtocol']]);})]);})(), "_sort_", [(function(a, b){return ((($receiver = smalltalk.send(a, "_selector", [])).klass === smalltalk.Number) ? $receiver (30) : smalltalk.send($receiver, "__gt", [(30)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);})() : (function(){return label=smalltalk.send(self, "_printString", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);}), (function(){return label=smalltalk.send(self, "_printString", []);})])); +smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.CharacterArray); +((($receiver = ((($receiver = smalltalk.send(smalltalk.send(self, "_printString", []), "_size", [])).klass === smalltalk.Number) ? $receiver >(30) : smalltalk.send($receiver, "__gt", [(30)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]));})() : (function(){return (label=smalltalk.send(self, "_printString", []));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]));}), (function(){return (label=smalltalk.send(self, "_printString", []));})])); smalltalk.send(anInspector, "_setLabel_", [label]); return self;} }), @@ -3438,7 +3438,7 @@ selector: 'inspectOn:', fn: function (anInspector){ var self=this; var variables=nil; -variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); +(variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", [])); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]); diff --git a/js/IDE.js b/js/IDE.js index 8e7101e3f..5a4bf0f36 100644 --- a/js/IDE.js +++ b/js/IDE.js @@ -7,7 +7,7 @@ selector: unescape('tabs'), category: 'accessing', fn: function (){ var self=this; -return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver; +return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return (self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver; return self;}, args: [], source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D'), @@ -25,9 +25,9 @@ fn: function (aWidget){ var self=this; var label=nil; var maxSize=nil; -maxSize=(15); -label=smalltalk.send(smalltalk.send(aWidget, "_label", []), "_copyFrom_to_", [(0), smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", []), "_min_", [maxSize])]); -((($receiver = ((($receiver = smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", [])).klass === smalltalk.Number) ? $receiver >maxSize : smalltalk.send($receiver, "__gt", [maxSize]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label=smalltalk.send(label, "__comma", ["..."]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return label=smalltalk.send(label, "__comma", ["..."]);})])); +(maxSize=(15)); +(label=smalltalk.send(smalltalk.send(aWidget, "_label", []), "_copyFrom_to_", [(0), smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", []), "_min_", [maxSize])])); +((($receiver = ((($receiver = smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", [])).klass === smalltalk.Number) ? $receiver >maxSize : smalltalk.send($receiver, "__gt", [maxSize]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (label=smalltalk.send(label, "__comma", ["..."]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (label=smalltalk.send(label, "__comma", ["..."]));})])); return label; return self;}, args: ["aWidget"], @@ -144,7 +144,7 @@ selector: unescape('open'), category: 'actions', fn: function (){ var self=this; -((($receiver = self['@opened']).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})])); +((($receiver = self['@opened']).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return (self['@opened']=true);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return (self['@opened']=true);})])); return self;}, args: [], source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09ul%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20show.%0A%09opened%20%3A%3D%20true%5D'), @@ -160,7 +160,7 @@ selector: unescape('close'), category: 'actions', fn: function (){ var self=this; -((($receiver = self['@opened']).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})])); +((($receiver = self['@opened']).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return (self['@opened']=false);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return (self['@opened']=false);})])); return self;}, args: [], source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09ul%20asJQuery%20hide.%0A%09selectedTab%20hide.%0A%09self%20removeBodyMargin.%0A%09%27body%27%20asJQuery%20removeClass%3A%20%27jtalkBody%27.%0A%09opened%20%3A%3D%20false%5D'), @@ -193,7 +193,7 @@ category: 'actions', fn: function (aWidget){ var self=this; smalltalk.send(self, "_open", []); -self['@selectedTab']=aWidget; +(self['@selectedTab']=aWidget); smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]); smalltalk.send(aWidget, "_show", []); smalltalk.send(self, "_update", []); @@ -232,7 +232,7 @@ category: 'actions', fn: function (aString){ var self=this; var searchedClass=nil; -searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]); +(searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString])); ((($receiver = smalltalk.send(searchedClass, "_isClass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [searchedClass]);})() : (function(){return smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send((smalltalk.Browser || Browser), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);})])); return self;}, args: ["aString"], @@ -285,7 +285,7 @@ category: 'initialization', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Widget); -self['@opened']=true; +(self['@opened']=true); smalltalk.send((function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);}), "_appendToJQuery_", [smalltalk.send("body", "_asJQuery", [])]); smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]); smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(unescape("%23jtalk"), "_asJQuery", [])]); @@ -309,7 +309,7 @@ fn: function (html){ var self=this; smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["logo"]); smalltalk.send(self, "_renderToolbarOn_", [html]); -self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", [])); +(self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []))); smalltalk.send(self, "_renderTabs", []); return self;}, args: ["html"], @@ -327,7 +327,7 @@ category: 'rendering', fn: function (aWidget, html){ var self=this; var li=nil; -li=smalltalk.send(html, "_li", []); +(li=smalltalk.send(html, "_li", [])); ((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [aWidget])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})])); (function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", [(function(){((($receiver = smalltalk.send(aWidget, "_canBeClosed", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]));return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_labelFor_", [aWidget])]);})]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(li); return self;}, @@ -361,7 +361,7 @@ selector: unescape('renderToolbarOn%3A'), category: 'rendering', fn: function (html){ var self=this; -(function($rec){smalltalk.send($rec, "_id_", ["jt_toolbar"]);return smalltalk.send($rec, "_with_", [(function(){self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return ((($receiver = smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]));})]);return (function($rec){smalltalk.send($rec, "_id_", ["jt_close"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_div", []));})]);})(smalltalk.send(html, "_div", [])); +(function($rec){smalltalk.send($rec, "_id_", ["jt_toolbar"]);return smalltalk.send($rec, "_with_", [(function(){(self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", [])));smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return ((($receiver = smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]));})]);return (function($rec){smalltalk.send($rec, "_id_", ["jt_close"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_div", []));})]);})(smalltalk.send(html, "_div", [])); return self;}, args: ["html"], source: unescape('renderToolbarOn%3A%20html%0A%09html%20div%20%0A%09%09id%3A%20%27jt_toolbar%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09input%20%3A%3D%20html%20input%20%0A%09%09%09%09class%3A%20%27implementors%27%3B%0A%09%09%09%09yourself.%0A%09%09%09input%20onKeyPress%3A%20%5B%3Aevent%20%7C%0A%09%09%09%09event%20keyCode%20%3D%2013%20ifTrue%3A%20%5B%0A%09%09%09%09self%20search%3A%20input%20asJQuery%20val%5D%5D.%0A%09%09%09html%20div%20id%3A%20%27jt_close%27%3B%20onClick%3A%20%5Bself%20close%5D%5D'), @@ -395,7 +395,7 @@ selector: unescape('current'), category: 'instance creation', fn: function (){ var self=this; -return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})() : $receiver; +return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass));})() : $receiver; return self;}, args: [], source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'), @@ -526,7 +526,7 @@ selector: unescape('renderOn%3A'), category: 'rendering', fn: function (html){ var self=this; -self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", [])); +(self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []))); smalltalk.send(self, "_renderTab", []); return self;}, args: ["html"], @@ -738,7 +738,7 @@ selector: unescape('renderBoxOn%3A'), category: 'rendering', fn: function (html){ var self=this; -self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []); +(self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", [])); smalltalk.send(self['@sourceArea'], "_renderOn_", [html]); return self;}, args: ["html"], @@ -795,7 +795,7 @@ category: 'accessing', fn: function (){ var self=this; var packages=nil; -packages=smalltalk.send((smalltalk.Array || Array), "_new", []); +(packages=smalltalk.send((smalltalk.Array || Array), "_new", [])); smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(packages, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(packages, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(packages, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]); return smalltalk.send(packages, "_sort", []); return self;}, @@ -830,7 +830,7 @@ category: 'accessing', fn: function (){ var self=this; try{var klass=nil; -(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]));klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]));((($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]));return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil; +(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("comment")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]));(klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("instance")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})])));((($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]));return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil; (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_new", [])}})})(); return self; } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}}, @@ -849,8 +849,8 @@ category: 'accessing', fn: function (){ var self=this; try{var klass=nil; -((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})])); -(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]));})() : nil; +((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("comment")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})])); +(($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return (klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", [smalltalk.symbolFor("instance")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})])));})() : nil; (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return smalltalk.send((($receiver = self['@selectedProtocol']) == nil || $receiver == undefined) ? (function(){return (($receiver = klass) == nil || $receiver == undefined) ? (function(){return [];})() : (function(){return smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []);})();})() : (function(){return smalltalk.send(smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_values", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedProtocol']]);})]);})(), "_sort_", [(function(a, b){return ((($receiver = smalltalk.send(a, "_selector", [])).klass === smalltalk.Number) ? $receiver (30) : smalltalk.send($receiver, "__gt", [(30)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);})() : (function(){return label=smalltalk.send(self, "_printString", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]);}), (function(){return label=smalltalk.send(self, "_printString", []);})])); +smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.CharacterArray); +((($receiver = ((($receiver = smalltalk.send(smalltalk.send(self, "_printString", []), "_size", [])).klass === smalltalk.Number) ? $receiver >(30) : smalltalk.send($receiver, "__gt", [(30)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]));})() : (function(){return (label=smalltalk.send(self, "_printString", []));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (label=smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", []), "_copyFrom_to_", [(1), (30)]), "__comma", [unescape("...%27")]));}), (function(){return (label=smalltalk.send(self, "_printString", []));})])); smalltalk.send(anInspector, "_setLabel_", [label]); return self;}, args: ["anInspector"], @@ -4844,7 +4844,7 @@ category: '*IDE', fn: function (anInspector){ var self=this; var variables=nil; -variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []); +(variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", [])); smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]); smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]); smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]); diff --git a/js/Kernel-Announcements.deploy.js b/js/Kernel-Announcements.deploy.js index 2178f324d..55adac02b 100644 --- a/js/Kernel-Announcements.deploy.js +++ b/js/Kernel-Announcements.deploy.js @@ -1,9 +1,9 @@ smalltalk.addPackage('Kernel-Announcements', {}); smalltalk.addClass('Announcer', smalltalk.Object, ['registry', 'subscriptions'], 'Kernel-Announcements'); smalltalk.addMethod( -'_announce_', +unescape('_announce_'), smalltalk.method({ -selector: 'announce:', +selector: unescape('announce%3A'), fn: function (anAnnouncement){ var self=this; smalltalk.send(self['@subscriptions'], "_do_", [(function(each){return smalltalk.send(each, "_deliver_", [anAnnouncement]);})]); @@ -12,9 +12,9 @@ return self;} smalltalk.Announcer); smalltalk.addMethod( -'_initialize', +unescape('_initialize'), smalltalk.method({ -selector: 'initialize', +selector: unescape('initialize'), fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Object); @@ -24,9 +24,9 @@ return self;} smalltalk.Announcer); smalltalk.addMethod( -'_on_do_', +unescape('_on_do_'), smalltalk.method({ -selector: 'on:do:', +selector: unescape('on%3Ado%3A'), fn: function (aClass, aBlock){ var self=this; smalltalk.send(self['@subscriptions'], "_add_", [(function($rec){smalltalk.send($rec, "_block_", [aBlock]);smalltalk.send($rec, "_announcementClass_", [aClass]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.AnnouncementSubscription || AnnouncementSubscription), "_new", []))]); @@ -38,9 +38,9 @@ smalltalk.Announcer); smalltalk.addClass('AnnouncementSubscription', smalltalk.Object, ['block', 'announcementClass'], 'Kernel-Announcements'); smalltalk.addMethod( -'_announcementClass', +unescape('_announcementClass'), smalltalk.method({ -selector: 'announcementClass', +selector: unescape('announcementClass'), fn: function (){ var self=this; return self['@announcementClass']; @@ -49,9 +49,9 @@ return self;} smalltalk.AnnouncementSubscription); smalltalk.addMethod( -'_announcementClass_', +unescape('_announcementClass_'), smalltalk.method({ -selector: 'announcementClass:', +selector: unescape('announcementClass%3A'), fn: function (aClass){ var self=this; (self['@announcementClass']=aClass); @@ -60,9 +60,9 @@ return self;} smalltalk.AnnouncementSubscription); smalltalk.addMethod( -'_block', +unescape('_block'), smalltalk.method({ -selector: 'block', +selector: unescape('block'), fn: function (){ var self=this; return self['@block']; @@ -71,9 +71,9 @@ return self;} smalltalk.AnnouncementSubscription); smalltalk.addMethod( -'_block_', +unescape('_block_'), smalltalk.method({ -selector: 'block:', +selector: unescape('block%3A'), fn: function (aBlock){ var self=this; (self['@block']=aBlock); @@ -82,9 +82,9 @@ return self;} smalltalk.AnnouncementSubscription); smalltalk.addMethod( -'_deliver_', +unescape('_deliver_'), smalltalk.method({ -selector: 'deliver:', +selector: unescape('deliver%3A'), fn: function (anAnnouncement){ var self=this; ((($receiver = smalltalk.send(self, "_handlesAnnouncement_", [anAnnouncement])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_block", []), "_value_", [anAnnouncement]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_block", []), "_value_", [anAnnouncement]);})])); @@ -93,9 +93,9 @@ return self;} smalltalk.AnnouncementSubscription); smalltalk.addMethod( -'_handlesAnnouncement_', +unescape('_handlesAnnouncement_'), smalltalk.method({ -selector: 'handlesAnnouncement:', +selector: unescape('handlesAnnouncement%3A'), fn: function (anAnnouncement){ var self=this; return smalltalk.send(anAnnouncement, "_isKindOf_", [smalltalk.send(self, "_announcementClass", [])]); diff --git a/js/Kernel-Classes.deploy.js b/js/Kernel-Classes.deploy.js index 8df18f332..b35cd4afa 100644 --- a/js/Kernel-Classes.deploy.js +++ b/js/Kernel-Classes.deploy.js @@ -62,7 +62,7 @@ selector: 'allSubclasses', fn: function (){ var self=this; var result=nil; -result=smalltalk.send(self, "_subclasses", []); +(result=smalltalk.send(self, "_subclasses", [])); smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]); return result; return self;} @@ -206,7 +206,7 @@ selector: 'protocols', fn: function (){ var self=this; var protocols=nil; -protocols=smalltalk.send((smalltalk.Array || Array), "_new", []); +(protocols=smalltalk.send((smalltalk.Array || Array), "_new", [])); smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]); return smalltalk.send(protocols, "_sort", []); return self;} @@ -234,7 +234,7 @@ selector: 'allInstanceVariableNames', fn: function (){ var self=this; var result=nil; -result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []); +(result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", [])); (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil; return result; return self;} @@ -292,7 +292,7 @@ selector: 'compile:category:', fn: function (aString, anotherString){ var self=this; var method=nil; -method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]); +(method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self])); smalltalk.send(method, "_category_", [anotherString]); smalltalk.send(self, "_addCompiledMethod_", [method]); return self;} @@ -532,7 +532,7 @@ selector: 'superclass:subclass:instanceVariableNames:package:', fn: function (aClass, aString, aString2, aString3){ var self=this; var newClass=nil; -newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]); +(newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver])); smalltalk.send(self, "_setupClass_", [newClass]); return newClass; return self;} @@ -558,7 +558,7 @@ selector: 'copyClass:named:', fn: function (aClass, aString){ var self=this; var newClass=nil; -newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])]); +(newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])])); smalltalk.send(self, "_setupClass_", [newClass]); smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(newClass, "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), newClass])]);return smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]); smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(newClass, "_class", []), "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), smalltalk.send(newClass, "_class", [])])]);return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]); @@ -578,7 +578,7 @@ selector: 'initialize', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Object); -self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []); +(self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", [])); return self;} }), smalltalk.ClassCategoryReader); @@ -589,8 +589,8 @@ smalltalk.method({ selector: 'class:category:', fn: function (aClass, aString){ var self=this; -self['@class']=aClass; -self['@category']=aString; +(self['@class']=aClass); +(self['@category']=aString); return self;} }), smalltalk.ClassCategoryReader); @@ -602,7 +602,7 @@ selector: 'scanFrom:', fn: function (aChunkParser){ var self=this; var chunk=nil; -(function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})(); +(function(){while(!(function(){(chunk=smalltalk.send(aChunkParser, "_nextChunk", []));return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})(); return self;} }), smalltalk.ClassCategoryReader); @@ -614,7 +614,7 @@ selector: 'compileMethod:', fn: function (aString){ var self=this; var method=nil; -method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]); +(method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']])); smalltalk.send(method, "_category_", [self['@category']]); smalltalk.send(self['@class'], "_addCompiledMethod_", [method]); return self;} @@ -630,7 +630,7 @@ smalltalk.method({ selector: 'class:', fn: function (aClass){ var self=this; -self['@class']=aClass; +(self['@class']=aClass); return self;} }), smalltalk.ClassCommentReader); @@ -642,7 +642,7 @@ selector: 'scanFrom:', fn: function (aChunkParser){ var self=this; var chunk=nil; -chunk=smalltalk.send(aChunkParser, "_nextChunk", []); +(chunk=smalltalk.send(aChunkParser, "_nextChunk", [])); ((($receiver = smalltalk.send(chunk, "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_setComment_", [chunk]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_setComment_", [chunk]);})])); return self;} }), @@ -655,7 +655,7 @@ selector: 'initialize', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Object); -self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []); +(self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", [])); return self;} }), smalltalk.ClassCommentReader); diff --git a/js/Kernel-Classes.js b/js/Kernel-Classes.js index 6e265119a..29ffb3f9a 100644 --- a/js/Kernel-Classes.js +++ b/js/Kernel-Classes.js @@ -88,7 +88,7 @@ category: 'accessing', fn: function (){ var self=this; var result=nil; -result=smalltalk.send(self, "_subclasses", []); +(result=smalltalk.send(self, "_subclasses", [])); smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]); return result; return self;}, @@ -292,7 +292,7 @@ category: 'accessing', fn: function (){ var self=this; var protocols=nil; -protocols=smalltalk.send((smalltalk.Array || Array), "_new", []); +(protocols=smalltalk.send((smalltalk.Array || Array), "_new", [])); smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]); return smalltalk.send(protocols, "_sort", []); return self;}, @@ -330,7 +330,7 @@ category: 'accessing', fn: function (){ var self=this; var result=nil; -result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []); +(result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", [])); (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil; return result; return self;}, @@ -413,7 +413,7 @@ category: 'compiling', fn: function (aString, anotherString){ var self=this; var method=nil; -method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]); +(method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self])); smalltalk.send(method, "_category_", [anotherString]); smalltalk.send(self, "_addCompiledMethod_", [method]); return self;}, @@ -753,7 +753,7 @@ category: 'class creation', fn: function (aClass, aString, aString2, aString3){ var self=this; var newClass=nil; -newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]); +(newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver])); smalltalk.send(self, "_setupClass_", [newClass]); return newClass; return self;}, @@ -789,7 +789,7 @@ category: 'private', fn: function (aClass, aString){ var self=this; var newClass=nil; -newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])]); +(newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])])); smalltalk.send(self, "_setupClass_", [newClass]); smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(newClass, "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), newClass])]);return smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]); smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(newClass, "_class", []), "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), smalltalk.send(newClass, "_class", [])])]);return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]); @@ -814,7 +814,7 @@ category: 'initialization', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Object); -self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []); +(self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", [])); return self;}, args: [], source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'), @@ -830,8 +830,8 @@ selector: unescape('class%3Acategory%3A'), category: 'accessing', fn: function (aClass, aString){ var self=this; -self['@class']=aClass; -self['@category']=aString; +(self['@class']=aClass); +(self['@category']=aString); return self;}, args: ["aClass", "aString"], source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'), @@ -848,7 +848,7 @@ category: 'fileIn', fn: function (aChunkParser){ var self=this; var chunk=nil; -(function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})(); +(function(){while(!(function(){(chunk=smalltalk.send(aChunkParser, "_nextChunk", []));return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})(); return self;}, args: ["aChunkParser"], source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09%5Bchunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20self%20compileMethod%3A%20chunk%5D'), @@ -865,7 +865,7 @@ category: 'private', fn: function (aString){ var self=this; var method=nil; -method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]); +(method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']])); smalltalk.send(method, "_category_", [self['@category']]); smalltalk.send(self['@class'], "_addCompiledMethod_", [method]); return self;}, @@ -886,7 +886,7 @@ selector: unescape('class%3A'), category: 'accessing', fn: function (aClass){ var self=this; -self['@class']=aClass; +(self['@class']=aClass); return self;}, args: ["aClass"], source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'), @@ -903,7 +903,7 @@ category: 'fileIn', fn: function (aChunkParser){ var self=this; var chunk=nil; -chunk=smalltalk.send(aChunkParser, "_nextChunk", []); +(chunk=smalltalk.send(aChunkParser, "_nextChunk", [])); ((($receiver = smalltalk.send(chunk, "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_setComment_", [chunk]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_setComment_", [chunk]);})])); return self;}, args: ["aChunkParser"], @@ -921,7 +921,7 @@ category: 'initialization', fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Object); -self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []); +(self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", [])); return self;}, args: [], source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'), diff --git a/js/Kernel-Exceptions.js b/js/Kernel-Exceptions.js index aab74ae62..970d9f244 100644 --- a/js/Kernel-Exceptions.js +++ b/js/Kernel-Exceptions.js @@ -10,7 +10,7 @@ var self=this; return self['@messageText']; return self;}, args: [], -source: unescape('messageText%0D%0A%09%5EmessageText'), +source: unescape('messageText%0A%09%5EmessageText'), messageSends: [], referencedClasses: [] }), @@ -26,7 +26,7 @@ var self=this; (self['@messageText']=aString); return self;}, args: ["aString"], -source: unescape('messageText%3A%20aString%0D%0A%09messageText%20%3A%3D%20aString'), +source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'), messageSends: [], referencedClasses: [] }), @@ -42,7 +42,7 @@ var self=this; self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self); return self;}, args: [], -source: unescape('signal%0D%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'), +source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'), messageSends: [], referencedClasses: [] }), @@ -58,7 +58,7 @@ var self=this; return self.context; return self;}, args: [], -source: unescape('context%0D%0A%09%3Creturn%20self.context%3E'), +source: unescape('context%0A%09%3Creturn%20self.context%3E'), messageSends: [], referencedClasses: [] }), @@ -74,7 +74,7 @@ var self=this; return self.stack; return self;}, args: [], -source: unescape('jsStack%0D%0A%09%3Creturn%20self.stack%3E'), +source: unescape('jsStack%0A%09%3Creturn%20self.stack%3E'), messageSends: [], referencedClasses: [] }), @@ -90,7 +90,7 @@ var self=this; return self.smalltalkError === true; return self;}, args: [], -source: unescape('isSmalltalkError%0D%0A%09%3Creturn%20self.smalltalkError%20%3D%3D%3D%20true%3E'), +source: unescape('isSmalltalkError%0A%09%3Creturn%20self.smalltalkError%20%3D%3D%3D%20true%3E'), messageSends: [], referencedClasses: [] }), @@ -107,7 +107,7 @@ var self=this; return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", [])); return self;}, args: ["aString"], -source: unescape('signal%3A%20aString%0D%0A%09%20%20%20%20%5Eself%20new%0D%0A%09%09messageText%3A%20aString%3B%0D%0A%09%09signal'), +source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'), messageSends: ["messageText:", "signal", "new"], referencedClasses: [] }), @@ -125,7 +125,7 @@ var self=this; return self['@message']; return self;}, args: [], -source: unescape('message%0D%0A%09%5Emessage'), +source: unescape('message%0A%09%5Emessage'), messageSends: [], referencedClasses: [] }), @@ -141,7 +141,7 @@ var self=this; (self['@message']=aMessage); return self;}, args: ["aMessage"], -source: unescape('message%3A%20aMessage%0D%0A%09message%20%3A%3D%20aMessage'), +source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'), messageSends: [], referencedClasses: [] }), @@ -157,7 +157,7 @@ var self=this; return self['@receiver']; return self;}, args: [], -source: unescape('receiver%0D%0A%09%5Ereceiver'), +source: unescape('receiver%0A%09%5Ereceiver'), messageSends: [], referencedClasses: [] }), @@ -173,7 +173,7 @@ var self=this; (self['@receiver']=anObject); return self;}, args: ["anObject"], -source: unescape('receiver%3A%20anObject%0D%0A%09receiver%20%3A%3D%20anObject'), +source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'), messageSends: [], referencedClasses: [] }), @@ -189,7 +189,7 @@ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_asString", []), "__comma", [unescape("%20does%20not%20understand%20%23")]), "__comma", [smalltalk.send(smalltalk.send(self, "_message", []), "_selector", [])]); return self;}, args: [], -source: unescape('messageText%0D%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'), +source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'), messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"], referencedClasses: [] }), @@ -209,7 +209,7 @@ var self=this; smalltalk.send(self, "_logError_", [anError]); return self;}, args: ["anError"], -source: unescape('handleError%3A%20anError%0D%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0D%0A%09self%20logError%3A%20anError'), +source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'), messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"], referencedClasses: [] }), @@ -226,7 +226,7 @@ var self=this; smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]); return self;}, args: ["aContext"], -source: unescape('logContext%3A%20aContext%0D%0A%09aContext%20home%20ifNotNil%3A%20%5B%0D%0A%09%09self%20logContext%3A%20aContext%20home%5D.%0D%0A%09self%20log%3A%20aContext%20receiver%20asString%2C%20%27%3E%3E%27%2C%20aContext%20selector'), +source: unescape('logContext%3A%20aContext%0A%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09self%20logContext%3A%20aContext%20home%5D.%0A%09self%20log%3A%20aContext%20receiver%20asString%2C%20%27%3E%3E%27%2C%20aContext%20selector'), messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"], referencedClasses: [] }), @@ -242,7 +242,7 @@ var self=this; (($receiver = aContext) != nil && $receiver != undefined) ? (function(){return (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;})() : nil; return self;}, args: ["aContext"], -source: unescape('logErrorContext%3A%20aContext%0D%0A%09aContext%20ifNotNil%3A%20%5B%0D%0A%09%09aContext%20home%20ifNotNil%3A%20%5B%0D%0A%09%09%09self%20logContext%3A%20aContext%20home%5D%5D'), +source: unescape('logErrorContext%3A%20aContext%0A%09aContext%20ifNotNil%3A%20%5B%0A%09%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09%09self%20logContext%3A%20aContext%20home%5D%5D'), messageSends: ["ifNotNil:", "home", "logContext:"], referencedClasses: [] }), @@ -258,7 +258,7 @@ var self=this; smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]); return self;}, args: ["anError"], -source: unescape('logError%3A%20anError%0D%0A%09self%20log%3A%20anError%20messageText'), +source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'), messageSends: ["log:", "messageText"], referencedClasses: [] }), @@ -274,7 +274,7 @@ var self=this; smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]); return self;}, args: ["aString"], -source: unescape('log%3A%20aString%0D%0A%09console%20log%3A%20aString'), +source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'), messageSends: ["log:"], referencedClasses: [] }), @@ -292,7 +292,7 @@ var self=this; return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return (self['@current']=smalltalk.send(self, "_new", []));})() : $receiver; return self;}, args: [], -source: unescape('current%0D%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'), +source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'), messageSends: ["ifNil:", "new"], referencedClasses: [] }), @@ -308,7 +308,7 @@ var self=this; smalltalk.send(self, "_register", []); return self;}, args: [], -source: unescape('initialize%0D%0A%09self%20register'), +source: unescape('initialize%0A%09self%20register'), messageSends: ["register"], referencedClasses: [] }), @@ -324,7 +324,7 @@ var self=this; smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]); return self;}, args: [], -source: unescape('register%0D%0A%09ErrorHandler%20setCurrent%3A%20self%20new'), +source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'), messageSends: ["setCurrent:", "new"], referencedClasses: ["ErrorHandler"] }), @@ -340,7 +340,7 @@ var self=this; (self['@current']=anHandler); return self;}, args: ["anHandler"], -source: unescape('setCurrent%3A%20anHandler%0D%0A%09current%20%3A%3D%20anHandler'), +source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'), messageSends: [], referencedClasses: [] }), diff --git a/js/Kernel-Objects.deploy.js b/js/Kernel-Objects.deploy.js index e2e6f2b96..b18de797d 100644 --- a/js/Kernel-Objects.deploy.js +++ b/js/Kernel-Objects.deploy.js @@ -1511,9 +1511,9 @@ return self;} smalltalk.Number); smalltalk.addMethod( -'_\\', +'_\', smalltalk.method({ -selector: '\\', +selector: '\', fn: function (aNumber){ var self=this; return self % aNumber; diff --git a/js/Kernel-Tests.deploy.js b/js/Kernel-Tests.deploy.js index 363fc205d..c3c74e075 100644 --- a/js/Kernel-Tests.deploy.js +++ b/js/Kernel-Tests.deploy.js @@ -1,9 +1,9 @@ smalltalk.addPackage('Kernel-Tests', {}); smalltalk.addClass('StringTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testJoin', +unescape('_testJoin'), smalltalk.method({ -selector: 'testJoin', +selector: unescape('testJoin'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("hello%2Cworld"), smalltalk.send(unescape("%2C"), "_join_", [["hello", "world"]])]); @@ -12,9 +12,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testStreamContents', +unescape('_testStreamContents'), smalltalk.method({ -selector: 'testStreamContents', +selector: unescape('testStreamContents'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", ["hello world", smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", ["hello"]);smalltalk.send($rec, "_space", []);return smalltalk.send($rec, "_nextPutAll_", ["world"]);})(aStream);})])]); @@ -23,9 +23,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testIncludesSubString', +unescape('_testIncludesSubString'), smalltalk.method({ -selector: 'testIncludesSubString', +selector: unescape('testIncludesSubString'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send("amber", "_includesSubString_", ["ber"])]); @@ -35,9 +35,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testEquality', +unescape('_testEquality'), smalltalk.method({ -selector: 'testEquality', +selector: unescape('testEquality'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send("hello", "__eq", ["hello"])]); @@ -50,9 +50,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testCopyWithoutAll', +unescape('_testCopyWithoutAll'), smalltalk.method({ -selector: 'testCopyWithoutAll', +selector: unescape('testCopyWithoutAll'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", ["hello world", smalltalk.send(unescape("*hello*%20*world*"), "_copyWithoutAll_", [unescape("*")])]); @@ -61,9 +61,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testAt', +unescape('_testAt'), smalltalk.method({ -selector: 'testAt', +selector: unescape('testAt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send("hello", "_at_", [(1)]), "__eq", ["h"])]); @@ -74,9 +74,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testAtPut', +unescape('_testAtPut'), smalltalk.method({ -selector: 'testAtPut', +selector: unescape('testAtPut'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_at_put_", [(1), "a"]);}), (smalltalk.Error || Error)]); @@ -85,9 +85,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testSize', +unescape('_testSize'), smalltalk.method({ -selector: 'testSize', +selector: unescape('testSize'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send("smalltalk", "_size", []), (9)]); @@ -97,9 +97,9 @@ return self;} smalltalk.StringTest); smalltalk.addMethod( -'_testAddRemove', +unescape('_testAddRemove'), smalltalk.method({ -selector: 'testAddRemove', +selector: unescape('testAddRemove'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_add_", ["a"]);}), (smalltalk.Error || Error)]); @@ -112,9 +112,9 @@ smalltalk.StringTest); smalltalk.addClass('DictionaryTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testPrintString', +unescape('_testPrintString'), smalltalk.method({ -selector: 'testPrintString', +selector: unescape('testPrintString'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("a%20Dictionary%28%27firstname%27%20-%3E%20%27James%27%20%2C%20%27lastname%27%20-%3E%20%27Bond%27%29"), (function($rec){smalltalk.send($rec, "_at_put_", ["firstname", "James"]);smalltalk.send($rec, "_at_put_", ["lastname", "Bond"]);return smalltalk.send($rec, "_printString", []);})(smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []))]); @@ -123,9 +123,9 @@ return self;} smalltalk.DictionaryTest); smalltalk.addMethod( -'_testEquality', +unescape('_testEquality'), smalltalk.method({ -selector: 'testEquality', +selector: unescape('testEquality'), fn: function (){ var self=this; var d1=nil; @@ -145,9 +145,9 @@ return self;} smalltalk.DictionaryTest); smalltalk.addMethod( -'_testDynamicDictionaries', +unescape('_testDynamicDictionaries'), smalltalk.method({ -selector: 'testDynamicDictionaries', +selector: unescape('testDynamicDictionaries'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.HashedCollection._fromPairs_([smalltalk.send("hello", "__minus_gt", [(1)])]), "_asDictionary", []), "__eq", [smalltalk.send((smalltalk.Dictionary || Dictionary), "_with_", [smalltalk.send("hello", "__minus_gt", [(1)])])])]); @@ -156,9 +156,9 @@ return self;} smalltalk.DictionaryTest); smalltalk.addMethod( -'_testAccessing', +unescape('_testAccessing'), smalltalk.method({ -selector: 'testAccessing', +selector: unescape('testAccessing'), fn: function (){ var self=this; var d=nil; @@ -176,9 +176,9 @@ return self;} smalltalk.DictionaryTest); smalltalk.addMethod( -'_testSize', +unescape('_testSize'), smalltalk.method({ -selector: 'testSize', +selector: unescape('testSize'), fn: function (){ var self=this; var d=nil; @@ -193,9 +193,9 @@ return self;} smalltalk.DictionaryTest); smalltalk.addMethod( -'_testValues', +unescape('_testValues'), smalltalk.method({ -selector: 'testValues', +selector: unescape('testValues'), fn: function (){ var self=this; var d=nil; @@ -209,9 +209,9 @@ return self;} smalltalk.DictionaryTest); smalltalk.addMethod( -'_testKeys', +unescape('_testKeys'), smalltalk.method({ -selector: 'testKeys', +selector: unescape('testKeys'), fn: function (){ var self=this; var d=nil; @@ -228,9 +228,9 @@ smalltalk.DictionaryTest); smalltalk.addClass('BooleanTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testLogic', +unescape('_testLogic'), smalltalk.method({ -selector: 'testLogic', +selector: unescape('testLogic'), fn: function (){ var self=this; (function($rec){smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_&", [true])]);smalltalk.send($rec, "_deny_", [smalltalk.send(true, "_&", [false])]);smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_&", [true])]);return smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_&", [false])]);})(self); @@ -242,9 +242,9 @@ return self;} smalltalk.BooleanTest); smalltalk.addMethod( -'_testEquality', +unescape('_testEquality'), smalltalk.method({ -selector: 'testEquality', +selector: unescape('testEquality'), fn: function (){ var self=this; smalltalk.send(self, "_deny_", [smalltalk.send((0), "__eq", [false])]); @@ -262,9 +262,9 @@ return self;} smalltalk.BooleanTest); smalltalk.addMethod( -'_testLogicKeywords', +unescape('_testLogicKeywords'), smalltalk.method({ -selector: 'testLogicKeywords', +selector: unescape('testLogicKeywords'), fn: function (){ var self=this; (function($rec){smalltalk.send($rec, "_assert_", [smalltalk.send(true, "_and_", [(function(){return true;})])]);smalltalk.send($rec, "_deny_", [smalltalk.send(true, "_and_", [(function(){return false;})])]);smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_and_", [(function(){return true;})])]);return smalltalk.send($rec, "_deny_", [smalltalk.send(false, "_and_", [(function(){return false;})])]);})(self); @@ -276,9 +276,9 @@ return self;} smalltalk.BooleanTest); smalltalk.addMethod( -'_testIfTrueIfFalse', +unescape('_testIfTrueIfFalse'), smalltalk.method({ -selector: 'testIfTrueIfFalse', +selector: unescape('testIfTrueIfFalse'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(((($receiver = true).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "alternative block";})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return "alternative block";})])), "__eq", ["alternative block"])]); @@ -297,9 +297,9 @@ smalltalk.BooleanTest); smalltalk.addClass('NumberTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testPrintShowingDecimalPlaces', +unescape('_testPrintShowingDecimalPlaces'), smalltalk.method({ -selector: 'testPrintShowingDecimalPlaces', +selector: unescape('testPrintShowingDecimalPlaces'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", ["23.00", smalltalk.send((23), "_printShowingDecimalPlaces_", [(2)])]); @@ -320,9 +320,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testEquality', +unescape('_testEquality'), smalltalk.method({ -selector: 'testEquality', +selector: unescape('testEquality'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send((1), "__eq", [(1)])]); @@ -340,9 +340,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testArithmetic', +unescape('_testArithmetic'), smalltalk.method({ -selector: 'testArithmetic', +selector: unescape('testArithmetic'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send((1.5) + (1), "__eq", [(2.5)])]); @@ -357,9 +357,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testRounded', +unescape('_testRounded'), smalltalk.method({ -selector: 'testRounded', +selector: unescape('testRounded'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "_rounded", []), "__eq", [(3)])]); @@ -370,9 +370,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testNegated', +unescape('_testNegated'), smalltalk.method({ -selector: 'testNegated', +selector: unescape('testNegated'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "_negated", []), "__eq", [(-3)])]); @@ -382,9 +382,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testComparison', +unescape('_testComparison'), smalltalk.method({ -selector: 'testComparison', +selector: unescape('testComparison'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [(3) > (2)]); @@ -400,9 +400,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testTruncated', +unescape('_testTruncated'), smalltalk.method({ -selector: 'testTruncated', +selector: unescape('testTruncated'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "_truncated", []), "__eq", [(3)])]); @@ -413,9 +413,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testCopying', +unescape('_testCopying'), smalltalk.method({ -selector: 'testCopying', +selector: unescape('testCopying'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((1), "_copy", []), "__eq_eq", [(1)])]); @@ -425,9 +425,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testMinMax', +unescape('_testMinMax'), smalltalk.method({ -selector: 'testMinMax', +selector: unescape('testMinMax'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((2), "_max_", [(5)]), (5)]); @@ -437,9 +437,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testIdentity', +unescape('_testIdentity'), smalltalk.method({ -selector: 'testIdentity', +selector: unescape('testIdentity'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send((1), "__eq_eq", [(1)])]); @@ -454,9 +454,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testSqrt', +unescape('_testSqrt'), smalltalk.method({ -selector: 'testSqrt', +selector: unescape('testSqrt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((4), "_sqrt", []), "__eq", [(2)])]); @@ -466,9 +466,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testSquared', +unescape('_testSquared'), smalltalk.method({ -selector: 'testSquared', +selector: unescape('testSquared'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((4), "_squared", []), "__eq", [(16)])]); @@ -477,9 +477,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testTimesRepeat', +unescape('_testTimesRepeat'), smalltalk.method({ -selector: 'testTimesRepeat', +selector: unescape('testTimesRepeat'), fn: function (){ var self=this; var i=nil; @@ -493,9 +493,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testTo', +unescape('_testTo'), smalltalk.method({ -selector: 'testTo', +selector: unescape('testTo'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((1), "_to_", [(5)]), [(1), (2), (3), (4), (5)]]); @@ -504,9 +504,9 @@ return self;} smalltalk.NumberTest); smalltalk.addMethod( -'_testToBy', +unescape('_testToBy'), smalltalk.method({ -selector: 'testToBy', +selector: unescape('testToBy'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((0), "_to_by_", [(6), (2)]), [(0), (2), (4), (6)]]); @@ -519,9 +519,9 @@ smalltalk.NumberTest); smalltalk.addClass('JSObjectProxyTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_jsObject', +unescape('_jsObject'), smalltalk.method({ -selector: 'jsObject', +selector: unescape('jsObject'), fn: function (){ var self=this; return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}}; @@ -530,9 +530,9 @@ return self;} smalltalk.JSObjectProxyTest); smalltalk.addMethod( -'_testMethodWithArguments', +unescape('_testMethodWithArguments'), smalltalk.method({ -selector: 'testMethodWithArguments', +selector: unescape('testMethodWithArguments'), fn: function (){ var self=this; smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_hasClass_", ["amber"])]); @@ -545,9 +545,9 @@ return self;} smalltalk.JSObjectProxyTest); smalltalk.addMethod( -'_testYourself', +unescape('_testYourself'), smalltalk.method({ -selector: 'testYourself', +selector: unescape('testYourself'), fn: function (){ var self=this; var body=nil; @@ -560,9 +560,9 @@ return self;} smalltalk.JSObjectProxyTest); smalltalk.addMethod( -'_testPropertyThatReturnsEmptyString', +unescape('_testPropertyThatReturnsEmptyString'), smalltalk.method({ -selector: 'testPropertyThatReturnsEmptyString', +selector: unescape('testPropertyThatReturnsEmptyString'), fn: function (){ var self=this; document.location.hash = ''; @@ -574,9 +574,9 @@ return self;} smalltalk.JSObjectProxyTest); smalltalk.addMethod( -'_testDNU', +unescape('_testDNU'), smalltalk.method({ -selector: 'testDNU', +selector: unescape('testDNU'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_foo", []);}), (smalltalk.MessageNotUnderstood || MessageNotUnderstood)]); @@ -585,9 +585,9 @@ return self;} smalltalk.JSObjectProxyTest); smalltalk.addMethod( -'_testMessageSend', +unescape('_testMessageSend'), smalltalk.method({ -selector: 'testMessageSend', +selector: unescape('testMessageSend'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send(self, "_jsObject", []), "_a", []), (1)]); @@ -598,9 +598,9 @@ return self;} smalltalk.JSObjectProxyTest); smalltalk.addMethod( -'_testPrinting', +unescape('_testPrinting'), smalltalk.method({ -selector: 'testPrinting', +selector: unescape('testPrinting'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_jsObject", []), "_printString", []), "__eq", [unescape("%5Bobject%20Object%5D")])]); @@ -612,9 +612,9 @@ smalltalk.JSObjectProxyTest); smalltalk.addClass('PackageTest', smalltalk.TestCase, ['zorkPackage', 'grulPackage', 'backUpCommitPathJs', 'backUpCommitPathSt'], 'Kernel-Tests'); smalltalk.addMethod( -'_setUp', +unescape('_setUp'), smalltalk.method({ -selector: 'setUp', +selector: unescape('setUp'), fn: function (){ var self=this; (self['@backUpCommitPathJs']=smalltalk.send((smalltalk.Package || Package), "_defaultCommitPathJs", [])); @@ -627,9 +627,9 @@ return self;} smalltalk.PackageTest); smalltalk.addMethod( -'_tearDown', +unescape('_tearDown'), smalltalk.method({ -selector: 'tearDown', +selector: unescape('tearDown'), fn: function (){ var self=this; (function($rec){smalltalk.send($rec, "_defaultCommitPathJs_", [self['@backUpCommitPathJs']]);return smalltalk.send($rec, "_defaultCommitPathSt_", [self['@backUpCommitPathSt']]);})((smalltalk.Package || Package)); @@ -638,9 +638,9 @@ return self;} smalltalk.PackageTest); smalltalk.addMethod( -'_testGrulCommitPathStShouldBeGrulSt', +unescape('_testGrulCommitPathStShouldBeGrulSt'), smalltalk.method({ -selector: 'testGrulCommitPathStShouldBeGrulSt', +selector: unescape('testGrulCommitPathStShouldBeGrulSt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("grul/st"), smalltalk.send(self['@grulPackage'], "_commitPathSt", [])]); @@ -649,9 +649,9 @@ return self;} smalltalk.PackageTest); smalltalk.addMethod( -'_testZorkCommitPathStShouldBeSt', +unescape('_testZorkCommitPathStShouldBeSt'), smalltalk.method({ -selector: 'testZorkCommitPathStShouldBeSt', +selector: unescape('testZorkCommitPathStShouldBeSt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", ["st", smalltalk.send(self['@zorkPackage'], "_commitPathSt", [])]); @@ -660,9 +660,9 @@ return self;} smalltalk.PackageTest); smalltalk.addMethod( -'_testZorkCommitPathJsShouldBeJs', +unescape('_testZorkCommitPathJsShouldBeJs'), smalltalk.method({ -selector: 'testZorkCommitPathJsShouldBeJs', +selector: unescape('testZorkCommitPathJsShouldBeJs'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", ["js", smalltalk.send(self['@zorkPackage'], "_commitPathJs", [])]); @@ -671,9 +671,9 @@ return self;} smalltalk.PackageTest); smalltalk.addMethod( -'_testGrulCommitPathJsShouldBeServerGrulJs', +unescape('_testGrulCommitPathJsShouldBeServerGrulJs'), smalltalk.method({ -selector: 'testGrulCommitPathJsShouldBeServerGrulJs', +selector: unescape('testGrulCommitPathJsShouldBeServerGrulJs'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("server/grul/js"), smalltalk.send(self['@grulPackage'], "_commitPathJs", [])]); @@ -685,9 +685,9 @@ smalltalk.PackageTest); smalltalk.addClass('PackageWithDefaultCommitPathChangedTest', smalltalk.PackageTest, [], 'Kernel-Tests'); smalltalk.addMethod( -'_setUp', +unescape('_setUp'), smalltalk.method({ -selector: 'setUp', +selector: unescape('setUp'), fn: function (){ var self=this; smalltalk.send(self, "_setUp", [], smalltalk.PackageTest); @@ -697,9 +697,9 @@ return self;} smalltalk.PackageWithDefaultCommitPathChangedTest); smalltalk.addMethod( -'_testGrulCommitPathJsShouldBeServerGrulJs', +unescape('_testGrulCommitPathJsShouldBeServerGrulJs'), smalltalk.method({ -selector: 'testGrulCommitPathJsShouldBeServerGrulJs', +selector: unescape('testGrulCommitPathJsShouldBeServerGrulJs'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("server/grul/js"), smalltalk.send(self['@grulPackage'], "_commitPathJs", [])]); @@ -708,9 +708,9 @@ return self;} smalltalk.PackageWithDefaultCommitPathChangedTest); smalltalk.addMethod( -'_testGrulCommitPathStShouldBeGrulSt', +unescape('_testGrulCommitPathStShouldBeGrulSt'), smalltalk.method({ -selector: 'testGrulCommitPathStShouldBeGrulSt', +selector: unescape('testGrulCommitPathStShouldBeGrulSt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("grul/st"), smalltalk.send(self['@grulPackage'], "_commitPathSt", [])]); @@ -719,9 +719,9 @@ return self;} smalltalk.PackageWithDefaultCommitPathChangedTest); smalltalk.addMethod( -'_testZorkCommitPathJsShouldBeJavascript', +unescape('_testZorkCommitPathJsShouldBeJavascript'), smalltalk.method({ -selector: 'testZorkCommitPathJsShouldBeJavascript', +selector: unescape('testZorkCommitPathJsShouldBeJavascript'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("javascripts/"), smalltalk.send(self['@zorkPackage'], "_commitPathJs", [])]); @@ -730,9 +730,9 @@ return self;} smalltalk.PackageWithDefaultCommitPathChangedTest); smalltalk.addMethod( -'_testZorkCommitPathStShouldBeSmalltalk', +unescape('_testZorkCommitPathStShouldBeSmalltalk'), smalltalk.method({ -selector: 'testZorkCommitPathStShouldBeSmalltalk', +selector: unescape('testZorkCommitPathStShouldBeSmalltalk'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [unescape("smalltalk/"), smalltalk.send(self['@zorkPackage'], "_commitPathSt", [])]); @@ -742,9 +742,9 @@ smalltalk.PackageWithDefaultCommitPathChangedTest); smalltalk.addMethod( -'_shouldInheritSelectors', +unescape('_shouldInheritSelectors'), smalltalk.method({ -selector: 'shouldInheritSelectors', +selector: unescape('shouldInheritSelectors'), fn: function (){ var self=this; return false; @@ -755,9 +755,9 @@ smalltalk.PackageWithDefaultCommitPathChangedTest.klass); smalltalk.addClass('BlockClosureTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testValue', +unescape('_testValue'), smalltalk.method({ -selector: 'testValue', +selector: unescape('testValue'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(){return (1) + (1);}), "_value", []), (2)]); @@ -769,9 +769,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testOnDo', +unescape('_testOnDo'), smalltalk.method({ -selector: 'testOnDo', +selector: unescape('testOnDo'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send((function(){return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_signal", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){return true;})])]); @@ -780,9 +780,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testEnsure', +unescape('_testEnsure'), smalltalk.method({ -selector: 'testEnsure', +selector: unescape('testEnsure'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send((function(){return smalltalk.send((smalltalk.Error || Error), "_new", []);}), "_ensure_", [(function(){return true;})])]); @@ -791,9 +791,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testNumArgs', +unescape('_testNumArgs'), smalltalk.method({ -selector: 'testNumArgs', +selector: unescape('testNumArgs'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(){return nil;}), "_numArgs", []), (0)]); @@ -803,9 +803,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testValueWithPossibleArguments', +unescape('_testValueWithPossibleArguments'), smalltalk.method({ -selector: 'testValueWithPossibleArguments', +selector: unescape('testValueWithPossibleArguments'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((function(){return (1);}), "_valueWithPossibleArguments_", [[(3), (4)]]), (1)]); @@ -816,9 +816,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testWhileTrue', +unescape('_testWhileTrue'), smalltalk.method({ -selector: 'testWhileTrue', +selector: unescape('testWhileTrue'), fn: function (){ var self=this; var i=nil; @@ -833,9 +833,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testWhileFalse', +unescape('_testWhileFalse'), smalltalk.method({ -selector: 'testWhileFalse', +selector: unescape('testWhileFalse'), fn: function (){ var self=this; var i=nil; @@ -850,9 +850,9 @@ return self;} smalltalk.BlockClosureTest); smalltalk.addMethod( -'_testCompiledSource', +unescape('_testCompiledSource'), smalltalk.method({ -selector: 'testCompiledSource', +selector: unescape('testCompiledSource'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((function(){return (1) + (1);}), "_compiledSource", []), "_includesSubString_", ["function"])]); @@ -864,9 +864,9 @@ smalltalk.BlockClosureTest); smalltalk.addClass('ObjectTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testEquality', +unescape('_testEquality'), smalltalk.method({ -selector: 'testEquality', +selector: unescape('testEquality'), fn: function (){ var self=this; var o=nil; @@ -880,9 +880,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testIdentity', +unescape('_testIdentity'), smalltalk.method({ -selector: 'testIdentity', +selector: unescape('testIdentity'), fn: function (){ var self=this; var o=nil; @@ -894,9 +894,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testHalt', +unescape('_testHalt'), smalltalk.method({ -selector: 'testHalt', +selector: unescape('testHalt'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send((smalltalk.Object || Object), "_new", []), "_halt", []);}), (smalltalk.Error || Error)]); @@ -905,9 +905,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testBasicAccess', +unescape('_testBasicAccess'), smalltalk.method({ -selector: 'testBasicAccess', +selector: unescape('testBasicAccess'), fn: function (){ var self=this; var o=nil; @@ -920,9 +920,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testNilUndefined', +unescape('_testNilUndefined'), smalltalk.method({ -selector: 'testNilUndefined', +selector: unescape('testNilUndefined'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(nil, "__eq", [(typeof undefined == 'undefined' ? nil : undefined)])]); @@ -931,9 +931,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testidentityHash', +unescape('_testidentityHash'), smalltalk.method({ -selector: 'testidentityHash', +selector: unescape('testidentityHash'), fn: function (){ var self=this; var o1=nil; @@ -947,9 +947,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testBasicPerform', +unescape('_testBasicPerform'), smalltalk.method({ -selector: 'testBasicPerform', +selector: unescape('testBasicPerform'), fn: function (){ var self=this; var o=nil; @@ -963,9 +963,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testIfNil', +unescape('_testIfNil'), smalltalk.method({ -selector: 'testIfNil', +selector: unescape('testIfNil'), fn: function (){ var self=this; smalltalk.send(self, "_deny_", [smalltalk.send(smalltalk.send((smalltalk.Object || Object), "_new", []), "_isNil", [])]); @@ -978,9 +978,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testInstVars', +unescape('_testInstVars'), smalltalk.method({ -selector: 'testInstVars', +selector: unescape('testInstVars'), fn: function (){ var self=this; var o=nil; @@ -994,9 +994,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testYourself', +unescape('_testYourself'), smalltalk.method({ -selector: 'testYourself', +selector: unescape('testYourself'), fn: function (){ var self=this; var o=nil; @@ -1007,9 +1007,9 @@ return self;} smalltalk.ObjectTest); smalltalk.addMethod( -'_testDNU', +unescape('_testDNU'), smalltalk.method({ -selector: 'testDNU', +selector: unescape('testDNU'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send((smalltalk.Object || Object), "_new", []), "_foo", []);}), (smalltalk.MessageNotUnderstood || MessageNotUnderstood)]); @@ -1021,9 +1021,9 @@ smalltalk.ObjectTest); smalltalk.addClass('SymbolTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testEquality', +unescape('_testEquality'), smalltalk.method({ -selector: 'testEquality', +selector: unescape('testEquality'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq", [smalltalk.symbolFor("hello")])]); @@ -1037,9 +1037,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testAt', +unescape('_testAt'), smalltalk.method({ -selector: 'testAt', +selector: unescape('testAt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.symbolFor("hello"), "_at_", [(1)]), "__eq", ["h"])]); @@ -1050,9 +1050,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testAtPut', +unescape('_testAtPut'), smalltalk.method({ -selector: 'testAtPut', +selector: unescape('testAtPut'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send("hello", "_at_put_", [(1), "a"]);}), (smalltalk.Error || Error)]); @@ -1061,9 +1061,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testIdentity', +unescape('_testIdentity'), smalltalk.method({ -selector: 'testIdentity', +selector: unescape('testIdentity'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq_eq", [smalltalk.symbolFor("hello")])]); @@ -1075,9 +1075,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testComparing', +unescape('_testComparing'), smalltalk.method({ -selector: 'testComparing', +selector: unescape('testComparing'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [((($receiver = smalltalk.symbolFor("ab")).klass === smalltalk.Number) ? $receiver >smalltalk.symbolFor("aa") : smalltalk.send($receiver, "__gt", [smalltalk.symbolFor("aa")]))]); @@ -1093,9 +1093,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testSize', +unescape('_testSize'), smalltalk.method({ -selector: 'testSize', +selector: unescape('testSize'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.symbolFor("a"), "_size", []), (1)]); @@ -1105,9 +1105,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testAsString', +unescape('_testAsString'), smalltalk.method({ -selector: 'testAsString', +selector: unescape('testAsString'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.symbolFor("hello"), "_asString", []), "hello"]); @@ -1116,9 +1116,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testAsSymbol', +unescape('_testAsSymbol'), smalltalk.method({ -selector: 'testAsSymbol', +selector: unescape('testAsSymbol'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "__eq_eq", [smalltalk.send(smalltalk.symbolFor("hello"), "_asSymbol", [])])]); @@ -1127,9 +1127,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testCopying', +unescape('_testCopying'), smalltalk.method({ -selector: 'testCopying', +selector: unescape('testCopying'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(smalltalk.symbolFor("hello"), "_copy", []), "__eq_eq", [smalltalk.symbolFor("hello")])]); @@ -1139,9 +1139,9 @@ return self;} smalltalk.SymbolTest); smalltalk.addMethod( -'_testIsSymbolIsString', +unescape('_testIsSymbolIsString'), smalltalk.method({ -selector: 'testIsSymbolIsString', +selector: unescape('testIsSymbolIsString'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.symbolFor("hello"), "_isSymbol", [])]); @@ -1156,9 +1156,9 @@ smalltalk.SymbolTest); smalltalk.addClass('ObjectMock', smalltalk.Object, ['foo', 'bar'], 'Kernel-Tests'); smalltalk.addMethod( -'_foo', +unescape('_foo'), smalltalk.method({ -selector: 'foo', +selector: unescape('foo'), fn: function (){ var self=this; return self['@foo']; @@ -1167,9 +1167,9 @@ return self;} smalltalk.ObjectMock); smalltalk.addMethod( -'_foo_', +unescape('_foo_'), smalltalk.method({ -selector: 'foo:', +selector: unescape('foo%3A'), fn: function (anObject){ var self=this; (self['@foo']=anObject); @@ -1181,9 +1181,9 @@ smalltalk.ObjectMock); smalltalk.addClass('UndefinedTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testIsNil', +unescape('_testIsNil'), smalltalk.method({ -selector: 'testIsNil', +selector: unescape('testIsNil'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(nil, "_isNil", [])]); @@ -1193,9 +1193,9 @@ return self;} smalltalk.UndefinedTest); smalltalk.addMethod( -'_testIfNil', +unescape('_testIfNil'), smalltalk.method({ -selector: 'testIfNil', +selector: unescape('testIfNil'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [(($receiver = nil) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver, true]); @@ -1207,9 +1207,9 @@ return self;} smalltalk.UndefinedTest); smalltalk.addMethod( -'_testCopying', +unescape('_testCopying'), smalltalk.method({ -selector: 'testCopying', +selector: unescape('testCopying'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(nil, "_copy", []), nil]); @@ -1218,9 +1218,9 @@ return self;} smalltalk.UndefinedTest); smalltalk.addMethod( -'_testDeepCopy', +unescape('_testDeepCopy'), smalltalk.method({ -selector: 'testDeepCopy', +selector: unescape('testDeepCopy'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send(nil, "_deepCopy", []), "__eq", [nil])]); @@ -1232,9 +1232,9 @@ smalltalk.UndefinedTest); smalltalk.addClass('PointTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testAccessing', +unescape('_testAccessing'), smalltalk.method({ -selector: 'testAccessing', +selector: unescape('testAccessing'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send((smalltalk.Point || Point), "_x_y_", [(3), (4)]), "_x", []), (3)]); @@ -1246,9 +1246,9 @@ return self;} smalltalk.PointTest); smalltalk.addMethod( -'_testAt', +unescape('_testAt'), smalltalk.method({ -selector: 'testAt', +selector: unescape('testAt'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send((3), "__at", [(4)]), smalltalk.send((smalltalk.Point || Point), "_x_y_", [(3), (4)])]); @@ -1257,9 +1257,9 @@ return self;} smalltalk.PointTest); smalltalk.addMethod( -'_testEgality', +unescape('_testEgality'), smalltalk.method({ -selector: 'testEgality', +selector: unescape('testEgality'), fn: function (){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(smalltalk.send((3), "__at", [(4)]), "__eq", [smalltalk.send((3), "__at", [(4)])])]); @@ -1269,9 +1269,9 @@ return self;} smalltalk.PointTest); smalltalk.addMethod( -'_testArithmetic', +unescape('_testArithmetic'), smalltalk.method({ -selector: 'testArithmetic', +selector: unescape('testArithmetic'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [((($receiver = smalltalk.send((3), "__at", [(4)])).klass === smalltalk.Number) ? $receiver *smalltalk.send((3), "__at", [(4)]) : smalltalk.send($receiver, "__star", [smalltalk.send((3), "__at", [(4)])])), smalltalk.send((smalltalk.Point || Point), "_x_y_", [(9), (16)])]); @@ -1286,9 +1286,9 @@ smalltalk.PointTest); smalltalk.addClass('RandomTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_textNext', +unescape('_textNext'), smalltalk.method({ -selector: 'textNext', +selector: unescape('textNext'), fn: function (){ var self=this; smalltalk.send((10000), "_timesRepeat_", [(function(){var current=nil; @@ -1302,9 +1302,9 @@ smalltalk.RandomTest); smalltalk.addClass('ClassBuilderTest', smalltalk.TestCase, ['builder', 'theClass'], 'Kernel-Tests'); smalltalk.addMethod( -'_setUp', +unescape('_setUp'), smalltalk.method({ -selector: 'setUp', +selector: unescape('setUp'), fn: function (){ var self=this; (self['@builder']=smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", [])); @@ -1313,9 +1313,9 @@ return self;} smalltalk.ClassBuilderTest); smalltalk.addMethod( -'_tearDown', +unescape('_tearDown'), smalltalk.method({ -selector: 'tearDown', +selector: unescape('tearDown'), fn: function (){ var self=this; (($receiver = self['@theClass']) != nil && $receiver != undefined) ? (function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@theClass']]);return (self['@theClass']=nil);})() : nil; @@ -1324,9 +1324,9 @@ return self;} smalltalk.ClassBuilderTest); smalltalk.addMethod( -'_testClassCopy', +unescape('_testClassCopy'), smalltalk.method({ -selector: 'testClassCopy', +selector: unescape('testClassCopy'), fn: function (){ var self=this; (self['@theClass']=smalltalk.send(self['@builder'], "_copyClass_named_", [(smalltalk.ObjectMock || ObjectMock), "ObjectMock2"])); @@ -1340,9 +1340,9 @@ return self;} smalltalk.ClassBuilderTest); smalltalk.addMethod( -'_testInstanceVariableNames', +unescape('_testInstanceVariableNames'), smalltalk.method({ -selector: 'testInstanceVariableNames', +selector: unescape('testInstanceVariableNames'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(self['@builder'], "_instanceVariableNamesFor_", [" hello world "]), ["hello", "world"]]); @@ -1354,9 +1354,9 @@ smalltalk.ClassBuilderTest); smalltalk.addClass('SetTest', smalltalk.TestCase, [], 'Kernel-Tests'); smalltalk.addMethod( -'_testUnicity', +unescape('_testUnicity'), smalltalk.method({ -selector: 'testUnicity', +selector: unescape('testUnicity'), fn: function (){ var self=this; var set=nil; @@ -1373,9 +1373,9 @@ return self;} smalltalk.SetTest); smalltalk.addMethod( -'_testAt', +unescape('_testAt'), smalltalk.method({ -selector: 'testAt', +selector: unescape('testAt'), fn: function (){ var self=this; smalltalk.send(self, "_should_raise_", [(function(){return smalltalk.send(smalltalk.send((smalltalk.Set || Set), "_new", []), "_at_put_", [(1), (2)]);}), (smalltalk.Error || Error)]); @@ -1384,9 +1384,9 @@ return self;} smalltalk.SetTest); smalltalk.addMethod( -'_testAddRemove', +unescape('_testAddRemove'), smalltalk.method({ -selector: 'testAddRemove', +selector: unescape('testAddRemove'), fn: function (){ var self=this; var set=nil; @@ -1403,9 +1403,9 @@ return self;} smalltalk.SetTest); smalltalk.addMethod( -'_testSize', +unescape('_testSize'), smalltalk.method({ -selector: 'testSize', +selector: unescape('testSize'), fn: function (){ var self=this; smalltalk.send(self, "_assert_equals_", [smalltalk.send(smalltalk.send((smalltalk.Set || Set), "_new", []), "_size", []), (0)]); diff --git a/js/Kernel-Transcript.js b/js/Kernel-Transcript.js index 9b7876f42..70b48dcb9 100644 --- a/js/Kernel-Transcript.js +++ b/js/Kernel-Transcript.js @@ -12,7 +12,7 @@ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_open", []); return self;}, args: [], -source: unescape('open%0D%0A%20%20%20%20self%20current%20open'), +source: unescape('open%0A%20%20%20%20self%20current%20open'), messageSends: ["open", "current"], referencedClasses: [] }), @@ -28,7 +28,7 @@ var self=this; smalltalk.send(self, "_shouldNotImplement", []); return self;}, args: [], -source: unescape('new%0D%0A%20%20%20%20self%20shouldNotImplement'), +source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'), messageSends: ["shouldNotImplement"], referencedClasses: [] }), @@ -44,7 +44,7 @@ var self=this; return self['@current']; return self;}, args: [], -source: unescape('current%0D%0A%20%20%20%20%5Ecurrent'), +source: unescape('current%0A%20%20%20%20%5Ecurrent'), messageSends: [], referencedClasses: [] }), @@ -60,7 +60,7 @@ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]); return self;}, args: ["anObject"], -source: unescape('show%3A%20anObject%0D%0A%20%20%20%20self%20current%20show%3A%20anObject'), +source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'), messageSends: ["show:", "current"], referencedClasses: [] }), @@ -76,7 +76,7 @@ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]); return self;}, args: [], -source: unescape('cr%0D%0A%20%20%20%20self%20current%20show%3A%20String%20cr'), +source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'), messageSends: ["show:", "current", "cr"], referencedClasses: ["String"] }), @@ -92,7 +92,7 @@ var self=this; smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []); return self;}, args: [], -source: unescape('clear%0D%0A%20%20%20%20self%20current%20clear'), +source: unescape('clear%0A%20%20%20%20self%20current%20clear'), messageSends: ["clear", "current"], referencedClasses: [] }), @@ -108,7 +108,7 @@ var self=this; (self['@current']=aTranscript); return self;}, args: ["aTranscript"], -source: unescape('register%3A%20aTranscript%0D%0A%09current%20%3A%3D%20aTranscript'), +source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'), messageSends: [], referencedClasses: [] }), @@ -126,7 +126,7 @@ var self=this; return self;}, args: [], -source: unescape('clear%0D%0A%09%22no%20op%22'), +source: unescape('clear%0A%09%22no%20op%22'), messageSends: [], referencedClasses: [] }), @@ -142,7 +142,7 @@ var self=this; return self;}, args: [], -source: unescape('cr%0D%0A%09%22no%20op%22'), +source: unescape('cr%0A%09%22no%20op%22'), messageSends: [], referencedClasses: [] }), @@ -160,7 +160,7 @@ var string=nil; console.log(String(string)); return self;}, args: ["anObject"], -source: unescape('show%3A%20anObject%0D%0A%09%7C%20string%20%7C%0D%0A%09string%20%3A%3D%20anObject%20asString.%0D%0A%09%3Cconsole.log%28String%28string%29%29%3E'), +source: unescape('show%3A%20anObject%0A%09%7C%20string%20%7C%0A%09string%20%3A%3D%20anObject%20asString.%0A%09%3Cconsole.log%28String%28string%29%29%3E'), messageSends: ["asString"], referencedClasses: [] }), @@ -193,7 +193,7 @@ var self=this; smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]); return self;}, args: [], -source: unescape('initialize%0D%0A%09Transcript%20register%3A%20self%20new'), +source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'), messageSends: ["register:", "new"], referencedClasses: ["Transcript"] }), diff --git a/js/SUnit.deploy.js b/js/SUnit.deploy.js index 5bf464f7b..4ad7b6e72 100644 --- a/js/SUnit.deploy.js +++ b/js/SUnit.deploy.js @@ -1,9 +1,9 @@ smalltalk.addPackage('SUnit', {}); smalltalk.addClass('TestCase', smalltalk.Object, ['testSelector'], 'SUnit'); smalltalk.addMethod( -'_setTestSelector_', +unescape('_setTestSelector_'), smalltalk.method({ -selector: 'setTestSelector:', +selector: unescape('setTestSelector%3A'), fn: function (aSelector){ var self=this; (self['@testSelector']=aSelector); @@ -12,9 +12,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_selector', +unescape('_selector'), smalltalk.method({ -selector: 'selector', +selector: unescape('selector'), fn: function (){ var self=this; return self['@testSelector']; @@ -23,9 +23,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_signalFailure_', +unescape('_signalFailure_'), smalltalk.method({ -selector: 'signalFailure:', +selector: unescape('signalFailure%3A'), fn: function (aString){ var self=this; (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.TestFailure || TestFailure), "_new", [])); @@ -34,9 +34,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_setUp', +unescape('_setUp'), smalltalk.method({ -selector: 'setUp', +selector: unescape('setUp'), fn: function (){ var self=this; @@ -45,9 +45,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_tearDown', +unescape('_tearDown'), smalltalk.method({ -selector: 'tearDown', +selector: unescape('tearDown'), fn: function (){ var self=this; @@ -56,9 +56,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_runCaseFor_', +unescape('_runCaseFor_'), smalltalk.method({ -selector: 'runCaseFor:', +selector: unescape('runCaseFor%3A'), fn: function (aTestResult){ var self=this; smalltalk.send(self, "_setUp", []); @@ -70,9 +70,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_performTestFor_', +unescape('_performTestFor_'), smalltalk.method({ -selector: 'performTestFor:', +selector: unescape('performTestFor%3A'), fn: function (aResult){ var self=this; smalltalk.send((function(){return smalltalk.send((function(){return smalltalk.send(self, "_perform_", [smalltalk.send(self, "_selector", [])]);}), "_on_do_", [(smalltalk.TestFailure || TestFailure), (function(ex){return smalltalk.send(aResult, "_addFailure_", [self]);})]);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){return smalltalk.send(aResult, "_addError_", [self]);})]); @@ -81,9 +81,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_assert_', +unescape('_assert_'), smalltalk.method({ -selector: 'assert:', +selector: unescape('assert%3A'), fn: function (aBoolean){ var self=this; smalltalk.send(self, "_assert_description_", [aBoolean, "Assertion failed"]); @@ -92,9 +92,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_deny_', +unescape('_deny_'), smalltalk.method({ -selector: 'deny:', +selector: unescape('deny%3A'), fn: function (aBoolean){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(aBoolean, "_not", [])]); @@ -103,9 +103,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_assert_equals_', +unescape('_assert_equals_'), smalltalk.method({ -selector: 'assert:equals:', +selector: unescape('assert%3Aequals%3A'), fn: function (expected, actual){ var self=this; return smalltalk.send(self, "_assert_description_", [smalltalk.send(expected, "__eq", [actual]), smalltalk.send(smalltalk.send(smalltalk.send("Expected: ", "__comma", [smalltalk.send(expected, "_asString", [])]), "__comma", [" but was: "]), "__comma", [smalltalk.send(actual, "_asString", [])])]); @@ -114,9 +114,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_assert_description_', +unescape('_assert_description_'), smalltalk.method({ -selector: 'assert:description:', +selector: unescape('assert%3Adescription%3A'), fn: function (aBoolean, aString){ var self=this; ((($receiver = aBoolean).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_signalFailure_", [aString]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_signalFailure_", [aString]);})])); @@ -125,9 +125,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_should_', +unescape('_should_'), smalltalk.method({ -selector: 'should:', +selector: unescape('should%3A'), fn: function (aBlock){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send(aBlock, "_value", [])]); @@ -136,9 +136,9 @@ return self;} smalltalk.TestCase); smalltalk.addMethod( -'_should_raise_', +unescape('_should_raise_'), smalltalk.method({ -selector: 'should:raise:', +selector: unescape('should%3Araise%3A'), fn: function (aBlock, anExceptionClass){ var self=this; smalltalk.send(self, "_assert_", [smalltalk.send((function(){smalltalk.send(aBlock, "_value", []);return false;}), "_on_do_", [anExceptionClass, (function(ex){return true;})])]); @@ -148,9 +148,9 @@ smalltalk.TestCase); smalltalk.addMethod( -'_testSelectors', +unescape('_testSelectors'), smalltalk.method({ -selector: 'testSelectors', +selector: unescape('testSelectors'), fn: function (){ var self=this; return smalltalk.send(smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_keys", []), "_select_", [(function(each){return smalltalk.send(each, "_match_", [unescape("%5Etest")]);})]); @@ -159,9 +159,9 @@ return self;} smalltalk.TestCase.klass); smalltalk.addMethod( -'_selector_', +unescape('_selector_'), smalltalk.method({ -selector: 'selector:', +selector: unescape('selector%3A'), fn: function (aSelector){ var self=this; return (function($rec){smalltalk.send($rec, "_setTestSelector_", [aSelector]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", [])); @@ -170,9 +170,9 @@ return self;} smalltalk.TestCase.klass); smalltalk.addMethod( -'_lookupHierarchyRoot', +unescape('_lookupHierarchyRoot'), smalltalk.method({ -selector: 'lookupHierarchyRoot', +selector: unescape('lookupHierarchyRoot'), fn: function (){ var self=this; return (smalltalk.TestCase || TestCase); @@ -181,9 +181,9 @@ return self;} smalltalk.TestCase.klass); smalltalk.addMethod( -'_allTestSelectors', +unescape('_allTestSelectors'), smalltalk.method({ -selector: 'allTestSelectors', +selector: unescape('allTestSelectors'), fn: function (){ var self=this; var selectors=nil; @@ -195,9 +195,9 @@ return self;} smalltalk.TestCase.klass); smalltalk.addMethod( -'_buildSuite', +unescape('_buildSuite'), smalltalk.method({ -selector: 'buildSuite', +selector: unescape('buildSuite'), fn: function (){ var self=this; return smalltalk.send(smalltalk.send(self, "_allTestSelectors", []), "_collect_", [(function(each){return smalltalk.send(self, "_selector_", [each]);})]); @@ -206,9 +206,9 @@ return self;} smalltalk.TestCase.klass); smalltalk.addMethod( -'_shouldInheritSelectors', +unescape('_shouldInheritSelectors'), smalltalk.method({ -selector: 'shouldInheritSelectors', +selector: unescape('shouldInheritSelectors'), fn: function (){ var self=this; return smalltalk.send(self, "_~_eq", [smalltalk.send(self, "_lookupHierarchyRoot", [])]); @@ -222,9 +222,9 @@ smalltalk.addClass('TestFailure', smalltalk.Error, [], 'SUnit'); smalltalk.addClass('TestResult', smalltalk.Object, ['timestamp', 'runs', 'errors', 'failures', 'total'], 'SUnit'); smalltalk.addMethod( -'_timestamp', +unescape('_timestamp'), smalltalk.method({ -selector: 'timestamp', +selector: unescape('timestamp'), fn: function (){ var self=this; return self['@timestamp']; @@ -233,9 +233,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_errors', +unescape('_errors'), smalltalk.method({ -selector: 'errors', +selector: unescape('errors'), fn: function (){ var self=this; return self['@errors']; @@ -244,9 +244,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_failures', +unescape('_failures'), smalltalk.method({ -selector: 'failures', +selector: unescape('failures'), fn: function (){ var self=this; return self['@failures']; @@ -255,9 +255,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_total', +unescape('_total'), smalltalk.method({ -selector: 'total', +selector: unescape('total'), fn: function (){ var self=this; return self['@total']; @@ -266,9 +266,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_total_', +unescape('_total_'), smalltalk.method({ -selector: 'total:', +selector: unescape('total%3A'), fn: function (aNumber){ var self=this; (self['@total']=aNumber); @@ -277,9 +277,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_addError_', +unescape('_addError_'), smalltalk.method({ -selector: 'addError:', +selector: unescape('addError%3A'), fn: function (anError){ var self=this; smalltalk.send(smalltalk.send(self, "_errors", []), "_add_", [anError]); @@ -288,9 +288,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_addFailure_', +unescape('_addFailure_'), smalltalk.method({ -selector: 'addFailure:', +selector: unescape('addFailure%3A'), fn: function (aFailure){ var self=this; smalltalk.send(smalltalk.send(self, "_failures", []), "_add_", [aFailure]); @@ -299,9 +299,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_runs', +unescape('_runs'), smalltalk.method({ -selector: 'runs', +selector: unescape('runs'), fn: function (){ var self=this; return self['@runs']; @@ -310,9 +310,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_increaseRuns', +unescape('_increaseRuns'), smalltalk.method({ -selector: 'increaseRuns', +selector: unescape('increaseRuns'), fn: function (){ var self=this; (self['@runs']=((($receiver = self['@runs']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))); @@ -321,9 +321,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_status', +unescape('_status'), smalltalk.method({ -selector: 'status', +selector: unescape('status'), fn: function (){ var self=this; return ((($receiver = smalltalk.send(smalltalk.send(self, "_errors", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_failures", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "success";})() : (function(){return "failure";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "success";}), (function(){return "failure";})]));})() : (function(){return "error";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_failures", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "success";})() : (function(){return "failure";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "success";}), (function(){return "failure";})]));}), (function(){return "error";})])); @@ -332,9 +332,9 @@ return self;} smalltalk.TestResult); smalltalk.addMethod( -'_initialize', +unescape('_initialize'), smalltalk.method({ -selector: 'initialize', +selector: unescape('initialize'), fn: function (){ var self=this; smalltalk.send(self, "_initialize", [], smalltalk.Object); diff --git a/st/Compiler.st b/st/Compiler.st index 1c512dd64..6ee2449bf 100755 --- a/st/Compiler.st +++ b/st/Compiler.st @@ -312,9 +312,9 @@ exportDefinitionOf: aClass on: aStream exportMethod: aMethod of: aClass on: aStream aStream nextPutAll: 'smalltalk.addMethod(';lf; - nextPutAll: '''', aMethod selector asSelector, ''',';lf; + nextPutAll: 'unescape(''', aMethod selector asSelector escaped, '''),';lf; nextPutAll: 'smalltalk.method({';lf; - nextPutAll: 'selector: ''', aMethod selector, ''',';lf; + nextPutAll: 'selector: unescape(''', aMethod selector escaped, '''),';lf; nextPutAll: 'fn: ', aMethod fn compiledSource;lf; nextPutAll: '}),';lf; nextPutAll: 'smalltalk.', (self classNameFor: aClass); @@ -1403,11 +1403,6 @@ Object subclass: #DoIt instanceVariableNames: '' category: 'Compiler'! -!DoIt methodsFor: ''! - -doIt ^[Compiler methodsFor: 'initialization'] value -! ! - Node subclass: #DynamicArrayNode instanceVariableNames: '' category: 'Compiler'! diff --git a/st/Kernel-Objects.st b/st/Kernel-Objects.st index 8b36bf94e..ee71961bf 100644 --- a/st/Kernel-Objects.st +++ b/st/Kernel-Objects.st @@ -648,11 +648,6 @@ Object subclass: #Number instanceVariableNames: '' category: 'Kernel-Objects'! -!Number methodsFor: ''! - - -! ! - !Number methodsFor: 'accessing'! identityHash