resin 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +52 -0
- data/amber/css/amber.css +519 -0
- data/amber/css/documentation.css +84 -0
- data/amber/css/profstef.css +75 -0
- data/amber/css/style.css +313 -0
- data/amber/images/amber.png +0 -0
- data/amber/images/amber_small.png +0 -0
- data/amber/images/off.png +0 -0
- data/amber/images/offHover.png +0 -0
- data/amber/images/presentation.png +0 -0
- data/amber/images/profstef.png +0 -0
- data/amber/images/sprite.png +0 -0
- data/amber/images/tinylogo.png +0 -0
- data/amber/images/twitterwall.png +0 -0
- data/amber/js/Additional-Examples.deploy.js +15 -0
- data/amber/js/Additional-Examples.js +21 -0
- data/amber/js/Benchfib.deploy.js +132 -0
- data/amber/js/Benchfib.js +167 -0
- data/amber/js/Canvas.deploy.js +1304 -0
- data/amber/js/Canvas.js +1885 -0
- data/amber/js/Compiler.deploy.js +1871 -0
- data/amber/js/Compiler.js +2616 -0
- data/amber/js/Documentation.deploy.js +961 -0
- data/amber/js/Documentation.js +1376 -0
- data/amber/js/Examples.deploy.js +53 -0
- data/amber/js/Examples.js +73 -0
- data/amber/js/IDE.deploy.js +3468 -0
- data/amber/js/IDE.js +4883 -0
- data/amber/js/Kernel-Announcements.deploy.js +107 -0
- data/amber/js/Kernel-Announcements.js +152 -0
- data/amber/js/Kernel-Classes.deploy.js +675 -0
- data/amber/js/Kernel-Classes.js +956 -0
- data/amber/js/Kernel-Collections.deploy.js +3273 -0
- data/amber/js/Kernel-Collections.js +4644 -0
- data/amber/js/Kernel-Exceptions.deploy.js +244 -0
- data/amber/js/Kernel-Exceptions.js +349 -0
- data/amber/js/Kernel-Methods.deploy.js +510 -0
- data/amber/js/Kernel-Methods.js +739 -0
- data/amber/js/Kernel-Objects.deploy.js +2698 -0
- data/amber/js/Kernel-Objects.js +3858 -0
- data/amber/js/Kernel-Tests.deploy.js +1419 -0
- data/amber/js/Kernel-Tests.js +1929 -0
- data/amber/js/Kernel-Transcript.deploy.js +142 -0
- data/amber/js/Kernel-Transcript.js +202 -0
- data/amber/js/SUnit.deploy.js +351 -0
- data/amber/js/SUnit.js +501 -0
- data/amber/js/amber.js +250 -0
- data/amber/js/boot.js +587 -0
- data/amber/js/compat.js +22 -0
- data/amber/js/init.js +8 -0
- data/amber/js/lib/CodeMirror/LICENSE +19 -0
- data/amber/js/lib/CodeMirror/amber.css +21 -0
- data/amber/js/lib/CodeMirror/codemirror.css +67 -0
- data/amber/js/lib/CodeMirror/codemirror.js +2144 -0
- data/amber/js/lib/CodeMirror/smalltalk.js +134 -0
- data/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
- data/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
- data/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
- data/amber/js/lib/jQuery/jquery.textarea.js +267 -0
- data/amber/js/lib/peg-0.6.2.min.js +2 -0
- data/amber/js/lib/showdown.js +419 -0
- data/amber/js/parser.js +4005 -0
- data/amber/js/parser.pegjs +220 -0
- data/amber/st/Benchfib.st +124 -0
- data/amber/st/Canvas.st +556 -0
- data/amber/st/Compiler.st +1425 -0
- data/amber/st/Documentation.st +758 -0
- data/amber/st/Examples.st +38 -0
- data/amber/st/IDE.st +2336 -0
- data/amber/st/Kernel-Announcements.st +61 -0
- data/amber/st/Kernel-Classes.st +403 -0
- data/amber/st/Kernel-Collections.st +1673 -0
- data/amber/st/Kernel-Exceptions.st +124 -0
- data/amber/st/Kernel-Methods.st +287 -0
- data/amber/st/Kernel-Objects.st +1489 -0
- data/amber/st/Kernel-Tests.st +892 -0
- data/amber/st/Kernel-Transcript.st +70 -0
- data/amber/st/SUnit.st +172 -0
- data/bin/runresin +12 -0
- data/lib/resin.rb +0 -0
- data/lib/resin/app/app.rb +121 -0
- data/lib/resin/app/views/index.haml +10 -0
- metadata +216 -0
@@ -0,0 +1,1871 @@
|
|
1
|
+
smalltalk.addPackage('Compiler', {});
|
2
|
+
smalltalk.addClass('ChunkParser', smalltalk.Object, ['stream'], 'Compiler');
|
3
|
+
smalltalk.addMethod(
|
4
|
+
unescape('_stream_'),
|
5
|
+
smalltalk.method({
|
6
|
+
selector: unescape('stream%3A'),
|
7
|
+
fn: function (aStream){
|
8
|
+
var self=this;
|
9
|
+
(self['@stream']=aStream);
|
10
|
+
return self;}
|
11
|
+
}),
|
12
|
+
smalltalk.ChunkParser);
|
13
|
+
|
14
|
+
smalltalk.addMethod(
|
15
|
+
unescape('_nextChunk'),
|
16
|
+
smalltalk.method({
|
17
|
+
selector: unescape('nextChunk'),
|
18
|
+
fn: function (){
|
19
|
+
var self=this;
|
20
|
+
try{var char_=nil;
|
21
|
+
var result=nil;
|
22
|
+
var chunk=nil;
|
23
|
+
(result=smalltalk.send("", "_writeStream", []));
|
24
|
+
(function(){while((function(){(char_=smalltalk.send(self['@stream'], "_next", []));return smalltalk.send(char_, "_notNil", []);})()) {(function(){((($receiver = smalltalk.send(char_, "__eq", [unescape("%21")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(self['@stream'], "_peek", []), "__eq", [unescape("%21")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_next", []);})() : (function(){return (function(){throw({name: 'stReturn', selector: '_nextChunk', fn: function(){return smalltalk.send(smalltalk.send(result, "_contents", []), "_trimBoth", [])}})})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_next", []);}), (function(){return (function(){throw({name: 'stReturn', selector: '_nextChunk', fn: function(){return smalltalk.send(smalltalk.send(result, "_contents", []), "_trimBoth", [])}})})();})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(self['@stream'], "_peek", []), "__eq", [unescape("%21")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_next", []);})() : (function(){return (function(){throw({name: 'stReturn', selector: '_nextChunk', fn: function(){return smalltalk.send(smalltalk.send(result, "_contents", []), "_trimBoth", [])}})})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_next", []);}), (function(){return (function(){throw({name: 'stReturn', selector: '_nextChunk', fn: function(){return smalltalk.send(smalltalk.send(result, "_contents", []), "_trimBoth", [])}})})();})]));})]));return smalltalk.send(result, "_nextPut_", [char_]);})()}})();
|
25
|
+
(function(){throw({name: 'stReturn', selector: '_nextChunk', fn: function(){return nil}})})();
|
26
|
+
return self;
|
27
|
+
} catch(e) {if(e.name === 'stReturn' && e.selector === '_nextChunk'){return e.fn()} throw(e)}}
|
28
|
+
}),
|
29
|
+
smalltalk.ChunkParser);
|
30
|
+
|
31
|
+
|
32
|
+
smalltalk.addMethod(
|
33
|
+
unescape('_on_'),
|
34
|
+
smalltalk.method({
|
35
|
+
selector: unescape('on%3A'),
|
36
|
+
fn: function (aStream){
|
37
|
+
var self=this;
|
38
|
+
return smalltalk.send(smalltalk.send(self, "_new", []), "_stream_", [aStream]);
|
39
|
+
return self;}
|
40
|
+
}),
|
41
|
+
smalltalk.ChunkParser.klass);
|
42
|
+
|
43
|
+
|
44
|
+
smalltalk.addClass('Importer', smalltalk.Object, [], 'Compiler');
|
45
|
+
smalltalk.addMethod(
|
46
|
+
unescape('_import_'),
|
47
|
+
smalltalk.method({
|
48
|
+
selector: unescape('import%3A'),
|
49
|
+
fn: function (aStream){
|
50
|
+
var self=this;
|
51
|
+
var chunk=nil;
|
52
|
+
var result=nil;
|
53
|
+
var parser=nil;
|
54
|
+
var lastEmpty=nil;
|
55
|
+
(parser=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_on_", [aStream]));
|
56
|
+
(lastEmpty=false);
|
57
|
+
(function(){while(!(function(){(chunk=smalltalk.send(parser, "_nextChunk", []));return smalltalk.send(chunk, "_isNil", []);})()) {(function(){return ((($receiver = smalltalk.send(chunk, "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (lastEmpty=true);})() : (function(){(result=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_loadExpression_", [chunk]));return ((($receiver = lastEmpty).klass === smalltalk.Boolean) ? ($receiver ? (function(){(lastEmpty=false);return smalltalk.send(result, "_scanFrom_", [parser]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(lastEmpty=false);return smalltalk.send(result, "_scanFrom_", [parser]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (lastEmpty=true);}), (function(){(result=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_loadExpression_", [chunk]));return ((($receiver = lastEmpty).klass === smalltalk.Boolean) ? ($receiver ? (function(){(lastEmpty=false);return smalltalk.send(result, "_scanFrom_", [parser]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(lastEmpty=false);return smalltalk.send(result, "_scanFrom_", [parser]);})]));})]));})()}})();
|
58
|
+
return self;}
|
59
|
+
}),
|
60
|
+
smalltalk.Importer);
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
smalltalk.addClass('Exporter', smalltalk.Object, [], 'Compiler');
|
65
|
+
smalltalk.addMethod(
|
66
|
+
unescape('_exportDefinitionOf_on_'),
|
67
|
+
smalltalk.method({
|
68
|
+
selector: unescape('exportDefinitionOf%3Aon%3A'),
|
69
|
+
fn: function (aClass, aStream){
|
70
|
+
var self=this;
|
71
|
+
(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);
|
72
|
+
smalltalk.send(smalltalk.send(aClass, "_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%20")]);})]);
|
73
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%5D%2C%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(aClass, "_category", []), "__comma", [unescape("%27")])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);})(aStream);
|
74
|
+
((($receiver = smalltalk.send(smalltalk.send(aClass, "_comment", []), "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", ["smalltalk."]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [aClass])]);smalltalk.send($rec, "_nextPutAll_", [unescape(".comment%3D")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aClass, "_comment", []), "_escaped", [])]), "__comma", [unescape("%27%29")])]);})(aStream);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", ["smalltalk."]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_classNameFor_", [aClass])]);smalltalk.send($rec, "_nextPutAll_", [unescape(".comment%3D")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("unescape%28%27"), "__comma", [smalltalk.send(smalltalk.send(aClass, "_comment", []), "_escaped", [])]), "__comma", [unescape("%27%29")])]);})(aStream);})]));
|
75
|
+
smalltalk.send(aStream, "_lf", []);
|
76
|
+
return self;}
|
77
|
+
}),
|
78
|
+
smalltalk.Exporter);
|
79
|
+
|
80
|
+
smalltalk.addMethod(
|
81
|
+
unescape('_exportMetaDefinitionOf_on_'),
|
82
|
+
smalltalk.method({
|
83
|
+
selector: unescape('exportMetaDefinitionOf%3Aon%3A'),
|
84
|
+
fn: function (aClass, aStream){
|
85
|
+
var self=this;
|
86
|
+
((($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", [])])]);})]));
|
87
|
+
return self;}
|
88
|
+
}),
|
89
|
+
smalltalk.Exporter);
|
90
|
+
|
91
|
+
smalltalk.addMethod(
|
92
|
+
unescape('_exportMethodsOf_on_'),
|
93
|
+
smalltalk.method({
|
94
|
+
selector: unescape('exportMethodsOf%3Aon%3A'),
|
95
|
+
fn: function (aClass, aStream){
|
96
|
+
var self=this;
|
97
|
+
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]);})]));})]);
|
98
|
+
smalltalk.send(aStream, "_lf", []);
|
99
|
+
return self;}
|
100
|
+
}),
|
101
|
+
smalltalk.Exporter);
|
102
|
+
|
103
|
+
smalltalk.addMethod(
|
104
|
+
unescape('_classNameFor_'),
|
105
|
+
smalltalk.method({
|
106
|
+
selector: unescape('classNameFor%3A'),
|
107
|
+
fn: function (aClass){
|
108
|
+
var self=this;
|
109
|
+
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", []);})]));})]));
|
110
|
+
return self;}
|
111
|
+
}),
|
112
|
+
smalltalk.Exporter);
|
113
|
+
|
114
|
+
smalltalk.addMethod(
|
115
|
+
unescape('_exportMethod_of_on_'),
|
116
|
+
smalltalk.method({
|
117
|
+
selector: unescape('exportMethod%3Aof%3Aon%3A'),
|
118
|
+
fn: function (aMethod, aClass, aStream){
|
119
|
+
var self=this;
|
120
|
+
(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);
|
121
|
+
(function($rec){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);
|
122
|
+
return self;}
|
123
|
+
}),
|
124
|
+
smalltalk.Exporter);
|
125
|
+
|
126
|
+
smalltalk.addMethod(
|
127
|
+
unescape('_exportPackage_'),
|
128
|
+
smalltalk.method({
|
129
|
+
selector: unescape('exportPackage%3A'),
|
130
|
+
fn: function (packageName){
|
131
|
+
var self=this;
|
132
|
+
var package=nil;
|
133
|
+
return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){(package=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [packageName]));smalltalk.send(self, "_exportPackageDefinitionOf_on_", [package, stream]);smalltalk.send(smalltalk.send(package, "_classes", []), "_do_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(self, "_exportClass_", [each])]);})]);return smalltalk.send(self, "_exportPackageExtensionsOf_on_", [package, stream]);})]);
|
134
|
+
return self;}
|
135
|
+
}),
|
136
|
+
smalltalk.Exporter);
|
137
|
+
|
138
|
+
smalltalk.addMethod(
|
139
|
+
unescape('_exportAll'),
|
140
|
+
smalltalk.method({
|
141
|
+
selector: unescape('exportAll'),
|
142
|
+
fn: function (){
|
143
|
+
var self=this;
|
144
|
+
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", [])])]);})]);})]);
|
145
|
+
return self;}
|
146
|
+
}),
|
147
|
+
smalltalk.Exporter);
|
148
|
+
|
149
|
+
smalltalk.addMethod(
|
150
|
+
unescape('_exportClass_'),
|
151
|
+
smalltalk.method({
|
152
|
+
selector: unescape('exportClass%3A'),
|
153
|
+
fn: function (aClass){
|
154
|
+
var self=this;
|
155
|
+
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]);})]);
|
156
|
+
return self;}
|
157
|
+
}),
|
158
|
+
smalltalk.Exporter);
|
159
|
+
|
160
|
+
smalltalk.addMethod(
|
161
|
+
unescape('_exportPackageExtensionsOf_on_'),
|
162
|
+
smalltalk.method({
|
163
|
+
selector: unescape('exportPackageExtensionsOf%3Aon%3A'),
|
164
|
+
fn: function (package, aStream){
|
165
|
+
var self=this;
|
166
|
+
var name=nil;
|
167
|
+
(name=smalltalk.send(package, "_name", []));
|
168
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(method){return ((($receiver = smalltalk.send(smalltalk.send(method, "_category", []), "__eq", [smalltalk.send(unescape("*"), "__comma", [name])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_exportMethod_of_on_", [method, each, aStream]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_exportMethod_of_on_", [method, each, aStream]);})]));})]);})]);
|
169
|
+
return self;}
|
170
|
+
}),
|
171
|
+
smalltalk.Exporter);
|
172
|
+
|
173
|
+
smalltalk.addMethod(
|
174
|
+
unescape('_exportPackageDefinitionOf_on_'),
|
175
|
+
smalltalk.method({
|
176
|
+
selector: unescape('exportPackageDefinitionOf%3Aon%3A'),
|
177
|
+
fn: function (package, aStream){
|
178
|
+
var self=this;
|
179
|
+
(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);
|
180
|
+
smalltalk.send(aStream, "_lf", []);
|
181
|
+
return self;}
|
182
|
+
}),
|
183
|
+
smalltalk.Exporter);
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
smalltalk.addClass('ChunkExporter', smalltalk.Exporter, [], 'Compiler');
|
188
|
+
smalltalk.addMethod(
|
189
|
+
unescape('_exportDefinitionOf_on_'),
|
190
|
+
smalltalk.method({
|
191
|
+
selector: unescape('exportDefinitionOf%3Aon%3A'),
|
192
|
+
fn: function (aClass, aStream){
|
193
|
+
var self=this;
|
194
|
+
(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);
|
195
|
+
smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(aStream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [" "]);})]);
|
196
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%27")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%09category%3A%20%27"), "__comma", [smalltalk.send(aClass, "_category", [])]), "__comma", [unescape("%27%21")])]);return smalltalk.send($rec, "_lf", []);})(aStream);
|
197
|
+
((($receiver = smalltalk.send(smalltalk.send(aClass, "_comment", []), "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%21"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])]), "__comma", [unescape("%20commentStamp%21")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_chunkEscape_", [smalltalk.send(aClass, "_comment", [])]), "__comma", [unescape("%21")])]);return smalltalk.send($rec, "_lf", []);})(aStream);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%21"), "__comma", [smalltalk.send(self, "_classNameFor_", [aClass])]), "__comma", [unescape("%20commentStamp%21")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_chunkEscape_", [smalltalk.send(aClass, "_comment", [])]), "__comma", [unescape("%21")])]);return smalltalk.send($rec, "_lf", []);})(aStream);})]));
|
198
|
+
smalltalk.send(aStream, "_lf", []);
|
199
|
+
return self;}
|
200
|
+
}),
|
201
|
+
smalltalk.ChunkExporter);
|
202
|
+
|
203
|
+
smalltalk.addMethod(
|
204
|
+
unescape('_exportMethod_of_on_'),
|
205
|
+
smalltalk.method({
|
206
|
+
selector: unescape('exportMethod%3Aof%3Aon%3A'),
|
207
|
+
fn: function (aMethod, aClass, aStream){
|
208
|
+
var self=this;
|
209
|
+
(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);
|
210
|
+
return self;}
|
211
|
+
}),
|
212
|
+
smalltalk.ChunkExporter);
|
213
|
+
|
214
|
+
smalltalk.addMethod(
|
215
|
+
unescape('_exportMethodsOf_on_'),
|
216
|
+
smalltalk.method({
|
217
|
+
selector: unescape('exportMethodsOf%3Aon%3A'),
|
218
|
+
fn: function (aClass, aStream){
|
219
|
+
var self=this;
|
220
|
+
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]);})]));})]);
|
221
|
+
return self;}
|
222
|
+
}),
|
223
|
+
smalltalk.ChunkExporter);
|
224
|
+
|
225
|
+
smalltalk.addMethod(
|
226
|
+
unescape('_exportMetaDefinitionOf_on_'),
|
227
|
+
smalltalk.method({
|
228
|
+
selector: unescape('exportMetaDefinitionOf%3Aon%3A'),
|
229
|
+
fn: function (aClass, aStream){
|
230
|
+
var self=this;
|
231
|
+
((($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);})]));
|
232
|
+
return self;}
|
233
|
+
}),
|
234
|
+
smalltalk.ChunkExporter);
|
235
|
+
|
236
|
+
smalltalk.addMethod(
|
237
|
+
unescape('_classNameFor_'),
|
238
|
+
smalltalk.method({
|
239
|
+
selector: unescape('classNameFor%3A'),
|
240
|
+
fn: function (aClass){
|
241
|
+
var self=this;
|
242
|
+
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", []);})]));})]));
|
243
|
+
return self;}
|
244
|
+
}),
|
245
|
+
smalltalk.ChunkExporter);
|
246
|
+
|
247
|
+
smalltalk.addMethod(
|
248
|
+
unescape('_chunkEscape_'),
|
249
|
+
smalltalk.method({
|
250
|
+
selector: unescape('chunkEscape%3A'),
|
251
|
+
fn: function (aString){
|
252
|
+
var self=this;
|
253
|
+
return smalltalk.send(smalltalk.send(aString, "_replace_with_", [unescape("%21"), unescape("%21%21")]), "_trimBoth", []);
|
254
|
+
return self;}
|
255
|
+
}),
|
256
|
+
smalltalk.ChunkExporter);
|
257
|
+
|
258
|
+
smalltalk.addMethod(
|
259
|
+
unescape('_exportMethods_category_of_on_'),
|
260
|
+
smalltalk.method({
|
261
|
+
selector: unescape('exportMethods%3Acategory%3Aof%3Aon%3A'),
|
262
|
+
fn: function (methods, category, aClass, aStream){
|
263
|
+
var self=this;
|
264
|
+
(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);
|
265
|
+
smalltalk.send(methods, "_do_", [(function(each){return smalltalk.send(self, "_exportMethod_of_on_", [each, aClass, aStream]);})]);
|
266
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%20%21")]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_lf", []);})(aStream);
|
267
|
+
return self;}
|
268
|
+
}),
|
269
|
+
smalltalk.ChunkExporter);
|
270
|
+
|
271
|
+
smalltalk.addMethod(
|
272
|
+
unescape('_exportPackageExtensionsOf_on_'),
|
273
|
+
smalltalk.method({
|
274
|
+
selector: unescape('exportPackageExtensionsOf%3Aon%3A'),
|
275
|
+
fn: function (package, aStream){
|
276
|
+
var self=this;
|
277
|
+
var name=nil;
|
278
|
+
(name=smalltalk.send(package, "_name", []));
|
279
|
+
smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_collect_", [(function(each){return smalltalk.send(each, "_class", []);})])]), "_do_", [(function(each){return smalltalk.send(each, "_protocolsDo_", [(function(category, methods){return ((($receiver = smalltalk.send(category, "__eq", [smalltalk.send(unescape("*"), "__comma", [name])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_exportMethods_category_of_on_", [methods, category, each, aStream]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_exportMethods_category_of_on_", [methods, category, each, aStream]);})]));})]);})]);
|
280
|
+
return self;}
|
281
|
+
}),
|
282
|
+
smalltalk.ChunkExporter);
|
283
|
+
|
284
|
+
smalltalk.addMethod(
|
285
|
+
unescape('_exportPackageDefinitionOf_on_'),
|
286
|
+
smalltalk.method({
|
287
|
+
selector: unescape('exportPackageDefinitionOf%3Aon%3A'),
|
288
|
+
fn: function (package, aStream){
|
289
|
+
var self=this;
|
290
|
+
(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);
|
291
|
+
return self;}
|
292
|
+
}),
|
293
|
+
smalltalk.ChunkExporter);
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
smalltalk.addClass('StrippedExporter', smalltalk.Exporter, [], 'Compiler');
|
298
|
+
smalltalk.addMethod(
|
299
|
+
unescape('_exportDefinitionOf_on_'),
|
300
|
+
smalltalk.method({
|
301
|
+
selector: unescape('exportDefinitionOf%3Aon%3A'),
|
302
|
+
fn: function (aClass, aStream){
|
303
|
+
var self=this;
|
304
|
+
(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);
|
305
|
+
smalltalk.send(smalltalk.send(aClass, "_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%20")]);})]);
|
306
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%5D%2C%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(aClass, "_category", []), "__comma", [unescape("%27")])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%29%3B")]);})(aStream);
|
307
|
+
smalltalk.send(aStream, "_lf", []);
|
308
|
+
return self;}
|
309
|
+
}),
|
310
|
+
smalltalk.StrippedExporter);
|
311
|
+
|
312
|
+
smalltalk.addMethod(
|
313
|
+
unescape('_exportMethod_of_on_'),
|
314
|
+
smalltalk.method({
|
315
|
+
selector: unescape('exportMethod%3Aof%3Aon%3A'),
|
316
|
+
fn: function (aMethod, aClass, aStream){
|
317
|
+
var self=this;
|
318
|
+
(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);
|
319
|
+
return self;}
|
320
|
+
}),
|
321
|
+
smalltalk.StrippedExporter);
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
smalltalk.addClass('Node', smalltalk.Object, ['nodes'], 'Compiler');
|
326
|
+
smalltalk.addMethod(
|
327
|
+
unescape('_nodes'),
|
328
|
+
smalltalk.method({
|
329
|
+
selector: unescape('nodes'),
|
330
|
+
fn: function (){
|
331
|
+
var self=this;
|
332
|
+
return (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return (self['@nodes']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
|
333
|
+
return self;}
|
334
|
+
}),
|
335
|
+
smalltalk.Node);
|
336
|
+
|
337
|
+
smalltalk.addMethod(
|
338
|
+
unescape('_nodes_'),
|
339
|
+
smalltalk.method({
|
340
|
+
selector: unescape('nodes%3A'),
|
341
|
+
fn: function (aCollection){
|
342
|
+
var self=this;
|
343
|
+
(self['@nodes']=aCollection);
|
344
|
+
return self;}
|
345
|
+
}),
|
346
|
+
smalltalk.Node);
|
347
|
+
|
348
|
+
smalltalk.addMethod(
|
349
|
+
unescape('_addNode_'),
|
350
|
+
smalltalk.method({
|
351
|
+
selector: unescape('addNode%3A'),
|
352
|
+
fn: function (aNode){
|
353
|
+
var self=this;
|
354
|
+
smalltalk.send(smalltalk.send(self, "_nodes", []), "_add_", [aNode]);
|
355
|
+
return self;}
|
356
|
+
}),
|
357
|
+
smalltalk.Node);
|
358
|
+
|
359
|
+
smalltalk.addMethod(
|
360
|
+
unescape('_accept_'),
|
361
|
+
smalltalk.method({
|
362
|
+
selector: unescape('accept%3A'),
|
363
|
+
fn: function (aVisitor){
|
364
|
+
var self=this;
|
365
|
+
smalltalk.send(aVisitor, "_visitNode_", [self]);
|
366
|
+
return self;}
|
367
|
+
}),
|
368
|
+
smalltalk.Node);
|
369
|
+
|
370
|
+
smalltalk.addMethod(
|
371
|
+
unescape('_isValueNode'),
|
372
|
+
smalltalk.method({
|
373
|
+
selector: unescape('isValueNode'),
|
374
|
+
fn: function (){
|
375
|
+
var self=this;
|
376
|
+
return false;
|
377
|
+
return self;}
|
378
|
+
}),
|
379
|
+
smalltalk.Node);
|
380
|
+
|
381
|
+
smalltalk.addMethod(
|
382
|
+
unescape('_isBlockNode'),
|
383
|
+
smalltalk.method({
|
384
|
+
selector: unescape('isBlockNode'),
|
385
|
+
fn: function (){
|
386
|
+
var self=this;
|
387
|
+
return false;
|
388
|
+
return self;}
|
389
|
+
}),
|
390
|
+
smalltalk.Node);
|
391
|
+
|
392
|
+
smalltalk.addMethod(
|
393
|
+
unescape('_isBlockSequenceNode'),
|
394
|
+
smalltalk.method({
|
395
|
+
selector: unescape('isBlockSequenceNode'),
|
396
|
+
fn: function (){
|
397
|
+
var self=this;
|
398
|
+
return false;
|
399
|
+
return self;}
|
400
|
+
}),
|
401
|
+
smalltalk.Node);
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
smalltalk.addClass('MethodNode', smalltalk.Node, ['selector', 'arguments', 'source'], 'Compiler');
|
406
|
+
smalltalk.addMethod(
|
407
|
+
unescape('_selector'),
|
408
|
+
smalltalk.method({
|
409
|
+
selector: unescape('selector'),
|
410
|
+
fn: function (){
|
411
|
+
var self=this;
|
412
|
+
return self['@selector'];
|
413
|
+
return self;}
|
414
|
+
}),
|
415
|
+
smalltalk.MethodNode);
|
416
|
+
|
417
|
+
smalltalk.addMethod(
|
418
|
+
unescape('_selector_'),
|
419
|
+
smalltalk.method({
|
420
|
+
selector: unescape('selector%3A'),
|
421
|
+
fn: function (aString){
|
422
|
+
var self=this;
|
423
|
+
(self['@selector']=aString);
|
424
|
+
return self;}
|
425
|
+
}),
|
426
|
+
smalltalk.MethodNode);
|
427
|
+
|
428
|
+
smalltalk.addMethod(
|
429
|
+
unescape('_arguments'),
|
430
|
+
smalltalk.method({
|
431
|
+
selector: unescape('arguments'),
|
432
|
+
fn: function (){
|
433
|
+
var self=this;
|
434
|
+
return (($receiver = self['@arguments']) == nil || $receiver == undefined) ? (function(){return [];})() : $receiver;
|
435
|
+
return self;}
|
436
|
+
}),
|
437
|
+
smalltalk.MethodNode);
|
438
|
+
|
439
|
+
smalltalk.addMethod(
|
440
|
+
unescape('_arguments_'),
|
441
|
+
smalltalk.method({
|
442
|
+
selector: unescape('arguments%3A'),
|
443
|
+
fn: function (aCollection){
|
444
|
+
var self=this;
|
445
|
+
(self['@arguments']=aCollection);
|
446
|
+
return self;}
|
447
|
+
}),
|
448
|
+
smalltalk.MethodNode);
|
449
|
+
|
450
|
+
smalltalk.addMethod(
|
451
|
+
unescape('_source'),
|
452
|
+
smalltalk.method({
|
453
|
+
selector: unescape('source'),
|
454
|
+
fn: function (){
|
455
|
+
var self=this;
|
456
|
+
return self['@source'];
|
457
|
+
return self;}
|
458
|
+
}),
|
459
|
+
smalltalk.MethodNode);
|
460
|
+
|
461
|
+
smalltalk.addMethod(
|
462
|
+
unescape('_source_'),
|
463
|
+
smalltalk.method({
|
464
|
+
selector: unescape('source%3A'),
|
465
|
+
fn: function (aString){
|
466
|
+
var self=this;
|
467
|
+
(self['@source']=aString);
|
468
|
+
return self;}
|
469
|
+
}),
|
470
|
+
smalltalk.MethodNode);
|
471
|
+
|
472
|
+
smalltalk.addMethod(
|
473
|
+
unescape('_accept_'),
|
474
|
+
smalltalk.method({
|
475
|
+
selector: unescape('accept%3A'),
|
476
|
+
fn: function (aVisitor){
|
477
|
+
var self=this;
|
478
|
+
smalltalk.send(aVisitor, "_visitMethodNode_", [self]);
|
479
|
+
return self;}
|
480
|
+
}),
|
481
|
+
smalltalk.MethodNode);
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
smalltalk.addClass('SendNode', smalltalk.Node, ['selector', 'arguments', 'receiver'], 'Compiler');
|
486
|
+
smalltalk.addMethod(
|
487
|
+
unescape('_selector'),
|
488
|
+
smalltalk.method({
|
489
|
+
selector: unescape('selector'),
|
490
|
+
fn: function (){
|
491
|
+
var self=this;
|
492
|
+
return self['@selector'];
|
493
|
+
return self;}
|
494
|
+
}),
|
495
|
+
smalltalk.SendNode);
|
496
|
+
|
497
|
+
smalltalk.addMethod(
|
498
|
+
unescape('_selector_'),
|
499
|
+
smalltalk.method({
|
500
|
+
selector: unescape('selector%3A'),
|
501
|
+
fn: function (aString){
|
502
|
+
var self=this;
|
503
|
+
(self['@selector']=aString);
|
504
|
+
return self;}
|
505
|
+
}),
|
506
|
+
smalltalk.SendNode);
|
507
|
+
|
508
|
+
smalltalk.addMethod(
|
509
|
+
unescape('_arguments'),
|
510
|
+
smalltalk.method({
|
511
|
+
selector: unescape('arguments'),
|
512
|
+
fn: function (){
|
513
|
+
var self=this;
|
514
|
+
return (($receiver = self['@arguments']) == nil || $receiver == undefined) ? (function(){return (self['@arguments']=[]);})() : $receiver;
|
515
|
+
return self;}
|
516
|
+
}),
|
517
|
+
smalltalk.SendNode);
|
518
|
+
|
519
|
+
smalltalk.addMethod(
|
520
|
+
unescape('_arguments_'),
|
521
|
+
smalltalk.method({
|
522
|
+
selector: unescape('arguments%3A'),
|
523
|
+
fn: function (aCollection){
|
524
|
+
var self=this;
|
525
|
+
(self['@arguments']=aCollection);
|
526
|
+
return self;}
|
527
|
+
}),
|
528
|
+
smalltalk.SendNode);
|
529
|
+
|
530
|
+
smalltalk.addMethod(
|
531
|
+
unescape('_receiver'),
|
532
|
+
smalltalk.method({
|
533
|
+
selector: unescape('receiver'),
|
534
|
+
fn: function (){
|
535
|
+
var self=this;
|
536
|
+
return self['@receiver'];
|
537
|
+
return self;}
|
538
|
+
}),
|
539
|
+
smalltalk.SendNode);
|
540
|
+
|
541
|
+
smalltalk.addMethod(
|
542
|
+
unescape('_receiver_'),
|
543
|
+
smalltalk.method({
|
544
|
+
selector: unescape('receiver%3A'),
|
545
|
+
fn: function (aNode){
|
546
|
+
var self=this;
|
547
|
+
(self['@receiver']=aNode);
|
548
|
+
return self;}
|
549
|
+
}),
|
550
|
+
smalltalk.SendNode);
|
551
|
+
|
552
|
+
smalltalk.addMethod(
|
553
|
+
unescape('_valueForReceiver_'),
|
554
|
+
smalltalk.method({
|
555
|
+
selector: unescape('valueForReceiver%3A'),
|
556
|
+
fn: function (anObject){
|
557
|
+
var self=this;
|
558
|
+
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", []));
|
559
|
+
return self;}
|
560
|
+
}),
|
561
|
+
smalltalk.SendNode);
|
562
|
+
|
563
|
+
smalltalk.addMethod(
|
564
|
+
unescape('_cascadeNodeWithMessages_'),
|
565
|
+
smalltalk.method({
|
566
|
+
selector: unescape('cascadeNodeWithMessages%3A'),
|
567
|
+
fn: function (aCollection){
|
568
|
+
var self=this;
|
569
|
+
var first=nil;
|
570
|
+
(first=(function($rec){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", [])));
|
571
|
+
return (function($rec){smalltalk.send($rec, "_receiver_", [smalltalk.send(self, "_receiver", [])]);smalltalk.send($rec, "_nodes_", [smalltalk.send(smalltalk.send((smalltalk.Array || Array), "_with_", [first]), "__comma", [aCollection])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.CascadeNode || CascadeNode), "_new", []));
|
572
|
+
return self;}
|
573
|
+
}),
|
574
|
+
smalltalk.SendNode);
|
575
|
+
|
576
|
+
smalltalk.addMethod(
|
577
|
+
unescape('_accept_'),
|
578
|
+
smalltalk.method({
|
579
|
+
selector: unescape('accept%3A'),
|
580
|
+
fn: function (aVisitor){
|
581
|
+
var self=this;
|
582
|
+
smalltalk.send(aVisitor, "_visitSendNode_", [self]);
|
583
|
+
return self;}
|
584
|
+
}),
|
585
|
+
smalltalk.SendNode);
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
smalltalk.addClass('CascadeNode', smalltalk.Node, ['receiver'], 'Compiler');
|
590
|
+
smalltalk.addMethod(
|
591
|
+
unescape('_receiver'),
|
592
|
+
smalltalk.method({
|
593
|
+
selector: unescape('receiver'),
|
594
|
+
fn: function (){
|
595
|
+
var self=this;
|
596
|
+
return self['@receiver'];
|
597
|
+
return self;}
|
598
|
+
}),
|
599
|
+
smalltalk.CascadeNode);
|
600
|
+
|
601
|
+
smalltalk.addMethod(
|
602
|
+
unescape('_receiver_'),
|
603
|
+
smalltalk.method({
|
604
|
+
selector: unescape('receiver%3A'),
|
605
|
+
fn: function (aNode){
|
606
|
+
var self=this;
|
607
|
+
(self['@receiver']=aNode);
|
608
|
+
return self;}
|
609
|
+
}),
|
610
|
+
smalltalk.CascadeNode);
|
611
|
+
|
612
|
+
smalltalk.addMethod(
|
613
|
+
unescape('_accept_'),
|
614
|
+
smalltalk.method({
|
615
|
+
selector: unescape('accept%3A'),
|
616
|
+
fn: function (aVisitor){
|
617
|
+
var self=this;
|
618
|
+
smalltalk.send(aVisitor, "_visitCascadeNode_", [self]);
|
619
|
+
return self;}
|
620
|
+
}),
|
621
|
+
smalltalk.CascadeNode);
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
smalltalk.addClass('AssignmentNode', smalltalk.Node, ['left', 'right'], 'Compiler');
|
626
|
+
smalltalk.addMethod(
|
627
|
+
unescape('_left'),
|
628
|
+
smalltalk.method({
|
629
|
+
selector: unescape('left'),
|
630
|
+
fn: function (){
|
631
|
+
var self=this;
|
632
|
+
return self['@left'];
|
633
|
+
return self;}
|
634
|
+
}),
|
635
|
+
smalltalk.AssignmentNode);
|
636
|
+
|
637
|
+
smalltalk.addMethod(
|
638
|
+
unescape('_left_'),
|
639
|
+
smalltalk.method({
|
640
|
+
selector: unescape('left%3A'),
|
641
|
+
fn: function (aNode){
|
642
|
+
var self=this;
|
643
|
+
(self['@left']=aNode);
|
644
|
+
smalltalk.send(self['@left'], "_assigned_", [true]);
|
645
|
+
return self;}
|
646
|
+
}),
|
647
|
+
smalltalk.AssignmentNode);
|
648
|
+
|
649
|
+
smalltalk.addMethod(
|
650
|
+
unescape('_right'),
|
651
|
+
smalltalk.method({
|
652
|
+
selector: unescape('right'),
|
653
|
+
fn: function (){
|
654
|
+
var self=this;
|
655
|
+
return self['@right'];
|
656
|
+
return self;}
|
657
|
+
}),
|
658
|
+
smalltalk.AssignmentNode);
|
659
|
+
|
660
|
+
smalltalk.addMethod(
|
661
|
+
unescape('_right_'),
|
662
|
+
smalltalk.method({
|
663
|
+
selector: unescape('right%3A'),
|
664
|
+
fn: function (aNode){
|
665
|
+
var self=this;
|
666
|
+
(self['@right']=aNode);
|
667
|
+
return self;}
|
668
|
+
}),
|
669
|
+
smalltalk.AssignmentNode);
|
670
|
+
|
671
|
+
smalltalk.addMethod(
|
672
|
+
unescape('_accept_'),
|
673
|
+
smalltalk.method({
|
674
|
+
selector: unescape('accept%3A'),
|
675
|
+
fn: function (aVisitor){
|
676
|
+
var self=this;
|
677
|
+
smalltalk.send(aVisitor, "_visitAssignmentNode_", [self]);
|
678
|
+
return self;}
|
679
|
+
}),
|
680
|
+
smalltalk.AssignmentNode);
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
smalltalk.addClass('BlockNode', smalltalk.Node, ['parameters', 'inlined'], 'Compiler');
|
685
|
+
smalltalk.addMethod(
|
686
|
+
unescape('_parameters'),
|
687
|
+
smalltalk.method({
|
688
|
+
selector: unescape('parameters'),
|
689
|
+
fn: function (){
|
690
|
+
var self=this;
|
691
|
+
return (($receiver = self['@parameters']) == nil || $receiver == undefined) ? (function(){return (self['@parameters']=smalltalk.send((smalltalk.Array || Array), "_new", []));})() : $receiver;
|
692
|
+
return self;}
|
693
|
+
}),
|
694
|
+
smalltalk.BlockNode);
|
695
|
+
|
696
|
+
smalltalk.addMethod(
|
697
|
+
unescape('_parameters_'),
|
698
|
+
smalltalk.method({
|
699
|
+
selector: unescape('parameters%3A'),
|
700
|
+
fn: function (aCollection){
|
701
|
+
var self=this;
|
702
|
+
(self['@parameters']=aCollection);
|
703
|
+
return self;}
|
704
|
+
}),
|
705
|
+
smalltalk.BlockNode);
|
706
|
+
|
707
|
+
smalltalk.addMethod(
|
708
|
+
unescape('_accept_'),
|
709
|
+
smalltalk.method({
|
710
|
+
selector: unescape('accept%3A'),
|
711
|
+
fn: function (aVisitor){
|
712
|
+
var self=this;
|
713
|
+
smalltalk.send(aVisitor, "_visitBlockNode_", [self]);
|
714
|
+
return self;}
|
715
|
+
}),
|
716
|
+
smalltalk.BlockNode);
|
717
|
+
|
718
|
+
smalltalk.addMethod(
|
719
|
+
unescape('_isBlockNode'),
|
720
|
+
smalltalk.method({
|
721
|
+
selector: unescape('isBlockNode'),
|
722
|
+
fn: function (){
|
723
|
+
var self=this;
|
724
|
+
return true;
|
725
|
+
return self;}
|
726
|
+
}),
|
727
|
+
smalltalk.BlockNode);
|
728
|
+
|
729
|
+
smalltalk.addMethod(
|
730
|
+
unescape('_inlined'),
|
731
|
+
smalltalk.method({
|
732
|
+
selector: unescape('inlined'),
|
733
|
+
fn: function (){
|
734
|
+
var self=this;
|
735
|
+
return (($receiver = self['@inlined']) == nil || $receiver == undefined) ? (function(){return false;})() : $receiver;
|
736
|
+
return self;}
|
737
|
+
}),
|
738
|
+
smalltalk.BlockNode);
|
739
|
+
|
740
|
+
smalltalk.addMethod(
|
741
|
+
unescape('_inlined_'),
|
742
|
+
smalltalk.method({
|
743
|
+
selector: unescape('inlined%3A'),
|
744
|
+
fn: function (aBoolean){
|
745
|
+
var self=this;
|
746
|
+
(self['@inlined']=aBoolean);
|
747
|
+
return self;}
|
748
|
+
}),
|
749
|
+
smalltalk.BlockNode);
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
smalltalk.addClass('SequenceNode', smalltalk.Node, ['temps'], 'Compiler');
|
754
|
+
smalltalk.addMethod(
|
755
|
+
unescape('_temps'),
|
756
|
+
smalltalk.method({
|
757
|
+
selector: unescape('temps'),
|
758
|
+
fn: function (){
|
759
|
+
var self=this;
|
760
|
+
return (($receiver = self['@temps']) == nil || $receiver == undefined) ? (function(){return [];})() : $receiver;
|
761
|
+
return self;}
|
762
|
+
}),
|
763
|
+
smalltalk.SequenceNode);
|
764
|
+
|
765
|
+
smalltalk.addMethod(
|
766
|
+
unescape('_temps_'),
|
767
|
+
smalltalk.method({
|
768
|
+
selector: unescape('temps%3A'),
|
769
|
+
fn: function (aCollection){
|
770
|
+
var self=this;
|
771
|
+
(self['@temps']=aCollection);
|
772
|
+
return self;}
|
773
|
+
}),
|
774
|
+
smalltalk.SequenceNode);
|
775
|
+
|
776
|
+
smalltalk.addMethod(
|
777
|
+
unescape('_asBlockSequenceNode'),
|
778
|
+
smalltalk.method({
|
779
|
+
selector: unescape('asBlockSequenceNode'),
|
780
|
+
fn: function (){
|
781
|
+
var self=this;
|
782
|
+
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", []));
|
783
|
+
return self;}
|
784
|
+
}),
|
785
|
+
smalltalk.SequenceNode);
|
786
|
+
|
787
|
+
smalltalk.addMethod(
|
788
|
+
unescape('_accept_'),
|
789
|
+
smalltalk.method({
|
790
|
+
selector: unescape('accept%3A'),
|
791
|
+
fn: function (aVisitor){
|
792
|
+
var self=this;
|
793
|
+
smalltalk.send(aVisitor, "_visitSequenceNode_", [self]);
|
794
|
+
return self;}
|
795
|
+
}),
|
796
|
+
smalltalk.SequenceNode);
|
797
|
+
|
798
|
+
|
799
|
+
|
800
|
+
smalltalk.addClass('BlockSequenceNode', smalltalk.SequenceNode, [], 'Compiler');
|
801
|
+
smalltalk.addMethod(
|
802
|
+
unescape('_accept_'),
|
803
|
+
smalltalk.method({
|
804
|
+
selector: unescape('accept%3A'),
|
805
|
+
fn: function (aVisitor){
|
806
|
+
var self=this;
|
807
|
+
smalltalk.send(aVisitor, "_visitBlockSequenceNode_", [self]);
|
808
|
+
return self;}
|
809
|
+
}),
|
810
|
+
smalltalk.BlockSequenceNode);
|
811
|
+
|
812
|
+
smalltalk.addMethod(
|
813
|
+
unescape('_isBlockSequenceNode'),
|
814
|
+
smalltalk.method({
|
815
|
+
selector: unescape('isBlockSequenceNode'),
|
816
|
+
fn: function (){
|
817
|
+
var self=this;
|
818
|
+
return true;
|
819
|
+
return self;}
|
820
|
+
}),
|
821
|
+
smalltalk.BlockSequenceNode);
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
smalltalk.addClass('ReturnNode', smalltalk.Node, [], 'Compiler');
|
826
|
+
smalltalk.addMethod(
|
827
|
+
unescape('_accept_'),
|
828
|
+
smalltalk.method({
|
829
|
+
selector: unescape('accept%3A'),
|
830
|
+
fn: function (aVisitor){
|
831
|
+
var self=this;
|
832
|
+
smalltalk.send(aVisitor, "_visitReturnNode_", [self]);
|
833
|
+
return self;}
|
834
|
+
}),
|
835
|
+
smalltalk.ReturnNode);
|
836
|
+
|
837
|
+
|
838
|
+
|
839
|
+
smalltalk.addClass('ValueNode', smalltalk.Node, ['value'], 'Compiler');
|
840
|
+
smalltalk.addMethod(
|
841
|
+
unescape('_value'),
|
842
|
+
smalltalk.method({
|
843
|
+
selector: unescape('value'),
|
844
|
+
fn: function (){
|
845
|
+
var self=this;
|
846
|
+
return self['@value'];
|
847
|
+
return self;}
|
848
|
+
}),
|
849
|
+
smalltalk.ValueNode);
|
850
|
+
|
851
|
+
smalltalk.addMethod(
|
852
|
+
unescape('_value_'),
|
853
|
+
smalltalk.method({
|
854
|
+
selector: unescape('value%3A'),
|
855
|
+
fn: function (anObject){
|
856
|
+
var self=this;
|
857
|
+
(self['@value']=anObject);
|
858
|
+
return self;}
|
859
|
+
}),
|
860
|
+
smalltalk.ValueNode);
|
861
|
+
|
862
|
+
smalltalk.addMethod(
|
863
|
+
unescape('_accept_'),
|
864
|
+
smalltalk.method({
|
865
|
+
selector: unescape('accept%3A'),
|
866
|
+
fn: function (aVisitor){
|
867
|
+
var self=this;
|
868
|
+
smalltalk.send(aVisitor, "_visitValueNode_", [self]);
|
869
|
+
return self;}
|
870
|
+
}),
|
871
|
+
smalltalk.ValueNode);
|
872
|
+
|
873
|
+
smalltalk.addMethod(
|
874
|
+
unescape('_isValueNode'),
|
875
|
+
smalltalk.method({
|
876
|
+
selector: unescape('isValueNode'),
|
877
|
+
fn: function (){
|
878
|
+
var self=this;
|
879
|
+
return true;
|
880
|
+
return self;}
|
881
|
+
}),
|
882
|
+
smalltalk.ValueNode);
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
smalltalk.addClass('VariableNode', smalltalk.ValueNode, ['assigned'], 'Compiler');
|
887
|
+
smalltalk.addMethod(
|
888
|
+
unescape('_accept_'),
|
889
|
+
smalltalk.method({
|
890
|
+
selector: unescape('accept%3A'),
|
891
|
+
fn: function (aVisitor){
|
892
|
+
var self=this;
|
893
|
+
smalltalk.send(aVisitor, "_visitVariableNode_", [self]);
|
894
|
+
return self;}
|
895
|
+
}),
|
896
|
+
smalltalk.VariableNode);
|
897
|
+
|
898
|
+
smalltalk.addMethod(
|
899
|
+
unescape('_assigned'),
|
900
|
+
smalltalk.method({
|
901
|
+
selector: unescape('assigned'),
|
902
|
+
fn: function (){
|
903
|
+
var self=this;
|
904
|
+
return (($receiver = self['@assigned']) == nil || $receiver == undefined) ? (function(){return false;})() : $receiver;
|
905
|
+
return self;}
|
906
|
+
}),
|
907
|
+
smalltalk.VariableNode);
|
908
|
+
|
909
|
+
smalltalk.addMethod(
|
910
|
+
unescape('_assigned_'),
|
911
|
+
smalltalk.method({
|
912
|
+
selector: unescape('assigned%3A'),
|
913
|
+
fn: function (aBoolean){
|
914
|
+
var self=this;
|
915
|
+
(self['@assigned']=aBoolean);
|
916
|
+
return self;}
|
917
|
+
}),
|
918
|
+
smalltalk.VariableNode);
|
919
|
+
|
920
|
+
|
921
|
+
|
922
|
+
smalltalk.addClass('ClassReferenceNode', smalltalk.VariableNode, [], 'Compiler');
|
923
|
+
smalltalk.addMethod(
|
924
|
+
unescape('_accept_'),
|
925
|
+
smalltalk.method({
|
926
|
+
selector: unescape('accept%3A'),
|
927
|
+
fn: function (aVisitor){
|
928
|
+
var self=this;
|
929
|
+
smalltalk.send(aVisitor, "_visitClassReferenceNode_", [self]);
|
930
|
+
return self;}
|
931
|
+
}),
|
932
|
+
smalltalk.ClassReferenceNode);
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
smalltalk.addClass('JSStatementNode', smalltalk.Node, ['source'], 'Compiler');
|
937
|
+
smalltalk.addMethod(
|
938
|
+
unescape('_source'),
|
939
|
+
smalltalk.method({
|
940
|
+
selector: unescape('source'),
|
941
|
+
fn: function (){
|
942
|
+
var self=this;
|
943
|
+
return (($receiver = self['@source']) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
|
944
|
+
return self;}
|
945
|
+
}),
|
946
|
+
smalltalk.JSStatementNode);
|
947
|
+
|
948
|
+
smalltalk.addMethod(
|
949
|
+
unescape('_source_'),
|
950
|
+
smalltalk.method({
|
951
|
+
selector: unescape('source%3A'),
|
952
|
+
fn: function (aString){
|
953
|
+
var self=this;
|
954
|
+
(self['@source']=aString);
|
955
|
+
return self;}
|
956
|
+
}),
|
957
|
+
smalltalk.JSStatementNode);
|
958
|
+
|
959
|
+
smalltalk.addMethod(
|
960
|
+
unescape('_accept_'),
|
961
|
+
smalltalk.method({
|
962
|
+
selector: unescape('accept%3A'),
|
963
|
+
fn: function (aVisitor){
|
964
|
+
var self=this;
|
965
|
+
smalltalk.send(aVisitor, "_visitJSStatementNode_", [self]);
|
966
|
+
return self;}
|
967
|
+
}),
|
968
|
+
smalltalk.JSStatementNode);
|
969
|
+
|
970
|
+
|
971
|
+
|
972
|
+
smalltalk.addClass('NodeVisitor', smalltalk.Object, [], 'Compiler');
|
973
|
+
smalltalk.addMethod(
|
974
|
+
unescape('_visit_'),
|
975
|
+
smalltalk.method({
|
976
|
+
selector: unescape('visit%3A'),
|
977
|
+
fn: function (aNode){
|
978
|
+
var self=this;
|
979
|
+
smalltalk.send(aNode, "_accept_", [self]);
|
980
|
+
return self;}
|
981
|
+
}),
|
982
|
+
smalltalk.NodeVisitor);
|
983
|
+
|
984
|
+
smalltalk.addMethod(
|
985
|
+
unescape('_visitNode_'),
|
986
|
+
smalltalk.method({
|
987
|
+
selector: unescape('visitNode%3A'),
|
988
|
+
fn: function (aNode){
|
989
|
+
var self=this;
|
990
|
+
|
991
|
+
return self;}
|
992
|
+
}),
|
993
|
+
smalltalk.NodeVisitor);
|
994
|
+
|
995
|
+
smalltalk.addMethod(
|
996
|
+
unescape('_visitMethodNode_'),
|
997
|
+
smalltalk.method({
|
998
|
+
selector: unescape('visitMethodNode%3A'),
|
999
|
+
fn: function (aNode){
|
1000
|
+
var self=this;
|
1001
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1002
|
+
return self;}
|
1003
|
+
}),
|
1004
|
+
smalltalk.NodeVisitor);
|
1005
|
+
|
1006
|
+
smalltalk.addMethod(
|
1007
|
+
unescape('_visitSequenceNode_'),
|
1008
|
+
smalltalk.method({
|
1009
|
+
selector: unescape('visitSequenceNode%3A'),
|
1010
|
+
fn: function (aNode){
|
1011
|
+
var self=this;
|
1012
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1013
|
+
return self;}
|
1014
|
+
}),
|
1015
|
+
smalltalk.NodeVisitor);
|
1016
|
+
|
1017
|
+
smalltalk.addMethod(
|
1018
|
+
unescape('_visitBlockSequenceNode_'),
|
1019
|
+
smalltalk.method({
|
1020
|
+
selector: unescape('visitBlockSequenceNode%3A'),
|
1021
|
+
fn: function (aNode){
|
1022
|
+
var self=this;
|
1023
|
+
smalltalk.send(self, "_visitSequenceNode_", [aNode]);
|
1024
|
+
return self;}
|
1025
|
+
}),
|
1026
|
+
smalltalk.NodeVisitor);
|
1027
|
+
|
1028
|
+
smalltalk.addMethod(
|
1029
|
+
unescape('_visitBlockNode_'),
|
1030
|
+
smalltalk.method({
|
1031
|
+
selector: unescape('visitBlockNode%3A'),
|
1032
|
+
fn: function (aNode){
|
1033
|
+
var self=this;
|
1034
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1035
|
+
return self;}
|
1036
|
+
}),
|
1037
|
+
smalltalk.NodeVisitor);
|
1038
|
+
|
1039
|
+
smalltalk.addMethod(
|
1040
|
+
unescape('_visitReturnNode_'),
|
1041
|
+
smalltalk.method({
|
1042
|
+
selector: unescape('visitReturnNode%3A'),
|
1043
|
+
fn: function (aNode){
|
1044
|
+
var self=this;
|
1045
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1046
|
+
return self;}
|
1047
|
+
}),
|
1048
|
+
smalltalk.NodeVisitor);
|
1049
|
+
|
1050
|
+
smalltalk.addMethod(
|
1051
|
+
unescape('_visitSendNode_'),
|
1052
|
+
smalltalk.method({
|
1053
|
+
selector: unescape('visitSendNode%3A'),
|
1054
|
+
fn: function (aNode){
|
1055
|
+
var self=this;
|
1056
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1057
|
+
return self;}
|
1058
|
+
}),
|
1059
|
+
smalltalk.NodeVisitor);
|
1060
|
+
|
1061
|
+
smalltalk.addMethod(
|
1062
|
+
unescape('_visitCascadeNode_'),
|
1063
|
+
smalltalk.method({
|
1064
|
+
selector: unescape('visitCascadeNode%3A'),
|
1065
|
+
fn: function (aNode){
|
1066
|
+
var self=this;
|
1067
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1068
|
+
return self;}
|
1069
|
+
}),
|
1070
|
+
smalltalk.NodeVisitor);
|
1071
|
+
|
1072
|
+
smalltalk.addMethod(
|
1073
|
+
unescape('_visitValueNode_'),
|
1074
|
+
smalltalk.method({
|
1075
|
+
selector: unescape('visitValueNode%3A'),
|
1076
|
+
fn: function (aNode){
|
1077
|
+
var self=this;
|
1078
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1079
|
+
return self;}
|
1080
|
+
}),
|
1081
|
+
smalltalk.NodeVisitor);
|
1082
|
+
|
1083
|
+
smalltalk.addMethod(
|
1084
|
+
unescape('_visitVariableNode_'),
|
1085
|
+
smalltalk.method({
|
1086
|
+
selector: unescape('visitVariableNode%3A'),
|
1087
|
+
fn: function (aNode){
|
1088
|
+
var self=this;
|
1089
|
+
|
1090
|
+
return self;}
|
1091
|
+
}),
|
1092
|
+
smalltalk.NodeVisitor);
|
1093
|
+
|
1094
|
+
smalltalk.addMethod(
|
1095
|
+
unescape('_visitAssignmentNode_'),
|
1096
|
+
smalltalk.method({
|
1097
|
+
selector: unescape('visitAssignmentNode%3A'),
|
1098
|
+
fn: function (aNode){
|
1099
|
+
var self=this;
|
1100
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1101
|
+
return self;}
|
1102
|
+
}),
|
1103
|
+
smalltalk.NodeVisitor);
|
1104
|
+
|
1105
|
+
smalltalk.addMethod(
|
1106
|
+
unescape('_visitClassReferenceNode_'),
|
1107
|
+
smalltalk.method({
|
1108
|
+
selector: unescape('visitClassReferenceNode%3A'),
|
1109
|
+
fn: function (aNode){
|
1110
|
+
var self=this;
|
1111
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", ["smalltalk."]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(aNode, "_value", [])]);})(self);
|
1112
|
+
return self;}
|
1113
|
+
}),
|
1114
|
+
smalltalk.NodeVisitor);
|
1115
|
+
|
1116
|
+
smalltalk.addMethod(
|
1117
|
+
unescape('_visitJSStatementNode_'),
|
1118
|
+
smalltalk.method({
|
1119
|
+
selector: unescape('visitJSStatementNode%3A'),
|
1120
|
+
fn: function (aNode){
|
1121
|
+
var self=this;
|
1122
|
+
(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);
|
1123
|
+
return self;}
|
1124
|
+
}),
|
1125
|
+
smalltalk.NodeVisitor);
|
1126
|
+
|
1127
|
+
smalltalk.addMethod(
|
1128
|
+
unescape('_visitDynamicArrayNode_'),
|
1129
|
+
smalltalk.method({
|
1130
|
+
selector: unescape('visitDynamicArrayNode%3A'),
|
1131
|
+
fn: function (aNode){
|
1132
|
+
var self=this;
|
1133
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1134
|
+
return self;}
|
1135
|
+
}),
|
1136
|
+
smalltalk.NodeVisitor);
|
1137
|
+
|
1138
|
+
smalltalk.addMethod(
|
1139
|
+
unescape('_visitDynamicDictionaryNode_'),
|
1140
|
+
smalltalk.method({
|
1141
|
+
selector: unescape('visitDynamicDictionaryNode%3A'),
|
1142
|
+
fn: function (aNode){
|
1143
|
+
var self=this;
|
1144
|
+
smalltalk.send(self, "_visitNode_", [aNode]);
|
1145
|
+
return self;}
|
1146
|
+
}),
|
1147
|
+
smalltalk.NodeVisitor);
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
smalltalk.addClass('Compiler', smalltalk.NodeVisitor, ['stream', 'nestedBlocks', 'earlyReturn', 'currentClass', 'currentSelector', 'unknownVariables', 'tempVariables', 'messageSends', 'referencedClasses', 'classReferenced', 'source', 'argVariables'], 'Compiler');
|
1152
|
+
smalltalk.addMethod(
|
1153
|
+
unescape('_initialize'),
|
1154
|
+
smalltalk.method({
|
1155
|
+
selector: unescape('initialize'),
|
1156
|
+
fn: function (){
|
1157
|
+
var self=this;
|
1158
|
+
smalltalk.send(self, "_initialize", [], smalltalk.NodeVisitor);
|
1159
|
+
(self['@stream']=smalltalk.send("", "_writeStream", []));
|
1160
|
+
(self['@unknownVariables']=[]);
|
1161
|
+
(self['@tempVariables']=[]);
|
1162
|
+
(self['@argVariables']=[]);
|
1163
|
+
(self['@messageSends']=[]);
|
1164
|
+
(self['@classReferenced']=[]);
|
1165
|
+
return self;}
|
1166
|
+
}),
|
1167
|
+
smalltalk.Compiler);
|
1168
|
+
|
1169
|
+
smalltalk.addMethod(
|
1170
|
+
unescape('_parser'),
|
1171
|
+
smalltalk.method({
|
1172
|
+
selector: unescape('parser'),
|
1173
|
+
fn: function (){
|
1174
|
+
var self=this;
|
1175
|
+
return smalltalk.send((smalltalk.SmalltalkParser || SmalltalkParser), "_new", []);
|
1176
|
+
return self;}
|
1177
|
+
}),
|
1178
|
+
smalltalk.Compiler);
|
1179
|
+
|
1180
|
+
smalltalk.addMethod(
|
1181
|
+
unescape('_currentClass'),
|
1182
|
+
smalltalk.method({
|
1183
|
+
selector: unescape('currentClass'),
|
1184
|
+
fn: function (){
|
1185
|
+
var self=this;
|
1186
|
+
return self['@currentClass'];
|
1187
|
+
return self;}
|
1188
|
+
}),
|
1189
|
+
smalltalk.Compiler);
|
1190
|
+
|
1191
|
+
smalltalk.addMethod(
|
1192
|
+
unescape('_currentClass_'),
|
1193
|
+
smalltalk.method({
|
1194
|
+
selector: unescape('currentClass%3A'),
|
1195
|
+
fn: function (aClass){
|
1196
|
+
var self=this;
|
1197
|
+
(self['@currentClass']=aClass);
|
1198
|
+
return self;}
|
1199
|
+
}),
|
1200
|
+
smalltalk.Compiler);
|
1201
|
+
|
1202
|
+
smalltalk.addMethod(
|
1203
|
+
unescape('_loadExpression_'),
|
1204
|
+
smalltalk.method({
|
1205
|
+
selector: unescape('loadExpression%3A'),
|
1206
|
+
fn: function (aString){
|
1207
|
+
var self=this;
|
1208
|
+
var result=nil;
|
1209
|
+
smalltalk.send((smalltalk.DoIt || DoIt), "_addCompiledMethod_", [smalltalk.send(self, "_eval_", [smalltalk.send(self, "_compileExpression_", [aString])])]);
|
1210
|
+
(result=smalltalk.send(smalltalk.send((smalltalk.DoIt || DoIt), "_new", []), "_doIt", []));
|
1211
|
+
smalltalk.send((smalltalk.DoIt || DoIt), "_removeCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.DoIt || DoIt), "_methodDictionary", []), "_at_", ["doIt"])]);
|
1212
|
+
return result;
|
1213
|
+
return self;}
|
1214
|
+
}),
|
1215
|
+
smalltalk.Compiler);
|
1216
|
+
|
1217
|
+
smalltalk.addMethod(
|
1218
|
+
unescape('_load_forClass_'),
|
1219
|
+
smalltalk.method({
|
1220
|
+
selector: unescape('load%3AforClass%3A'),
|
1221
|
+
fn: function (aString, aClass){
|
1222
|
+
var self=this;
|
1223
|
+
var compiled=nil;
|
1224
|
+
(compiled=smalltalk.send(self, "_eval_", [smalltalk.send(self, "_compile_forClass_", [aString, aClass])]));
|
1225
|
+
smalltalk.send(self, "_setupClass_", [aClass]);
|
1226
|
+
return compiled;
|
1227
|
+
return self;}
|
1228
|
+
}),
|
1229
|
+
smalltalk.Compiler);
|
1230
|
+
|
1231
|
+
smalltalk.addMethod(
|
1232
|
+
unescape('_compile_forClass_'),
|
1233
|
+
smalltalk.method({
|
1234
|
+
selector: unescape('compile%3AforClass%3A'),
|
1235
|
+
fn: function (aString, aClass){
|
1236
|
+
var self=this;
|
1237
|
+
smalltalk.send(self, "_currentClass_", [aClass]);
|
1238
|
+
smalltalk.send(self, "_source_", [aString]);
|
1239
|
+
return smalltalk.send(self, "_compile_", [aString]);
|
1240
|
+
return self;}
|
1241
|
+
}),
|
1242
|
+
smalltalk.Compiler);
|
1243
|
+
|
1244
|
+
smalltalk.addMethod(
|
1245
|
+
unescape('_compileExpression_'),
|
1246
|
+
smalltalk.method({
|
1247
|
+
selector: unescape('compileExpression%3A'),
|
1248
|
+
fn: function (aString){
|
1249
|
+
var self=this;
|
1250
|
+
smalltalk.send(self, "_currentClass_", [(smalltalk.DoIt || DoIt)]);
|
1251
|
+
smalltalk.send(self, "_source_", [smalltalk.send(smalltalk.send(unescape("doIt%20%5E%5B"), "__comma", [aString]), "__comma", [unescape("%5D%20value")])]);
|
1252
|
+
return smalltalk.send(self, "_compileNode_", [smalltalk.send(self, "_parse_", [smalltalk.send(self, "_source", [])])]);
|
1253
|
+
return self;}
|
1254
|
+
}),
|
1255
|
+
smalltalk.Compiler);
|
1256
|
+
|
1257
|
+
smalltalk.addMethod(
|
1258
|
+
unescape('_eval_'),
|
1259
|
+
smalltalk.method({
|
1260
|
+
selector: unescape('eval%3A'),
|
1261
|
+
fn: function (aString){
|
1262
|
+
var self=this;
|
1263
|
+
return eval(aString);
|
1264
|
+
return self;}
|
1265
|
+
}),
|
1266
|
+
smalltalk.Compiler);
|
1267
|
+
|
1268
|
+
smalltalk.addMethod(
|
1269
|
+
unescape('_compile_'),
|
1270
|
+
smalltalk.method({
|
1271
|
+
selector: unescape('compile%3A'),
|
1272
|
+
fn: function (aString){
|
1273
|
+
var self=this;
|
1274
|
+
return smalltalk.send(self, "_compileNode_", [smalltalk.send(self, "_parse_", [aString])]);
|
1275
|
+
return self;}
|
1276
|
+
}),
|
1277
|
+
smalltalk.Compiler);
|
1278
|
+
|
1279
|
+
smalltalk.addMethod(
|
1280
|
+
unescape('_compileNode_'),
|
1281
|
+
smalltalk.method({
|
1282
|
+
selector: unescape('compileNode%3A'),
|
1283
|
+
fn: function (aNode){
|
1284
|
+
var self=this;
|
1285
|
+
(self['@stream']=smalltalk.send("", "_writeStream", []));
|
1286
|
+
smalltalk.send(self, "_visit_", [aNode]);
|
1287
|
+
return smalltalk.send(self['@stream'], "_contents", []);
|
1288
|
+
return self;}
|
1289
|
+
}),
|
1290
|
+
smalltalk.Compiler);
|
1291
|
+
|
1292
|
+
smalltalk.addMethod(
|
1293
|
+
unescape('_visit_'),
|
1294
|
+
smalltalk.method({
|
1295
|
+
selector: unescape('visit%3A'),
|
1296
|
+
fn: function (aNode){
|
1297
|
+
var self=this;
|
1298
|
+
smalltalk.send(aNode, "_accept_", [self]);
|
1299
|
+
return self;}
|
1300
|
+
}),
|
1301
|
+
smalltalk.Compiler);
|
1302
|
+
|
1303
|
+
smalltalk.addMethod(
|
1304
|
+
unescape('_visitMethodNode_'),
|
1305
|
+
smalltalk.method({
|
1306
|
+
selector: unescape('visitMethodNode%3A'),
|
1307
|
+
fn: function (aNode){
|
1308
|
+
var self=this;
|
1309
|
+
var str=nil;
|
1310
|
+
var currentSelector=nil;
|
1311
|
+
(self['@currentSelector']=smalltalk.send(smalltalk.send(aNode, "_selector", []), "_asSelector", []));
|
1312
|
+
(self['@nestedBlocks']=(0));
|
1313
|
+
(self['@earlyReturn']=false);
|
1314
|
+
(self['@messageSends']=[]);
|
1315
|
+
(self['@referencedClasses']=[]);
|
1316
|
+
(self['@unknownVariables']=[]);
|
1317
|
+
(self['@tempVariables']=[]);
|
1318
|
+
(self['@argVariables']=[]);
|
1319
|
+
(function($rec){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%22"), "__comma", [smalltalk.send(aNode, "_selector", [])]), "__comma", [unescape("%22%2C")])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
|
1320
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("source%3A%20unescape%28%22"), "__comma", [smalltalk.send(smalltalk.send(self, "_source", []), "_escaped", [])]), "__comma", [unescape("%22%29%2C")])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
|
1321
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("fn%3A%20function%28")]);
|
1322
|
+
smalltalk.send(smalltalk.send(aNode, "_arguments", []), "_do_separatedBy_", [(function(each){smalltalk.send(self['@argVariables'], "_add_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%2C%20")]);})]);
|
1323
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%29%7B")]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [unescape("var%20self%3Dthis%3B")]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);
|
1324
|
+
(str=self['@stream']);
|
1325
|
+
(self['@stream']=smalltalk.send("", "_writeStream", []));
|
1326
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(self, "_visit_", [each]);})]);
|
1327
|
+
((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(str, "_nextPutAll_", [unescape("try%7B")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("try%7B")]);})]));
|
1328
|
+
smalltalk.send(str, "_nextPutAll_", [smalltalk.send(self['@stream'], "_contents", [])]);
|
1329
|
+
(self['@stream']=str);
|
1330
|
+
(function($rec){smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [unescape("return%20self%3B")]);})(self['@stream']);
|
1331
|
+
((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%7D%20catch%28e%29%20%7Bif%28e.name%20%3D%3D%3D%20%27stReturn%27%20%26%26%20e.selector%20%3D%3D%3D%20"), "__comma", [smalltalk.send(self['@currentSelector'], "_printString", [])]), "__comma", [unescape("%29%7Breturn%20e.fn%28%29%7D%20throw%28e%29%7D")])]);})(self['@stream']);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%7D%20catch%28e%29%20%7Bif%28e.name%20%3D%3D%3D%20%27stReturn%27%20%26%26%20e.selector%20%3D%3D%3D%20"), "__comma", [smalltalk.send(self['@currentSelector'], "_printString", [])]), "__comma", [unescape("%29%7Breturn%20e.fn%28%29%7D%20throw%28e%29%7D")])]);})(self['@stream']);})]));
|
1332
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%7D")]);
|
1333
|
+
(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%2C"), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", ["messageSends: "])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@messageSends'], "_asJavascript", []), "__comma", [unescape("%2C")])]);smalltalk.send($rec, "_lf", []);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("args: ", "__comma", [smalltalk.send(self['@argVariables'], "_asJavascript", [])]), "__comma", [unescape("%2C")])]);smalltalk.send($rec, "_lf", []);return smalltalk.send($rec, "_nextPutAll_", [unescape("referencedClasses%3A%20%5B")]);})(self['@stream']);
|
1334
|
+
smalltalk.send(self['@referencedClasses'], "_do_separatedBy_", [(function(each){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%2C")]);})]);
|
1335
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%5D")]);
|
1336
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%7D%29")]);
|
1337
|
+
return self;}
|
1338
|
+
}),
|
1339
|
+
smalltalk.Compiler);
|
1340
|
+
|
1341
|
+
smalltalk.addMethod(
|
1342
|
+
unescape('_visitBlockNode_'),
|
1343
|
+
smalltalk.method({
|
1344
|
+
selector: unescape('visitBlockNode%3A'),
|
1345
|
+
fn: function (aNode){
|
1346
|
+
var self=this;
|
1347
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28")]);
|
1348
|
+
smalltalk.send(smalltalk.send(aNode, "_parameters", []), "_do_separatedBy_", [(function(each){smalltalk.send(self['@tempVariables'], "_add_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%2C%20")]);})]);
|
1349
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%7B")]);
|
1350
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(self, "_visit_", [each]);})]);
|
1351
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%7D%29")]);
|
1352
|
+
return self;}
|
1353
|
+
}),
|
1354
|
+
smalltalk.Compiler);
|
1355
|
+
|
1356
|
+
smalltalk.addMethod(
|
1357
|
+
unescape('_visitSequenceNode_'),
|
1358
|
+
smalltalk.method({
|
1359
|
+
selector: unescape('visitSequenceNode%3A'),
|
1360
|
+
fn: function (aNode){
|
1361
|
+
var self=this;
|
1362
|
+
smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil;
|
1363
|
+
(temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("var ", "__comma", [temp]), "__comma", [unescape("%3Dnil%3B")])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);})]);
|
1364
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_separatedBy_", [(function(each){smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%3B")]);}), (function(){return smalltalk.send(self['@stream'], "_lf", []);})]);
|
1365
|
+
return self;}
|
1366
|
+
}),
|
1367
|
+
smalltalk.Compiler);
|
1368
|
+
|
1369
|
+
smalltalk.addMethod(
|
1370
|
+
unescape('_visitBlockSequenceNode_'),
|
1371
|
+
smalltalk.method({
|
1372
|
+
selector: unescape('visitBlockSequenceNode%3A'),
|
1373
|
+
fn: function (aNode){
|
1374
|
+
var self=this;
|
1375
|
+
var index=nil;
|
1376
|
+
(self['@nestedBlocks']=((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
|
1377
|
+
((($receiver = smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("return%20nil%3B")]);})() : (function(){smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil;
|
1378
|
+
(temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("var ", "__comma", [temp]), "__comma", [unescape("%3Dnil%3B")])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);})]);(index=(0));return smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%3B")]);})]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("return%20nil%3B")]);}), (function(){smalltalk.send(smalltalk.send(aNode, "_temps", []), "_do_", [(function(each){var temp=nil;
|
1379
|
+
(temp=smalltalk.send(self, "_safeVariableNameFor_", [each]));smalltalk.send(self['@tempVariables'], "_add_", [temp]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send("var ", "__comma", [temp]), "__comma", [unescape("%3Dnil%3B")])]);return smalltalk.send($rec, "_lf", []);})(self['@stream']);})]);(index=(0));return smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%3B")]);})]);})]));
|
1380
|
+
(self['@nestedBlocks']=((($receiver = self['@nestedBlocks']).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])));
|
1381
|
+
return self;}
|
1382
|
+
}),
|
1383
|
+
smalltalk.Compiler);
|
1384
|
+
|
1385
|
+
smalltalk.addMethod(
|
1386
|
+
unescape('_visitReturnNode_'),
|
1387
|
+
smalltalk.method({
|
1388
|
+
selector: unescape('visitReturnNode%3A'),
|
1389
|
+
fn: function (aNode){
|
1390
|
+
var self=this;
|
1391
|
+
((($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);})]));
|
1392
|
+
((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%28function%28%29%7Bthrow%28")]);smalltalk.send($rec, "_nextPutAll_", [unescape("%7Bname%3A%20%27stReturn%27%2C%20selector%3A%20")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@currentSelector'], "_printString", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%2C%20fn%3A%20function%28%29%7Breturn%20")]);})(self['@stream']);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [unescape("%28function%28%29%7Bthrow%28")]);smalltalk.send($rec, "_nextPutAll_", [unescape("%7Bname%3A%20%27stReturn%27%2C%20selector%3A%20")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@currentSelector'], "_printString", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%2C%20fn%3A%20function%28%29%7Breturn%20")]);})(self['@stream']);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));
|
1393
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){return smalltalk.send(self, "_visit_", [each]);})]);
|
1394
|
+
((($receiver = self['@earlyReturn']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%7D%7D%29%7D%29%28%29")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%7D%7D%29%7D%29%28%29")]);})]));
|
1395
|
+
return self;}
|
1396
|
+
}),
|
1397
|
+
smalltalk.Compiler);
|
1398
|
+
|
1399
|
+
smalltalk.addMethod(
|
1400
|
+
unescape('_visitSendNode_'),
|
1401
|
+
smalltalk.method({
|
1402
|
+
selector: unescape('visitSendNode%3A'),
|
1403
|
+
fn: function (aNode){
|
1404
|
+
var self=this;
|
1405
|
+
var str=nil;
|
1406
|
+
var receiver=nil;
|
1407
|
+
var superSend=nil;
|
1408
|
+
var inlined=nil;
|
1409
|
+
(str=self['@stream']);
|
1410
|
+
((($receiver = smalltalk.send(self['@messageSends'], "_includes_", [smalltalk.send(aNode, "_selector", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@messageSends'], "_add_", [smalltalk.send(aNode, "_selector", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@messageSends'], "_add_", [smalltalk.send(aNode, "_selector", [])]);})]));
|
1411
|
+
(self['@stream']=smalltalk.send("", "_writeStream", []));
|
1412
|
+
smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_receiver", [])]);
|
1413
|
+
(superSend=smalltalk.send(smalltalk.send(self['@stream'], "_contents", []), "__eq", ["super"]));
|
1414
|
+
(receiver=((($receiver = superSend).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "self";})() : (function(){return smalltalk.send(self['@stream'], "_contents", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "self";}), (function(){return smalltalk.send(self['@stream'], "_contents", []);})])));
|
1415
|
+
(self['@stream']=str);
|
1416
|
+
((($receiver = smalltalk.send(self, "_performOptimizations", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inlineLiteral_receiverNode_argumentNodes_", [smalltalk.send(aNode, "_selector", []), smalltalk.send(aNode, "_receiver", []), smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})]));})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return ((($receiver = smalltalk.send(self, "_inlineLiteral_receiverNode_argumentNodes_", [smalltalk.send(aNode, "_selector", []), smalltalk.send(aNode, "_receiver", []), smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return ((($receiver = smalltalk.send(self, "_inline_receiver_argumentNodes_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(" : ", "__comma", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), "$receiver", smalltalk.send(aNode, "_arguments", []), superSend])]), "__comma", [unescape("%29")])]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));})]));}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(self, "_send_to_arguments_superSend_", [smalltalk.send(aNode, "_selector", []), receiver, smalltalk.send(aNode, "_arguments", []), superSend])]);})]));
|
1417
|
+
return self;}
|
1418
|
+
}),
|
1419
|
+
smalltalk.Compiler);
|
1420
|
+
|
1421
|
+
smalltalk.addMethod(
|
1422
|
+
unescape('_visitCascadeNode_'),
|
1423
|
+
smalltalk.method({
|
1424
|
+
selector: unescape('visitCascadeNode%3A'),
|
1425
|
+
fn: function (aNode){
|
1426
|
+
var self=this;
|
1427
|
+
var index=nil;
|
1428
|
+
(index=(0));
|
1429
|
+
((($receiver = smalltalk.send(self['@tempVariables'], "_includes_", ["$rec"])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@tempVariables'], "_add_", ["$rec"]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@tempVariables'], "_add_", ["$rec"]);})]));
|
1430
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%24rec%29%7B")]);
|
1431
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_", [(function(each){(index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));((($receiver = smalltalk.send(index, "__eq", [smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_size", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", ["return "]);})]));smalltalk.send(each, "_receiver_", [smalltalk.send(smalltalk.send((smalltalk.VariableNode || VariableNode), "_new", []), "_value_", ["$rec"])]);smalltalk.send(self, "_visit_", [each]);return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%3B")]);})]);
|
1432
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%7D%29%28")]);
|
1433
|
+
smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_receiver", [])]);
|
1434
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29")]);
|
1435
|
+
return self;}
|
1436
|
+
}),
|
1437
|
+
smalltalk.Compiler);
|
1438
|
+
|
1439
|
+
smalltalk.addMethod(
|
1440
|
+
unescape('_visitValueNode_'),
|
1441
|
+
smalltalk.method({
|
1442
|
+
selector: unescape('visitValueNode%3A'),
|
1443
|
+
fn: function (aNode){
|
1444
|
+
var self=this;
|
1445
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(aNode, "_value", []), "_asJavascript", [])]);
|
1446
|
+
return self;}
|
1447
|
+
}),
|
1448
|
+
smalltalk.Compiler);
|
1449
|
+
|
1450
|
+
smalltalk.addMethod(
|
1451
|
+
unescape('_visitAssignmentNode_'),
|
1452
|
+
smalltalk.method({
|
1453
|
+
selector: unescape('visitAssignmentNode%3A'),
|
1454
|
+
fn: function (aNode){
|
1455
|
+
var self=this;
|
1456
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28")]);
|
1457
|
+
smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_left", [])]);
|
1458
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%3D")]);
|
1459
|
+
smalltalk.send(self, "_visit_", [smalltalk.send(aNode, "_right", [])]);
|
1460
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29")]);
|
1461
|
+
return self;}
|
1462
|
+
}),
|
1463
|
+
smalltalk.Compiler);
|
1464
|
+
|
1465
|
+
smalltalk.addMethod(
|
1466
|
+
unescape('_visitClassReferenceNode_'),
|
1467
|
+
smalltalk.method({
|
1468
|
+
selector: unescape('visitClassReferenceNode%3A'),
|
1469
|
+
fn: function (aNode){
|
1470
|
+
var self=this;
|
1471
|
+
((($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", [])]);})]));
|
1472
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28smalltalk."), "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [unescape("%20%7C%7C%20")]), "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [unescape("%29")])]);
|
1473
|
+
return self;}
|
1474
|
+
}),
|
1475
|
+
smalltalk.Compiler);
|
1476
|
+
|
1477
|
+
smalltalk.addMethod(
|
1478
|
+
unescape('_visitVariableNode_'),
|
1479
|
+
smalltalk.method({
|
1480
|
+
selector: unescape('visitVariableNode%3A'),
|
1481
|
+
fn: function (aNode){
|
1482
|
+
var self=this;
|
1483
|
+
var varName=nil;
|
1484
|
+
((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_currentClass", []), "_allInstanceVariableNames", []), "_includes_", [smalltalk.send(aNode, "_value", [])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("self%5B%27@"), "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [unescape("%27%5D")])]);})() : (function(){(varName=smalltalk.send(self, "_safeVariableNameFor_", [smalltalk.send(aNode, "_value", [])]));return ((($receiver = smalltalk.send(smalltalk.send(self, "_knownVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})]));})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})]));}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("self%5B%27@"), "__comma", [smalltalk.send(aNode, "_value", [])]), "__comma", [unescape("%27%5D")])]);}), (function(){(varName=smalltalk.send(self, "_safeVariableNameFor_", [smalltalk.send(aNode, "_value", [])]));return ((($receiver = smalltalk.send(smalltalk.send(self, "_knownVariables", []), "_includes_", [varName])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})]));})() : (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){smalltalk.send(self['@unknownVariables'], "_add_", [smalltalk.send(aNode, "_value", [])]);return ((($receiver = smalltalk.send(aNode, "_assigned", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(unescape("%28typeof%20"), "__comma", [varName]), "__comma", [unescape("%20%3D%3D%20%27undefined%27%20%3F%20nil%20%3A%20")]), "__comma", [varName]), "__comma", [unescape("%29")])]);})]));}), (function(){return ((($receiver = smalltalk.send(smalltalk.send(aNode, "_value", []), "__eq", ["thisContext"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);})() : (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28smalltalk.getThisContext%28%29%29")]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [varName]);})]));})]));})]));
|
1485
|
+
return self;}
|
1486
|
+
}),
|
1487
|
+
smalltalk.Compiler);
|
1488
|
+
|
1489
|
+
smalltalk.addMethod(
|
1490
|
+
unescape('_visitJSStatementNode_'),
|
1491
|
+
smalltalk.method({
|
1492
|
+
selector: unescape('visitJSStatementNode%3A'),
|
1493
|
+
fn: function (aNode){
|
1494
|
+
var self=this;
|
1495
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [smalltalk.send(smalltalk.send(aNode, "_source", []), "_replace_with_", [unescape("%3E%3E"), unescape("%3E")])]);
|
1496
|
+
return self;}
|
1497
|
+
}),
|
1498
|
+
smalltalk.Compiler);
|
1499
|
+
|
1500
|
+
smalltalk.addMethod(
|
1501
|
+
unescape('_parse_'),
|
1502
|
+
smalltalk.method({
|
1503
|
+
selector: unescape('parse%3A'),
|
1504
|
+
fn: function (aString){
|
1505
|
+
var self=this;
|
1506
|
+
return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_parse_", [aString]);
|
1507
|
+
return self;}
|
1508
|
+
}),
|
1509
|
+
smalltalk.Compiler);
|
1510
|
+
|
1511
|
+
smalltalk.addMethod(
|
1512
|
+
unescape('_parseExpression_'),
|
1513
|
+
smalltalk.method({
|
1514
|
+
selector: unescape('parseExpression%3A'),
|
1515
|
+
fn: function (aString){
|
1516
|
+
var self=this;
|
1517
|
+
return smalltalk.send(self, "_parse_", [smalltalk.send(smalltalk.send(unescape("doIt%20%5E%5B"), "__comma", [aString]), "__comma", [unescape("%5D%20value")])]);
|
1518
|
+
return self;}
|
1519
|
+
}),
|
1520
|
+
smalltalk.Compiler);
|
1521
|
+
|
1522
|
+
smalltalk.addMethod(
|
1523
|
+
unescape('_unknownVariables'),
|
1524
|
+
smalltalk.method({
|
1525
|
+
selector: unescape('unknownVariables'),
|
1526
|
+
fn: function (){
|
1527
|
+
var self=this;
|
1528
|
+
return smalltalk.send(self['@unknownVariables'], "_copy", []);
|
1529
|
+
return self;}
|
1530
|
+
}),
|
1531
|
+
smalltalk.Compiler);
|
1532
|
+
|
1533
|
+
smalltalk.addMethod(
|
1534
|
+
unescape('_pseudoVariables'),
|
1535
|
+
smalltalk.method({
|
1536
|
+
selector: unescape('pseudoVariables'),
|
1537
|
+
fn: function (){
|
1538
|
+
var self=this;
|
1539
|
+
return ["self", "super", "true", "false", "nil", "thisContext"];
|
1540
|
+
return self;}
|
1541
|
+
}),
|
1542
|
+
smalltalk.Compiler);
|
1543
|
+
|
1544
|
+
smalltalk.addMethod(
|
1545
|
+
unescape('_tempVariables'),
|
1546
|
+
smalltalk.method({
|
1547
|
+
selector: unescape('tempVariables'),
|
1548
|
+
fn: function (){
|
1549
|
+
var self=this;
|
1550
|
+
return smalltalk.send(self['@tempVariables'], "_copy", []);
|
1551
|
+
return self;}
|
1552
|
+
}),
|
1553
|
+
smalltalk.Compiler);
|
1554
|
+
|
1555
|
+
smalltalk.addMethod(
|
1556
|
+
unescape('_knownVariables'),
|
1557
|
+
smalltalk.method({
|
1558
|
+
selector: unescape('knownVariables'),
|
1559
|
+
fn: function (){
|
1560
|
+
var self=this;
|
1561
|
+
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", []));
|
1562
|
+
return self;}
|
1563
|
+
}),
|
1564
|
+
smalltalk.Compiler);
|
1565
|
+
|
1566
|
+
smalltalk.addMethod(
|
1567
|
+
unescape('_recompile_'),
|
1568
|
+
smalltalk.method({
|
1569
|
+
selector: unescape('recompile%3A'),
|
1570
|
+
fn: function (aClass){
|
1571
|
+
var self=this;
|
1572
|
+
smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_do_", [(function(each){var method=nil;
|
1573
|
+
(method=smalltalk.send(self, "_load_forClass_", [smalltalk.send(each, "_source", []), aClass]));smalltalk.send(method, "_category_", [smalltalk.send(each, "_category", [])]);return smalltalk.send(aClass, "_addCompiledMethod_", [method]);})]);
|
1574
|
+
((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_recompile_", [smalltalk.send(aClass, "_class", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_recompile_", [smalltalk.send(aClass, "_class", [])]);})]));
|
1575
|
+
return self;}
|
1576
|
+
}),
|
1577
|
+
smalltalk.Compiler);
|
1578
|
+
|
1579
|
+
smalltalk.addMethod(
|
1580
|
+
unescape('_recompileAll'),
|
1581
|
+
smalltalk.method({
|
1582
|
+
selector: unescape('recompileAll'),
|
1583
|
+
fn: function (){
|
1584
|
+
var self=this;
|
1585
|
+
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)]);})]);
|
1586
|
+
return self;}
|
1587
|
+
}),
|
1588
|
+
smalltalk.Compiler);
|
1589
|
+
|
1590
|
+
smalltalk.addMethod(
|
1591
|
+
unescape('_classNameFor_'),
|
1592
|
+
smalltalk.method({
|
1593
|
+
selector: unescape('classNameFor%3A'),
|
1594
|
+
fn: function (aClass){
|
1595
|
+
var self=this;
|
1596
|
+
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", []);})]));})]));
|
1597
|
+
return self;}
|
1598
|
+
}),
|
1599
|
+
smalltalk.Compiler);
|
1600
|
+
|
1601
|
+
smalltalk.addMethod(
|
1602
|
+
unescape('_visitFailure_'),
|
1603
|
+
smalltalk.method({
|
1604
|
+
selector: unescape('visitFailure%3A'),
|
1605
|
+
fn: function (aFailure){
|
1606
|
+
var self=this;
|
1607
|
+
smalltalk.send(self, "_error_", [smalltalk.send(aFailure, "_asString", [])]);
|
1608
|
+
return self;}
|
1609
|
+
}),
|
1610
|
+
smalltalk.Compiler);
|
1611
|
+
|
1612
|
+
smalltalk.addMethod(
|
1613
|
+
unescape('_setupClass_'),
|
1614
|
+
smalltalk.method({
|
1615
|
+
selector: unescape('setupClass%3A'),
|
1616
|
+
fn: function (aClass){
|
1617
|
+
var self=this;
|
1618
|
+
smalltalk.init(aClass);
|
1619
|
+
return self;}
|
1620
|
+
}),
|
1621
|
+
smalltalk.Compiler);
|
1622
|
+
|
1623
|
+
smalltalk.addMethod(
|
1624
|
+
unescape('_send_to_arguments_superSend_'),
|
1625
|
+
smalltalk.method({
|
1626
|
+
selector: unescape('send%3Ato%3Aarguments%3AsuperSend%3A'),
|
1627
|
+
fn: function (aSelector, aReceiver, aCollection, aBoolean){
|
1628
|
+
var self=this;
|
1629
|
+
return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(str){var tmp=nil;
|
1630
|
+
(tmp=self['@stream']);smalltalk.send(str, "_nextPutAll_", [unescape("smalltalk.send%28")]);smalltalk.send(str, "_nextPutAll_", [aReceiver]);smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%2C%20%22"), "__comma", [smalltalk.send(aSelector, "_asSelector", [])]), "__comma", [unescape("%22%2C%20%5B")])]);(self['@stream']=str);smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(self, "_visit_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%2C%20")]);})]);(self['@stream']=tmp);smalltalk.send(str, "_nextPutAll_", [unescape("%5D")]);((($receiver = aBoolean).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(unescape("%2C%20smalltalk."), "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(smalltalk.send(self, "_currentClass", []), "_superclass", [])])])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(unescape("%2C%20smalltalk."), "__comma", [smalltalk.send(self, "_classNameFor_", [smalltalk.send(smalltalk.send(self, "_currentClass", []), "_superclass", [])])])]);})]));return smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);})]);
|
1631
|
+
return self;}
|
1632
|
+
}),
|
1633
|
+
smalltalk.Compiler);
|
1634
|
+
|
1635
|
+
smalltalk.addMethod(
|
1636
|
+
unescape('_checkClass_for_'),
|
1637
|
+
smalltalk.method({
|
1638
|
+
selector: unescape('checkClass%3Afor%3A'),
|
1639
|
+
fn: function (aClassName, receiver){
|
1640
|
+
var self=this;
|
1641
|
+
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")])]);
|
1642
|
+
return self;}
|
1643
|
+
}),
|
1644
|
+
smalltalk.Compiler);
|
1645
|
+
|
1646
|
+
smalltalk.addMethod(
|
1647
|
+
unescape('_inlineLiteral_receiverNode_argumentNodes_'),
|
1648
|
+
smalltalk.method({
|
1649
|
+
selector: unescape('inlineLiteral%3AreceiverNode%3AargumentNodes%3A'),
|
1650
|
+
fn: function (aSelector, anObject, aCollection){
|
1651
|
+
var self=this;
|
1652
|
+
var inlined=nil;
|
1653
|
+
(inlined=false);
|
1654
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["whileTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})]));})]));
|
1655
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["whileFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(anObject, "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%7D%7D%29%28%29")]);return (inlined=true);})]));})]));
|
1656
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["whileTrue"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})]));})]));
|
1657
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["whileFalse"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(anObject, "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28function%28%29%7Bwhile%28%21")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29%20%7B%7D%7D%29%28%29")]);return (inlined=true);})]));})]));
|
1658
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("+")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20+%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20+%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20+%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20+%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1659
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("-")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20-%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20-%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20-%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20-%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1660
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("*")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20*%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20*%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20*%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20*%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1661
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("/")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20/%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20/%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20/%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20/%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1662
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3C")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1663
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3C%3D")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3C%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1664
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3E")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1665
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3E%3D")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(self, "_isNode_ofClass_", [anObject, (smalltalk.Number || Number)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%20%3E%3D%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));})]));
|
1666
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20%24receiver")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20%24receiver")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20%24receiver")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20%24receiver")]);return (inlined=true);})]));})]));
|
1667
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifNotNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%21%3D%20nil%20%26%26%20%24receiver%20%21%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%21%3D%20nil%20%26%26%20%24receiver%20%21%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%21%3D%20nil%20%26%26%20%24receiver%20%21%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%21%3D%20nil%20%26%26%20%24receiver%20%21%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil")]);return (inlined=true);})]));})]));
|
1668
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifNil:ifNotNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})]));})]));
|
1669
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifNotNil:ifNil:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%28%24receiver%20%3D%20")]);smalltalk.send(self, "_visit_", [anObject]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%29%20%3D%3D%20nil%20%7C%7C%20%24receiver%20%3D%3D%20undefined%29%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29")]);return (inlined=true);})]));})]));
|
1670
|
+
return inlined;
|
1671
|
+
return self;}
|
1672
|
+
}),
|
1673
|
+
smalltalk.Compiler);
|
1674
|
+
|
1675
|
+
smalltalk.addMethod(
|
1676
|
+
unescape('_isNode_ofClass_'),
|
1677
|
+
smalltalk.method({
|
1678
|
+
selector: unescape('isNode%3AofClass%3A'),
|
1679
|
+
fn: function (aNode, aClass){
|
1680
|
+
var self=this;
|
1681
|
+
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]);})]);})]);})]);
|
1682
|
+
return self;}
|
1683
|
+
}),
|
1684
|
+
smalltalk.Compiler);
|
1685
|
+
|
1686
|
+
smalltalk.addMethod(
|
1687
|
+
unescape('_inline_receiver_argumentNodes_'),
|
1688
|
+
smalltalk.method({
|
1689
|
+
selector: unescape('inline%3Areceiver%3AargumentNodes%3A'),
|
1690
|
+
fn: function (aSelector, receiver, aCollection){
|
1691
|
+
var self=this;
|
1692
|
+
var inlined=nil;
|
1693
|
+
(inlined=false);
|
1694
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})]));})]));
|
1695
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20nil%29")]);return (inlined=true);})]));})]));
|
1696
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifTrue:ifFalse:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})]));})]));
|
1697
|
+
((($receiver = smalltalk.send(aSelector, "__eq", ["ifFalse:ifTrue:"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(aCollection, "_first", []), "_isBlockNode", []), "_and_", [(function(){return smalltalk.send(smalltalk.send(aCollection, "_second", []), "_isBlockNode", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Boolean", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%21%20%24receiver%20%3F%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%20%3A%20")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_second", [])]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%28%29%29")]);return (inlined=true);})]));})]));
|
1698
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3C")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3C")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3C")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1699
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3C%3D")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3C%3D")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3C%3D")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1700
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3E")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3E")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3E")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1701
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("%3E%3D")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3E%3D")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20%3E%3D")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1702
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("+")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20+")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20+")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1703
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("-")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20-")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20-")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1704
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("*")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20*")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20*")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1705
|
+
((($receiver = smalltalk.send(aSelector, "__eq", [unescape("/")])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20/")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_checkClass_for_", ["Number", receiver]);smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%24receiver%20/")]);smalltalk.send(self, "_visit_", [smalltalk.send(aCollection, "_first", [])]);return (inlined=true);})]));
|
1706
|
+
return inlined;
|
1707
|
+
return self;}
|
1708
|
+
}),
|
1709
|
+
smalltalk.Compiler);
|
1710
|
+
|
1711
|
+
smalltalk.addMethod(
|
1712
|
+
unescape('_performOptimizations'),
|
1713
|
+
smalltalk.method({
|
1714
|
+
selector: unescape('performOptimizations'),
|
1715
|
+
fn: function (){
|
1716
|
+
var self=this;
|
1717
|
+
return smalltalk.send(smalltalk.send(self, "_class", []), "_performOptimizations", []);
|
1718
|
+
return self;}
|
1719
|
+
}),
|
1720
|
+
smalltalk.Compiler);
|
1721
|
+
|
1722
|
+
smalltalk.addMethod(
|
1723
|
+
unescape('_source'),
|
1724
|
+
smalltalk.method({
|
1725
|
+
selector: unescape('source'),
|
1726
|
+
fn: function (){
|
1727
|
+
var self=this;
|
1728
|
+
return (($receiver = self['@source']) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
|
1729
|
+
return self;}
|
1730
|
+
}),
|
1731
|
+
smalltalk.Compiler);
|
1732
|
+
|
1733
|
+
smalltalk.addMethod(
|
1734
|
+
unescape('_source_'),
|
1735
|
+
smalltalk.method({
|
1736
|
+
selector: unescape('source%3A'),
|
1737
|
+
fn: function (aString){
|
1738
|
+
var self=this;
|
1739
|
+
(self['@source']=aString);
|
1740
|
+
return self;}
|
1741
|
+
}),
|
1742
|
+
smalltalk.Compiler);
|
1743
|
+
|
1744
|
+
smalltalk.addMethod(
|
1745
|
+
unescape('_visitDynamicArrayNode_'),
|
1746
|
+
smalltalk.method({
|
1747
|
+
selector: unescape('visitDynamicArrayNode%3A'),
|
1748
|
+
fn: function (aNode){
|
1749
|
+
var self=this;
|
1750
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%5B")]);
|
1751
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_separatedBy_", [(function(each){return smalltalk.send(self, "_visit_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%2C")]);})]);
|
1752
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%5D")]);
|
1753
|
+
return self;}
|
1754
|
+
}),
|
1755
|
+
smalltalk.Compiler);
|
1756
|
+
|
1757
|
+
smalltalk.addMethod(
|
1758
|
+
unescape('_visitDynamicDictionaryNode_'),
|
1759
|
+
smalltalk.method({
|
1760
|
+
selector: unescape('visitDynamicDictionaryNode%3A'),
|
1761
|
+
fn: function (aNode){
|
1762
|
+
var self=this;
|
1763
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("smalltalk.HashedCollection._fromPairs_%28%5B")]);
|
1764
|
+
smalltalk.send(smalltalk.send(aNode, "_nodes", []), "_do_separatedBy_", [(function(each){return smalltalk.send(self, "_visit_", [each]);}), (function(){return smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%2C")]);})]);
|
1765
|
+
smalltalk.send(self['@stream'], "_nextPutAll_", [unescape("%5D%29")]);
|
1766
|
+
return self;}
|
1767
|
+
}),
|
1768
|
+
smalltalk.Compiler);
|
1769
|
+
|
1770
|
+
smalltalk.addMethod(
|
1771
|
+
unescape('_argVariables'),
|
1772
|
+
smalltalk.method({
|
1773
|
+
selector: unescape('argVariables'),
|
1774
|
+
fn: function (){
|
1775
|
+
var self=this;
|
1776
|
+
return smalltalk.send(self['@argVariables'], "_copy", []);
|
1777
|
+
return self;}
|
1778
|
+
}),
|
1779
|
+
smalltalk.Compiler);
|
1780
|
+
|
1781
|
+
smalltalk.addMethod(
|
1782
|
+
unescape('_safeVariableNameFor_'),
|
1783
|
+
smalltalk.method({
|
1784
|
+
selector: unescape('safeVariableNameFor%3A'),
|
1785
|
+
fn: function (aString){
|
1786
|
+
var self=this;
|
1787
|
+
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;})]));
|
1788
|
+
return self;}
|
1789
|
+
}),
|
1790
|
+
smalltalk.Compiler);
|
1791
|
+
|
1792
|
+
|
1793
|
+
smalltalk.Compiler.klass.iVarNames = ['performOptimizations'];
|
1794
|
+
smalltalk.addMethod(
|
1795
|
+
unescape('_recompile_'),
|
1796
|
+
smalltalk.method({
|
1797
|
+
selector: unescape('recompile%3A'),
|
1798
|
+
fn: function (aClass){
|
1799
|
+
var self=this;
|
1800
|
+
smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_do_", [(function(each){var method=nil;
|
1801
|
+
(method=smalltalk.send(smalltalk.send(self, "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), aClass]));smalltalk.send(method, "_category_", [smalltalk.send(each, "_category", [])]);return smalltalk.send(aClass, "_addCompiledMethod_", [method]);})]);
|
1802
|
+
((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_recompile_", [smalltalk.send(aClass, "_class", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_recompile_", [smalltalk.send(aClass, "_class", [])]);})]));
|
1803
|
+
return self;}
|
1804
|
+
}),
|
1805
|
+
smalltalk.Compiler.klass);
|
1806
|
+
|
1807
|
+
smalltalk.addMethod(
|
1808
|
+
unescape('_recompileAll'),
|
1809
|
+
smalltalk.method({
|
1810
|
+
selector: unescape('recompileAll'),
|
1811
|
+
fn: function (){
|
1812
|
+
var self=this;
|
1813
|
+
smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_recompile_", [each]);})]);
|
1814
|
+
return self;}
|
1815
|
+
}),
|
1816
|
+
smalltalk.Compiler.klass);
|
1817
|
+
|
1818
|
+
smalltalk.addMethod(
|
1819
|
+
unescape('_performOptimizations'),
|
1820
|
+
smalltalk.method({
|
1821
|
+
selector: unescape('performOptimizations'),
|
1822
|
+
fn: function (){
|
1823
|
+
var self=this;
|
1824
|
+
return (($receiver = self['@performOptimizations']) == nil || $receiver == undefined) ? (function(){return true;})() : $receiver;
|
1825
|
+
return self;}
|
1826
|
+
}),
|
1827
|
+
smalltalk.Compiler.klass);
|
1828
|
+
|
1829
|
+
smalltalk.addMethod(
|
1830
|
+
unescape('_performOptimizations_'),
|
1831
|
+
smalltalk.method({
|
1832
|
+
selector: unescape('performOptimizations%3A'),
|
1833
|
+
fn: function (aBoolean){
|
1834
|
+
var self=this;
|
1835
|
+
(self['@performOptimizations']=aBoolean);
|
1836
|
+
return self;}
|
1837
|
+
}),
|
1838
|
+
smalltalk.Compiler.klass);
|
1839
|
+
|
1840
|
+
|
1841
|
+
smalltalk.addClass('DoIt', smalltalk.Object, [], 'Compiler');
|
1842
|
+
|
1843
|
+
|
1844
|
+
smalltalk.addClass('DynamicArrayNode', smalltalk.Node, [], 'Compiler');
|
1845
|
+
smalltalk.addMethod(
|
1846
|
+
unescape('_accept_'),
|
1847
|
+
smalltalk.method({
|
1848
|
+
selector: unescape('accept%3A'),
|
1849
|
+
fn: function (aVisitor){
|
1850
|
+
var self=this;
|
1851
|
+
smalltalk.send(aVisitor, "_visitDynamicArrayNode_", [self]);
|
1852
|
+
return self;}
|
1853
|
+
}),
|
1854
|
+
smalltalk.DynamicArrayNode);
|
1855
|
+
|
1856
|
+
|
1857
|
+
|
1858
|
+
smalltalk.addClass('DynamicDictionaryNode', smalltalk.Node, [], 'Compiler');
|
1859
|
+
smalltalk.addMethod(
|
1860
|
+
unescape('_accept_'),
|
1861
|
+
smalltalk.method({
|
1862
|
+
selector: unescape('accept%3A'),
|
1863
|
+
fn: function (aVisitor){
|
1864
|
+
var self=this;
|
1865
|
+
smalltalk.send(aVisitor, "_visitDynamicDictionaryNode_", [self]);
|
1866
|
+
return self;}
|
1867
|
+
}),
|
1868
|
+
smalltalk.DynamicDictionaryNode);
|
1869
|
+
|
1870
|
+
|
1871
|
+
|