resin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/README.markdown +52 -0
  2. data/amber/css/amber.css +519 -0
  3. data/amber/css/documentation.css +84 -0
  4. data/amber/css/profstef.css +75 -0
  5. data/amber/css/style.css +313 -0
  6. data/amber/images/amber.png +0 -0
  7. data/amber/images/amber_small.png +0 -0
  8. data/amber/images/off.png +0 -0
  9. data/amber/images/offHover.png +0 -0
  10. data/amber/images/presentation.png +0 -0
  11. data/amber/images/profstef.png +0 -0
  12. data/amber/images/sprite.png +0 -0
  13. data/amber/images/tinylogo.png +0 -0
  14. data/amber/images/twitterwall.png +0 -0
  15. data/amber/js/Additional-Examples.deploy.js +15 -0
  16. data/amber/js/Additional-Examples.js +21 -0
  17. data/amber/js/Benchfib.deploy.js +132 -0
  18. data/amber/js/Benchfib.js +167 -0
  19. data/amber/js/Canvas.deploy.js +1304 -0
  20. data/amber/js/Canvas.js +1885 -0
  21. data/amber/js/Compiler.deploy.js +1871 -0
  22. data/amber/js/Compiler.js +2616 -0
  23. data/amber/js/Documentation.deploy.js +961 -0
  24. data/amber/js/Documentation.js +1376 -0
  25. data/amber/js/Examples.deploy.js +53 -0
  26. data/amber/js/Examples.js +73 -0
  27. data/amber/js/IDE.deploy.js +3468 -0
  28. data/amber/js/IDE.js +4883 -0
  29. data/amber/js/Kernel-Announcements.deploy.js +107 -0
  30. data/amber/js/Kernel-Announcements.js +152 -0
  31. data/amber/js/Kernel-Classes.deploy.js +675 -0
  32. data/amber/js/Kernel-Classes.js +956 -0
  33. data/amber/js/Kernel-Collections.deploy.js +3273 -0
  34. data/amber/js/Kernel-Collections.js +4644 -0
  35. data/amber/js/Kernel-Exceptions.deploy.js +244 -0
  36. data/amber/js/Kernel-Exceptions.js +349 -0
  37. data/amber/js/Kernel-Methods.deploy.js +510 -0
  38. data/amber/js/Kernel-Methods.js +739 -0
  39. data/amber/js/Kernel-Objects.deploy.js +2698 -0
  40. data/amber/js/Kernel-Objects.js +3858 -0
  41. data/amber/js/Kernel-Tests.deploy.js +1419 -0
  42. data/amber/js/Kernel-Tests.js +1929 -0
  43. data/amber/js/Kernel-Transcript.deploy.js +142 -0
  44. data/amber/js/Kernel-Transcript.js +202 -0
  45. data/amber/js/SUnit.deploy.js +351 -0
  46. data/amber/js/SUnit.js +501 -0
  47. data/amber/js/amber.js +250 -0
  48. data/amber/js/boot.js +587 -0
  49. data/amber/js/compat.js +22 -0
  50. data/amber/js/init.js +8 -0
  51. data/amber/js/lib/CodeMirror/LICENSE +19 -0
  52. data/amber/js/lib/CodeMirror/amber.css +21 -0
  53. data/amber/js/lib/CodeMirror/codemirror.css +67 -0
  54. data/amber/js/lib/CodeMirror/codemirror.js +2144 -0
  55. data/amber/js/lib/CodeMirror/smalltalk.js +134 -0
  56. data/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
  57. data/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
  58. data/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
  59. data/amber/js/lib/jQuery/jquery.textarea.js +267 -0
  60. data/amber/js/lib/peg-0.6.2.min.js +2 -0
  61. data/amber/js/lib/showdown.js +419 -0
  62. data/amber/js/parser.js +4005 -0
  63. data/amber/js/parser.pegjs +220 -0
  64. data/amber/st/Benchfib.st +124 -0
  65. data/amber/st/Canvas.st +556 -0
  66. data/amber/st/Compiler.st +1425 -0
  67. data/amber/st/Documentation.st +758 -0
  68. data/amber/st/Examples.st +38 -0
  69. data/amber/st/IDE.st +2336 -0
  70. data/amber/st/Kernel-Announcements.st +61 -0
  71. data/amber/st/Kernel-Classes.st +403 -0
  72. data/amber/st/Kernel-Collections.st +1673 -0
  73. data/amber/st/Kernel-Exceptions.st +124 -0
  74. data/amber/st/Kernel-Methods.st +287 -0
  75. data/amber/st/Kernel-Objects.st +1489 -0
  76. data/amber/st/Kernel-Tests.st +892 -0
  77. data/amber/st/Kernel-Transcript.st +70 -0
  78. data/amber/st/SUnit.st +172 -0
  79. data/bin/runresin +12 -0
  80. data/lib/resin.rb +0 -0
  81. data/lib/resin/app/app.rb +121 -0
  82. data/lib/resin/app/views/index.haml +10 -0
  83. metadata +216 -0
@@ -0,0 +1,3858 @@
1
+ smalltalk.addPackage('Kernel-Objects', {});
2
+ smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel-Objects');
3
+ smalltalk.Object.comment=unescape('*Object%20is%20the%20root%20of%20the%20Smalltalk%20class%20system*.%20All%20classes%20in%20the%20system%20are%20subclasses%20of%20Object.%0A%0AObject%20provides%20default%20behavior%20common%20to%20all%20normal%20objects%2C%20such%20as%3A%20%0A%0A-%20access%0A-%20copying%0A-%20comparison%0A-%20error%20handling%0A-%20message%20sending%0A-%20reflection%0A%0AAlso%20utility%20messages%20that%20all%20objects%20should%20respond%20to%20are%20defined%20here.%0A%0AObject%20has%20no%20instance%20variable.%0A%0A%23%23Access%0A%0AInstance%20variables%20can%20be%20accessed%20with%20%60%23instVarAt%3A%60%20and%20%60%23instVarAt%3Aput%3A%60.%20%60Object%20%3E%3E%20instanceVariableNames%60%20answers%20a%20collection%20of%20all%20instance%20variable%20names.%0AAccessing%20JavaScript%20properties%20of%20an%20object%20is%20done%20through%20%60%23basicAt%3A%60%2C%20%60%23basicAt%3Aput%3A%60%20and%20%60basicDelete%3A%60.%0A%0A%23%23Copying%0A%0ACopying%20an%20object%20is%20handled%20by%20%60%23copy%60%20and%20%60%23deepCopy%60.%20The%20first%20one%20performs%20a%20shallow%20copy%20of%20the%20receiver%2C%20while%20the%20second%20one%20performs%20a%20deep%20copy.%0AThe%20hook%20method%20%60%23postCopy%60%20can%20be%20overriden%20in%20subclasses%20to%20copy%20fields%20as%20necessary%20to%20complete%20the%20full%20copy.%20It%20will%20be%20sent%20by%20the%20copy%20of%20the%20receiver.%0A%0A%23%23Comparison%0A%0AObjects%20understand%20equality%20%20%60%23%3D%60%20and%20identity%20%60%23%3D%3D%60%20comparison.%0A%0A%23%23Error%20handling%0A%0A-%20%60%23halt%60%20is%20the%20typical%20message%20to%20use%20for%20inserting%20breakpoints%20during%20debugging.%0A-%20%60%23error%3A%60%20throws%20a%20generic%20error%20exception%0A-%20%60%23doesNotUnderstand%3A%60%20handles%20the%20fact%20that%20there%20was%20an%20attempt%20to%20send%20the%20given%20message%20to%20the%20receiver%20but%20the%20receiver%20does%20not%20understand%20this%20message.%0A%20%20Overriding%20this%20message%20can%20be%20useful%20to%20implement%20proxies%20for%20example.')
4
+ smalltalk.addMethod(
5
+ unescape('__eq'),
6
+ smalltalk.method({
7
+ selector: unescape('%3D'),
8
+ category: 'comparing',
9
+ fn: function (anObject){
10
+ var self=this;
11
+ return smalltalk.send(self, "__eq_eq", [anObject]);
12
+ return self;},
13
+ args: ["anObject"],
14
+ source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
15
+ messageSends: [unescape("%3D%3D")],
16
+ referencedClasses: []
17
+ }),
18
+ smalltalk.Object);
19
+
20
+ smalltalk.addMethod(
21
+ unescape('_%7E_eq'),
22
+ smalltalk.method({
23
+ selector: unescape('%7E%3D'),
24
+ category: 'comparing',
25
+ fn: function (anObject){
26
+ var self=this;
27
+ return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
28
+ return self;},
29
+ args: ["anObject"],
30
+ source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
31
+ messageSends: [unescape("%3D")],
32
+ referencedClasses: []
33
+ }),
34
+ smalltalk.Object);
35
+
36
+ smalltalk.addMethod(
37
+ unescape('_initialize'),
38
+ smalltalk.method({
39
+ selector: unescape('initialize'),
40
+ category: 'initialization',
41
+ fn: function (){
42
+ var self=this;
43
+
44
+ return self;},
45
+ args: [],
46
+ source: unescape('initialize'),
47
+ messageSends: [],
48
+ referencedClasses: []
49
+ }),
50
+ smalltalk.Object);
51
+
52
+ smalltalk.addMethod(
53
+ unescape('_yourself'),
54
+ smalltalk.method({
55
+ selector: unescape('yourself'),
56
+ category: 'accessing',
57
+ fn: function (){
58
+ var self=this;
59
+ return self;
60
+ return self;},
61
+ args: [],
62
+ source: unescape('yourself%0A%09%5Eself'),
63
+ messageSends: [],
64
+ referencedClasses: []
65
+ }),
66
+ smalltalk.Object);
67
+
68
+ smalltalk.addMethod(
69
+ unescape('_class'),
70
+ smalltalk.method({
71
+ selector: unescape('class'),
72
+ category: 'accessing',
73
+ fn: function (){
74
+ var self=this;
75
+ return self.klass;
76
+ return self;},
77
+ args: [],
78
+ source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
79
+ messageSends: [],
80
+ referencedClasses: []
81
+ }),
82
+ smalltalk.Object);
83
+
84
+ smalltalk.addMethod(
85
+ unescape('_size'),
86
+ smalltalk.method({
87
+ selector: unescape('size'),
88
+ category: 'accessing',
89
+ fn: function (){
90
+ var self=this;
91
+ smalltalk.send(self, "_error_", ["Object not indexable"]);
92
+ return self;},
93
+ args: [],
94
+ source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
95
+ messageSends: ["error:"],
96
+ referencedClasses: []
97
+ }),
98
+ smalltalk.Object);
99
+
100
+ smalltalk.addMethod(
101
+ unescape('_copy'),
102
+ smalltalk.method({
103
+ selector: unescape('copy'),
104
+ category: 'copying',
105
+ fn: function (){
106
+ var self=this;
107
+ return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
108
+ return self;},
109
+ args: [],
110
+ source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
111
+ messageSends: ["postCopy", "shallowCopy"],
112
+ referencedClasses: []
113
+ }),
114
+ smalltalk.Object);
115
+
116
+ smalltalk.addMethod(
117
+ unescape('_shallowCopy'),
118
+ smalltalk.method({
119
+ selector: unescape('shallowCopy'),
120
+ category: 'copying',
121
+ fn: function (){
122
+ var self=this;
123
+
124
+ var copy = self.klass._new();
125
+ for(var i in self) {
126
+ if(/^@.+/.test(i)) {
127
+ copy[i] = self[i];
128
+ }
129
+ }
130
+ return copy;
131
+ ;
132
+ return self;},
133
+ args: [],
134
+ source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
135
+ messageSends: [],
136
+ referencedClasses: []
137
+ }),
138
+ smalltalk.Object);
139
+
140
+ smalltalk.addMethod(
141
+ unescape('_deepCopy'),
142
+ smalltalk.method({
143
+ selector: unescape('deepCopy'),
144
+ category: 'copying',
145
+ fn: function (){
146
+ var self=this;
147
+
148
+ var copy = self.klass._new();
149
+ for(var i in self) {
150
+ if(/^@.+/.test(i)) {
151
+ copy[i] = self[i]._deepCopy();
152
+ }
153
+ }
154
+ return copy;
155
+ ;
156
+ return self;},
157
+ args: [],
158
+ source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
159
+ messageSends: [],
160
+ referencedClasses: []
161
+ }),
162
+ smalltalk.Object);
163
+
164
+ smalltalk.addMethod(
165
+ unescape('_postCopy'),
166
+ smalltalk.method({
167
+ selector: unescape('postCopy'),
168
+ category: 'copying',
169
+ fn: function (){
170
+ var self=this;
171
+
172
+ return self;},
173
+ args: [],
174
+ source: unescape('postCopy'),
175
+ messageSends: [],
176
+ referencedClasses: []
177
+ }),
178
+ smalltalk.Object);
179
+
180
+ smalltalk.addMethod(
181
+ unescape('__minus_gt'),
182
+ smalltalk.method({
183
+ selector: unescape('-%3E'),
184
+ category: 'converting',
185
+ fn: function (anObject){
186
+ var self=this;
187
+ return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
188
+ return self;},
189
+ args: ["anObject"],
190
+ source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
191
+ messageSends: ["key:value:"],
192
+ referencedClasses: ["Association"]
193
+ }),
194
+ smalltalk.Object);
195
+
196
+ smalltalk.addMethod(
197
+ unescape('_asString'),
198
+ smalltalk.method({
199
+ selector: unescape('asString'),
200
+ category: 'converting',
201
+ fn: function (){
202
+ var self=this;
203
+ return smalltalk.send(self, "_printString", []);
204
+ return self;},
205
+ args: [],
206
+ source: unescape('asString%0A%09%5Eself%20printString'),
207
+ messageSends: ["printString"],
208
+ referencedClasses: []
209
+ }),
210
+ smalltalk.Object);
211
+
212
+ smalltalk.addMethod(
213
+ unescape('_asJavascript'),
214
+ smalltalk.method({
215
+ selector: unescape('asJavascript'),
216
+ category: 'converting',
217
+ fn: function (){
218
+ var self=this;
219
+ return smalltalk.send(self, "_asString", []);
220
+ return self;},
221
+ args: [],
222
+ source: unescape('asJavascript%0A%09%5Eself%20asString'),
223
+ messageSends: ["asString"],
224
+ referencedClasses: []
225
+ }),
226
+ smalltalk.Object);
227
+
228
+ smalltalk.addMethod(
229
+ unescape('_perform_'),
230
+ smalltalk.method({
231
+ selector: unescape('perform%3A'),
232
+ category: 'message handling',
233
+ fn: function (aSymbol){
234
+ var self=this;
235
+ return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
236
+ return self;},
237
+ args: ["aSymbol"],
238
+ source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
239
+ messageSends: ["perform:withArguments:"],
240
+ referencedClasses: []
241
+ }),
242
+ smalltalk.Object);
243
+
244
+ smalltalk.addMethod(
245
+ unescape('_perform_withArguments_'),
246
+ smalltalk.method({
247
+ selector: unescape('perform%3AwithArguments%3A'),
248
+ category: 'message handling',
249
+ fn: function (aSymbol, aCollection){
250
+ var self=this;
251
+ return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
252
+ return self;},
253
+ args: ["aSymbol", "aCollection"],
254
+ source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
255
+ messageSends: ["basicPerform:withArguments:", "asSelector"],
256
+ referencedClasses: []
257
+ }),
258
+ smalltalk.Object);
259
+
260
+ smalltalk.addMethod(
261
+ unescape('_instVarAt_'),
262
+ smalltalk.method({
263
+ selector: unescape('instVarAt%3A'),
264
+ category: 'accessing',
265
+ fn: function (aSymbol){
266
+ var self=this;
267
+ var varname=nil;
268
+ (varname=smalltalk.send(aSymbol, "_asString", []));
269
+ return self['@'+varname];
270
+ return self;},
271
+ args: ["aSymbol"],
272
+ source: unescape('instVarAt%3A%20aSymbol%0A%09%7C%20varname%20%7C%0A%09varname%20%3A%3D%20aSymbol%20asString.%0A%09%3Creturn%20self%5B%27@%27+varname%5D%3E'),
273
+ messageSends: ["asString"],
274
+ referencedClasses: []
275
+ }),
276
+ smalltalk.Object);
277
+
278
+ smalltalk.addMethod(
279
+ unescape('_instVarAt_put_'),
280
+ smalltalk.method({
281
+ selector: unescape('instVarAt%3Aput%3A'),
282
+ category: 'accessing',
283
+ fn: function (aSymbol, anObject){
284
+ var self=this;
285
+ var varname=nil;
286
+ (varname=smalltalk.send(aSymbol, "_asString", []));
287
+ self['@' + varname] = anObject;
288
+ return self;},
289
+ args: ["aSymbol", "anObject"],
290
+ source: unescape('instVarAt%3A%20aSymbol%20put%3A%20anObject%0A%09%7C%20varname%20%7C%0A%09varname%20%3A%3D%20aSymbol%20asString.%0A%09%3Cself%5B%27@%27%20+%20varname%5D%20%3D%20anObject%3E'),
291
+ messageSends: ["asString"],
292
+ referencedClasses: []
293
+ }),
294
+ smalltalk.Object);
295
+
296
+ smalltalk.addMethod(
297
+ unescape('_basicAt_'),
298
+ smalltalk.method({
299
+ selector: unescape('basicAt%3A'),
300
+ category: 'accessing',
301
+ fn: function (aString){
302
+ var self=this;
303
+ return self[aString];
304
+ return self;},
305
+ args: ["aString"],
306
+ source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
307
+ messageSends: [],
308
+ referencedClasses: []
309
+ }),
310
+ smalltalk.Object);
311
+
312
+ smalltalk.addMethod(
313
+ unescape('_basicAt_put_'),
314
+ smalltalk.method({
315
+ selector: unescape('basicAt%3Aput%3A'),
316
+ category: 'accessing',
317
+ fn: function (aString, anObject){
318
+ var self=this;
319
+ return self[aString] = anObject;
320
+ return self;},
321
+ args: ["aString", "anObject"],
322
+ source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
323
+ messageSends: [],
324
+ referencedClasses: []
325
+ }),
326
+ smalltalk.Object);
327
+
328
+ smalltalk.addMethod(
329
+ unescape('_error_'),
330
+ smalltalk.method({
331
+ selector: unescape('error%3A'),
332
+ category: 'error handling',
333
+ fn: function (aString){
334
+ var self=this;
335
+ smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
336
+ return self;},
337
+ args: ["aString"],
338
+ source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
339
+ messageSends: ["signal:"],
340
+ referencedClasses: ["Error"]
341
+ }),
342
+ smalltalk.Object);
343
+
344
+ smalltalk.addMethod(
345
+ unescape('_subclassResponsibility'),
346
+ smalltalk.method({
347
+ selector: unescape('subclassResponsibility'),
348
+ category: 'error handling',
349
+ fn: function (){
350
+ var self=this;
351
+ smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
352
+ return self;},
353
+ args: [],
354
+ source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
355
+ messageSends: ["error:"],
356
+ referencedClasses: []
357
+ }),
358
+ smalltalk.Object);
359
+
360
+ smalltalk.addMethod(
361
+ unescape('_shouldNotImplement'),
362
+ smalltalk.method({
363
+ selector: unescape('shouldNotImplement'),
364
+ category: 'error handling',
365
+ fn: function (){
366
+ var self=this;
367
+ smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
368
+ return self;},
369
+ args: [],
370
+ source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
371
+ messageSends: ["error:", unescape("%2C"), "name", "class"],
372
+ referencedClasses: []
373
+ }),
374
+ smalltalk.Object);
375
+
376
+ smalltalk.addMethod(
377
+ unescape('_try_catch_'),
378
+ smalltalk.method({
379
+ selector: unescape('try%3Acatch%3A'),
380
+ category: 'error handling',
381
+ fn: function (aBlock, anotherBlock){
382
+ var self=this;
383
+ try{result = aBlock()} catch(e) {result = anotherBlock(e)};
384
+ return result;;
385
+ return self;},
386
+ args: ["aBlock", "anotherBlock"],
387
+ source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7Bresult%20%3D%20aBlock%28%29%7D%20catch%28e%29%20%7Bresult%20%3D%20anotherBlock%28e%29%7D%3B%0A%09return%20result%3B%3E'),
388
+ messageSends: [],
389
+ referencedClasses: []
390
+ }),
391
+ smalltalk.Object);
392
+
393
+ smalltalk.addMethod(
394
+ unescape('_printString'),
395
+ smalltalk.method({
396
+ selector: unescape('printString'),
397
+ category: 'printing',
398
+ fn: function (){
399
+ var self=this;
400
+ return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
401
+ return self;},
402
+ args: [],
403
+ source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
404
+ messageSends: [unescape("%2C"), "name", "class"],
405
+ referencedClasses: []
406
+ }),
407
+ smalltalk.Object);
408
+
409
+ smalltalk.addMethod(
410
+ unescape('_printNl'),
411
+ smalltalk.method({
412
+ selector: unescape('printNl'),
413
+ category: 'printing',
414
+ fn: function (){
415
+ var self=this;
416
+ console.log(self);
417
+ return self;},
418
+ args: [],
419
+ source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
420
+ messageSends: [],
421
+ referencedClasses: []
422
+ }),
423
+ smalltalk.Object);
424
+
425
+ smalltalk.addMethod(
426
+ unescape('_isKindOf_'),
427
+ smalltalk.method({
428
+ selector: unescape('isKindOf%3A'),
429
+ category: 'testing',
430
+ fn: function (aClass){
431
+ var self=this;
432
+ return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
433
+ return self;},
434
+ args: ["aClass"],
435
+ source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
436
+ messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
437
+ referencedClasses: []
438
+ }),
439
+ smalltalk.Object);
440
+
441
+ smalltalk.addMethod(
442
+ unescape('_isMemberOf_'),
443
+ smalltalk.method({
444
+ selector: unescape('isMemberOf%3A'),
445
+ category: 'testing',
446
+ fn: function (aClass){
447
+ var self=this;
448
+ return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
449
+ return self;},
450
+ args: ["aClass"],
451
+ source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
452
+ messageSends: [unescape("%3D"), "class"],
453
+ referencedClasses: []
454
+ }),
455
+ smalltalk.Object);
456
+
457
+ smalltalk.addMethod(
458
+ unescape('_ifNil_'),
459
+ smalltalk.method({
460
+ selector: unescape('ifNil%3A'),
461
+ category: 'testing',
462
+ fn: function (aBlock){
463
+ var self=this;
464
+ return self;
465
+ return self;},
466
+ args: ["aBlock"],
467
+ source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
468
+ messageSends: [],
469
+ referencedClasses: []
470
+ }),
471
+ smalltalk.Object);
472
+
473
+ smalltalk.addMethod(
474
+ unescape('_ifNil_ifNotNil_'),
475
+ smalltalk.method({
476
+ selector: unescape('ifNil%3AifNotNil%3A'),
477
+ category: 'testing',
478
+ fn: function (aBlock, anotherBlock){
479
+ var self=this;
480
+ return smalltalk.send(anotherBlock, "_value", []);
481
+ return self;},
482
+ args: ["aBlock", "anotherBlock"],
483
+ source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
484
+ messageSends: ["value"],
485
+ referencedClasses: []
486
+ }),
487
+ smalltalk.Object);
488
+
489
+ smalltalk.addMethod(
490
+ unescape('_ifNotNil_'),
491
+ smalltalk.method({
492
+ selector: unescape('ifNotNil%3A'),
493
+ category: 'testing',
494
+ fn: function (aBlock){
495
+ var self=this;
496
+ return smalltalk.send(aBlock, "_value", []);
497
+ return self;},
498
+ args: ["aBlock"],
499
+ source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
500
+ messageSends: ["value"],
501
+ referencedClasses: []
502
+ }),
503
+ smalltalk.Object);
504
+
505
+ smalltalk.addMethod(
506
+ unescape('_ifNotNil_ifNil_'),
507
+ smalltalk.method({
508
+ selector: unescape('ifNotNil%3AifNil%3A'),
509
+ category: 'testing',
510
+ fn: function (aBlock, anotherBlock){
511
+ var self=this;
512
+ return smalltalk.send(aBlock, "_value", []);
513
+ return self;},
514
+ args: ["aBlock", "anotherBlock"],
515
+ source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
516
+ messageSends: ["value"],
517
+ referencedClasses: []
518
+ }),
519
+ smalltalk.Object);
520
+
521
+ smalltalk.addMethod(
522
+ unescape('_isNil'),
523
+ smalltalk.method({
524
+ selector: unescape('isNil'),
525
+ category: 'testing',
526
+ fn: function (){
527
+ var self=this;
528
+ return false;
529
+ return self;},
530
+ args: [],
531
+ source: unescape('isNil%0A%09%5Efalse'),
532
+ messageSends: [],
533
+ referencedClasses: []
534
+ }),
535
+ smalltalk.Object);
536
+
537
+ smalltalk.addMethod(
538
+ unescape('_notNil'),
539
+ smalltalk.method({
540
+ selector: unescape('notNil'),
541
+ category: 'testing',
542
+ fn: function (){
543
+ var self=this;
544
+ return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
545
+ return self;},
546
+ args: [],
547
+ source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
548
+ messageSends: ["not", "isNil"],
549
+ referencedClasses: []
550
+ }),
551
+ smalltalk.Object);
552
+
553
+ smalltalk.addMethod(
554
+ unescape('_isClass'),
555
+ smalltalk.method({
556
+ selector: unescape('isClass'),
557
+ category: 'testing',
558
+ fn: function (){
559
+ var self=this;
560
+ return false;
561
+ return self;},
562
+ args: [],
563
+ source: unescape('isClass%0A%09%5Efalse'),
564
+ messageSends: [],
565
+ referencedClasses: []
566
+ }),
567
+ smalltalk.Object);
568
+
569
+ smalltalk.addMethod(
570
+ unescape('_isMetaclass'),
571
+ smalltalk.method({
572
+ selector: unescape('isMetaclass'),
573
+ category: 'testing',
574
+ fn: function (){
575
+ var self=this;
576
+ return false;
577
+ return self;},
578
+ args: [],
579
+ source: unescape('isMetaclass%0A%09%5Efalse'),
580
+ messageSends: [],
581
+ referencedClasses: []
582
+ }),
583
+ smalltalk.Object);
584
+
585
+ smalltalk.addMethod(
586
+ unescape('_isNumber'),
587
+ smalltalk.method({
588
+ selector: unescape('isNumber'),
589
+ category: 'testing',
590
+ fn: function (){
591
+ var self=this;
592
+ return false;
593
+ return self;},
594
+ args: [],
595
+ source: unescape('isNumber%0A%09%5Efalse'),
596
+ messageSends: [],
597
+ referencedClasses: []
598
+ }),
599
+ smalltalk.Object);
600
+
601
+ smalltalk.addMethod(
602
+ unescape('_isString'),
603
+ smalltalk.method({
604
+ selector: unescape('isString'),
605
+ category: 'testing',
606
+ fn: function (){
607
+ var self=this;
608
+ return false;
609
+ return self;},
610
+ args: [],
611
+ source: unescape('isString%0A%09%5Efalse'),
612
+ messageSends: [],
613
+ referencedClasses: []
614
+ }),
615
+ smalltalk.Object);
616
+
617
+ smalltalk.addMethod(
618
+ unescape('_isParseFailure'),
619
+ smalltalk.method({
620
+ selector: unescape('isParseFailure'),
621
+ category: 'testing',
622
+ fn: function (){
623
+ var self=this;
624
+ return false;
625
+ return self;},
626
+ args: [],
627
+ source: unescape('isParseFailure%0A%09%5Efalse'),
628
+ messageSends: [],
629
+ referencedClasses: []
630
+ }),
631
+ smalltalk.Object);
632
+
633
+ smalltalk.addMethod(
634
+ unescape('_basicPerform_'),
635
+ smalltalk.method({
636
+ selector: unescape('basicPerform%3A'),
637
+ category: 'message handling',
638
+ fn: function (aSymbol){
639
+ var self=this;
640
+ return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
641
+ return self;},
642
+ args: ["aSymbol"],
643
+ source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
644
+ messageSends: ["basicPerform:withArguments:"],
645
+ referencedClasses: []
646
+ }),
647
+ smalltalk.Object);
648
+
649
+ smalltalk.addMethod(
650
+ unescape('_basicPerform_withArguments_'),
651
+ smalltalk.method({
652
+ selector: unescape('basicPerform%3AwithArguments%3A'),
653
+ category: 'message handling',
654
+ fn: function (aSymbol, aCollection){
655
+ var self=this;
656
+ return self[aSymbol].apply(self, aCollection);;
657
+ return self;},
658
+ args: ["aSymbol", "aCollection"],
659
+ source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
660
+ messageSends: [],
661
+ referencedClasses: []
662
+ }),
663
+ smalltalk.Object);
664
+
665
+ smalltalk.addMethod(
666
+ unescape('_basicDelete_'),
667
+ smalltalk.method({
668
+ selector: unescape('basicDelete%3A'),
669
+ category: 'accessing',
670
+ fn: function (aString){
671
+ var self=this;
672
+ delete self[aString]; return aString;
673
+ return self;},
674
+ args: ["aString"],
675
+ source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3B%20return%20aString%3E'),
676
+ messageSends: [],
677
+ referencedClasses: []
678
+ }),
679
+ smalltalk.Object);
680
+
681
+ smalltalk.addMethod(
682
+ unescape('_doesNotUnderstand_'),
683
+ smalltalk.method({
684
+ selector: unescape('doesNotUnderstand%3A'),
685
+ category: 'error handling',
686
+ fn: function (aMessage){
687
+ var self=this;
688
+ (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
689
+ return self;},
690
+ args: ["aMessage"],
691
+ source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
692
+ messageSends: ["receiver:", "message:", "signal", "new"],
693
+ referencedClasses: ["MessageNotUnderstood"]
694
+ }),
695
+ smalltalk.Object);
696
+
697
+ smalltalk.addMethod(
698
+ unescape('_asJSON'),
699
+ smalltalk.method({
700
+ selector: unescape('asJSON'),
701
+ category: 'converting',
702
+ fn: function (){
703
+ var self=this;
704
+ return smalltalk.send((smalltalk.JSON || JSON), "_parse_", [smalltalk.send(self, "_asJSONString", [])]);
705
+ return self;},
706
+ args: [],
707
+ source: unescape('asJSON%0A%09%5EJSON%20parse%3A%20self%20asJSONString'),
708
+ messageSends: ["parse:", "asJSONString"],
709
+ referencedClasses: ["JSON"]
710
+ }),
711
+ smalltalk.Object);
712
+
713
+ smalltalk.addMethod(
714
+ unescape('_halt'),
715
+ smalltalk.method({
716
+ selector: unescape('halt'),
717
+ category: 'error handling',
718
+ fn: function (){
719
+ var self=this;
720
+ smalltalk.send(self, "_error_", ["Halt encountered"]);
721
+ return self;},
722
+ args: [],
723
+ source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
724
+ messageSends: ["error:"],
725
+ referencedClasses: []
726
+ }),
727
+ smalltalk.Object);
728
+
729
+ smalltalk.addMethod(
730
+ unescape('_log_block_'),
731
+ smalltalk.method({
732
+ selector: unescape('log%3Ablock%3A'),
733
+ category: 'printing',
734
+ fn: function (aString, aBlock){
735
+ var self=this;
736
+ var result=nil;
737
+ smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (result=smalltalk.send(aBlock, "_value", []));})]), "_printString", [])])]);
738
+ return result;
739
+ return self;},
740
+ args: ["aString", "aBlock"],
741
+ source: unescape('log%3A%20aString%20block%3A%20aBlock%0A%0A%09%7C%20result%20%7C%0A%09console%20log%3A%20%20aString%2C%20%20%27%20time%3A%20%27%2C%20%28Date%20millisecondsToRun%3A%20%5Bresult%20%3A%3D%20aBlock%20value%5D%29%20printString.%0A%09%5Eresult'),
742
+ messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
743
+ referencedClasses: ["Date"]
744
+ }),
745
+ smalltalk.Object);
746
+
747
+ smalltalk.addMethod(
748
+ unescape('__eq_eq'),
749
+ smalltalk.method({
750
+ selector: unescape('%3D%3D'),
751
+ category: 'comparing',
752
+ fn: function (anObject){
753
+ var self=this;
754
+ return smalltalk.send(smalltalk.send(self, "_identityHash", []), "__eq", [smalltalk.send(anObject, "_identityHash", [])]);
755
+ return self;},
756
+ args: ["anObject"],
757
+ source: unescape('%3D%3D%20anObject%0A%09%5Eself%20identityHash%20%3D%20anObject%20identityHash'),
758
+ messageSends: [unescape("%3D"), "identityHash"],
759
+ referencedClasses: []
760
+ }),
761
+ smalltalk.Object);
762
+
763
+ smalltalk.addMethod(
764
+ unescape('_%7E%7E'),
765
+ smalltalk.method({
766
+ selector: unescape('%7E%7E'),
767
+ category: 'comparing',
768
+ fn: function (anObject){
769
+ var self=this;
770
+ return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
771
+ return self;},
772
+ args: ["anObject"],
773
+ source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
774
+ messageSends: [unescape("%3D"), unescape("%3D%3D")],
775
+ referencedClasses: []
776
+ }),
777
+ smalltalk.Object);
778
+
779
+ smalltalk.addMethod(
780
+ unescape('_deprecatedAPI'),
781
+ smalltalk.method({
782
+ selector: unescape('deprecatedAPI'),
783
+ category: 'error handling',
784
+ fn: function (){
785
+ var self=this;
786
+ smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21%20%28in%20")]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_home", []), "_asString", [])]), "__comma", [unescape("%29")])]);
787
+ return self;},
788
+ args: [],
789
+ source: unescape('deprecatedAPI%0A%09%22Just%20a%20simple%20way%20to%20deprecate%20methods.%0A%09%23deprecatedAPI%20is%20in%20the%20%27error%20handling%27%20protocol%20even%20if%20it%20doesn%27t%20throw%20an%20error%2C%0A%09but%20it%20could%20in%20the%20future.%22%0A%09console%20warn%3A%20thisContext%20home%20asString%2C%20%27%20is%20deprecated%21%20%28in%20%27%2C%20thisContext%20home%20home%20asString%2C%20%27%29%27'),
790
+ messageSends: ["warn:", unescape("%2C"), "asString", "home"],
791
+ referencedClasses: []
792
+ }),
793
+ smalltalk.Object);
794
+
795
+ smalltalk.addMethod(
796
+ unescape('_storeString'),
797
+ smalltalk.method({
798
+ selector: unescape('storeString'),
799
+ category: 'printing',
800
+ fn: function (){
801
+ var self=this;
802
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
803
+ return self;},
804
+ args: [],
805
+ source: unescape('storeString%0A%09%22Answer%20a%20String%20representation%20of%20the%20receiver%20from%20which%20the%20receiver%20%0A%09can%20be%20reconstructed.%22%0A%0A%09%5E%20String%20streamContents%3A%20%5B%3As%20%7C%20self%20storeOn%3A%20s%5D'),
806
+ messageSends: ["streamContents:", "storeOn:"],
807
+ referencedClasses: ["String"]
808
+ }),
809
+ smalltalk.Object);
810
+
811
+ smalltalk.addMethod(
812
+ unescape('_storeOn_'),
813
+ smalltalk.method({
814
+ selector: unescape('storeOn%3A'),
815
+ category: 'printing',
816
+ fn: function (aStream){
817
+ var self=this;
818
+ smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
819
+ return self;},
820
+ args: ["aStream"],
821
+ source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20self%20printString'),
822
+ messageSends: ["nextPutAll:", "printString"],
823
+ referencedClasses: []
824
+ }),
825
+ smalltalk.Object);
826
+
827
+ smalltalk.addMethod(
828
+ unescape('_asJSONString'),
829
+ smalltalk.method({
830
+ selector: unescape('asJSONString'),
831
+ category: 'converting',
832
+ fn: function (){
833
+ var self=this;
834
+ return smalltalk.send((smalltalk.JSON || JSON), "_stringify_", [self]);
835
+ return self;},
836
+ args: [],
837
+ source: unescape('asJSONString%0A%09%5EJSON%20stringify%3A%20self'),
838
+ messageSends: ["stringify:"],
839
+ referencedClasses: ["JSON"]
840
+ }),
841
+ smalltalk.Object);
842
+
843
+ smalltalk.addMethod(
844
+ unescape('_identityHash'),
845
+ smalltalk.method({
846
+ selector: unescape('identityHash'),
847
+ category: 'accessing',
848
+ fn: function (){
849
+ var self=this;
850
+ return self.identityHash || (self.identityHash = smalltalk.nextId());;
851
+ return self;},
852
+ args: [],
853
+ source: unescape('identityHash%0A%09%3Creturn%20self.identityHash%20%7C%7C%20%28self.identityHash%20%3D%20smalltalk.nextId%28%29%29%3B%3E'),
854
+ messageSends: [],
855
+ referencedClasses: []
856
+ }),
857
+ smalltalk.Object);
858
+
859
+ smalltalk.addMethod(
860
+ unescape('_isSymbol'),
861
+ smalltalk.method({
862
+ selector: unescape('isSymbol'),
863
+ category: 'testing',
864
+ fn: function (){
865
+ var self=this;
866
+ return false;
867
+ return self;},
868
+ args: [],
869
+ source: unescape('isSymbol%0A%09%5Efalse'),
870
+ messageSends: [],
871
+ referencedClasses: []
872
+ }),
873
+ smalltalk.Object);
874
+
875
+
876
+ smalltalk.addMethod(
877
+ unescape('_initialize'),
878
+ smalltalk.method({
879
+ selector: unescape('initialize'),
880
+ category: 'initialization',
881
+ fn: function (){
882
+ var self=this;
883
+
884
+ return self;},
885
+ args: [],
886
+ source: unescape('initialize%0A%09%22no%20op%22'),
887
+ messageSends: [],
888
+ referencedClasses: []
889
+ }),
890
+ smalltalk.Object.klass);
891
+
892
+
893
+ smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel-Objects');
894
+ smalltalk.Smalltalk.comment=unescape('Smalltalk%20has%20only%20one%20instance%2C%20accessed%20with%20%60Smalltalk%20current%60.%20%0AIt%20represents%20the%20global%20JavaScript%20variable%20%60smalltalk%60%20declared%20in%20%60js/boot.js%60.%0A%0AThe%20%60smalltalk%60%20object%20holds%20all%20class%20and%20packages%20defined%20in%20the%20system.%0A%0A%23%23%20Classes%0A%0AClasses%20can%20be%20accessed%20using%20the%20following%20methods%3A%0A%0A-%20%60%23classes%60%20answers%20the%20full%20list%20of%20Smalltalk%20classes%20in%20the%20system%0A-%20%60%23at%3A%60%20answers%20a%20specific%20class%20of%20%60nil%60%0A%0A%23%23%20Packages%0A%0APackages%20can%20be%20accessed%20using%20the%20following%20methods%3A%0A%0A-%20%60%23packages%60%20answers%20the%20full%20list%20of%20packages%0A-%20%60%23packageAt%3A%60%20answers%20a%20specific%20class%20of%20%60nil%60%0A%0A__note%3A__%20classes%20and%20packages%20are%20accessed%20using%20strings%2C%20not%20symbols%0A%0A%23%23%20Parsing%0A%0AThe%20%60%23parse%3A%60%20method%20is%20used%20to%20parse%20Smalltalk%20source%20code.%20%0AIt%20requires%20the%20%60Compiler%60%20package%20and%20the%20%60js/parser.js%60%20parser%20file%20in%20order%20to%20work')
895
+ smalltalk.addMethod(
896
+ unescape('_classes'),
897
+ smalltalk.method({
898
+ selector: unescape('classes'),
899
+ category: 'accessing',
900
+ fn: function (){
901
+ var self=this;
902
+ return self.classes();
903
+ return self;},
904
+ args: [],
905
+ source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
906
+ messageSends: [],
907
+ referencedClasses: []
908
+ }),
909
+ smalltalk.Smalltalk);
910
+
911
+ smalltalk.addMethod(
912
+ unescape('_at_'),
913
+ smalltalk.method({
914
+ selector: unescape('at%3A'),
915
+ category: 'accessing',
916
+ fn: function (aString){
917
+ var self=this;
918
+ return self[aString];
919
+ return self;},
920
+ args: ["aString"],
921
+ source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
922
+ messageSends: [],
923
+ referencedClasses: []
924
+ }),
925
+ smalltalk.Smalltalk);
926
+
927
+ smalltalk.addMethod(
928
+ unescape('_removeClass_'),
929
+ smalltalk.method({
930
+ selector: unescape('removeClass%3A'),
931
+ category: 'classes',
932
+ fn: function (aClass){
933
+ var self=this;
934
+ ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})]));
935
+ smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
936
+ smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
937
+ smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
938
+ return self;},
939
+ args: ["aClass"],
940
+ source: unescape('removeClass%3A%20aClass%0A%09aClass%20isMetaclass%20ifTrue%3A%20%5Bself%20error%3A%20aClass%20asString%2C%20%27%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21%27%5D.%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20removeCompiledMethod%3A%20each%5D.%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20class%20removeCompiledMethod%3A%20each%5D.%0A%09self%20basicDelete%3A%20aClass%20name'),
941
+ messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
942
+ referencedClasses: []
943
+ }),
944
+ smalltalk.Smalltalk);
945
+
946
+ smalltalk.addMethod(
947
+ unescape('_basicParse_'),
948
+ smalltalk.method({
949
+ selector: unescape('basicParse%3A'),
950
+ category: 'accessing',
951
+ fn: function (aString){
952
+ var self=this;
953
+ return smalltalk.parser.parse(aString);
954
+ return self;},
955
+ args: ["aString"],
956
+ source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
957
+ messageSends: [],
958
+ referencedClasses: []
959
+ }),
960
+ smalltalk.Smalltalk);
961
+
962
+ smalltalk.addMethod(
963
+ unescape('_parse_'),
964
+ smalltalk.method({
965
+ selector: unescape('parse%3A'),
966
+ category: 'accessing',
967
+ fn: function (aString){
968
+ var self=this;
969
+ var result=nil;
970
+ smalltalk.send(self, "_try_catch_", [(function(){return (result=smalltalk.send(self, "_basicParse_", [aString]));}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
971
+ return result;
972
+ return self;},
973
+ args: ["aString"],
974
+ source: unescape('parse%3A%20aString%0A%09%7C%20result%20%7C%20%0A%09self%20try%3A%20%5Bresult%20%3A%3D%20self%20basicParse%3A%20aString%5D%20catch%3A%20%5B%3Aex%20%7C%20%28self%20parseError%3A%20ex%20parsing%3A%20aString%29%20signal%5D.%0A%09%5Eresult'),
975
+ messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
976
+ referencedClasses: []
977
+ }),
978
+ smalltalk.Smalltalk);
979
+
980
+ smalltalk.addMethod(
981
+ unescape('_parseError_parsing_'),
982
+ smalltalk.method({
983
+ selector: unescape('parseError%3Aparsing%3A'),
984
+ category: 'accessing',
985
+ fn: function (anException, aString){
986
+ var self=this;
987
+ var row=nil;
988
+ var col=nil;
989
+ var message=nil;
990
+ var lines=nil;
991
+ var badLine=nil;
992
+ var code=nil;
993
+ row = anException.line;
994
+ col = anException.column;
995
+ message = anException.message;;
996
+ (lines=smalltalk.send(aString, "_lines", []));
997
+ (badLine=smalltalk.send(lines, "_at_", [row]));
998
+ (badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [unescape("%20%3D%3D%3D%3E")]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]));
999
+ smalltalk.send(lines, "_at_put_", [row, badLine]);
1000
+ (code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]));
1001
+ return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [unescape("%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A")]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
1002
+ return self;},
1003
+ args: ["anException", "aString"],
1004
+ source: unescape('parseError%3A%20anException%20parsing%3A%20aString%0A%09%7C%20row%20col%20message%20lines%20badLine%20code%20%7C%0A%09%3Crow%20%3D%20anException.line%3B%0A%09col%20%3D%20anException.column%3B%0A%09message%20%3D%20anException.message%3B%3E.%0A%09lines%20%3A%3D%20aString%20lines.%0A%09badLine%20%3A%3D%20lines%20at%3A%20row.%0A%09badLine%20%3A%3D%20%28badLine%20copyFrom%3A%201%20to%3A%20col%20-%201%29%2C%20%27%20%3D%3D%3D%3E%27%2C%20%28badLine%20copyFrom%3A%20%20col%20to%3A%20badLine%20size%29.%0A%09lines%20at%3A%20row%20put%3A%20badLine.%0A%09code%20%3A%3D%20String%20streamContents%3A%20%5B%3As%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lines%20withIndexDo%3A%20%5B%3Al%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20s%20nextPutAll%3A%20i%20asString%2C%20%27%3A%20%27%2C%20l%2C%20String%20lf%5D%5D.%0A%09%5E%20Error%20new%20messageText%3A%20%28%27Parse%20error%20on%20line%20%27%20%2C%20row%20%2C%20%27%20column%20%27%20%2C%20col%20%2C%20%27%20%3A%20%27%20%2C%20message%20%2C%20%27%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A%27%20%2C%20String%20lf%2C%20code%29'),
1005
+ messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
1006
+ referencedClasses: ["String", "Error"]
1007
+ }),
1008
+ smalltalk.Smalltalk);
1009
+
1010
+ smalltalk.addMethod(
1011
+ unescape('_packages'),
1012
+ smalltalk.method({
1013
+ selector: unescape('packages'),
1014
+ category: 'packages',
1015
+ fn: function (){
1016
+ var self=this;
1017
+ return self.packages.all();
1018
+ return self;},
1019
+ args: [],
1020
+ source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
1021
+ messageSends: [],
1022
+ referencedClasses: []
1023
+ }),
1024
+ smalltalk.Smalltalk);
1025
+
1026
+ smalltalk.addMethod(
1027
+ unescape('_packageAt_'),
1028
+ smalltalk.method({
1029
+ selector: unescape('packageAt%3A'),
1030
+ category: 'packages',
1031
+ fn: function (packageName){
1032
+ var self=this;
1033
+ return self.packages[packageName];
1034
+ return self;},
1035
+ args: ["packageName"],
1036
+ source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
1037
+ messageSends: [],
1038
+ referencedClasses: []
1039
+ }),
1040
+ smalltalk.Smalltalk);
1041
+
1042
+ smalltalk.addMethod(
1043
+ unescape('_packageAt_ifAbsent_'),
1044
+ smalltalk.method({
1045
+ selector: unescape('packageAt%3AifAbsent%3A'),
1046
+ category: 'packages',
1047
+ fn: function (packageName, aBlock){
1048
+ var self=this;
1049
+ return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
1050
+ return self;},
1051
+ args: ["packageName", "aBlock"],
1052
+ source: unescape('packageAt%3A%20packageName%20ifAbsent%3A%20aBlock%0A%20%20%20%20%20%20%20%5E%28self%20packageAt%3A%20packageName%29%20ifNil%3A%20aBlock'),
1053
+ messageSends: ["ifNil:", "packageAt:"],
1054
+ referencedClasses: []
1055
+ }),
1056
+ smalltalk.Smalltalk);
1057
+
1058
+ smalltalk.addMethod(
1059
+ unescape('_createPackage_'),
1060
+ smalltalk.method({
1061
+ selector: unescape('createPackage%3A'),
1062
+ category: 'private',
1063
+ fn: function (packageName){
1064
+ var self=this;
1065
+ return smalltalk.addPackage(packageName, nil);
1066
+ return self;},
1067
+ args: ["packageName"],
1068
+ source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20nil%29%3E'),
1069
+ messageSends: [],
1070
+ referencedClasses: []
1071
+ }),
1072
+ smalltalk.Smalltalk);
1073
+
1074
+ smalltalk.addMethod(
1075
+ unescape('_deletePackage_'),
1076
+ smalltalk.method({
1077
+ selector: unescape('deletePackage%3A'),
1078
+ category: 'private',
1079
+ fn: function (packageName){
1080
+ var self=this;
1081
+ delete smalltalk.packages[packageName];
1082
+ return self;},
1083
+ args: ["packageName"],
1084
+ source: unescape('deletePackage%3A%20packageName%0A%09%22Deletes%20a%20package%20by%20deleting%20its%20binding%2C%20but%20does%20not%20check%20if%20it%20contains%20classes%20etc.%0A%09To%20remove%20a%20package%2C%20use%20%23removePackage%20instead.%22%0A%0A%20%20%20%20%20%20%20%3Cdelete%20smalltalk.packages%5BpackageName%5D%3E'),
1085
+ messageSends: [],
1086
+ referencedClasses: []
1087
+ }),
1088
+ smalltalk.Smalltalk);
1089
+
1090
+ smalltalk.addMethod(
1091
+ unescape('_removePackage_'),
1092
+ smalltalk.method({
1093
+ selector: unescape('removePackage%3A'),
1094
+ category: 'packages',
1095
+ fn: function (packageName){
1096
+ var self=this;
1097
+ var pkg=nil;
1098
+ (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
1099
+ smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
1100
+ smalltalk.send(self, "_deletePackage_", [packageName]);
1101
+ return self;},
1102
+ args: ["packageName"],
1103
+ source: unescape('removePackage%3A%20packageName%0A%09%22Removes%20a%20package%20and%20all%20its%20classes.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09pkg%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%20%20%20%20%09self%20removeClass%3A%20each%5D.%0A%09self%20deletePackage%3A%20packageName'),
1104
+ messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
1105
+ referencedClasses: []
1106
+ }),
1107
+ smalltalk.Smalltalk);
1108
+
1109
+ smalltalk.addMethod(
1110
+ unescape('_renamePackage_to_'),
1111
+ smalltalk.method({
1112
+ selector: unescape('renamePackage%3Ato%3A'),
1113
+ category: 'packages',
1114
+ fn: function (packageName, newName){
1115
+ var self=this;
1116
+ var pkg=nil;
1117
+ (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
1118
+ (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
1119
+ smalltalk.packages[newName] = smalltalk.packages[packageName];
1120
+ smalltalk.send(pkg, "_name_", [newName]);
1121
+ smalltalk.send(self, "_deletePackage_", [packageName]);
1122
+ return self;},
1123
+ args: ["packageName", "newName"],
1124
+ source: unescape('renamePackage%3A%20packageName%20to%3A%20newName%0A%09%22Rename%20a%20package.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09%28self%20packageAt%3A%20newName%29%20ifNotNil%3A%20%5Bself%20error%3A%20%27Already%20exists%20a%20package%20called%3A%20%27%2C%20newName%5D.%0A%09%3Csmalltalk.packages%5BnewName%5D%20%3D%20smalltalk.packages%5BpackageName%5D%3E.%0A%09pkg%20name%3A%20newName.%0A%09self%20deletePackage%3A%20packageName.'),
1125
+ messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
1126
+ referencedClasses: []
1127
+ }),
1128
+ smalltalk.Smalltalk);
1129
+
1130
+ smalltalk.addMethod(
1131
+ unescape('_reservedWords'),
1132
+ smalltalk.method({
1133
+ selector: unescape('reservedWords'),
1134
+ category: 'accessing',
1135
+ fn: function (){
1136
+ var self=this;
1137
+ return self.reservedWords;
1138
+ return self;},
1139
+ args: [],
1140
+ source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
1141
+ messageSends: [],
1142
+ referencedClasses: []
1143
+ }),
1144
+ smalltalk.Smalltalk);
1145
+
1146
+ smalltalk.addMethod(
1147
+ unescape('_createPackage_properties_'),
1148
+ smalltalk.method({
1149
+ selector: unescape('createPackage%3Aproperties%3A'),
1150
+ category: 'private',
1151
+ fn: function (packageName, aDict){
1152
+ var self=this;
1153
+ var object=nil;
1154
+ object = {};;
1155
+ smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
1156
+ return smalltalk.addPackage(packageName, object);
1157
+ return self;},
1158
+ args: ["packageName", "aDict"],
1159
+ source: unescape('createPackage%3A%20packageName%20properties%3A%20aDict%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20object%29%3E'),
1160
+ messageSends: ["keysAndValuesDo:"],
1161
+ referencedClasses: []
1162
+ }),
1163
+ smalltalk.Smalltalk);
1164
+
1165
+ smalltalk.addMethod(
1166
+ unescape('_readJSObject_'),
1167
+ smalltalk.method({
1168
+ selector: unescape('readJSObject%3A'),
1169
+ category: 'accessing',
1170
+ fn: function (anObject){
1171
+ var self=this;
1172
+ return self.readJSObject(anObject);
1173
+ return self;},
1174
+ args: ["anObject"],
1175
+ source: unescape('readJSObject%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
1176
+ messageSends: [],
1177
+ referencedClasses: []
1178
+ }),
1179
+ smalltalk.Smalltalk);
1180
+
1181
+
1182
+ smalltalk.Smalltalk.klass.iVarNames = ['current'];
1183
+ smalltalk.addMethod(
1184
+ unescape('_current'),
1185
+ smalltalk.method({
1186
+ selector: unescape('current'),
1187
+ category: 'accessing',
1188
+ fn: function (){
1189
+ var self=this;
1190
+ return smalltalk;
1191
+ return self;},
1192
+ args: [],
1193
+ source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
1194
+ messageSends: [],
1195
+ referencedClasses: []
1196
+ }),
1197
+ smalltalk.Smalltalk.klass);
1198
+
1199
+
1200
+ smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel-Objects');
1201
+ smalltalk.Package.comment=unescape('A%20Package%20is%20similar%20to%20a%20%22class%20category%22%20typically%20found%20in%20other%20Smalltalks%20like%20Pharo%20or%20Squeak.%20Amber%20does%20not%20have%20class%20categories%20anymore%2C%20it%20had%20in%20the%20beginning%20but%20now%20each%20class%20in%20the%20system%20knows%20which%20package%20it%20belongs%20to.%0A%0AA%20Package%20has%20a%20name%2C%20an%20Array%20of%20%22requires%22%2C%20a%20comment%20and%20a%20Dictionary%20with%20other%20optional%20key%20value%20attributes.%20A%20Package%20can%20also%20be%20queried%20for%20its%20classes%2C%20but%20it%20will%20then%20resort%20to%20a%20reverse%20scan%20of%20all%20classes%20to%20find%20them.%0APackages%20are%20manipulated%20through%20%22Smalltalk%20current%22%2C%20like%20for%20example%20finding%20one%20based%20on%20a%20name%3A%0A%0A%09Smalltalk%20current%20packageAt%3A%20%27Kernel%27%0A%0A...but%20you%20can%20also%20use%3A%0A%0A%09Package%20named%3A%20%27Kernel%27%0A%0AA%20Package%20differs%20slightly%20from%20a%20Monticello%20package%20which%20can%20span%20multiple%20class%20categories%20using%20a%20naming%20convention%20based%20on%20hyphenation.%20But%20just%20as%20in%20Monticello%20a%20Package%20supports%20%22class%20extensions%22%20so%20a%20Package%0Acan%20define%20behaviors%20in%20foreign%20classes%20using%20a%20naming%20convention%20for%20method%20categories%20where%20the%20category%20starts%20with%20an%20asterisk%20and%20then%20the%20name%20of%20the%20owning%20package%20follows.%20This%20can%20easily%20be%20seen%20in%20for%20example%20class%0AString%20where%20the%20method%20category%20%22*IDE%22%20defines%20%23inspectOn%3A%20which%20thus%20is%20a%20method%20belonging%20to%20the%20IDE%20package.%0A%0AYou%20can%20fetch%20a%20package%20from%20the%20server%3A%0A%0A%09Package%20fetch%3A%20%27Additional-Examples%27')
1202
+ smalltalk.addMethod(
1203
+ unescape('_name'),
1204
+ smalltalk.method({
1205
+ selector: unescape('name'),
1206
+ category: 'accessing',
1207
+ fn: function (){
1208
+ var self=this;
1209
+ return self.pkgName;
1210
+ return self;},
1211
+ args: [],
1212
+ source: unescape('name%0A%09%3Creturn%20self.pkgName%3E'),
1213
+ messageSends: [],
1214
+ referencedClasses: []
1215
+ }),
1216
+ smalltalk.Package);
1217
+
1218
+ smalltalk.addMethod(
1219
+ unescape('_name_'),
1220
+ smalltalk.method({
1221
+ selector: unescape('name%3A'),
1222
+ category: 'accessing',
1223
+ fn: function (aString){
1224
+ var self=this;
1225
+ self.pkgName = aString;
1226
+ return self;},
1227
+ args: ["aString"],
1228
+ source: unescape('name%3A%20aString%0A%09%3Cself.pkgName%20%3D%20aString%3E'),
1229
+ messageSends: [],
1230
+ referencedClasses: []
1231
+ }),
1232
+ smalltalk.Package);
1233
+
1234
+ smalltalk.addMethod(
1235
+ unescape('_classes'),
1236
+ smalltalk.method({
1237
+ selector: unescape('classes'),
1238
+ category: 'classes',
1239
+ fn: function (){
1240
+ var self=this;
1241
+ return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
1242
+ return self;},
1243
+ args: [],
1244
+ source: unescape('classes%0A%09%22We%20need%20to%20do%20a%20reverse%20scan.%22%0A%09%5ESmalltalk%20current%20classes%20select%3A%20%5B%3Ac%20%7C%20c%20package%20%3D%3D%20self%5D'),
1245
+ messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
1246
+ referencedClasses: ["Smalltalk"]
1247
+ }),
1248
+ smalltalk.Package);
1249
+
1250
+ smalltalk.addMethod(
1251
+ unescape('_printString'),
1252
+ smalltalk.method({
1253
+ selector: unescape('printString'),
1254
+ category: 'printing',
1255
+ fn: function (){
1256
+ var self=this;
1257
+ return smalltalk.send(self, "_name", []);
1258
+ return self;},
1259
+ args: [],
1260
+ source: unescape('printString%0A%09%5Eself%20name'),
1261
+ messageSends: ["name"],
1262
+ referencedClasses: []
1263
+ }),
1264
+ smalltalk.Package);
1265
+
1266
+ smalltalk.addMethod(
1267
+ unescape('_dependencies'),
1268
+ smalltalk.method({
1269
+ selector: unescape('dependencies'),
1270
+ category: 'accessing',
1271
+ fn: function (){
1272
+ var self=this;
1273
+ return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
1274
+ return self;},
1275
+ args: [],
1276
+ source: unescape('dependencies%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20ifAbsent%3A%20%5B%23%28%29%5D'),
1277
+ messageSends: ["propertyAt:ifAbsent:"],
1278
+ referencedClasses: []
1279
+ }),
1280
+ smalltalk.Package);
1281
+
1282
+ smalltalk.addMethod(
1283
+ unescape('_dependencies_'),
1284
+ smalltalk.method({
1285
+ selector: unescape('dependencies%3A'),
1286
+ category: 'accessing',
1287
+ fn: function (anArray){
1288
+ var self=this;
1289
+ return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
1290
+ return self;},
1291
+ args: ["anArray"],
1292
+ source: unescape('dependencies%3A%20anArray%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20put%3A%20anArray'),
1293
+ messageSends: ["propertyAt:put:"],
1294
+ referencedClasses: []
1295
+ }),
1296
+ smalltalk.Package);
1297
+
1298
+ smalltalk.addMethod(
1299
+ unescape('_properties'),
1300
+ smalltalk.method({
1301
+ selector: unescape('properties'),
1302
+ category: 'accessing',
1303
+ fn: function (){
1304
+ var self=this;
1305
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
1306
+ return self;},
1307
+ args: [],
1308
+ source: unescape('properties%0A%09%5ESmalltalk%20current%20readJSObject%3A%20%28self%20basicAt%3A%20%27properties%27%29'),
1309
+ messageSends: ["readJSObject:", "current", "basicAt:"],
1310
+ referencedClasses: ["Smalltalk"]
1311
+ }),
1312
+ smalltalk.Package);
1313
+
1314
+ smalltalk.addMethod(
1315
+ unescape('_propertiesAsJSON'),
1316
+ smalltalk.method({
1317
+ selector: unescape('propertiesAsJSON'),
1318
+ category: 'private',
1319
+ fn: function (){
1320
+ var self=this;
1321
+ return JSON.stringify(self.properties);
1322
+ return self;},
1323
+ args: [],
1324
+ source: unescape('propertiesAsJSON%0A%09%3Creturn%20JSON.stringify%28self.properties%29%3E'),
1325
+ messageSends: [],
1326
+ referencedClasses: []
1327
+ }),
1328
+ smalltalk.Package);
1329
+
1330
+ smalltalk.addMethod(
1331
+ unescape('_properties_'),
1332
+ smalltalk.method({
1333
+ selector: unescape('properties%3A'),
1334
+ category: 'accessing',
1335
+ fn: function (aDict){
1336
+ var self=this;
1337
+ var object=nil;
1338
+ object = {};;
1339
+ smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
1340
+ return self.properties = object;
1341
+ return self;},
1342
+ args: ["aDict"],
1343
+ source: unescape('properties%3A%20aDict%0A%09%22We%20store%20it%20as%20a%20javascript%20object.%22%0A%09%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%09%3Creturn%20self.properties%20%3D%20object%3E'),
1344
+ messageSends: ["keysAndValuesDo:"],
1345
+ referencedClasses: []
1346
+ }),
1347
+ smalltalk.Package);
1348
+
1349
+ smalltalk.addMethod(
1350
+ unescape('_jsProperties'),
1351
+ smalltalk.method({
1352
+ selector: unescape('jsProperties'),
1353
+ category: 'private',
1354
+ fn: function (){
1355
+ var self=this;
1356
+ return self.properties;
1357
+ return self;},
1358
+ args: [],
1359
+ source: unescape('jsProperties%0A%09%3Creturn%20self.properties%3E'),
1360
+ messageSends: [],
1361
+ referencedClasses: []
1362
+ }),
1363
+ smalltalk.Package);
1364
+
1365
+ smalltalk.addMethod(
1366
+ unescape('_jsProperties_'),
1367
+ smalltalk.method({
1368
+ selector: unescape('jsProperties%3A'),
1369
+ category: 'private',
1370
+ fn: function (aJSObject){
1371
+ var self=this;
1372
+ return self.properties = aJSObject;
1373
+ return self;},
1374
+ args: ["aJSObject"],
1375
+ source: unescape('jsProperties%3A%20aJSObject%0A%09%3Creturn%20self.properties%20%3D%20aJSObject%3E'),
1376
+ messageSends: [],
1377
+ referencedClasses: []
1378
+ }),
1379
+ smalltalk.Package);
1380
+
1381
+ smalltalk.addMethod(
1382
+ unescape('_propertyAt_'),
1383
+ smalltalk.method({
1384
+ selector: unescape('propertyAt%3A'),
1385
+ category: 'properties',
1386
+ fn: function (key){
1387
+ var self=this;
1388
+ return self.properties[key];
1389
+ return self;},
1390
+ args: ["key"],
1391
+ source: unescape('propertyAt%3A%20key%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%3E'),
1392
+ messageSends: [],
1393
+ referencedClasses: []
1394
+ }),
1395
+ smalltalk.Package);
1396
+
1397
+ smalltalk.addMethod(
1398
+ unescape('_propertyAt_put_'),
1399
+ smalltalk.method({
1400
+ selector: unescape('propertyAt%3Aput%3A'),
1401
+ category: 'properties',
1402
+ fn: function (key, value){
1403
+ var self=this;
1404
+ return self.properties[key] = value;
1405
+ return self;},
1406
+ args: ["key", "value"],
1407
+ source: unescape('propertyAt%3A%20key%20put%3A%20value%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%20%3D%20value%3E'),
1408
+ messageSends: [],
1409
+ referencedClasses: []
1410
+ }),
1411
+ smalltalk.Package);
1412
+
1413
+ smalltalk.addMethod(
1414
+ unescape('_propertyAt_ifAbsent_'),
1415
+ smalltalk.method({
1416
+ selector: unescape('propertyAt%3AifAbsent%3A'),
1417
+ category: 'properties',
1418
+ fn: function (key, block){
1419
+ var self=this;
1420
+ return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
1421
+ return self;},
1422
+ args: ["key", "block"],
1423
+ source: unescape('propertyAt%3A%20key%20ifAbsent%3A%20block%0A%0A%09%5E%28self%20propertyAt%3A%20key%29%20ifNil%3A%20%5Bblock%20value%5D'),
1424
+ messageSends: ["ifNil:", "propertyAt:", "value"],
1425
+ referencedClasses: []
1426
+ }),
1427
+ smalltalk.Package);
1428
+
1429
+ smalltalk.addMethod(
1430
+ unescape('_commitPathJs'),
1431
+ smalltalk.method({
1432
+ selector: unescape('commitPathJs'),
1433
+ category: 'accessing',
1434
+ fn: function (){
1435
+ var self=this;
1436
+ return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
1437
+ return self;},
1438
+ args: [],
1439
+ source: unescape('commitPathJs%0A%09%5E%20commitPathJs%20ifNil%3A%20%5Bself%20class%20defaultCommitPathJs%5D'),
1440
+ messageSends: ["ifNil:", "defaultCommitPathJs", "class"],
1441
+ referencedClasses: []
1442
+ }),
1443
+ smalltalk.Package);
1444
+
1445
+ smalltalk.addMethod(
1446
+ unescape('_commitPathJs_'),
1447
+ smalltalk.method({
1448
+ selector: unescape('commitPathJs%3A'),
1449
+ category: 'accessing',
1450
+ fn: function (aString){
1451
+ var self=this;
1452
+ (self['@commitPathJs']=aString);
1453
+ return self;},
1454
+ args: ["aString"],
1455
+ source: unescape('commitPathJs%3A%20aString%0A%09commitPathJs%A0%3A%3D%20aString'),
1456
+ messageSends: [],
1457
+ referencedClasses: []
1458
+ }),
1459
+ smalltalk.Package);
1460
+
1461
+ smalltalk.addMethod(
1462
+ unescape('_commitPathSt'),
1463
+ smalltalk.method({
1464
+ selector: unescape('commitPathSt'),
1465
+ category: 'accessing',
1466
+ fn: function (){
1467
+ var self=this;
1468
+ return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
1469
+ return self;},
1470
+ args: [],
1471
+ source: unescape('commitPathSt%0A%09%5E%20commitPathSt%20ifNil%3A%20%5Bself%20class%20defaultCommitPathSt%5D'),
1472
+ messageSends: ["ifNil:", "defaultCommitPathSt", "class"],
1473
+ referencedClasses: []
1474
+ }),
1475
+ smalltalk.Package);
1476
+
1477
+ smalltalk.addMethod(
1478
+ unescape('_commitPathSt_'),
1479
+ smalltalk.method({
1480
+ selector: unescape('commitPathSt%3A'),
1481
+ category: 'accessing',
1482
+ fn: function (aString){
1483
+ var self=this;
1484
+ (self['@commitPathSt']=aString);
1485
+ return self;},
1486
+ args: ["aString"],
1487
+ source: unescape('commitPathSt%3A%20aString%0A%09commitPathSt%A0%3A%3D%20aString'),
1488
+ messageSends: [],
1489
+ referencedClasses: []
1490
+ }),
1491
+ smalltalk.Package);
1492
+
1493
+
1494
+ smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
1495
+ smalltalk.addMethod(
1496
+ unescape('_named_'),
1497
+ smalltalk.method({
1498
+ selector: unescape('named%3A'),
1499
+ category: 'not yet classified',
1500
+ fn: function (aPackageName){
1501
+ var self=this;
1502
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
1503
+ return self;},
1504
+ args: ["aPackageName"],
1505
+ source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
1506
+ messageSends: ["packageAt:", "current"],
1507
+ referencedClasses: ["Smalltalk"]
1508
+ }),
1509
+ smalltalk.Package.klass);
1510
+
1511
+ smalltalk.addMethod(
1512
+ unescape('_named_ifAbsent_'),
1513
+ smalltalk.method({
1514
+ selector: unescape('named%3AifAbsent%3A'),
1515
+ category: 'not yet classified',
1516
+ fn: function (aPackageName, aBlock){
1517
+ var self=this;
1518
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
1519
+ return self;},
1520
+ args: ["aPackageName", "aBlock"],
1521
+ source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
1522
+ messageSends: ["packageAt:ifAbsent:", "current"],
1523
+ referencedClasses: ["Smalltalk"]
1524
+ }),
1525
+ smalltalk.Package.klass);
1526
+
1527
+ smalltalk.addMethod(
1528
+ unescape('_defaultCommitPathJs'),
1529
+ smalltalk.method({
1530
+ selector: unescape('defaultCommitPathJs'),
1531
+ category: 'commit paths',
1532
+ fn: function (){
1533
+ var self=this;
1534
+ return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathJs']="js");})() : $receiver;
1535
+ return self;},
1536
+ args: [],
1537
+ source: unescape('defaultCommitPathJs%0A%09%5E%20defaultCommitPathJs%20ifNil%3A%20%5B%20defaultCommitPathJs%20%3A%3D%20%27js%27%5D'),
1538
+ messageSends: ["ifNil:"],
1539
+ referencedClasses: []
1540
+ }),
1541
+ smalltalk.Package.klass);
1542
+
1543
+ smalltalk.addMethod(
1544
+ unescape('_defaultCommitPathJs_'),
1545
+ smalltalk.method({
1546
+ selector: unescape('defaultCommitPathJs%3A'),
1547
+ category: 'commit paths',
1548
+ fn: function (aString){
1549
+ var self=this;
1550
+ (self['@defaultCommitPathJs']=aString);
1551
+ return self;},
1552
+ args: ["aString"],
1553
+ source: unescape('defaultCommitPathJs%3A%20aString%0A%09defaultCommitPathJs%20%3A%3D%20aString'),
1554
+ messageSends: [],
1555
+ referencedClasses: []
1556
+ }),
1557
+ smalltalk.Package.klass);
1558
+
1559
+ smalltalk.addMethod(
1560
+ unescape('_defaultCommitPathSt'),
1561
+ smalltalk.method({
1562
+ selector: unescape('defaultCommitPathSt'),
1563
+ category: 'commit paths',
1564
+ fn: function (){
1565
+ var self=this;
1566
+ return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathSt']="st");})() : $receiver;
1567
+ return self;},
1568
+ args: [],
1569
+ source: unescape('defaultCommitPathSt%0A%09%5E%20defaultCommitPathSt%20ifNil%3A%20%5B%20defaultCommitPathSt%20%3A%3D%20%27st%27%5D'),
1570
+ messageSends: ["ifNil:"],
1571
+ referencedClasses: []
1572
+ }),
1573
+ smalltalk.Package.klass);
1574
+
1575
+ smalltalk.addMethod(
1576
+ unescape('_defaultCommitPathSt_'),
1577
+ smalltalk.method({
1578
+ selector: unescape('defaultCommitPathSt%3A'),
1579
+ category: 'commit paths',
1580
+ fn: function (aString){
1581
+ var self=this;
1582
+ (self['@defaultCommitPathSt']=aString);
1583
+ return self;},
1584
+ args: ["aString"],
1585
+ source: unescape('defaultCommitPathSt%3A%20aString%0A%09defaultCommitPathSt%20%3A%3D%20aString'),
1586
+ messageSends: [],
1587
+ referencedClasses: []
1588
+ }),
1589
+ smalltalk.Package.klass);
1590
+
1591
+ smalltalk.addMethod(
1592
+ unescape('_resetCommitPaths'),
1593
+ smalltalk.method({
1594
+ selector: unescape('resetCommitPaths'),
1595
+ category: 'commit paths',
1596
+ fn: function (){
1597
+ var self=this;
1598
+ (self['@defaultCommitPathJs']=nil);
1599
+ (self['@defaultCommitPathSt']=nil);
1600
+ return self;},
1601
+ args: [],
1602
+ source: unescape('resetCommitPaths%0A%20%20%20%20%20%20%20%20defaultCommitPathJs%20%3A%3D%20nil.%0A%20%20%20%20%20%20%20%20defaultCommitPathSt%20%3A%3D%20nil.'),
1603
+ messageSends: [],
1604
+ referencedClasses: []
1605
+ }),
1606
+ smalltalk.Package.klass);
1607
+
1608
+ smalltalk.addMethod(
1609
+ unescape('_fetch_prefix_'),
1610
+ smalltalk.method({
1611
+ selector: unescape('fetch%3Aprefix%3A'),
1612
+ category: 'loading-storing',
1613
+ fn: function (aPackageName, aPrefix){
1614
+ var self=this;
1615
+ smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_getScript_onSuccess_", [smalltalk.send(smalltalk.send(aPrefix, "__comma", [aPackageName]), "__comma", [".js"]), (function(){return smalltalk.send((smalltalk.Package || Package), "_init_", [aPackageName]);})]);
1616
+ return self;},
1617
+ args: ["aPackageName", "aPrefix"],
1618
+ source: unescape('fetch%3A%20aPackageName%20prefix%3A%20aPrefix%0A%09jQuery%20getScript%3A%20%28aPrefix%20%2C%20aPackageName%20%2C%20%27.js%27%29%20onSuccess%3A%20%5B%20Package%20init%3A%20aPackageName%20%5D'),
1619
+ messageSends: ["getScript:onSuccess:", unescape("%2C"), "init:"],
1620
+ referencedClasses: ["Package"]
1621
+ }),
1622
+ smalltalk.Package.klass);
1623
+
1624
+ smalltalk.addMethod(
1625
+ unescape('_fetch_'),
1626
+ smalltalk.method({
1627
+ selector: unescape('fetch%3A'),
1628
+ category: 'loading-storing',
1629
+ fn: function (aPackageName){
1630
+ var self=this;
1631
+ smalltalk.send(self, "_fetch_prefix_", [aPackageName, smalltalk.send(smalltalk.send(self, "_defaultCommitPathJs", []), "__comma", [unescape("/")])]);
1632
+ return self;},
1633
+ args: ["aPackageName"],
1634
+ source: unescape('fetch%3A%20aPackageName%0A%09self%20fetch%3A%20aPackageName%20prefix%3A%20self%20defaultCommitPathJs%2C%20%27/%27'),
1635
+ messageSends: ["fetch:prefix:", unescape("%2C"), "defaultCommitPathJs"],
1636
+ referencedClasses: []
1637
+ }),
1638
+ smalltalk.Package.klass);
1639
+
1640
+ smalltalk.addMethod(
1641
+ unescape('_commitToLocalStorage_'),
1642
+ smalltalk.method({
1643
+ selector: unescape('commitToLocalStorage%3A'),
1644
+ category: 'loading-storing',
1645
+ fn: function (aPackageName){
1646
+ var self=this;
1647
+ var key=nil;
1648
+ var sourceCode=nil;
1649
+ (key=smalltalk.send("smalltalk.packages.", "__comma", [aPackageName]));
1650
+ (sourceCode=smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportPackage_", [aPackageName]));
1651
+ localStorage[key] = escape(sourceCode);
1652
+ return self;},
1653
+ args: ["aPackageName"],
1654
+ source: unescape('commitToLocalStorage%3A%20aPackageName%0A%09%7C%20key%20sourceCode%20%7C%0A%09key%20%3A%3D%20%27smalltalk.packages.%27%20%2C%20aPackageName.%0A%09sourceCode%20%3A%3D%20Exporter%20new%20exportPackage%3A%20aPackageName.%0A%09%3ClocalStorage%5Bkey%5D%20%3D%20escape%28sourceCode%29%3E'),
1655
+ messageSends: [unescape("%2C"), "exportPackage:", "new"],
1656
+ referencedClasses: ["Exporter"]
1657
+ }),
1658
+ smalltalk.Package.klass);
1659
+
1660
+ smalltalk.addMethod(
1661
+ unescape('_init_'),
1662
+ smalltalk.method({
1663
+ selector: unescape('init%3A'),
1664
+ category: 'loading-storing',
1665
+ fn: function (aPackageName){
1666
+ var self=this;
1667
+ (function($rec){smalltalk.send($rec, "_do_", [(function(each){return smalltalk.init(each);})]);return smalltalk.send($rec, "_do_", [(function(each){return smalltalk.send(each, "_initialize", []);})]);})(smalltalk.send(smalltalk.send((typeof smalltalk == 'undefined' ? nil : smalltalk), "_classes", []), "_select_", [(function(each){return each.pkg.pkgName == aPackageName;})]));
1668
+ return self;},
1669
+ args: ["aPackageName"],
1670
+ source: unescape('init%3A%20aPackageName%0A%09%28smalltalk%20classes%20select%3A%20%5B%20%3Aeach%20%7C%20%3Ceach.pkg.pkgName%20%3D%3D%20aPackageName%3E%20%5D%29%0A%09%09do%3A%20%5B%20%3Aeach%20%7C%20%3Csmalltalk.init%28each%29%3E%20%5D%3B%0A%09%09do%3A%20%5B%20%3Aeach%20%7C%20each%20initialize%20%5D'),
1671
+ messageSends: ["do:", "initialize", "select:", "classes"],
1672
+ referencedClasses: []
1673
+ }),
1674
+ smalltalk.Package.klass);
1675
+
1676
+
1677
+ smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel-Objects');
1678
+ smalltalk.Number.comment=unescape('Number%20holds%20the%20most%20general%20methods%20for%20dealing%20with%20numbers.%20%20%0ANumber%20is%20directly%20mapped%20to%20JavaScript%20Number.%0A%0AMost%20arithmetic%20methods%20like%20%60%23+%60%20%60%23/%60%20%60%23-%60%20%60%23max%3A%60%20are%20directly%20inlined%20into%20javascript.%20%0A%0A%23%23Enumerating%0AA%20Number%20can%20be%20used%20to%20evaluate%20a%20Block%20a%20fixed%20number%20of%20times%3A%0A%0A%095%20timesRepeat%3A%20%5BTranscript%20show%3A%20%27This%20will%20be%20printed%205%20times%27%3B%20cr%5D.%0A%09%0A%091%20to%3A%205%20do%3A%20%5B%3AaNumber%7C%20Transcript%20show%3A%20aNumber%20asString%3B%20cr%5D.%0A%09%0A%091%20to%3A%2010%20by%3A%202%20do%3A%20%5B%3AaNumber%7C%20Transcript%20show%3A%20aNumber%20asString%3B%20cr%5D.')
1679
+ smalltalk.addMethod(
1680
+ unescape('__eq'),
1681
+ smalltalk.method({
1682
+ selector: unescape('%3D'),
1683
+ category: 'comparing',
1684
+ fn: function (aNumber){
1685
+ var self=this;
1686
+ try{((($receiver = smalltalk.send(aNumber, "_isNumber", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
1687
+ return Number(self) == aNumber;
1688
+ return self;
1689
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
1690
+ args: ["aNumber"],
1691
+ source: unescape('%3D%20aNumber%0A%09aNumber%20isNumber%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%20aNumber%3E'),
1692
+ messageSends: ["ifFalse:", "isNumber"],
1693
+ referencedClasses: []
1694
+ }),
1695
+ smalltalk.Number);
1696
+
1697
+ smalltalk.addMethod(
1698
+ unescape('__gt'),
1699
+ smalltalk.method({
1700
+ selector: unescape('%3E'),
1701
+ category: 'comparing',
1702
+ fn: function (aNumber){
1703
+ var self=this;
1704
+ return self > aNumber;
1705
+ return self;},
1706
+ args: ["aNumber"],
1707
+ source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
1708
+ messageSends: [],
1709
+ referencedClasses: []
1710
+ }),
1711
+ smalltalk.Number);
1712
+
1713
+ smalltalk.addMethod(
1714
+ unescape('__lt'),
1715
+ smalltalk.method({
1716
+ selector: unescape('%3C'),
1717
+ category: 'comparing',
1718
+ fn: function (aNumber){
1719
+ var self=this;
1720
+ return self < aNumber;
1721
+ return self;},
1722
+ args: ["aNumber"],
1723
+ source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
1724
+ messageSends: [],
1725
+ referencedClasses: []
1726
+ }),
1727
+ smalltalk.Number);
1728
+
1729
+ smalltalk.addMethod(
1730
+ unescape('__gt_eq'),
1731
+ smalltalk.method({
1732
+ selector: unescape('%3E%3D'),
1733
+ category: 'comparing',
1734
+ fn: function (aNumber){
1735
+ var self=this;
1736
+ return self >= aNumber;
1737
+ return self;},
1738
+ args: ["aNumber"],
1739
+ source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
1740
+ messageSends: [],
1741
+ referencedClasses: []
1742
+ }),
1743
+ smalltalk.Number);
1744
+
1745
+ smalltalk.addMethod(
1746
+ unescape('__lt_eq'),
1747
+ smalltalk.method({
1748
+ selector: unescape('%3C%3D'),
1749
+ category: 'comparing',
1750
+ fn: function (aNumber){
1751
+ var self=this;
1752
+ return self <= aNumber;
1753
+ return self;},
1754
+ args: ["aNumber"],
1755
+ source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
1756
+ messageSends: [],
1757
+ referencedClasses: []
1758
+ }),
1759
+ smalltalk.Number);
1760
+
1761
+ smalltalk.addMethod(
1762
+ unescape('__plus'),
1763
+ smalltalk.method({
1764
+ selector: unescape('+'),
1765
+ category: 'arithmetic',
1766
+ fn: function (aNumber){
1767
+ var self=this;
1768
+ return self + aNumber;
1769
+ return self;},
1770
+ args: ["aNumber"],
1771
+ source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
1772
+ messageSends: [],
1773
+ referencedClasses: []
1774
+ }),
1775
+ smalltalk.Number);
1776
+
1777
+ smalltalk.addMethod(
1778
+ unescape('__minus'),
1779
+ smalltalk.method({
1780
+ selector: unescape('-'),
1781
+ category: 'arithmetic',
1782
+ fn: function (aNumber){
1783
+ var self=this;
1784
+ return self - aNumber;
1785
+ return self;},
1786
+ args: ["aNumber"],
1787
+ source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
1788
+ messageSends: [],
1789
+ referencedClasses: []
1790
+ }),
1791
+ smalltalk.Number);
1792
+
1793
+ smalltalk.addMethod(
1794
+ unescape('__star'),
1795
+ smalltalk.method({
1796
+ selector: unescape('*'),
1797
+ category: 'arithmetic',
1798
+ fn: function (aNumber){
1799
+ var self=this;
1800
+ return self * aNumber;
1801
+ return self;},
1802
+ args: ["aNumber"],
1803
+ source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
1804
+ messageSends: [],
1805
+ referencedClasses: []
1806
+ }),
1807
+ smalltalk.Number);
1808
+
1809
+ smalltalk.addMethod(
1810
+ unescape('__slash'),
1811
+ smalltalk.method({
1812
+ selector: unescape('/'),
1813
+ category: 'arithmetic',
1814
+ fn: function (aNumber){
1815
+ var self=this;
1816
+ return self / aNumber;
1817
+ return self;},
1818
+ args: ["aNumber"],
1819
+ source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
1820
+ messageSends: [],
1821
+ referencedClasses: []
1822
+ }),
1823
+ smalltalk.Number);
1824
+
1825
+ smalltalk.addMethod(
1826
+ unescape('_max_'),
1827
+ smalltalk.method({
1828
+ selector: unescape('max%3A'),
1829
+ category: 'arithmetic',
1830
+ fn: function (aNumber){
1831
+ var self=this;
1832
+ return Math.max(self, aNumber);;
1833
+ return self;},
1834
+ args: ["aNumber"],
1835
+ source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
1836
+ messageSends: [],
1837
+ referencedClasses: []
1838
+ }),
1839
+ smalltalk.Number);
1840
+
1841
+ smalltalk.addMethod(
1842
+ unescape('_min_'),
1843
+ smalltalk.method({
1844
+ selector: unescape('min%3A'),
1845
+ category: 'arithmetic',
1846
+ fn: function (aNumber){
1847
+ var self=this;
1848
+ return Math.min(self, aNumber);;
1849
+ return self;},
1850
+ args: ["aNumber"],
1851
+ source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
1852
+ messageSends: [],
1853
+ referencedClasses: []
1854
+ }),
1855
+ smalltalk.Number);
1856
+
1857
+ smalltalk.addMethod(
1858
+ unescape('_rounded'),
1859
+ smalltalk.method({
1860
+ selector: unescape('rounded'),
1861
+ category: 'converting',
1862
+ fn: function (){
1863
+ var self=this;
1864
+ return Math.round(self);;
1865
+ return self;},
1866
+ args: [],
1867
+ source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
1868
+ messageSends: [],
1869
+ referencedClasses: []
1870
+ }),
1871
+ smalltalk.Number);
1872
+
1873
+ smalltalk.addMethod(
1874
+ unescape('_truncated'),
1875
+ smalltalk.method({
1876
+ selector: unescape('truncated'),
1877
+ category: 'converting',
1878
+ fn: function (){
1879
+ var self=this;
1880
+ var result=nil;
1881
+ ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
1882
+ return result;
1883
+ return self;},
1884
+ args: [],
1885
+ source: unescape('truncated%0A%7Cresult%7C%0A%0A%20%20%20%20self%20%3E%3D%200%20%0A%20%20%20%20%20%20%20%20ifTrue%3A%20%5B%3Cresult%20%3D%20Math.floor%28self%29%3B%3E%5D%0A%20%20%20%20%20%20%20%20ifFalse%3A%20%5B%3Cresult%20%3D%20%28Math.floor%28self%20*%20%28-1%29%29%20*%20%28-1%29%29%3B%3E%5D.%0A%0A%20%20%20%20%5E%20result'),
1886
+ messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
1887
+ referencedClasses: []
1888
+ }),
1889
+ smalltalk.Number);
1890
+
1891
+ smalltalk.addMethod(
1892
+ unescape('_to_'),
1893
+ smalltalk.method({
1894
+ selector: unescape('to%3A'),
1895
+ category: 'converting',
1896
+ fn: function (aNumber){
1897
+ var self=this;
1898
+ var array=nil;
1899
+ var first=nil;
1900
+ var last=nil;
1901
+ var count=nil;
1902
+ (first=smalltalk.send(self, "_truncated", []));
1903
+ (last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
1904
+ (count=(1));
1905
+ (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1906
+ smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);(count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})]);
1907
+ return array;
1908
+ return self;},
1909
+ args: ["aNumber"],
1910
+ source: unescape('to%3A%20aNumber%0A%09%7C%20array%20first%20last%20count%20%7C%0A%09first%20%3A%3D%20self%20truncated.%0A%09last%20%3A%3D%20aNumber%20truncated%20+%201.%0A%09count%20%3A%3D%201.%0A%09array%20%3A%3D%20Array%20new.%0A%09%28last%20-%20first%29%20timesRepeat%3A%20%5B%0A%09%20%20%20%20array%20at%3A%20count%20put%3A%20first.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201.%0A%09%20%20%20%20first%20%3A%3D%20first%20+%201%5D.%0A%09%5Earray'),
1911
+ messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
1912
+ referencedClasses: ["Array"]
1913
+ }),
1914
+ smalltalk.Number);
1915
+
1916
+ smalltalk.addMethod(
1917
+ unescape('_timesRepeat_'),
1918
+ smalltalk.method({
1919
+ selector: unescape('timesRepeat%3A'),
1920
+ category: 'enumerating',
1921
+ fn: function (aBlock){
1922
+ var self=this;
1923
+ var integer=nil;
1924
+ var count=nil;
1925
+ (integer=smalltalk.send(self, "_truncated", []));
1926
+ (count=(1));
1927
+ (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
1928
+ return self;},
1929
+ args: ["aBlock"],
1930
+ source: unescape('timesRepeat%3A%20aBlock%0A%09%7C%20integer%20count%20%7C%0A%09integer%20%3A%3D%20self%20truncated.%0A%09count%20%3A%3D%201.%0A%09%5Bcount%20%3E%20self%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20aBlock%20value.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201%5D'),
1931
+ messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
1932
+ referencedClasses: []
1933
+ }),
1934
+ smalltalk.Number);
1935
+
1936
+ smalltalk.addMethod(
1937
+ unescape('_to_do_'),
1938
+ smalltalk.method({
1939
+ selector: unescape('to%3Ado%3A'),
1940
+ category: 'enumerating',
1941
+ fn: function (stop, aBlock){
1942
+ var self=this;
1943
+ var nextValue=nil;
1944
+ (nextValue=self);
1945
+ (function(){while((function(){return ((($receiver = nextValue).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [nextValue]);return (nextValue=((($receiver = nextValue).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
1946
+ return self;},
1947
+ args: ["stop", "aBlock"],
1948
+ source: unescape('to%3A%20stop%20do%3A%20aBlock%0A%09%22Evaluate%20aBlock%20for%20each%20number%20from%20self%20to%20aNumber.%22%0A%09%7C%20nextValue%20%7C%0A%09nextValue%20%3A%3D%20self.%0A%09%5BnextValue%20%3C%3D%20stop%5D%0A%09%09whileTrue%3A%20%0A%09%09%09%5BaBlock%20value%3A%20nextValue.%0A%09%09%09nextValue%20%3A%3D%20nextValue%20+%201%5D'),
1949
+ messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
1950
+ referencedClasses: []
1951
+ }),
1952
+ smalltalk.Number);
1953
+
1954
+ smalltalk.addMethod(
1955
+ unescape('_asString'),
1956
+ smalltalk.method({
1957
+ selector: unescape('asString'),
1958
+ category: 'converting',
1959
+ fn: function (){
1960
+ var self=this;
1961
+ return smalltalk.send(self, "_printString", []);
1962
+ return self;},
1963
+ args: [],
1964
+ source: unescape('asString%0A%09%5Eself%20printString'),
1965
+ messageSends: ["printString"],
1966
+ referencedClasses: []
1967
+ }),
1968
+ smalltalk.Number);
1969
+
1970
+ smalltalk.addMethod(
1971
+ unescape('_asJavascript'),
1972
+ smalltalk.method({
1973
+ selector: unescape('asJavascript'),
1974
+ category: 'converting',
1975
+ fn: function (){
1976
+ var self=this;
1977
+ return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
1978
+ return self;},
1979
+ args: [],
1980
+ source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
1981
+ messageSends: [unescape("%2C"), "printString"],
1982
+ referencedClasses: []
1983
+ }),
1984
+ smalltalk.Number);
1985
+
1986
+ smalltalk.addMethod(
1987
+ unescape('_printString'),
1988
+ smalltalk.method({
1989
+ selector: unescape('printString'),
1990
+ category: 'printing',
1991
+ fn: function (){
1992
+ var self=this;
1993
+ return String(self);
1994
+ return self;},
1995
+ args: [],
1996
+ source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
1997
+ messageSends: [],
1998
+ referencedClasses: []
1999
+ }),
2000
+ smalltalk.Number);
2001
+
2002
+ smalltalk.addMethod(
2003
+ unescape('_isNumber'),
2004
+ smalltalk.method({
2005
+ selector: unescape('isNumber'),
2006
+ category: 'testing',
2007
+ fn: function (){
2008
+ var self=this;
2009
+ return true;
2010
+ return self;},
2011
+ args: [],
2012
+ source: unescape('isNumber%0A%09%5Etrue'),
2013
+ messageSends: [],
2014
+ referencedClasses: []
2015
+ }),
2016
+ smalltalk.Number);
2017
+
2018
+ smalltalk.addMethod(
2019
+ unescape('_atRandom'),
2020
+ smalltalk.method({
2021
+ selector: unescape('atRandom'),
2022
+ category: 'converting',
2023
+ fn: function (){
2024
+ var self=this;
2025
+ return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
2026
+ return self;},
2027
+ args: [],
2028
+ source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
2029
+ messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
2030
+ referencedClasses: ["Random"]
2031
+ }),
2032
+ smalltalk.Number);
2033
+
2034
+ smalltalk.addMethod(
2035
+ unescape('__at'),
2036
+ smalltalk.method({
2037
+ selector: unescape('@'),
2038
+ category: 'converting',
2039
+ fn: function (aNumber){
2040
+ var self=this;
2041
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
2042
+ return self;},
2043
+ args: ["aNumber"],
2044
+ source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
2045
+ messageSends: ["x:y:"],
2046
+ referencedClasses: ["Point"]
2047
+ }),
2048
+ smalltalk.Number);
2049
+
2050
+ smalltalk.addMethod(
2051
+ unescape('_asPoint'),
2052
+ smalltalk.method({
2053
+ selector: unescape('asPoint'),
2054
+ category: 'converting',
2055
+ fn: function (){
2056
+ var self=this;
2057
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
2058
+ return self;},
2059
+ args: [],
2060
+ source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
2061
+ messageSends: ["x:y:"],
2062
+ referencedClasses: ["Point"]
2063
+ }),
2064
+ smalltalk.Number);
2065
+
2066
+ smalltalk.addMethod(
2067
+ unescape('_clearInterval'),
2068
+ smalltalk.method({
2069
+ selector: unescape('clearInterval'),
2070
+ category: 'timeouts/intervals',
2071
+ fn: function (){
2072
+ var self=this;
2073
+ clearInterval(Number(self));
2074
+ return self;},
2075
+ args: [],
2076
+ source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
2077
+ messageSends: [],
2078
+ referencedClasses: []
2079
+ }),
2080
+ smalltalk.Number);
2081
+
2082
+ smalltalk.addMethod(
2083
+ unescape('_clearTimeout'),
2084
+ smalltalk.method({
2085
+ selector: unescape('clearTimeout'),
2086
+ category: 'timeouts/intervals',
2087
+ fn: function (){
2088
+ var self=this;
2089
+ clearTimeout(Number(self));
2090
+ return self;},
2091
+ args: [],
2092
+ source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
2093
+ messageSends: [],
2094
+ referencedClasses: []
2095
+ }),
2096
+ smalltalk.Number);
2097
+
2098
+ smalltalk.addMethod(
2099
+ unescape('_even'),
2100
+ smalltalk.method({
2101
+ selector: unescape('even'),
2102
+ category: 'testing',
2103
+ fn: function (){
2104
+ var self=this;
2105
+ return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
2106
+ return self;},
2107
+ args: [],
2108
+ source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
2109
+ messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
2110
+ referencedClasses: []
2111
+ }),
2112
+ smalltalk.Number);
2113
+
2114
+ smalltalk.addMethod(
2115
+ unescape('_odd'),
2116
+ smalltalk.method({
2117
+ selector: unescape('odd'),
2118
+ category: 'testing',
2119
+ fn: function (){
2120
+ var self=this;
2121
+ return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
2122
+ return self;},
2123
+ args: [],
2124
+ source: unescape('odd%0A%09%5E%20self%20even%20not'),
2125
+ messageSends: ["not", "even"],
2126
+ referencedClasses: []
2127
+ }),
2128
+ smalltalk.Number);
2129
+
2130
+ smalltalk.addMethod(
2131
+ unescape('_negated'),
2132
+ smalltalk.method({
2133
+ selector: unescape('negated'),
2134
+ category: 'arithmetic',
2135
+ fn: function (){
2136
+ var self=this;
2137
+ return (0) - self;
2138
+ return self;},
2139
+ args: [],
2140
+ source: unescape('negated%0A%09%5E0%20-%20self'),
2141
+ messageSends: [unescape("-")],
2142
+ referencedClasses: []
2143
+ }),
2144
+ smalltalk.Number);
2145
+
2146
+ smalltalk.addMethod(
2147
+ unescape('_printShowingDecimalPlaces_'),
2148
+ smalltalk.method({
2149
+ selector: unescape('printShowingDecimalPlaces%3A'),
2150
+ category: 'printing',
2151
+ fn: function (placesDesired){
2152
+ var self=this;
2153
+ return self.toFixed(placesDesired);
2154
+ return self;},
2155
+ args: ["placesDesired"],
2156
+ source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
2157
+ messageSends: [],
2158
+ referencedClasses: []
2159
+ }),
2160
+ smalltalk.Number);
2161
+
2162
+ smalltalk.addMethod(
2163
+ unescape('_%5C'),
2164
+ smalltalk.method({
2165
+ selector: unescape('%5C'),
2166
+ category: '',
2167
+ fn: function (aNumber){
2168
+ var self=this;
2169
+ return self % aNumber;
2170
+ return self;},
2171
+ args: ["aNumber"],
2172
+ source: unescape(''),
2173
+ messageSends: [],
2174
+ referencedClasses: []
2175
+ }),
2176
+ smalltalk.Number);
2177
+
2178
+ smalltalk.addMethod(
2179
+ unescape('_to_by_'),
2180
+ smalltalk.method({
2181
+ selector: unescape('to%3Aby%3A'),
2182
+ category: 'converting',
2183
+ fn: function (stop, step){
2184
+ var self=this;
2185
+ var array=nil;
2186
+ var value=nil;
2187
+ var pos=nil;
2188
+ (value=self);
2189
+ (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
2190
+ (pos=(1));
2191
+ ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
2192
+ ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);(pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})]));
2193
+ return array;
2194
+ return self;},
2195
+ args: ["stop", "step"],
2196
+ source: unescape('to%3A%20stop%20by%3A%20step%0A%09%7C%20array%20value%20pos%20%7C%0A%09value%20%3A%3D%20self.%0A%09array%20%3A%3D%20Array%20new.%0A%09pos%20%3A%3D%201.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D.%0A%09%5Earray'),
2197
+ messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
2198
+ referencedClasses: ["Array"]
2199
+ }),
2200
+ smalltalk.Number);
2201
+
2202
+ smalltalk.addMethod(
2203
+ unescape('_to_by_do_'),
2204
+ smalltalk.method({
2205
+ selector: unescape('to%3Aby%3Ado%3A'),
2206
+ category: 'enumerating',
2207
+ fn: function (stop, step, aBlock){
2208
+ var self=this;
2209
+ var value=nil;
2210
+ (value=self);
2211
+ ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
2212
+ ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return (value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step])));})()}})();})]));
2213
+ return self;},
2214
+ args: ["stop", "step", "aBlock"],
2215
+ source: unescape('to%3A%20stop%20by%3A%20step%20do%3A%20aBlock%0A%09%7C%20value%20%7C%0A%09value%20%3A%3D%20self.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D'),
2216
+ messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
2217
+ referencedClasses: []
2218
+ }),
2219
+ smalltalk.Number);
2220
+
2221
+ smalltalk.addMethod(
2222
+ unescape('_deepCopy'),
2223
+ smalltalk.method({
2224
+ selector: unescape('deepCopy'),
2225
+ category: 'copying',
2226
+ fn: function (){
2227
+ var self=this;
2228
+ return smalltalk.send(self, "_copy", []);
2229
+ return self;},
2230
+ args: [],
2231
+ source: unescape('deepCopy%0A%09%5Eself%20copy'),
2232
+ messageSends: ["copy"],
2233
+ referencedClasses: []
2234
+ }),
2235
+ smalltalk.Number);
2236
+
2237
+ smalltalk.addMethod(
2238
+ unescape('_copy'),
2239
+ smalltalk.method({
2240
+ selector: unescape('copy'),
2241
+ category: 'copying',
2242
+ fn: function (){
2243
+ var self=this;
2244
+ return self;
2245
+ return self;},
2246
+ args: [],
2247
+ source: unescape('copy%0A%09%5Eself'),
2248
+ messageSends: [],
2249
+ referencedClasses: []
2250
+ }),
2251
+ smalltalk.Number);
2252
+
2253
+ smalltalk.addMethod(
2254
+ unescape('_%5C%5C'),
2255
+ smalltalk.method({
2256
+ selector: unescape('%5C%5C'),
2257
+ category: 'arithmetic',
2258
+ fn: function (aNumber){
2259
+ var self=this;
2260
+ return self % aNumber;
2261
+ return self;},
2262
+ args: ["aNumber"],
2263
+ source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
2264
+ messageSends: [],
2265
+ referencedClasses: []
2266
+ }),
2267
+ smalltalk.Number);
2268
+
2269
+ smalltalk.addMethod(
2270
+ unescape('_sqrt'),
2271
+ smalltalk.method({
2272
+ selector: unescape('sqrt'),
2273
+ category: 'arithmetic',
2274
+ fn: function (){
2275
+ var self=this;
2276
+ return Math.sqrt(self);
2277
+ return self;},
2278
+ args: [],
2279
+ source: unescape('sqrt%0A%09%3Creturn%20Math.sqrt%28self%29%3E'),
2280
+ messageSends: [],
2281
+ referencedClasses: []
2282
+ }),
2283
+ smalltalk.Number);
2284
+
2285
+ smalltalk.addMethod(
2286
+ unescape('_squared'),
2287
+ smalltalk.method({
2288
+ selector: unescape('squared'),
2289
+ category: 'arithmetic',
2290
+ fn: function (){
2291
+ var self=this;
2292
+ return self * self;
2293
+ return self;},
2294
+ args: [],
2295
+ source: unescape('squared%0A%09%5Eself%20*%20self'),
2296
+ messageSends: [unescape("*")],
2297
+ referencedClasses: []
2298
+ }),
2299
+ smalltalk.Number);
2300
+
2301
+ smalltalk.addMethod(
2302
+ unescape('_identityHash'),
2303
+ smalltalk.method({
2304
+ selector: unescape('identityHash'),
2305
+ category: 'accessing',
2306
+ fn: function (){
2307
+ var self=this;
2308
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", ["n"]);
2309
+ return self;},
2310
+ args: [],
2311
+ source: unescape('identityHash%0A%09%5Eself%20asString%2C%20%27n%27'),
2312
+ messageSends: [unescape("%2C"), "asString"],
2313
+ referencedClasses: []
2314
+ }),
2315
+ smalltalk.Number);
2316
+
2317
+ smalltalk.addMethod(
2318
+ unescape('_negative'),
2319
+ smalltalk.method({
2320
+ selector: unescape('negative'),
2321
+ category: 'testing',
2322
+ fn: function (){
2323
+ var self=this;
2324
+ return self < (0);
2325
+ return self;},
2326
+ args: [],
2327
+ source: unescape('negative%0A%09%22Answer%20whether%20the%20receiver%20is%20mathematically%20negative.%22%0A%0A%09%5E%20self%20%3C%200'),
2328
+ messageSends: [unescape("%3C")],
2329
+ referencedClasses: []
2330
+ }),
2331
+ smalltalk.Number);
2332
+
2333
+ smalltalk.addMethod(
2334
+ unescape('_positive'),
2335
+ smalltalk.method({
2336
+ selector: unescape('positive'),
2337
+ category: 'testing',
2338
+ fn: function (){
2339
+ var self=this;
2340
+ return self >= (0);
2341
+ return self;},
2342
+ args: [],
2343
+ source: unescape('positive%0A%09%22Answer%20whether%20the%20receiver%20is%20positive%20or%20equal%20to%200.%20%28ST-80%20protocol%29.%22%0A%0A%09%5E%20self%20%3E%3D%200'),
2344
+ messageSends: [unescape("%3E%3D")],
2345
+ referencedClasses: []
2346
+ }),
2347
+ smalltalk.Number);
2348
+
2349
+ smalltalk.addMethod(
2350
+ unescape('_isZero'),
2351
+ smalltalk.method({
2352
+ selector: unescape('isZero'),
2353
+ category: 'testing',
2354
+ fn: function (){
2355
+ var self=this;
2356
+ return smalltalk.send(self, "__eq", [(0)]);
2357
+ return self;},
2358
+ args: [],
2359
+ source: unescape('isZero%0A%09%5Eself%20%3D%200'),
2360
+ messageSends: [unescape("%3D")],
2361
+ referencedClasses: []
2362
+ }),
2363
+ smalltalk.Number);
2364
+
2365
+
2366
+ smalltalk.addMethod(
2367
+ unescape('_pi'),
2368
+ smalltalk.method({
2369
+ selector: unescape('pi'),
2370
+ category: 'instance creation',
2371
+ fn: function (){
2372
+ var self=this;
2373
+ return Math.PI;
2374
+ return self;},
2375
+ args: [],
2376
+ source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
2377
+ messageSends: [],
2378
+ referencedClasses: []
2379
+ }),
2380
+ smalltalk.Number.klass);
2381
+
2382
+
2383
+ smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel-Objects');
2384
+ smalltalk.Boolean.comment=unescape('Boolean%20wraps%20the%20JavaScript%20%60Boolean%28%29%60%20constructor.%20The%20%60true%60%20and%20%60false%60%20objects%20are%20the%20JavaScript%20boolean%20objects.%0A%0ABoolean%20defines%20the%20protocol%20for%20logic%20testing%20operations%20and%20conditional%20control%20structures%20for%20the%20logical%20values.%0ABoolean%20instances%20are%20weither%20%60true%60%20or%20%60false%60.')
2385
+ smalltalk.addMethod(
2386
+ unescape('__eq'),
2387
+ smalltalk.method({
2388
+ selector: unescape('%3D'),
2389
+ category: 'comparing',
2390
+ fn: function (aBoolean){
2391
+ var self=this;
2392
+ try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
2393
+ return Boolean(self == true) == aBoolean;
2394
+ return self;
2395
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
2396
+ args: ["aBoolean"],
2397
+ source: unescape('%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%20aBoolean%3E'),
2398
+ messageSends: ["ifFalse:", unescape("%3D"), "class"],
2399
+ referencedClasses: []
2400
+ }),
2401
+ smalltalk.Boolean);
2402
+
2403
+ smalltalk.addMethod(
2404
+ unescape('_shallowCopy'),
2405
+ smalltalk.method({
2406
+ selector: unescape('shallowCopy'),
2407
+ category: 'copying',
2408
+ fn: function (){
2409
+ var self=this;
2410
+ return self;
2411
+ return self;},
2412
+ args: [],
2413
+ source: unescape('shallowCopy%0A%09%5Eself'),
2414
+ messageSends: [],
2415
+ referencedClasses: []
2416
+ }),
2417
+ smalltalk.Boolean);
2418
+
2419
+ smalltalk.addMethod(
2420
+ unescape('_deepCopy'),
2421
+ smalltalk.method({
2422
+ selector: unescape('deepCopy'),
2423
+ category: 'copying',
2424
+ fn: function (){
2425
+ var self=this;
2426
+ return self;
2427
+ return self;},
2428
+ args: [],
2429
+ source: unescape('deepCopy%0A%09%5Eself'),
2430
+ messageSends: [],
2431
+ referencedClasses: []
2432
+ }),
2433
+ smalltalk.Boolean);
2434
+
2435
+ smalltalk.addMethod(
2436
+ unescape('_ifTrue_'),
2437
+ smalltalk.method({
2438
+ selector: unescape('ifTrue%3A'),
2439
+ category: 'controlling',
2440
+ fn: function (aBlock){
2441
+ var self=this;
2442
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
2443
+ return self;},
2444
+ args: ["aBlock"],
2445
+ source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
2446
+ messageSends: ["ifTrue:ifFalse:"],
2447
+ referencedClasses: []
2448
+ }),
2449
+ smalltalk.Boolean);
2450
+
2451
+ smalltalk.addMethod(
2452
+ unescape('_ifFalse_'),
2453
+ smalltalk.method({
2454
+ selector: unescape('ifFalse%3A'),
2455
+ category: 'controlling',
2456
+ fn: function (aBlock){
2457
+ var self=this;
2458
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
2459
+ return self;},
2460
+ args: ["aBlock"],
2461
+ source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
2462
+ messageSends: ["ifTrue:ifFalse:"],
2463
+ referencedClasses: []
2464
+ }),
2465
+ smalltalk.Boolean);
2466
+
2467
+ smalltalk.addMethod(
2468
+ unescape('_ifFalse_ifTrue_'),
2469
+ smalltalk.method({
2470
+ selector: unescape('ifFalse%3AifTrue%3A'),
2471
+ category: 'controlling',
2472
+ fn: function (aBlock, anotherBlock){
2473
+ var self=this;
2474
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
2475
+ return self;},
2476
+ args: ["aBlock", "anotherBlock"],
2477
+ source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
2478
+ messageSends: ["ifTrue:ifFalse:"],
2479
+ referencedClasses: []
2480
+ }),
2481
+ smalltalk.Boolean);
2482
+
2483
+ smalltalk.addMethod(
2484
+ unescape('_ifTrue_ifFalse_'),
2485
+ smalltalk.method({
2486
+ selector: unescape('ifTrue%3AifFalse%3A'),
2487
+ category: 'controlling',
2488
+ fn: function (aBlock, anotherBlock){
2489
+ var self=this;
2490
+
2491
+ if(self == true) {
2492
+ return aBlock();
2493
+ } else {
2494
+ return anotherBlock();
2495
+ }
2496
+ ;
2497
+ return self;},
2498
+ args: ["aBlock", "anotherBlock"],
2499
+ source: unescape('ifTrue%3A%20aBlock%20ifFalse%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBlock%28%29%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20anotherBlock%28%29%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
2500
+ messageSends: [],
2501
+ referencedClasses: []
2502
+ }),
2503
+ smalltalk.Boolean);
2504
+
2505
+ smalltalk.addMethod(
2506
+ unescape('_and_'),
2507
+ smalltalk.method({
2508
+ selector: unescape('and%3A'),
2509
+ category: 'controlling',
2510
+ fn: function (aBlock){
2511
+ var self=this;
2512
+ return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
2513
+ return self;},
2514
+ args: ["aBlock"],
2515
+ source: unescape('and%3A%20aBlock%0A%09%5Eself%20%3D%20true%0A%09%20%20%20%20ifTrue%3A%20aBlock%0A%09%20%20%20%20ifFalse%3A%20%5Bfalse%5D'),
2516
+ messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
2517
+ referencedClasses: []
2518
+ }),
2519
+ smalltalk.Boolean);
2520
+
2521
+ smalltalk.addMethod(
2522
+ unescape('_or_'),
2523
+ smalltalk.method({
2524
+ selector: unescape('or%3A'),
2525
+ category: 'controlling',
2526
+ fn: function (aBlock){
2527
+ var self=this;
2528
+ return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
2529
+ return self;},
2530
+ args: ["aBlock"],
2531
+ source: unescape('or%3A%20aBlock%0A%09%5Eself%20%3D%20true%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20aBlock'),
2532
+ messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
2533
+ referencedClasses: []
2534
+ }),
2535
+ smalltalk.Boolean);
2536
+
2537
+ smalltalk.addMethod(
2538
+ unescape('_not'),
2539
+ smalltalk.method({
2540
+ selector: unescape('not'),
2541
+ category: 'controlling',
2542
+ fn: function (){
2543
+ var self=this;
2544
+ return smalltalk.send(self, "__eq", [false]);
2545
+ return self;},
2546
+ args: [],
2547
+ source: unescape('not%0A%09%5Eself%20%3D%20false'),
2548
+ messageSends: [unescape("%3D")],
2549
+ referencedClasses: []
2550
+ }),
2551
+ smalltalk.Boolean);
2552
+
2553
+ smalltalk.addMethod(
2554
+ unescape('_printString'),
2555
+ smalltalk.method({
2556
+ selector: unescape('printString'),
2557
+ category: 'printing',
2558
+ fn: function (){
2559
+ var self=this;
2560
+ return self.toString();
2561
+ return self;},
2562
+ args: [],
2563
+ source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
2564
+ messageSends: [],
2565
+ referencedClasses: []
2566
+ }),
2567
+ smalltalk.Boolean);
2568
+
2569
+ smalltalk.addMethod(
2570
+ unescape('_%26'),
2571
+ smalltalk.method({
2572
+ selector: unescape('%26'),
2573
+ category: 'controlling',
2574
+ fn: function (aBoolean){
2575
+ var self=this;
2576
+
2577
+ if(self == true) {
2578
+ return aBoolean;
2579
+ } else {
2580
+ return false;
2581
+ }
2582
+ ;
2583
+ return self;},
2584
+ args: ["aBoolean"],
2585
+ source: unescape('%26%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20false%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
2586
+ messageSends: [],
2587
+ referencedClasses: []
2588
+ }),
2589
+ smalltalk.Boolean);
2590
+
2591
+ smalltalk.addMethod(
2592
+ unescape('_%7C'),
2593
+ smalltalk.method({
2594
+ selector: unescape('%7C'),
2595
+ category: 'controlling',
2596
+ fn: function (aBoolean){
2597
+ var self=this;
2598
+
2599
+ if(self == true) {
2600
+ return true;
2601
+ } else {
2602
+ return aBoolean;
2603
+ }
2604
+ ;
2605
+ return self;},
2606
+ args: ["aBoolean"],
2607
+ source: unescape('%7C%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20true%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
2608
+ messageSends: [],
2609
+ referencedClasses: []
2610
+ }),
2611
+ smalltalk.Boolean);
2612
+
2613
+
2614
+
2615
+ smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel-Objects');
2616
+ smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.%20Therefore%20%60Date%20today%60%20and%20%60Date%20now%60%20are%20both%20valid%20in%0AAmber%20and%20answer%20the%20same%20date%20object.%0A%0ADate%20wraps%20the%20%60Date%28%29%60%20JavaScript%20constructor%2C%20and%20Smalltalk%20date%20objects%20are%20JavaScript%20date%20objects.')
2617
+ smalltalk.addMethod(
2618
+ unescape('_year'),
2619
+ smalltalk.method({
2620
+ selector: unescape('year'),
2621
+ category: 'accessing',
2622
+ fn: function (){
2623
+ var self=this;
2624
+ return self.getFullYear();
2625
+ return self;},
2626
+ args: [],
2627
+ source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
2628
+ messageSends: [],
2629
+ referencedClasses: []
2630
+ }),
2631
+ smalltalk.Date);
2632
+
2633
+ smalltalk.addMethod(
2634
+ unescape('_month'),
2635
+ smalltalk.method({
2636
+ selector: unescape('month'),
2637
+ category: 'accessing',
2638
+ fn: function (){
2639
+ var self=this;
2640
+ return self.getMonth() + 1;
2641
+ return self;},
2642
+ args: [],
2643
+ source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
2644
+ messageSends: [],
2645
+ referencedClasses: []
2646
+ }),
2647
+ smalltalk.Date);
2648
+
2649
+ smalltalk.addMethod(
2650
+ unescape('_month_'),
2651
+ smalltalk.method({
2652
+ selector: unescape('month%3A'),
2653
+ category: 'accessing',
2654
+ fn: function (aNumber){
2655
+ var self=this;
2656
+ self.setMonth(aNumber - 1);
2657
+ return self;},
2658
+ args: ["aNumber"],
2659
+ source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
2660
+ messageSends: [],
2661
+ referencedClasses: []
2662
+ }),
2663
+ smalltalk.Date);
2664
+
2665
+ smalltalk.addMethod(
2666
+ unescape('_day'),
2667
+ smalltalk.method({
2668
+ selector: unescape('day'),
2669
+ category: 'accessing',
2670
+ fn: function (){
2671
+ var self=this;
2672
+ return smalltalk.send(self, "_dayOfWeek", []);
2673
+ return self;},
2674
+ args: [],
2675
+ source: unescape('day%0A%09%5Eself%20dayOfWeek'),
2676
+ messageSends: ["dayOfWeek"],
2677
+ referencedClasses: []
2678
+ }),
2679
+ smalltalk.Date);
2680
+
2681
+ smalltalk.addMethod(
2682
+ unescape('_dayOfWeek'),
2683
+ smalltalk.method({
2684
+ selector: unescape('dayOfWeek'),
2685
+ category: 'accessing',
2686
+ fn: function (){
2687
+ var self=this;
2688
+ return self.getDay() + 1;
2689
+ return self;},
2690
+ args: [],
2691
+ source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
2692
+ messageSends: [],
2693
+ referencedClasses: []
2694
+ }),
2695
+ smalltalk.Date);
2696
+
2697
+ smalltalk.addMethod(
2698
+ unescape('_dayOfWeek_'),
2699
+ smalltalk.method({
2700
+ selector: unescape('dayOfWeek%3A'),
2701
+ category: 'accessing',
2702
+ fn: function (aNumber){
2703
+ var self=this;
2704
+ return self.setDay(aNumber - 1);
2705
+ return self;},
2706
+ args: ["aNumber"],
2707
+ source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
2708
+ messageSends: [],
2709
+ referencedClasses: []
2710
+ }),
2711
+ smalltalk.Date);
2712
+
2713
+ smalltalk.addMethod(
2714
+ unescape('_day_'),
2715
+ smalltalk.method({
2716
+ selector: unescape('day%3A'),
2717
+ category: 'accessing',
2718
+ fn: function (aNumber){
2719
+ var self=this;
2720
+ smalltalk.send(self, "_day_", [aNumber]);
2721
+ return self;},
2722
+ args: ["aNumber"],
2723
+ source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
2724
+ messageSends: ["day:"],
2725
+ referencedClasses: []
2726
+ }),
2727
+ smalltalk.Date);
2728
+
2729
+ smalltalk.addMethod(
2730
+ unescape('_year_'),
2731
+ smalltalk.method({
2732
+ selector: unescape('year%3A'),
2733
+ category: 'accessing',
2734
+ fn: function (aNumber){
2735
+ var self=this;
2736
+ self.setFullYear(aNumber);
2737
+ return self;},
2738
+ args: ["aNumber"],
2739
+ source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
2740
+ messageSends: [],
2741
+ referencedClasses: []
2742
+ }),
2743
+ smalltalk.Date);
2744
+
2745
+ smalltalk.addMethod(
2746
+ unescape('_dayOfMonth'),
2747
+ smalltalk.method({
2748
+ selector: unescape('dayOfMonth'),
2749
+ category: 'accessing',
2750
+ fn: function (){
2751
+ var self=this;
2752
+ return self.getDate();
2753
+ return self;},
2754
+ args: [],
2755
+ source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
2756
+ messageSends: [],
2757
+ referencedClasses: []
2758
+ }),
2759
+ smalltalk.Date);
2760
+
2761
+ smalltalk.addMethod(
2762
+ unescape('_dayOfMonth_'),
2763
+ smalltalk.method({
2764
+ selector: unescape('dayOfMonth%3A'),
2765
+ category: 'accessing',
2766
+ fn: function (aNumber){
2767
+ var self=this;
2768
+ self.setDate(aNumber);
2769
+ return self;},
2770
+ args: ["aNumber"],
2771
+ source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
2772
+ messageSends: [],
2773
+ referencedClasses: []
2774
+ }),
2775
+ smalltalk.Date);
2776
+
2777
+ smalltalk.addMethod(
2778
+ unescape('_asString'),
2779
+ smalltalk.method({
2780
+ selector: unescape('asString'),
2781
+ category: 'converting',
2782
+ fn: function (){
2783
+ var self=this;
2784
+ return self.toString();
2785
+ return self;},
2786
+ args: [],
2787
+ source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
2788
+ messageSends: [],
2789
+ referencedClasses: []
2790
+ }),
2791
+ smalltalk.Date);
2792
+
2793
+ smalltalk.addMethod(
2794
+ unescape('_printString'),
2795
+ smalltalk.method({
2796
+ selector: unescape('printString'),
2797
+ category: 'printing',
2798
+ fn: function (){
2799
+ var self=this;
2800
+ return smalltalk.send(self, "_asString", []);
2801
+ return self;},
2802
+ args: [],
2803
+ source: unescape('printString%0A%09%5Eself%20asString'),
2804
+ messageSends: ["asString"],
2805
+ referencedClasses: []
2806
+ }),
2807
+ smalltalk.Date);
2808
+
2809
+ smalltalk.addMethod(
2810
+ unescape('_asMilliseconds'),
2811
+ smalltalk.method({
2812
+ selector: unescape('asMilliseconds'),
2813
+ category: 'converting',
2814
+ fn: function (){
2815
+ var self=this;
2816
+ return smalltalk.send(self, "_time", []);
2817
+ return self;},
2818
+ args: [],
2819
+ source: unescape('asMilliseconds%0A%09%5Eself%20time'),
2820
+ messageSends: ["time"],
2821
+ referencedClasses: []
2822
+ }),
2823
+ smalltalk.Date);
2824
+
2825
+ smalltalk.addMethod(
2826
+ unescape('_time'),
2827
+ smalltalk.method({
2828
+ selector: unescape('time'),
2829
+ category: 'accessing',
2830
+ fn: function (){
2831
+ var self=this;
2832
+ return self.getTime();
2833
+ return self;},
2834
+ args: [],
2835
+ source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
2836
+ messageSends: [],
2837
+ referencedClasses: []
2838
+ }),
2839
+ smalltalk.Date);
2840
+
2841
+ smalltalk.addMethod(
2842
+ unescape('_time_'),
2843
+ smalltalk.method({
2844
+ selector: unescape('time%3A'),
2845
+ category: 'accessing',
2846
+ fn: function (aNumber){
2847
+ var self=this;
2848
+ self.setTime(aNumber);
2849
+ return self;},
2850
+ args: ["aNumber"],
2851
+ source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
2852
+ messageSends: [],
2853
+ referencedClasses: []
2854
+ }),
2855
+ smalltalk.Date);
2856
+
2857
+ smalltalk.addMethod(
2858
+ unescape('_asDateString'),
2859
+ smalltalk.method({
2860
+ selector: unescape('asDateString'),
2861
+ category: 'converting',
2862
+ fn: function (){
2863
+ var self=this;
2864
+ return self.toDateString();
2865
+ return self;},
2866
+ args: [],
2867
+ source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
2868
+ messageSends: [],
2869
+ referencedClasses: []
2870
+ }),
2871
+ smalltalk.Date);
2872
+
2873
+ smalltalk.addMethod(
2874
+ unescape('_asTimeString'),
2875
+ smalltalk.method({
2876
+ selector: unescape('asTimeString'),
2877
+ category: 'converting',
2878
+ fn: function (){
2879
+ var self=this;
2880
+ return self.toTimeString();
2881
+ return self;},
2882
+ args: [],
2883
+ source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
2884
+ messageSends: [],
2885
+ referencedClasses: []
2886
+ }),
2887
+ smalltalk.Date);
2888
+
2889
+ smalltalk.addMethod(
2890
+ unescape('_asLocaleString'),
2891
+ smalltalk.method({
2892
+ selector: unescape('asLocaleString'),
2893
+ category: 'converting',
2894
+ fn: function (){
2895
+ var self=this;
2896
+ return self.toLocaleString();
2897
+ return self;},
2898
+ args: [],
2899
+ source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
2900
+ messageSends: [],
2901
+ referencedClasses: []
2902
+ }),
2903
+ smalltalk.Date);
2904
+
2905
+ smalltalk.addMethod(
2906
+ unescape('_asNumber'),
2907
+ smalltalk.method({
2908
+ selector: unescape('asNumber'),
2909
+ category: 'converting',
2910
+ fn: function (){
2911
+ var self=this;
2912
+ return smalltalk.send(self, "_asMilliseconds", []);
2913
+ return self;},
2914
+ args: [],
2915
+ source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
2916
+ messageSends: ["asMilliseconds"],
2917
+ referencedClasses: []
2918
+ }),
2919
+ smalltalk.Date);
2920
+
2921
+ smalltalk.addMethod(
2922
+ unescape('_hours_'),
2923
+ smalltalk.method({
2924
+ selector: unescape('hours%3A'),
2925
+ category: 'accessing',
2926
+ fn: function (aNumber){
2927
+ var self=this;
2928
+ self.setHours(aNumber);
2929
+ return self;},
2930
+ args: ["aNumber"],
2931
+ source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
2932
+ messageSends: [],
2933
+ referencedClasses: []
2934
+ }),
2935
+ smalltalk.Date);
2936
+
2937
+ smalltalk.addMethod(
2938
+ unescape('_minutes_'),
2939
+ smalltalk.method({
2940
+ selector: unescape('minutes%3A'),
2941
+ category: 'accessing',
2942
+ fn: function (aNumber){
2943
+ var self=this;
2944
+ self.setMinutes(aNumber);
2945
+ return self;},
2946
+ args: ["aNumber"],
2947
+ source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
2948
+ messageSends: [],
2949
+ referencedClasses: []
2950
+ }),
2951
+ smalltalk.Date);
2952
+
2953
+ smalltalk.addMethod(
2954
+ unescape('_seconds_'),
2955
+ smalltalk.method({
2956
+ selector: unescape('seconds%3A'),
2957
+ category: 'accessing',
2958
+ fn: function (aNumber){
2959
+ var self=this;
2960
+ self.setSeconds(aNumber);
2961
+ return self;},
2962
+ args: ["aNumber"],
2963
+ source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
2964
+ messageSends: [],
2965
+ referencedClasses: []
2966
+ }),
2967
+ smalltalk.Date);
2968
+
2969
+ smalltalk.addMethod(
2970
+ unescape('_milliseconds_'),
2971
+ smalltalk.method({
2972
+ selector: unescape('milliseconds%3A'),
2973
+ category: 'accessing',
2974
+ fn: function (aNumber){
2975
+ var self=this;
2976
+ self.setMilliseconds(aNumber);
2977
+ return self;},
2978
+ args: ["aNumber"],
2979
+ source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
2980
+ messageSends: [],
2981
+ referencedClasses: []
2982
+ }),
2983
+ smalltalk.Date);
2984
+
2985
+ smalltalk.addMethod(
2986
+ unescape('_hours'),
2987
+ smalltalk.method({
2988
+ selector: unescape('hours'),
2989
+ category: 'accessing',
2990
+ fn: function (){
2991
+ var self=this;
2992
+ return self.getHours();
2993
+ return self;},
2994
+ args: [],
2995
+ source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
2996
+ messageSends: [],
2997
+ referencedClasses: []
2998
+ }),
2999
+ smalltalk.Date);
3000
+
3001
+ smalltalk.addMethod(
3002
+ unescape('_minutes'),
3003
+ smalltalk.method({
3004
+ selector: unescape('minutes'),
3005
+ category: 'accessing',
3006
+ fn: function (){
3007
+ var self=this;
3008
+ return self.getMinutes();
3009
+ return self;},
3010
+ args: [],
3011
+ source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
3012
+ messageSends: [],
3013
+ referencedClasses: []
3014
+ }),
3015
+ smalltalk.Date);
3016
+
3017
+ smalltalk.addMethod(
3018
+ unescape('_seconds'),
3019
+ smalltalk.method({
3020
+ selector: unescape('seconds'),
3021
+ category: 'accessing',
3022
+ fn: function (){
3023
+ var self=this;
3024
+ return self.getSeconds();
3025
+ return self;},
3026
+ args: [],
3027
+ source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
3028
+ messageSends: [],
3029
+ referencedClasses: []
3030
+ }),
3031
+ smalltalk.Date);
3032
+
3033
+ smalltalk.addMethod(
3034
+ unescape('_milliseconds'),
3035
+ smalltalk.method({
3036
+ selector: unescape('milliseconds'),
3037
+ category: 'accessing',
3038
+ fn: function (){
3039
+ var self=this;
3040
+ return self.getMilliseconds();
3041
+ return self;},
3042
+ args: [],
3043
+ source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
3044
+ messageSends: [],
3045
+ referencedClasses: []
3046
+ }),
3047
+ smalltalk.Date);
3048
+
3049
+ smalltalk.addMethod(
3050
+ unescape('__lt'),
3051
+ smalltalk.method({
3052
+ selector: unescape('%3C'),
3053
+ category: 'comparing',
3054
+ fn: function (aDate){
3055
+ var self=this;
3056
+ return self < aDate;
3057
+ return self;},
3058
+ args: ["aDate"],
3059
+ source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
3060
+ messageSends: [],
3061
+ referencedClasses: []
3062
+ }),
3063
+ smalltalk.Date);
3064
+
3065
+ smalltalk.addMethod(
3066
+ unescape('__gt'),
3067
+ smalltalk.method({
3068
+ selector: unescape('%3E'),
3069
+ category: 'comparing',
3070
+ fn: function (aDate){
3071
+ var self=this;
3072
+ return self > aDate;
3073
+ return self;},
3074
+ args: ["aDate"],
3075
+ source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
3076
+ messageSends: [],
3077
+ referencedClasses: []
3078
+ }),
3079
+ smalltalk.Date);
3080
+
3081
+ smalltalk.addMethod(
3082
+ unescape('__lt_eq'),
3083
+ smalltalk.method({
3084
+ selector: unescape('%3C%3D'),
3085
+ category: 'comparing',
3086
+ fn: function (aDate){
3087
+ var self=this;
3088
+ return self <= aDate;
3089
+ return self;},
3090
+ args: ["aDate"],
3091
+ source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
3092
+ messageSends: [],
3093
+ referencedClasses: []
3094
+ }),
3095
+ smalltalk.Date);
3096
+
3097
+ smalltalk.addMethod(
3098
+ unescape('__gt_eq'),
3099
+ smalltalk.method({
3100
+ selector: unescape('%3E%3D'),
3101
+ category: 'comparing',
3102
+ fn: function (aDate){
3103
+ var self=this;
3104
+ return self >= aDate;
3105
+ return self;},
3106
+ args: ["aDate"],
3107
+ source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
3108
+ messageSends: [],
3109
+ referencedClasses: []
3110
+ }),
3111
+ smalltalk.Date);
3112
+
3113
+ smalltalk.addMethod(
3114
+ unescape('__minus'),
3115
+ smalltalk.method({
3116
+ selector: unescape('-'),
3117
+ category: 'arithmetic',
3118
+ fn: function (aDate){
3119
+ var self=this;
3120
+ return self - aDate;
3121
+ return self;},
3122
+ args: ["aDate"],
3123
+ source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
3124
+ messageSends: [],
3125
+ referencedClasses: []
3126
+ }),
3127
+ smalltalk.Date);
3128
+
3129
+ smalltalk.addMethod(
3130
+ unescape('__plus'),
3131
+ smalltalk.method({
3132
+ selector: unescape('+'),
3133
+ category: 'arithmetic',
3134
+ fn: function (aDate){
3135
+ var self=this;
3136
+ return self + aDate;
3137
+ return self;},
3138
+ args: ["aDate"],
3139
+ source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
3140
+ messageSends: [],
3141
+ referencedClasses: []
3142
+ }),
3143
+ smalltalk.Date);
3144
+
3145
+
3146
+ smalltalk.addMethod(
3147
+ unescape('_new_'),
3148
+ smalltalk.method({
3149
+ selector: unescape('new%3A'),
3150
+ category: 'instance creation',
3151
+ fn: function (anObject){
3152
+ var self=this;
3153
+ return new Date(anObject);
3154
+ return self;},
3155
+ args: ["anObject"],
3156
+ source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
3157
+ messageSends: [],
3158
+ referencedClasses: []
3159
+ }),
3160
+ smalltalk.Date.klass);
3161
+
3162
+ smalltalk.addMethod(
3163
+ unescape('_fromString_'),
3164
+ smalltalk.method({
3165
+ selector: unescape('fromString%3A'),
3166
+ category: 'instance creation',
3167
+ fn: function (aString){
3168
+ var self=this;
3169
+ return smalltalk.send(self, "_new_", [aString]);
3170
+ return self;},
3171
+ args: ["aString"],
3172
+ source: unescape('fromString%3A%20aString%0A%09%22Example%3A%20Date%20fromString%28%272011/04/15%2000%3A00%3A00%27%29%22%0A%09%5Eself%20new%3A%20aString'),
3173
+ messageSends: ["new:"],
3174
+ referencedClasses: []
3175
+ }),
3176
+ smalltalk.Date.klass);
3177
+
3178
+ smalltalk.addMethod(
3179
+ unescape('_fromSeconds_'),
3180
+ smalltalk.method({
3181
+ selector: unescape('fromSeconds%3A'),
3182
+ category: 'instance creation',
3183
+ fn: function (aNumber){
3184
+ var self=this;
3185
+ return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
3186
+ return self;},
3187
+ args: ["aNumber"],
3188
+ source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
3189
+ messageSends: ["fromMilliseconds:", unescape("*")],
3190
+ referencedClasses: []
3191
+ }),
3192
+ smalltalk.Date.klass);
3193
+
3194
+ smalltalk.addMethod(
3195
+ unescape('_fromMilliseconds_'),
3196
+ smalltalk.method({
3197
+ selector: unescape('fromMilliseconds%3A'),
3198
+ category: 'instance creation',
3199
+ fn: function (aNumber){
3200
+ var self=this;
3201
+ return smalltalk.send(self, "_new_", [aNumber]);
3202
+ return self;},
3203
+ args: ["aNumber"],
3204
+ source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
3205
+ messageSends: ["new:"],
3206
+ referencedClasses: []
3207
+ }),
3208
+ smalltalk.Date.klass);
3209
+
3210
+ smalltalk.addMethod(
3211
+ unescape('_today'),
3212
+ smalltalk.method({
3213
+ selector: unescape('today'),
3214
+ category: 'instance creation',
3215
+ fn: function (){
3216
+ var self=this;
3217
+ return smalltalk.send(self, "_new", []);
3218
+ return self;},
3219
+ args: [],
3220
+ source: unescape('today%0A%09%5Eself%20new'),
3221
+ messageSends: ["new"],
3222
+ referencedClasses: []
3223
+ }),
3224
+ smalltalk.Date.klass);
3225
+
3226
+ smalltalk.addMethod(
3227
+ unescape('_now'),
3228
+ smalltalk.method({
3229
+ selector: unescape('now'),
3230
+ category: 'instance creation',
3231
+ fn: function (){
3232
+ var self=this;
3233
+ return smalltalk.send(self, "_today", []);
3234
+ return self;},
3235
+ args: [],
3236
+ source: unescape('now%0A%09%5Eself%20today'),
3237
+ messageSends: ["today"],
3238
+ referencedClasses: []
3239
+ }),
3240
+ smalltalk.Date.klass);
3241
+
3242
+ smalltalk.addMethod(
3243
+ unescape('_millisecondsToRun_'),
3244
+ smalltalk.method({
3245
+ selector: unescape('millisecondsToRun%3A'),
3246
+ category: 'instance creation',
3247
+ fn: function (aBlock){
3248
+ var self=this;
3249
+ var t=nil;
3250
+ (t=smalltalk.send((smalltalk.Date || Date), "_now", []));
3251
+ smalltalk.send(aBlock, "_value", []);
3252
+ return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
3253
+ return self;},
3254
+ args: ["aBlock"],
3255
+ source: unescape('millisecondsToRun%3A%20aBlock%0A%09%7C%20t%20%7C%0A%09t%20%3A%3D%20Date%20now.%0A%09aBlock%20value.%0A%09%5EDate%20now%20-%20t'),
3256
+ messageSends: ["now", "value", unescape("-")],
3257
+ referencedClasses: ["Date"]
3258
+ }),
3259
+ smalltalk.Date.klass);
3260
+
3261
+
3262
+ smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel-Objects');
3263
+ smalltalk.UndefinedObject.comment=unescape('UndefinedObject%20describes%20the%20behavior%20of%20its%20sole%20instance%2C%20%60nil%60.%20%60nil%60%20represents%20a%20prior%20value%20for%20variables%20that%20have%20not%20been%20initialized%2C%20or%20for%20results%20which%20are%20meaningless.%0A%0A%60nil%60%20is%20the%20Smalltalk%20representation%20of%20the%20%60undefined%60%20JavaScript%20object.')
3264
+ smalltalk.addMethod(
3265
+ unescape('_subclass_instanceVariableNames_'),
3266
+ smalltalk.method({
3267
+ selector: unescape('subclass%3AinstanceVariableNames%3A'),
3268
+ category: 'class creation',
3269
+ fn: function (aString, anotherString){
3270
+ var self=this;
3271
+ return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
3272
+ return self;},
3273
+ args: ["aString", "anotherString"],
3274
+ source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
3275
+ messageSends: ["subclass:instanceVariableNames:package:"],
3276
+ referencedClasses: []
3277
+ }),
3278
+ smalltalk.UndefinedObject);
3279
+
3280
+ smalltalk.addMethod(
3281
+ unescape('_subclass_instanceVariableNames_category_'),
3282
+ smalltalk.method({
3283
+ selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
3284
+ category: 'class creation',
3285
+ fn: function (aString, aString2, aString3){
3286
+ var self=this;
3287
+ smalltalk.send(self, "_deprecatedAPI", []);
3288
+ return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
3289
+ return self;},
3290
+ args: ["aString", "aString2", "aString3"],
3291
+ source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09self%20deprecatedAPI.%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
3292
+ messageSends: ["deprecatedAPI", "subclass:instanceVariableNames:package:"],
3293
+ referencedClasses: []
3294
+ }),
3295
+ smalltalk.UndefinedObject);
3296
+
3297
+ smalltalk.addMethod(
3298
+ unescape('_shallowCopy'),
3299
+ smalltalk.method({
3300
+ selector: unescape('shallowCopy'),
3301
+ category: 'copying',
3302
+ fn: function (){
3303
+ var self=this;
3304
+ return self;
3305
+ return self;},
3306
+ args: [],
3307
+ source: unescape('shallowCopy%0A%09%5Eself'),
3308
+ messageSends: [],
3309
+ referencedClasses: []
3310
+ }),
3311
+ smalltalk.UndefinedObject);
3312
+
3313
+ smalltalk.addMethod(
3314
+ unescape('_deepCopy'),
3315
+ smalltalk.method({
3316
+ selector: unescape('deepCopy'),
3317
+ category: 'copying',
3318
+ fn: function (){
3319
+ var self=this;
3320
+ return self;
3321
+ return self;},
3322
+ args: [],
3323
+ source: unescape('deepCopy%0A%09%5Eself'),
3324
+ messageSends: [],
3325
+ referencedClasses: []
3326
+ }),
3327
+ smalltalk.UndefinedObject);
3328
+
3329
+ smalltalk.addMethod(
3330
+ unescape('_ifNil_'),
3331
+ smalltalk.method({
3332
+ selector: unescape('ifNil%3A'),
3333
+ category: 'testing',
3334
+ fn: function (aBlock){
3335
+ var self=this;
3336
+ return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
3337
+ return self;},
3338
+ args: ["aBlock"],
3339
+ source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
3340
+ messageSends: ["ifNil:ifNotNil:"],
3341
+ referencedClasses: []
3342
+ }),
3343
+ smalltalk.UndefinedObject);
3344
+
3345
+ smalltalk.addMethod(
3346
+ unescape('_ifNotNil_'),
3347
+ smalltalk.method({
3348
+ selector: unescape('ifNotNil%3A'),
3349
+ category: 'testing',
3350
+ fn: function (aBlock){
3351
+ var self=this;
3352
+ return self;
3353
+ return self;},
3354
+ args: ["aBlock"],
3355
+ source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
3356
+ messageSends: [],
3357
+ referencedClasses: []
3358
+ }),
3359
+ smalltalk.UndefinedObject);
3360
+
3361
+ smalltalk.addMethod(
3362
+ unescape('_ifNil_ifNotNil_'),
3363
+ smalltalk.method({
3364
+ selector: unescape('ifNil%3AifNotNil%3A'),
3365
+ category: 'testing',
3366
+ fn: function (aBlock, anotherBlock){
3367
+ var self=this;
3368
+ return smalltalk.send(aBlock, "_value", []);
3369
+ return self;},
3370
+ args: ["aBlock", "anotherBlock"],
3371
+ source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
3372
+ messageSends: ["value"],
3373
+ referencedClasses: []
3374
+ }),
3375
+ smalltalk.UndefinedObject);
3376
+
3377
+ smalltalk.addMethod(
3378
+ unescape('_ifNotNil_ifNil_'),
3379
+ smalltalk.method({
3380
+ selector: unescape('ifNotNil%3AifNil%3A'),
3381
+ category: 'testing',
3382
+ fn: function (aBlock, anotherBlock){
3383
+ var self=this;
3384
+ return smalltalk.send(anotherBlock, "_value", []);
3385
+ return self;},
3386
+ args: ["aBlock", "anotherBlock"],
3387
+ source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
3388
+ messageSends: ["value"],
3389
+ referencedClasses: []
3390
+ }),
3391
+ smalltalk.UndefinedObject);
3392
+
3393
+ smalltalk.addMethod(
3394
+ unescape('_isNil'),
3395
+ smalltalk.method({
3396
+ selector: unescape('isNil'),
3397
+ category: 'testing',
3398
+ fn: function (){
3399
+ var self=this;
3400
+ return true;
3401
+ return self;},
3402
+ args: [],
3403
+ source: unescape('isNil%0A%09%5Etrue'),
3404
+ messageSends: [],
3405
+ referencedClasses: []
3406
+ }),
3407
+ smalltalk.UndefinedObject);
3408
+
3409
+ smalltalk.addMethod(
3410
+ unescape('_notNil'),
3411
+ smalltalk.method({
3412
+ selector: unescape('notNil'),
3413
+ category: 'testing',
3414
+ fn: function (){
3415
+ var self=this;
3416
+ return false;
3417
+ return self;},
3418
+ args: [],
3419
+ source: unescape('notNil%0A%09%5Efalse'),
3420
+ messageSends: [],
3421
+ referencedClasses: []
3422
+ }),
3423
+ smalltalk.UndefinedObject);
3424
+
3425
+ smalltalk.addMethod(
3426
+ unescape('_printString'),
3427
+ smalltalk.method({
3428
+ selector: unescape('printString'),
3429
+ category: 'printing',
3430
+ fn: function (){
3431
+ var self=this;
3432
+ return "nil";
3433
+ return self;},
3434
+ args: [],
3435
+ source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
3436
+ messageSends: [],
3437
+ referencedClasses: []
3438
+ }),
3439
+ smalltalk.UndefinedObject);
3440
+
3441
+ smalltalk.addMethod(
3442
+ unescape('_subclass_instanceVariableNames_package_'),
3443
+ smalltalk.method({
3444
+ selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
3445
+ category: 'class creation',
3446
+ fn: function (aString, aString2, aString3){
3447
+ var self=this;
3448
+ return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
3449
+ return self;},
3450
+ args: ["aString", "aString2", "aString3"],
3451
+ source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
3452
+ messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
3453
+ referencedClasses: ["ClassBuilder"]
3454
+ }),
3455
+ smalltalk.UndefinedObject);
3456
+
3457
+
3458
+ smalltalk.addMethod(
3459
+ unescape('_new'),
3460
+ smalltalk.method({
3461
+ selector: unescape('new'),
3462
+ category: 'instance creation',
3463
+ fn: function (){
3464
+ var self=this;
3465
+ smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
3466
+ return self;},
3467
+ args: [],
3468
+ source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
3469
+ messageSends: ["error:"],
3470
+ referencedClasses: []
3471
+ }),
3472
+ smalltalk.UndefinedObject.klass);
3473
+
3474
+
3475
+ smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel-Objects');
3476
+ smalltalk.Random.comment=unescape('%60Random%60%20is%20a%20random%20number%20generator%20and%20is%20implemented%20as%20a%20trivial%20wrapper%20around%20javascript%20%60Math.random%28%29%60%20and%20is%20used%20like%20this%3A%0A%0A%09Random%20new%20next%0A%0AThis%20will%20return%20a%20float%20x%20where%20x%20%3C%201%20and%20x%20%3E%200.%20If%20you%20want%20a%20random%20integer%20from%201%20to%2010%20you%20can%20use%20%60%23atRandom%60%0A%0A%0910%20atRandom%0A%0A...and%20if%20you%20want%20a%20random%20number%20in%20a%20specific%20interval%20this%20also%20works%3A%0A%0A%09%283%20to%3A%207%29%20atRandom%0A%0A...but%20be%20aware%20that%20%60%23to%3A%60%20does%20not%20create%20an%20Interval%20as%20in%20other%20Smalltalk%20implementations%20but%20in%20fact%20an%20%60Array%60%20of%20numbers%2C%20so%20it%27s%20better%20to%20use%3A%0A%0A%095%20atRandom%20+%202%0A%0ASince%20%60%23atRandom%60%20is%20implemented%20in%20%60SequencableCollection%60%20you%20can%20easy%20pick%20an%20element%20at%20random%3A%0A%0A%09%23%28%27a%27%20%27b%27%20%27c%27%29%20atRandom%0A%0A...or%20perhaps%20a%20letter%20from%20a%20%60String%60%3A%0A%0A%09%27abc%27%20atRandom%0A%0ASince%20Amber%20does%20not%20have%20Characters%20this%20will%20return%20a%20%60String%60%20of%20length%201%20like%20for%20example%20%60%27b%27%60.')
3477
+ smalltalk.addMethod(
3478
+ unescape('_next'),
3479
+ smalltalk.method({
3480
+ selector: unescape('next'),
3481
+ category: 'accessing',
3482
+ fn: function (){
3483
+ var self=this;
3484
+ return Math.random();
3485
+ return self;},
3486
+ args: [],
3487
+ source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
3488
+ messageSends: [],
3489
+ referencedClasses: []
3490
+ }),
3491
+ smalltalk.Random);
3492
+
3493
+ smalltalk.addMethod(
3494
+ unescape('_next_'),
3495
+ smalltalk.method({
3496
+ selector: unescape('next%3A'),
3497
+ category: 'accessing',
3498
+ fn: function (anInteger){
3499
+ var self=this;
3500
+ return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
3501
+ return self;},
3502
+ args: ["anInteger"],
3503
+ source: unescape('next%3A%20anInteger%0A%20%20%20%20%5E%281%20to%3A%20anInteger%29%20collect%3A%20%5B%3Aeach%20%7C%20self%20next%5D'),
3504
+ messageSends: ["collect:", "to:", "next"],
3505
+ referencedClasses: []
3506
+ }),
3507
+ smalltalk.Random);
3508
+
3509
+
3510
+
3511
+ smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel-Objects');
3512
+ smalltalk.Point.comment=unescape('A%20%60Point%60%20represents%20an%20x-y%20pair%20of%20numbers%20usually%20designating%20a%20geometric%20coordinate.%0APoints%20are%20traditionally%20created%20using%20the%20binary%20%60%23@%60%20message%20to%20a%20number%3A%0A%0A%09100@120%0A%0APoints%20can%20then%20be%20arithmetically%20manipulated%3A%0A%0A%09100@100%20+%20%2810@10%29%0A%0A...or%20for%20example%3A%0A%0A%09%28100@100%29%20*%202%0A%0A**NOTE%3A**%20Creating%20a%20Point%20with%20a%20negative%20y-value%20will%20need%20a%20space%20after%20%60@%60%20in%20order%20to%20avoid%20a%20parsing%20error%3A%0A%0A%09100@%20-100%20%22but%20100@-100%20would%20not%20parse%22%0A%0AAmber%20does%20not%20have%20much%20behavior%20in%20this%20class%20out-of-the-box.')
3513
+ smalltalk.addMethod(
3514
+ unescape('_x'),
3515
+ smalltalk.method({
3516
+ selector: unescape('x'),
3517
+ category: 'accessing',
3518
+ fn: function (){
3519
+ var self=this;
3520
+ return self['@x'];
3521
+ return self;},
3522
+ args: [],
3523
+ source: unescape('x%0A%09%5Ex'),
3524
+ messageSends: [],
3525
+ referencedClasses: []
3526
+ }),
3527
+ smalltalk.Point);
3528
+
3529
+ smalltalk.addMethod(
3530
+ unescape('_y'),
3531
+ smalltalk.method({
3532
+ selector: unescape('y'),
3533
+ category: 'accessing',
3534
+ fn: function (){
3535
+ var self=this;
3536
+ return self['@y'];
3537
+ return self;},
3538
+ args: [],
3539
+ source: unescape('y%0A%09%5Ey'),
3540
+ messageSends: [],
3541
+ referencedClasses: []
3542
+ }),
3543
+ smalltalk.Point);
3544
+
3545
+ smalltalk.addMethod(
3546
+ unescape('_y_'),
3547
+ smalltalk.method({
3548
+ selector: unescape('y%3A'),
3549
+ category: 'accessing',
3550
+ fn: function (aNumber){
3551
+ var self=this;
3552
+ (self['@y']=aNumber);
3553
+ return self;},
3554
+ args: ["aNumber"],
3555
+ source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
3556
+ messageSends: [],
3557
+ referencedClasses: []
3558
+ }),
3559
+ smalltalk.Point);
3560
+
3561
+ smalltalk.addMethod(
3562
+ unescape('_x_'),
3563
+ smalltalk.method({
3564
+ selector: unescape('x%3A'),
3565
+ category: 'accessing',
3566
+ fn: function (aNumber){
3567
+ var self=this;
3568
+ (self['@x']=aNumber);
3569
+ return self;},
3570
+ args: ["aNumber"],
3571
+ source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
3572
+ messageSends: [],
3573
+ referencedClasses: []
3574
+ }),
3575
+ smalltalk.Point);
3576
+
3577
+ smalltalk.addMethod(
3578
+ unescape('__star'),
3579
+ smalltalk.method({
3580
+ selector: unescape('*'),
3581
+ category: 'arithmetic',
3582
+ fn: function (aPoint){
3583
+ var self=this;
3584
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
3585
+ return self;},
3586
+ args: ["aPoint"],
3587
+ source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
3588
+ messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
3589
+ referencedClasses: ["Point"]
3590
+ }),
3591
+ smalltalk.Point);
3592
+
3593
+ smalltalk.addMethod(
3594
+ unescape('__plus'),
3595
+ smalltalk.method({
3596
+ selector: unescape('+'),
3597
+ category: 'arithmetic',
3598
+ fn: function (aPoint){
3599
+ var self=this;
3600
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
3601
+ return self;},
3602
+ args: ["aPoint"],
3603
+ source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
3604
+ messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
3605
+ referencedClasses: ["Point"]
3606
+ }),
3607
+ smalltalk.Point);
3608
+
3609
+ smalltalk.addMethod(
3610
+ unescape('__minus'),
3611
+ smalltalk.method({
3612
+ selector: unescape('-'),
3613
+ category: 'arithmetic',
3614
+ fn: function (aPoint){
3615
+ var self=this;
3616
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
3617
+ return self;},
3618
+ args: ["aPoint"],
3619
+ source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
3620
+ messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
3621
+ referencedClasses: ["Point"]
3622
+ }),
3623
+ smalltalk.Point);
3624
+
3625
+ smalltalk.addMethod(
3626
+ unescape('__slash'),
3627
+ smalltalk.method({
3628
+ selector: unescape('/'),
3629
+ category: 'arithmetic',
3630
+ fn: function (aPoint){
3631
+ var self=this;
3632
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
3633
+ return self;},
3634
+ args: ["aPoint"],
3635
+ source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
3636
+ messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
3637
+ referencedClasses: ["Point"]
3638
+ }),
3639
+ smalltalk.Point);
3640
+
3641
+ smalltalk.addMethod(
3642
+ unescape('_asPoint'),
3643
+ smalltalk.method({
3644
+ selector: unescape('asPoint'),
3645
+ category: 'converting',
3646
+ fn: function (){
3647
+ var self=this;
3648
+ return self;
3649
+ return self;},
3650
+ args: [],
3651
+ source: unescape('asPoint%0A%09%5Eself'),
3652
+ messageSends: [],
3653
+ referencedClasses: []
3654
+ }),
3655
+ smalltalk.Point);
3656
+
3657
+ smalltalk.addMethod(
3658
+ unescape('__eq'),
3659
+ smalltalk.method({
3660
+ selector: unescape('%3D'),
3661
+ category: 'arithmetic',
3662
+ fn: function (aPoint){
3663
+ var self=this;
3664
+ return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_x", []), "__eq", [smalltalk.send(self, "_x", [])]), "_&", [smalltalk.send(smalltalk.send(aPoint, "_y", []), "__eq", [smalltalk.send(self, "_y", [])])]);})]);
3665
+ return self;},
3666
+ args: ["aPoint"],
3667
+ source: unescape('%3D%20aPoint%0A%09%5EaPoint%20class%20%3D%20self%20class%20and%3A%20%5B%0A%09%09%28aPoint%20x%20%3D%20self%20x%29%20%26%20%28aPoint%20y%20%3D%20self%20y%29%5D'),
3668
+ messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
3669
+ referencedClasses: []
3670
+ }),
3671
+ smalltalk.Point);
3672
+
3673
+ smalltalk.addMethod(
3674
+ unescape('_printString'),
3675
+ smalltalk.method({
3676
+ selector: unescape('printString'),
3677
+ category: 'printing',
3678
+ fn: function (){
3679
+ var self=this;
3680
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@x'], "_printString", []), "__comma", [unescape("@")])]);((($receiver = smalltalk.send(smalltalk.send(self['@y'], "_notNil", []), "_and_", [(function(){return smalltalk.send(self['@y'], "_negative", []);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_space", []);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_space", []);})]));return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(self['@y'], "_printString", [])]);})]);
3681
+ return self;},
3682
+ args: [],
3683
+ source: unescape('printString%0A%09%22Print%20receiver%20in%20classic%20x@y%20notation.%22%0A%0A%09%5EString%20streamContents%3A%20%5B%3Astream%20%7C%0A%09%09stream%20nextPutAll%3A%20x%20printString%2C%20%27@%27.%0A%09%09%28y%20notNil%20and%3A%20%5By%20negative%5D%29%0A%09%09%09ifTrue%3A%20%5B%0A%09%09%09%09%22Avoid%20ambiguous%20@-%20construct%22%0A%09%09%09%09stream%20space%5D.%0A%09%09stream%20nextPutAll%3A%20y%20printString%5D'),
3684
+ messageSends: ["streamContents:", "nextPutAll:", unescape("%2C"), "printString", "ifTrue:", "and:", "notNil", "negative", "space"],
3685
+ referencedClasses: ["String"]
3686
+ }),
3687
+ smalltalk.Point);
3688
+
3689
+
3690
+ smalltalk.addMethod(
3691
+ unescape('_x_y_'),
3692
+ smalltalk.method({
3693
+ selector: unescape('x%3Ay%3A'),
3694
+ category: 'instance creation',
3695
+ fn: function (aNumber, anotherNumber){
3696
+ var self=this;
3697
+ return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
3698
+ return self;},
3699
+ args: ["aNumber", "anotherNumber"],
3700
+ source: unescape('x%3A%20aNumber%20y%3A%20anotherNumber%0A%09%5Eself%20new%0A%09%09x%3A%20aNumber%3B%0A%09%09y%3A%20anotherNumber%3B%0A%09%09yourself'),
3701
+ messageSends: ["x:", "y:", "yourself", "new"],
3702
+ referencedClasses: []
3703
+ }),
3704
+ smalltalk.Point.klass);
3705
+
3706
+
3707
+ smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel-Objects');
3708
+ smalltalk.JSObjectProxy.comment=unescape('JSObjectProxy%20handles%20sending%20messages%20to%20JavaScript%20object%2C%20therefore%20accessing%20JavaScript%20objects%20from%20Amber%20is%20transparent.%0AJSOjbectProxy%20makes%20intensive%20use%20of%20%60%23doesNotUnderstand%3A%60.%0A%0A%23%23%20Examples%0A%0AJSObjectProxy%20objects%20are%20instanciated%20by%20Amber%20when%20a%20Smalltalk%20message%20is%20sent%20to%20a%20JavaScript%20object.%0A%0A%20%20%20%20window%20alert%3A%20%27hello%20world%27.%0A%20%20%20%20window%20inspect.%0A%20%20%20%20%28window%20jQuery%3A%20%27body%27%29%20append%3A%20%27hello%20world%27%0A%0ASmalltalk%20messages%20sends%20are%20converted%20to%20JavaScript%20function%20calls%20or%20object%20property%20access%20_%28in%20this%20order%29_.%20If%20n%20one%20of%20them%20match%2C%20a%20%60MessageNotUnderstood%60%20error%20will%20be%20thrown.%20%0A%0A%23%23%20Message%20conversion%20rules%0A%0A-%20%60someUser%20name%60%20becomes%20%20%60someUser.name%60%0A-%20%60someUser%20name%3A%20%27John%27%60%20becomes%20%60someUser%20name%20%3D%20%22John%22%60%0A-%20%60console%20log%3A%20%27hello%20world%27%60%20becomes%20%60console.log%28%27hello%20world%27%29%60%0A-%20%60%28window%20jQuery%3A%20%27foo%27%29%20css%3A%20%27background%27%20color%3A%20%27red%27%60%20becomes%20%60window.jQuery%28%27foo%27%29.css%28%27background%27%2C%20%27red%27%29%60%0A%0A__Note%3A__%20For%20keyword-based%20messages%2C%20only%20the%20first%20keyword%20is%20kept%3A%20%60window%20foo%3A%201%20bar%3A%202%60%20is%20equivalent%20to%20%60window%20foo%3A%201%20baz%3A%202%60.')
3709
+ smalltalk.addMethod(
3710
+ unescape('_jsObject_'),
3711
+ smalltalk.method({
3712
+ selector: unescape('jsObject%3A'),
3713
+ category: 'accessing',
3714
+ fn: function (aJSObject){
3715
+ var self=this;
3716
+ (self['@jsObject']=aJSObject);
3717
+ return self;},
3718
+ args: ["aJSObject"],
3719
+ source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
3720
+ messageSends: [],
3721
+ referencedClasses: []
3722
+ }),
3723
+ smalltalk.JSObjectProxy);
3724
+
3725
+ smalltalk.addMethod(
3726
+ unescape('_jsObject'),
3727
+ smalltalk.method({
3728
+ selector: unescape('jsObject'),
3729
+ category: 'accessing',
3730
+ fn: function (){
3731
+ var self=this;
3732
+ return self['@jsObject'];
3733
+ return self;},
3734
+ args: [],
3735
+ source: unescape('jsObject%0A%09%5EjsObject'),
3736
+ messageSends: [],
3737
+ referencedClasses: []
3738
+ }),
3739
+ smalltalk.JSObjectProxy);
3740
+
3741
+ smalltalk.addMethod(
3742
+ unescape('_printString'),
3743
+ smalltalk.method({
3744
+ selector: unescape('printString'),
3745
+ category: 'proxy',
3746
+ fn: function (){
3747
+ var self=this;
3748
+ return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
3749
+ return self;},
3750
+ args: [],
3751
+ source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
3752
+ messageSends: ["toString", "jsObject"],
3753
+ referencedClasses: []
3754
+ }),
3755
+ smalltalk.JSObjectProxy);
3756
+
3757
+ smalltalk.addMethod(
3758
+ unescape('_inspectOn_'),
3759
+ smalltalk.method({
3760
+ selector: unescape('inspectOn%3A'),
3761
+ category: 'proxy',
3762
+ fn: function (anInspector){
3763
+ var self=this;
3764
+ var variables=nil;
3765
+ (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
3766
+ smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
3767
+ smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
3768
+ for(var i in self['@jsObject']) {
3769
+ variables._at_put_(i, self['@jsObject'][i]);
3770
+ };
3771
+ smalltalk.send(anInspector, "_setVariables_", [variables]);
3772
+ return self;},
3773
+ args: ["anInspector"],
3774
+ source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self%20jsObject.%0A%09anInspector%20setLabel%3A%20self%20printString.%0A%09%3Cfor%28var%20i%20in%20self%5B%27@jsObject%27%5D%29%20%7B%0A%09%09variables._at_put_%28i%2C%20self%5B%27@jsObject%27%5D%5Bi%5D%29%3B%0A%09%7D%3E.%0A%09anInspector%20setVariables%3A%20variables'),
3775
+ messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
3776
+ referencedClasses: ["Dictionary"]
3777
+ }),
3778
+ smalltalk.JSObjectProxy);
3779
+
3780
+ smalltalk.addMethod(
3781
+ unescape('_doesNotUnderstand_'),
3782
+ smalltalk.method({
3783
+ selector: unescape('doesNotUnderstand%3A'),
3784
+ category: 'proxy',
3785
+ fn: function (aMessage){
3786
+ var self=this;
3787
+ var obj=nil;
3788
+ var selector=nil;
3789
+ var jsSelector=nil;
3790
+ var arguments=nil;
3791
+ (obj=smalltalk.send(self, "_jsObject", []));
3792
+ (selector=smalltalk.send(aMessage, "_selector", []));
3793
+ (jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []));
3794
+ (arguments=smalltalk.send(aMessage, "_arguments", []));
3795
+ if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
3796
+ smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
3797
+ return self;},
3798
+ args: ["aMessage"],
3799
+ source: unescape('doesNotUnderstand%3A%20aMessage%0A%09%7C%20obj%20selector%20jsSelector%20arguments%20%7C%0A%09obj%20%3A%3D%20self%20jsObject.%0A%09selector%20%3A%3D%20aMessage%20selector.%0A%09jsSelector%20%3A%3D%20selector%20asJavaScriptSelector.%0A%09arguments%20%3A%3D%20aMessage%20arguments.%0A%09%3Cif%28obj%5BjsSelector%5D%20%21%3D%20undefined%29%20%7Breturn%20smalltalk.send%28obj%2C%20jsSelector%2C%20arguments%29%7D%3E.%0A%09super%20doesNotUnderstand%3A%20aMessage'),
3800
+ messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
3801
+ referencedClasses: []
3802
+ }),
3803
+ smalltalk.JSObjectProxy);
3804
+
3805
+ smalltalk.addMethod(
3806
+ unescape('_at_'),
3807
+ smalltalk.method({
3808
+ selector: unescape('at%3A'),
3809
+ category: 'accessing',
3810
+ fn: function (aSymbol){
3811
+ var self=this;
3812
+ var attr=nil;
3813
+ (attr=smalltalk.send(aSymbol, "_asString", []));
3814
+ return self['@jsObject'][attr];
3815
+ return self;},
3816
+ args: ["aSymbol"],
3817
+ source: unescape('at%3A%20aSymbol%0A%09%7C%20attr%20%7C%0A%09attr%20%3A%3D%20aSymbol%20asString.%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5Battr%5D%3E'),
3818
+ messageSends: ["asString"],
3819
+ referencedClasses: []
3820
+ }),
3821
+ smalltalk.JSObjectProxy);
3822
+
3823
+ smalltalk.addMethod(
3824
+ unescape('_at_put_'),
3825
+ smalltalk.method({
3826
+ selector: unescape('at%3Aput%3A'),
3827
+ category: 'accessing',
3828
+ fn: function (aSymbol, anObject){
3829
+ var self=this;
3830
+ var attr=nil;
3831
+ (attr=smalltalk.send(aSymbol, "_asString", []));
3832
+ self['@jsObject'][attr] = anObject;
3833
+ return self;},
3834
+ args: ["aSymbol", "anObject"],
3835
+ source: unescape('at%3A%20aSymbol%20put%3A%20anObject%0A%09%7C%20attr%20%7C%0A%09attr%20%3A%3D%20aSymbol%20asString.%0A%09%3Cself%5B%27@jsObject%27%5D%5Battr%5D%20%3D%20anObject%3E'),
3836
+ messageSends: ["asString"],
3837
+ referencedClasses: []
3838
+ }),
3839
+ smalltalk.JSObjectProxy);
3840
+
3841
+
3842
+ smalltalk.addMethod(
3843
+ unescape('_on_'),
3844
+ smalltalk.method({
3845
+ selector: unescape('on%3A'),
3846
+ category: 'instance creation',
3847
+ fn: function (aJSObject){
3848
+ var self=this;
3849
+ return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
3850
+ return self;},
3851
+ args: ["aJSObject"],
3852
+ source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
3853
+ messageSends: ["jsObject:", "yourself", "new"],
3854
+ referencedClasses: []
3855
+ }),
3856
+ smalltalk.JSObjectProxy.klass);
3857
+
3858
+