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,2698 @@
1
+ smalltalk.addPackage('Kernel-Objects', {});
2
+ smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel-Objects');
3
+ smalltalk.addMethod(
4
+ unescape('__eq'),
5
+ smalltalk.method({
6
+ selector: unescape('%3D'),
7
+ fn: function (anObject){
8
+ var self=this;
9
+ return smalltalk.send(self, "__eq_eq", [anObject]);
10
+ return self;}
11
+ }),
12
+ smalltalk.Object);
13
+
14
+ smalltalk.addMethod(
15
+ unescape('_%7E_eq'),
16
+ smalltalk.method({
17
+ selector: unescape('%7E%3D'),
18
+ fn: function (anObject){
19
+ var self=this;
20
+ return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
21
+ return self;}
22
+ }),
23
+ smalltalk.Object);
24
+
25
+ smalltalk.addMethod(
26
+ unescape('_initialize'),
27
+ smalltalk.method({
28
+ selector: unescape('initialize'),
29
+ fn: function (){
30
+ var self=this;
31
+
32
+ return self;}
33
+ }),
34
+ smalltalk.Object);
35
+
36
+ smalltalk.addMethod(
37
+ unescape('_yourself'),
38
+ smalltalk.method({
39
+ selector: unescape('yourself'),
40
+ fn: function (){
41
+ var self=this;
42
+ return self;
43
+ return self;}
44
+ }),
45
+ smalltalk.Object);
46
+
47
+ smalltalk.addMethod(
48
+ unescape('_class'),
49
+ smalltalk.method({
50
+ selector: unescape('class'),
51
+ fn: function (){
52
+ var self=this;
53
+ return self.klass;
54
+ return self;}
55
+ }),
56
+ smalltalk.Object);
57
+
58
+ smalltalk.addMethod(
59
+ unescape('_size'),
60
+ smalltalk.method({
61
+ selector: unescape('size'),
62
+ fn: function (){
63
+ var self=this;
64
+ smalltalk.send(self, "_error_", ["Object not indexable"]);
65
+ return self;}
66
+ }),
67
+ smalltalk.Object);
68
+
69
+ smalltalk.addMethod(
70
+ unescape('_copy'),
71
+ smalltalk.method({
72
+ selector: unescape('copy'),
73
+ fn: function (){
74
+ var self=this;
75
+ return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
76
+ return self;}
77
+ }),
78
+ smalltalk.Object);
79
+
80
+ smalltalk.addMethod(
81
+ unescape('_shallowCopy'),
82
+ smalltalk.method({
83
+ selector: unescape('shallowCopy'),
84
+ fn: function (){
85
+ var self=this;
86
+
87
+ var copy = self.klass._new();
88
+ for(var i in self) {
89
+ if(/^@.+/.test(i)) {
90
+ copy[i] = self[i];
91
+ }
92
+ }
93
+ return copy;
94
+ ;
95
+ return self;}
96
+ }),
97
+ smalltalk.Object);
98
+
99
+ smalltalk.addMethod(
100
+ unescape('_deepCopy'),
101
+ smalltalk.method({
102
+ selector: unescape('deepCopy'),
103
+ fn: function (){
104
+ var self=this;
105
+
106
+ var copy = self.klass._new();
107
+ for(var i in self) {
108
+ if(/^@.+/.test(i)) {
109
+ copy[i] = self[i]._deepCopy();
110
+ }
111
+ }
112
+ return copy;
113
+ ;
114
+ return self;}
115
+ }),
116
+ smalltalk.Object);
117
+
118
+ smalltalk.addMethod(
119
+ unescape('_postCopy'),
120
+ smalltalk.method({
121
+ selector: unescape('postCopy'),
122
+ fn: function (){
123
+ var self=this;
124
+
125
+ return self;}
126
+ }),
127
+ smalltalk.Object);
128
+
129
+ smalltalk.addMethod(
130
+ unescape('__minus_gt'),
131
+ smalltalk.method({
132
+ selector: unescape('-%3E'),
133
+ fn: function (anObject){
134
+ var self=this;
135
+ return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
136
+ return self;}
137
+ }),
138
+ smalltalk.Object);
139
+
140
+ smalltalk.addMethod(
141
+ unescape('_asString'),
142
+ smalltalk.method({
143
+ selector: unescape('asString'),
144
+ fn: function (){
145
+ var self=this;
146
+ return smalltalk.send(self, "_printString", []);
147
+ return self;}
148
+ }),
149
+ smalltalk.Object);
150
+
151
+ smalltalk.addMethod(
152
+ unescape('_asJavascript'),
153
+ smalltalk.method({
154
+ selector: unescape('asJavascript'),
155
+ fn: function (){
156
+ var self=this;
157
+ return smalltalk.send(self, "_asString", []);
158
+ return self;}
159
+ }),
160
+ smalltalk.Object);
161
+
162
+ smalltalk.addMethod(
163
+ unescape('_perform_'),
164
+ smalltalk.method({
165
+ selector: unescape('perform%3A'),
166
+ fn: function (aSymbol){
167
+ var self=this;
168
+ return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
169
+ return self;}
170
+ }),
171
+ smalltalk.Object);
172
+
173
+ smalltalk.addMethod(
174
+ unescape('_perform_withArguments_'),
175
+ smalltalk.method({
176
+ selector: unescape('perform%3AwithArguments%3A'),
177
+ fn: function (aSymbol, aCollection){
178
+ var self=this;
179
+ return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
180
+ return self;}
181
+ }),
182
+ smalltalk.Object);
183
+
184
+ smalltalk.addMethod(
185
+ unescape('_instVarAt_'),
186
+ smalltalk.method({
187
+ selector: unescape('instVarAt%3A'),
188
+ fn: function (aSymbol){
189
+ var self=this;
190
+ var varname=nil;
191
+ (varname=smalltalk.send(aSymbol, "_asString", []));
192
+ return self['@'+varname];
193
+ return self;}
194
+ }),
195
+ smalltalk.Object);
196
+
197
+ smalltalk.addMethod(
198
+ unescape('_instVarAt_put_'),
199
+ smalltalk.method({
200
+ selector: unescape('instVarAt%3Aput%3A'),
201
+ fn: function (aSymbol, anObject){
202
+ var self=this;
203
+ var varname=nil;
204
+ (varname=smalltalk.send(aSymbol, "_asString", []));
205
+ self['@' + varname] = anObject;
206
+ return self;}
207
+ }),
208
+ smalltalk.Object);
209
+
210
+ smalltalk.addMethod(
211
+ unescape('_basicAt_'),
212
+ smalltalk.method({
213
+ selector: unescape('basicAt%3A'),
214
+ fn: function (aString){
215
+ var self=this;
216
+ return self[aString];
217
+ return self;}
218
+ }),
219
+ smalltalk.Object);
220
+
221
+ smalltalk.addMethod(
222
+ unescape('_basicAt_put_'),
223
+ smalltalk.method({
224
+ selector: unescape('basicAt%3Aput%3A'),
225
+ fn: function (aString, anObject){
226
+ var self=this;
227
+ return self[aString] = anObject;
228
+ return self;}
229
+ }),
230
+ smalltalk.Object);
231
+
232
+ smalltalk.addMethod(
233
+ unescape('_error_'),
234
+ smalltalk.method({
235
+ selector: unescape('error%3A'),
236
+ fn: function (aString){
237
+ var self=this;
238
+ smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
239
+ return self;}
240
+ }),
241
+ smalltalk.Object);
242
+
243
+ smalltalk.addMethod(
244
+ unescape('_subclassResponsibility'),
245
+ smalltalk.method({
246
+ selector: unescape('subclassResponsibility'),
247
+ fn: function (){
248
+ var self=this;
249
+ smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
250
+ return self;}
251
+ }),
252
+ smalltalk.Object);
253
+
254
+ smalltalk.addMethod(
255
+ unescape('_shouldNotImplement'),
256
+ smalltalk.method({
257
+ selector: unescape('shouldNotImplement'),
258
+ fn: function (){
259
+ var self=this;
260
+ smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
261
+ return self;}
262
+ }),
263
+ smalltalk.Object);
264
+
265
+ smalltalk.addMethod(
266
+ unescape('_try_catch_'),
267
+ smalltalk.method({
268
+ selector: unescape('try%3Acatch%3A'),
269
+ fn: function (aBlock, anotherBlock){
270
+ var self=this;
271
+ try{result = aBlock()} catch(e) {result = anotherBlock(e)};
272
+ return result;;
273
+ return self;}
274
+ }),
275
+ smalltalk.Object);
276
+
277
+ smalltalk.addMethod(
278
+ unescape('_printString'),
279
+ smalltalk.method({
280
+ selector: unescape('printString'),
281
+ fn: function (){
282
+ var self=this;
283
+ return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
284
+ return self;}
285
+ }),
286
+ smalltalk.Object);
287
+
288
+ smalltalk.addMethod(
289
+ unescape('_printNl'),
290
+ smalltalk.method({
291
+ selector: unescape('printNl'),
292
+ fn: function (){
293
+ var self=this;
294
+ console.log(self);
295
+ return self;}
296
+ }),
297
+ smalltalk.Object);
298
+
299
+ smalltalk.addMethod(
300
+ unescape('_isKindOf_'),
301
+ smalltalk.method({
302
+ selector: unescape('isKindOf%3A'),
303
+ fn: function (aClass){
304
+ var self=this;
305
+ 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]);})]));
306
+ return self;}
307
+ }),
308
+ smalltalk.Object);
309
+
310
+ smalltalk.addMethod(
311
+ unescape('_isMemberOf_'),
312
+ smalltalk.method({
313
+ selector: unescape('isMemberOf%3A'),
314
+ fn: function (aClass){
315
+ var self=this;
316
+ return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
317
+ return self;}
318
+ }),
319
+ smalltalk.Object);
320
+
321
+ smalltalk.addMethod(
322
+ unescape('_ifNil_'),
323
+ smalltalk.method({
324
+ selector: unescape('ifNil%3A'),
325
+ fn: function (aBlock){
326
+ var self=this;
327
+ return self;
328
+ return self;}
329
+ }),
330
+ smalltalk.Object);
331
+
332
+ smalltalk.addMethod(
333
+ unescape('_ifNil_ifNotNil_'),
334
+ smalltalk.method({
335
+ selector: unescape('ifNil%3AifNotNil%3A'),
336
+ fn: function (aBlock, anotherBlock){
337
+ var self=this;
338
+ return smalltalk.send(anotherBlock, "_value", []);
339
+ return self;}
340
+ }),
341
+ smalltalk.Object);
342
+
343
+ smalltalk.addMethod(
344
+ unescape('_ifNotNil_'),
345
+ smalltalk.method({
346
+ selector: unescape('ifNotNil%3A'),
347
+ fn: function (aBlock){
348
+ var self=this;
349
+ return smalltalk.send(aBlock, "_value", []);
350
+ return self;}
351
+ }),
352
+ smalltalk.Object);
353
+
354
+ smalltalk.addMethod(
355
+ unescape('_ifNotNil_ifNil_'),
356
+ smalltalk.method({
357
+ selector: unescape('ifNotNil%3AifNil%3A'),
358
+ fn: function (aBlock, anotherBlock){
359
+ var self=this;
360
+ return smalltalk.send(aBlock, "_value", []);
361
+ return self;}
362
+ }),
363
+ smalltalk.Object);
364
+
365
+ smalltalk.addMethod(
366
+ unescape('_isNil'),
367
+ smalltalk.method({
368
+ selector: unescape('isNil'),
369
+ fn: function (){
370
+ var self=this;
371
+ return false;
372
+ return self;}
373
+ }),
374
+ smalltalk.Object);
375
+
376
+ smalltalk.addMethod(
377
+ unescape('_notNil'),
378
+ smalltalk.method({
379
+ selector: unescape('notNil'),
380
+ fn: function (){
381
+ var self=this;
382
+ return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
383
+ return self;}
384
+ }),
385
+ smalltalk.Object);
386
+
387
+ smalltalk.addMethod(
388
+ unescape('_isClass'),
389
+ smalltalk.method({
390
+ selector: unescape('isClass'),
391
+ fn: function (){
392
+ var self=this;
393
+ return false;
394
+ return self;}
395
+ }),
396
+ smalltalk.Object);
397
+
398
+ smalltalk.addMethod(
399
+ unescape('_isMetaclass'),
400
+ smalltalk.method({
401
+ selector: unescape('isMetaclass'),
402
+ fn: function (){
403
+ var self=this;
404
+ return false;
405
+ return self;}
406
+ }),
407
+ smalltalk.Object);
408
+
409
+ smalltalk.addMethod(
410
+ unescape('_isNumber'),
411
+ smalltalk.method({
412
+ selector: unescape('isNumber'),
413
+ fn: function (){
414
+ var self=this;
415
+ return false;
416
+ return self;}
417
+ }),
418
+ smalltalk.Object);
419
+
420
+ smalltalk.addMethod(
421
+ unescape('_isString'),
422
+ smalltalk.method({
423
+ selector: unescape('isString'),
424
+ fn: function (){
425
+ var self=this;
426
+ return false;
427
+ return self;}
428
+ }),
429
+ smalltalk.Object);
430
+
431
+ smalltalk.addMethod(
432
+ unescape('_isParseFailure'),
433
+ smalltalk.method({
434
+ selector: unescape('isParseFailure'),
435
+ fn: function (){
436
+ var self=this;
437
+ return false;
438
+ return self;}
439
+ }),
440
+ smalltalk.Object);
441
+
442
+ smalltalk.addMethod(
443
+ unescape('_basicPerform_'),
444
+ smalltalk.method({
445
+ selector: unescape('basicPerform%3A'),
446
+ fn: function (aSymbol){
447
+ var self=this;
448
+ return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
449
+ return self;}
450
+ }),
451
+ smalltalk.Object);
452
+
453
+ smalltalk.addMethod(
454
+ unescape('_basicPerform_withArguments_'),
455
+ smalltalk.method({
456
+ selector: unescape('basicPerform%3AwithArguments%3A'),
457
+ fn: function (aSymbol, aCollection){
458
+ var self=this;
459
+ return self[aSymbol].apply(self, aCollection);;
460
+ return self;}
461
+ }),
462
+ smalltalk.Object);
463
+
464
+ smalltalk.addMethod(
465
+ unescape('_basicDelete_'),
466
+ smalltalk.method({
467
+ selector: unescape('basicDelete%3A'),
468
+ fn: function (aString){
469
+ var self=this;
470
+ delete self[aString]; return aString;
471
+ return self;}
472
+ }),
473
+ smalltalk.Object);
474
+
475
+ smalltalk.addMethod(
476
+ unescape('_doesNotUnderstand_'),
477
+ smalltalk.method({
478
+ selector: unescape('doesNotUnderstand%3A'),
479
+ fn: function (aMessage){
480
+ var self=this;
481
+ (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
482
+ return self;}
483
+ }),
484
+ smalltalk.Object);
485
+
486
+ smalltalk.addMethod(
487
+ unescape('_asJSON'),
488
+ smalltalk.method({
489
+ selector: unescape('asJSON'),
490
+ fn: function (){
491
+ var self=this;
492
+ return smalltalk.send((smalltalk.JSON || JSON), "_parse_", [smalltalk.send(self, "_asJSONString", [])]);
493
+ return self;}
494
+ }),
495
+ smalltalk.Object);
496
+
497
+ smalltalk.addMethod(
498
+ unescape('_halt'),
499
+ smalltalk.method({
500
+ selector: unescape('halt'),
501
+ fn: function (){
502
+ var self=this;
503
+ smalltalk.send(self, "_error_", ["Halt encountered"]);
504
+ return self;}
505
+ }),
506
+ smalltalk.Object);
507
+
508
+ smalltalk.addMethod(
509
+ unescape('_log_block_'),
510
+ smalltalk.method({
511
+ selector: unescape('log%3Ablock%3A'),
512
+ fn: function (aString, aBlock){
513
+ var self=this;
514
+ var result=nil;
515
+ 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", [])])]);
516
+ return result;
517
+ return self;}
518
+ }),
519
+ smalltalk.Object);
520
+
521
+ smalltalk.addMethod(
522
+ unescape('__eq_eq'),
523
+ smalltalk.method({
524
+ selector: unescape('%3D%3D'),
525
+ fn: function (anObject){
526
+ var self=this;
527
+ return smalltalk.send(smalltalk.send(self, "_identityHash", []), "__eq", [smalltalk.send(anObject, "_identityHash", [])]);
528
+ return self;}
529
+ }),
530
+ smalltalk.Object);
531
+
532
+ smalltalk.addMethod(
533
+ unescape('_%7E%7E'),
534
+ smalltalk.method({
535
+ selector: unescape('%7E%7E'),
536
+ fn: function (anObject){
537
+ var self=this;
538
+ return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
539
+ return self;}
540
+ }),
541
+ smalltalk.Object);
542
+
543
+ smalltalk.addMethod(
544
+ unescape('_deprecatedAPI'),
545
+ smalltalk.method({
546
+ selector: unescape('deprecatedAPI'),
547
+ fn: function (){
548
+ var self=this;
549
+ 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")])]);
550
+ return self;}
551
+ }),
552
+ smalltalk.Object);
553
+
554
+ smalltalk.addMethod(
555
+ unescape('_storeString'),
556
+ smalltalk.method({
557
+ selector: unescape('storeString'),
558
+ fn: function (){
559
+ var self=this;
560
+ return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
561
+ return self;}
562
+ }),
563
+ smalltalk.Object);
564
+
565
+ smalltalk.addMethod(
566
+ unescape('_storeOn_'),
567
+ smalltalk.method({
568
+ selector: unescape('storeOn%3A'),
569
+ fn: function (aStream){
570
+ var self=this;
571
+ smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
572
+ return self;}
573
+ }),
574
+ smalltalk.Object);
575
+
576
+ smalltalk.addMethod(
577
+ unescape('_asJSONString'),
578
+ smalltalk.method({
579
+ selector: unescape('asJSONString'),
580
+ fn: function (){
581
+ var self=this;
582
+ return smalltalk.send((smalltalk.JSON || JSON), "_stringify_", [self]);
583
+ return self;}
584
+ }),
585
+ smalltalk.Object);
586
+
587
+ smalltalk.addMethod(
588
+ unescape('_identityHash'),
589
+ smalltalk.method({
590
+ selector: unescape('identityHash'),
591
+ fn: function (){
592
+ var self=this;
593
+ return self.identityHash || (self.identityHash = smalltalk.nextId());;
594
+ return self;}
595
+ }),
596
+ smalltalk.Object);
597
+
598
+ smalltalk.addMethod(
599
+ unescape('_isSymbol'),
600
+ smalltalk.method({
601
+ selector: unescape('isSymbol'),
602
+ fn: function (){
603
+ var self=this;
604
+ return false;
605
+ return self;}
606
+ }),
607
+ smalltalk.Object);
608
+
609
+
610
+ smalltalk.addMethod(
611
+ unescape('_initialize'),
612
+ smalltalk.method({
613
+ selector: unescape('initialize'),
614
+ fn: function (){
615
+ var self=this;
616
+
617
+ return self;}
618
+ }),
619
+ smalltalk.Object.klass);
620
+
621
+
622
+ smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel-Objects');
623
+ smalltalk.addMethod(
624
+ unescape('_classes'),
625
+ smalltalk.method({
626
+ selector: unescape('classes'),
627
+ fn: function (){
628
+ var self=this;
629
+ return self.classes();
630
+ return self;}
631
+ }),
632
+ smalltalk.Smalltalk);
633
+
634
+ smalltalk.addMethod(
635
+ unescape('_at_'),
636
+ smalltalk.method({
637
+ selector: unescape('at%3A'),
638
+ fn: function (aString){
639
+ var self=this;
640
+ return self[aString];
641
+ return self;}
642
+ }),
643
+ smalltalk.Smalltalk);
644
+
645
+ smalltalk.addMethod(
646
+ unescape('_removeClass_'),
647
+ smalltalk.method({
648
+ selector: unescape('removeClass%3A'),
649
+ fn: function (aClass){
650
+ var self=this;
651
+ ((($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")])]);})]));
652
+ smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
653
+ smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
654
+ smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
655
+ return self;}
656
+ }),
657
+ smalltalk.Smalltalk);
658
+
659
+ smalltalk.addMethod(
660
+ unescape('_basicParse_'),
661
+ smalltalk.method({
662
+ selector: unescape('basicParse%3A'),
663
+ fn: function (aString){
664
+ var self=this;
665
+ return smalltalk.parser.parse(aString);
666
+ return self;}
667
+ }),
668
+ smalltalk.Smalltalk);
669
+
670
+ smalltalk.addMethod(
671
+ unescape('_parse_'),
672
+ smalltalk.method({
673
+ selector: unescape('parse%3A'),
674
+ fn: function (aString){
675
+ var self=this;
676
+ var result=nil;
677
+ 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", []);})]);
678
+ return result;
679
+ return self;}
680
+ }),
681
+ smalltalk.Smalltalk);
682
+
683
+ smalltalk.addMethod(
684
+ unescape('_parseError_parsing_'),
685
+ smalltalk.method({
686
+ selector: unescape('parseError%3Aparsing%3A'),
687
+ fn: function (anException, aString){
688
+ var self=this;
689
+ var row=nil;
690
+ var col=nil;
691
+ var message=nil;
692
+ var lines=nil;
693
+ var badLine=nil;
694
+ var code=nil;
695
+ row = anException.line;
696
+ col = anException.column;
697
+ message = anException.message;;
698
+ (lines=smalltalk.send(aString, "_lines", []));
699
+ (badLine=smalltalk.send(lines, "_at_", [row]));
700
+ (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", [])])]));
701
+ smalltalk.send(lines, "_at_put_", [row, badLine]);
702
+ (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", [])])]);})]);})]));
703
+ 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])]);
704
+ return self;}
705
+ }),
706
+ smalltalk.Smalltalk);
707
+
708
+ smalltalk.addMethod(
709
+ unescape('_packages'),
710
+ smalltalk.method({
711
+ selector: unescape('packages'),
712
+ fn: function (){
713
+ var self=this;
714
+ return self.packages.all();
715
+ return self;}
716
+ }),
717
+ smalltalk.Smalltalk);
718
+
719
+ smalltalk.addMethod(
720
+ unescape('_packageAt_'),
721
+ smalltalk.method({
722
+ selector: unescape('packageAt%3A'),
723
+ fn: function (packageName){
724
+ var self=this;
725
+ return self.packages[packageName];
726
+ return self;}
727
+ }),
728
+ smalltalk.Smalltalk);
729
+
730
+ smalltalk.addMethod(
731
+ unescape('_packageAt_ifAbsent_'),
732
+ smalltalk.method({
733
+ selector: unescape('packageAt%3AifAbsent%3A'),
734
+ fn: function (packageName, aBlock){
735
+ var self=this;
736
+ return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
737
+ return self;}
738
+ }),
739
+ smalltalk.Smalltalk);
740
+
741
+ smalltalk.addMethod(
742
+ unescape('_createPackage_'),
743
+ smalltalk.method({
744
+ selector: unescape('createPackage%3A'),
745
+ fn: function (packageName){
746
+ var self=this;
747
+ return smalltalk.addPackage(packageName, nil);
748
+ return self;}
749
+ }),
750
+ smalltalk.Smalltalk);
751
+
752
+ smalltalk.addMethod(
753
+ unescape('_deletePackage_'),
754
+ smalltalk.method({
755
+ selector: unescape('deletePackage%3A'),
756
+ fn: function (packageName){
757
+ var self=this;
758
+ delete smalltalk.packages[packageName];
759
+ return self;}
760
+ }),
761
+ smalltalk.Smalltalk);
762
+
763
+ smalltalk.addMethod(
764
+ unescape('_removePackage_'),
765
+ smalltalk.method({
766
+ selector: unescape('removePackage%3A'),
767
+ fn: function (packageName){
768
+ var self=this;
769
+ var pkg=nil;
770
+ (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
771
+ smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
772
+ smalltalk.send(self, "_deletePackage_", [packageName]);
773
+ return self;}
774
+ }),
775
+ smalltalk.Smalltalk);
776
+
777
+ smalltalk.addMethod(
778
+ unescape('_renamePackage_to_'),
779
+ smalltalk.method({
780
+ selector: unescape('renamePackage%3Ato%3A'),
781
+ fn: function (packageName, newName){
782
+ var self=this;
783
+ var pkg=nil;
784
+ (pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]));
785
+ (($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;
786
+ smalltalk.packages[newName] = smalltalk.packages[packageName];
787
+ smalltalk.send(pkg, "_name_", [newName]);
788
+ smalltalk.send(self, "_deletePackage_", [packageName]);
789
+ return self;}
790
+ }),
791
+ smalltalk.Smalltalk);
792
+
793
+ smalltalk.addMethod(
794
+ unescape('_reservedWords'),
795
+ smalltalk.method({
796
+ selector: unescape('reservedWords'),
797
+ fn: function (){
798
+ var self=this;
799
+ return self.reservedWords;
800
+ return self;}
801
+ }),
802
+ smalltalk.Smalltalk);
803
+
804
+ smalltalk.addMethod(
805
+ unescape('_createPackage_properties_'),
806
+ smalltalk.method({
807
+ selector: unescape('createPackage%3Aproperties%3A'),
808
+ fn: function (packageName, aDict){
809
+ var self=this;
810
+ var object=nil;
811
+ object = {};;
812
+ smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
813
+ return smalltalk.addPackage(packageName, object);
814
+ return self;}
815
+ }),
816
+ smalltalk.Smalltalk);
817
+
818
+ smalltalk.addMethod(
819
+ unescape('_readJSObject_'),
820
+ smalltalk.method({
821
+ selector: unescape('readJSObject%3A'),
822
+ fn: function (anObject){
823
+ var self=this;
824
+ return self.readJSObject(anObject);
825
+ return self;}
826
+ }),
827
+ smalltalk.Smalltalk);
828
+
829
+
830
+ smalltalk.Smalltalk.klass.iVarNames = ['current'];
831
+ smalltalk.addMethod(
832
+ unescape('_current'),
833
+ smalltalk.method({
834
+ selector: unescape('current'),
835
+ fn: function (){
836
+ var self=this;
837
+ return smalltalk;
838
+ return self;}
839
+ }),
840
+ smalltalk.Smalltalk.klass);
841
+
842
+
843
+ smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel-Objects');
844
+ smalltalk.addMethod(
845
+ unescape('_name'),
846
+ smalltalk.method({
847
+ selector: unescape('name'),
848
+ fn: function (){
849
+ var self=this;
850
+ return self.pkgName;
851
+ return self;}
852
+ }),
853
+ smalltalk.Package);
854
+
855
+ smalltalk.addMethod(
856
+ unescape('_name_'),
857
+ smalltalk.method({
858
+ selector: unescape('name%3A'),
859
+ fn: function (aString){
860
+ var self=this;
861
+ self.pkgName = aString;
862
+ return self;}
863
+ }),
864
+ smalltalk.Package);
865
+
866
+ smalltalk.addMethod(
867
+ unescape('_classes'),
868
+ smalltalk.method({
869
+ selector: unescape('classes'),
870
+ fn: function (){
871
+ var self=this;
872
+ 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]);})]);
873
+ return self;}
874
+ }),
875
+ smalltalk.Package);
876
+
877
+ smalltalk.addMethod(
878
+ unescape('_printString'),
879
+ smalltalk.method({
880
+ selector: unescape('printString'),
881
+ fn: function (){
882
+ var self=this;
883
+ return smalltalk.send(self, "_name", []);
884
+ return self;}
885
+ }),
886
+ smalltalk.Package);
887
+
888
+ smalltalk.addMethod(
889
+ unescape('_dependencies'),
890
+ smalltalk.method({
891
+ selector: unescape('dependencies'),
892
+ fn: function (){
893
+ var self=this;
894
+ return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
895
+ return self;}
896
+ }),
897
+ smalltalk.Package);
898
+
899
+ smalltalk.addMethod(
900
+ unescape('_dependencies_'),
901
+ smalltalk.method({
902
+ selector: unescape('dependencies%3A'),
903
+ fn: function (anArray){
904
+ var self=this;
905
+ return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
906
+ return self;}
907
+ }),
908
+ smalltalk.Package);
909
+
910
+ smalltalk.addMethod(
911
+ unescape('_properties'),
912
+ smalltalk.method({
913
+ selector: unescape('properties'),
914
+ fn: function (){
915
+ var self=this;
916
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
917
+ return self;}
918
+ }),
919
+ smalltalk.Package);
920
+
921
+ smalltalk.addMethod(
922
+ unescape('_propertiesAsJSON'),
923
+ smalltalk.method({
924
+ selector: unescape('propertiesAsJSON'),
925
+ fn: function (){
926
+ var self=this;
927
+ return JSON.stringify(self.properties);
928
+ return self;}
929
+ }),
930
+ smalltalk.Package);
931
+
932
+ smalltalk.addMethod(
933
+ unescape('_properties_'),
934
+ smalltalk.method({
935
+ selector: unescape('properties%3A'),
936
+ fn: function (aDict){
937
+ var self=this;
938
+ var object=nil;
939
+ object = {};;
940
+ smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
941
+ return self.properties = object;
942
+ return self;}
943
+ }),
944
+ smalltalk.Package);
945
+
946
+ smalltalk.addMethod(
947
+ unescape('_jsProperties'),
948
+ smalltalk.method({
949
+ selector: unescape('jsProperties'),
950
+ fn: function (){
951
+ var self=this;
952
+ return self.properties;
953
+ return self;}
954
+ }),
955
+ smalltalk.Package);
956
+
957
+ smalltalk.addMethod(
958
+ unescape('_jsProperties_'),
959
+ smalltalk.method({
960
+ selector: unescape('jsProperties%3A'),
961
+ fn: function (aJSObject){
962
+ var self=this;
963
+ return self.properties = aJSObject;
964
+ return self;}
965
+ }),
966
+ smalltalk.Package);
967
+
968
+ smalltalk.addMethod(
969
+ unescape('_propertyAt_'),
970
+ smalltalk.method({
971
+ selector: unescape('propertyAt%3A'),
972
+ fn: function (key){
973
+ var self=this;
974
+ return self.properties[key];
975
+ return self;}
976
+ }),
977
+ smalltalk.Package);
978
+
979
+ smalltalk.addMethod(
980
+ unescape('_propertyAt_put_'),
981
+ smalltalk.method({
982
+ selector: unescape('propertyAt%3Aput%3A'),
983
+ fn: function (key, value){
984
+ var self=this;
985
+ return self.properties[key] = value;
986
+ return self;}
987
+ }),
988
+ smalltalk.Package);
989
+
990
+ smalltalk.addMethod(
991
+ unescape('_propertyAt_ifAbsent_'),
992
+ smalltalk.method({
993
+ selector: unescape('propertyAt%3AifAbsent%3A'),
994
+ fn: function (key, block){
995
+ var self=this;
996
+ return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
997
+ return self;}
998
+ }),
999
+ smalltalk.Package);
1000
+
1001
+ smalltalk.addMethod(
1002
+ unescape('_commitPathJs'),
1003
+ smalltalk.method({
1004
+ selector: unescape('commitPathJs'),
1005
+ fn: function (){
1006
+ var self=this;
1007
+ return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
1008
+ return self;}
1009
+ }),
1010
+ smalltalk.Package);
1011
+
1012
+ smalltalk.addMethod(
1013
+ unescape('_commitPathJs_'),
1014
+ smalltalk.method({
1015
+ selector: unescape('commitPathJs%3A'),
1016
+ fn: function (aString){
1017
+ var self=this;
1018
+ (self['@commitPathJs']=aString);
1019
+ return self;}
1020
+ }),
1021
+ smalltalk.Package);
1022
+
1023
+ smalltalk.addMethod(
1024
+ unescape('_commitPathSt'),
1025
+ smalltalk.method({
1026
+ selector: unescape('commitPathSt'),
1027
+ fn: function (){
1028
+ var self=this;
1029
+ return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
1030
+ return self;}
1031
+ }),
1032
+ smalltalk.Package);
1033
+
1034
+ smalltalk.addMethod(
1035
+ unescape('_commitPathSt_'),
1036
+ smalltalk.method({
1037
+ selector: unescape('commitPathSt%3A'),
1038
+ fn: function (aString){
1039
+ var self=this;
1040
+ (self['@commitPathSt']=aString);
1041
+ return self;}
1042
+ }),
1043
+ smalltalk.Package);
1044
+
1045
+
1046
+ smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
1047
+ smalltalk.addMethod(
1048
+ unescape('_named_'),
1049
+ smalltalk.method({
1050
+ selector: unescape('named%3A'),
1051
+ fn: function (aPackageName){
1052
+ var self=this;
1053
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
1054
+ return self;}
1055
+ }),
1056
+ smalltalk.Package.klass);
1057
+
1058
+ smalltalk.addMethod(
1059
+ unescape('_named_ifAbsent_'),
1060
+ smalltalk.method({
1061
+ selector: unescape('named%3AifAbsent%3A'),
1062
+ fn: function (aPackageName, aBlock){
1063
+ var self=this;
1064
+ return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
1065
+ return self;}
1066
+ }),
1067
+ smalltalk.Package.klass);
1068
+
1069
+ smalltalk.addMethod(
1070
+ unescape('_defaultCommitPathJs'),
1071
+ smalltalk.method({
1072
+ selector: unescape('defaultCommitPathJs'),
1073
+ fn: function (){
1074
+ var self=this;
1075
+ return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathJs']="js");})() : $receiver;
1076
+ return self;}
1077
+ }),
1078
+ smalltalk.Package.klass);
1079
+
1080
+ smalltalk.addMethod(
1081
+ unescape('_defaultCommitPathJs_'),
1082
+ smalltalk.method({
1083
+ selector: unescape('defaultCommitPathJs%3A'),
1084
+ fn: function (aString){
1085
+ var self=this;
1086
+ (self['@defaultCommitPathJs']=aString);
1087
+ return self;}
1088
+ }),
1089
+ smalltalk.Package.klass);
1090
+
1091
+ smalltalk.addMethod(
1092
+ unescape('_defaultCommitPathSt'),
1093
+ smalltalk.method({
1094
+ selector: unescape('defaultCommitPathSt'),
1095
+ fn: function (){
1096
+ var self=this;
1097
+ return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return (self['@defaultCommitPathSt']="st");})() : $receiver;
1098
+ return self;}
1099
+ }),
1100
+ smalltalk.Package.klass);
1101
+
1102
+ smalltalk.addMethod(
1103
+ unescape('_defaultCommitPathSt_'),
1104
+ smalltalk.method({
1105
+ selector: unescape('defaultCommitPathSt%3A'),
1106
+ fn: function (aString){
1107
+ var self=this;
1108
+ (self['@defaultCommitPathSt']=aString);
1109
+ return self;}
1110
+ }),
1111
+ smalltalk.Package.klass);
1112
+
1113
+ smalltalk.addMethod(
1114
+ unescape('_resetCommitPaths'),
1115
+ smalltalk.method({
1116
+ selector: unescape('resetCommitPaths'),
1117
+ fn: function (){
1118
+ var self=this;
1119
+ (self['@defaultCommitPathJs']=nil);
1120
+ (self['@defaultCommitPathSt']=nil);
1121
+ return self;}
1122
+ }),
1123
+ smalltalk.Package.klass);
1124
+
1125
+ smalltalk.addMethod(
1126
+ unescape('_fetch_prefix_'),
1127
+ smalltalk.method({
1128
+ selector: unescape('fetch%3Aprefix%3A'),
1129
+ fn: function (aPackageName, aPrefix){
1130
+ var self=this;
1131
+ 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]);})]);
1132
+ return self;}
1133
+ }),
1134
+ smalltalk.Package.klass);
1135
+
1136
+ smalltalk.addMethod(
1137
+ unescape('_fetch_'),
1138
+ smalltalk.method({
1139
+ selector: unescape('fetch%3A'),
1140
+ fn: function (aPackageName){
1141
+ var self=this;
1142
+ smalltalk.send(self, "_fetch_prefix_", [aPackageName, smalltalk.send(smalltalk.send(self, "_defaultCommitPathJs", []), "__comma", [unescape("/")])]);
1143
+ return self;}
1144
+ }),
1145
+ smalltalk.Package.klass);
1146
+
1147
+ smalltalk.addMethod(
1148
+ unescape('_commitToLocalStorage_'),
1149
+ smalltalk.method({
1150
+ selector: unescape('commitToLocalStorage%3A'),
1151
+ fn: function (aPackageName){
1152
+ var self=this;
1153
+ var key=nil;
1154
+ var sourceCode=nil;
1155
+ (key=smalltalk.send("smalltalk.packages.", "__comma", [aPackageName]));
1156
+ (sourceCode=smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportPackage_", [aPackageName]));
1157
+ localStorage[key] = escape(sourceCode);
1158
+ return self;}
1159
+ }),
1160
+ smalltalk.Package.klass);
1161
+
1162
+ smalltalk.addMethod(
1163
+ unescape('_init_'),
1164
+ smalltalk.method({
1165
+ selector: unescape('init%3A'),
1166
+ fn: function (aPackageName){
1167
+ var self=this;
1168
+ (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;})]));
1169
+ return self;}
1170
+ }),
1171
+ smalltalk.Package.klass);
1172
+
1173
+
1174
+ smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel-Objects');
1175
+ smalltalk.addMethod(
1176
+ unescape('__eq'),
1177
+ smalltalk.method({
1178
+ selector: unescape('%3D'),
1179
+ fn: function (aNumber){
1180
+ var self=this;
1181
+ 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}})})();})]));
1182
+ return Number(self) == aNumber;
1183
+ return self;
1184
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
1185
+ }),
1186
+ smalltalk.Number);
1187
+
1188
+ smalltalk.addMethod(
1189
+ unescape('__gt'),
1190
+ smalltalk.method({
1191
+ selector: unescape('%3E'),
1192
+ fn: function (aNumber){
1193
+ var self=this;
1194
+ return self > aNumber;
1195
+ return self;}
1196
+ }),
1197
+ smalltalk.Number);
1198
+
1199
+ smalltalk.addMethod(
1200
+ unescape('__lt'),
1201
+ smalltalk.method({
1202
+ selector: unescape('%3C'),
1203
+ fn: function (aNumber){
1204
+ var self=this;
1205
+ return self < aNumber;
1206
+ return self;}
1207
+ }),
1208
+ smalltalk.Number);
1209
+
1210
+ smalltalk.addMethod(
1211
+ unescape('__gt_eq'),
1212
+ smalltalk.method({
1213
+ selector: unescape('%3E%3D'),
1214
+ fn: function (aNumber){
1215
+ var self=this;
1216
+ return self >= aNumber;
1217
+ return self;}
1218
+ }),
1219
+ smalltalk.Number);
1220
+
1221
+ smalltalk.addMethod(
1222
+ unescape('__lt_eq'),
1223
+ smalltalk.method({
1224
+ selector: unescape('%3C%3D'),
1225
+ fn: function (aNumber){
1226
+ var self=this;
1227
+ return self <= aNumber;
1228
+ return self;}
1229
+ }),
1230
+ smalltalk.Number);
1231
+
1232
+ smalltalk.addMethod(
1233
+ unescape('__plus'),
1234
+ smalltalk.method({
1235
+ selector: unescape('+'),
1236
+ fn: function (aNumber){
1237
+ var self=this;
1238
+ return self + aNumber;
1239
+ return self;}
1240
+ }),
1241
+ smalltalk.Number);
1242
+
1243
+ smalltalk.addMethod(
1244
+ unescape('__minus'),
1245
+ smalltalk.method({
1246
+ selector: unescape('-'),
1247
+ fn: function (aNumber){
1248
+ var self=this;
1249
+ return self - aNumber;
1250
+ return self;}
1251
+ }),
1252
+ smalltalk.Number);
1253
+
1254
+ smalltalk.addMethod(
1255
+ unescape('__star'),
1256
+ smalltalk.method({
1257
+ selector: unescape('*'),
1258
+ fn: function (aNumber){
1259
+ var self=this;
1260
+ return self * aNumber;
1261
+ return self;}
1262
+ }),
1263
+ smalltalk.Number);
1264
+
1265
+ smalltalk.addMethod(
1266
+ unescape('__slash'),
1267
+ smalltalk.method({
1268
+ selector: unescape('/'),
1269
+ fn: function (aNumber){
1270
+ var self=this;
1271
+ return self / aNumber;
1272
+ return self;}
1273
+ }),
1274
+ smalltalk.Number);
1275
+
1276
+ smalltalk.addMethod(
1277
+ unescape('_max_'),
1278
+ smalltalk.method({
1279
+ selector: unescape('max%3A'),
1280
+ fn: function (aNumber){
1281
+ var self=this;
1282
+ return Math.max(self, aNumber);;
1283
+ return self;}
1284
+ }),
1285
+ smalltalk.Number);
1286
+
1287
+ smalltalk.addMethod(
1288
+ unescape('_min_'),
1289
+ smalltalk.method({
1290
+ selector: unescape('min%3A'),
1291
+ fn: function (aNumber){
1292
+ var self=this;
1293
+ return Math.min(self, aNumber);;
1294
+ return self;}
1295
+ }),
1296
+ smalltalk.Number);
1297
+
1298
+ smalltalk.addMethod(
1299
+ unescape('_rounded'),
1300
+ smalltalk.method({
1301
+ selector: unescape('rounded'),
1302
+ fn: function (){
1303
+ var self=this;
1304
+ return Math.round(self);;
1305
+ return self;}
1306
+ }),
1307
+ smalltalk.Number);
1308
+
1309
+ smalltalk.addMethod(
1310
+ unescape('_truncated'),
1311
+ smalltalk.method({
1312
+ selector: unescape('truncated'),
1313
+ fn: function (){
1314
+ var self=this;
1315
+ var result=nil;
1316
+ ((($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));;})]));
1317
+ return result;
1318
+ return self;}
1319
+ }),
1320
+ smalltalk.Number);
1321
+
1322
+ smalltalk.addMethod(
1323
+ unescape('_to_'),
1324
+ smalltalk.method({
1325
+ selector: unescape('to%3A'),
1326
+ fn: function (aNumber){
1327
+ var self=this;
1328
+ var array=nil;
1329
+ var first=nil;
1330
+ var last=nil;
1331
+ var count=nil;
1332
+ (first=smalltalk.send(self, "_truncated", []));
1333
+ (last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
1334
+ (count=(1));
1335
+ (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1336
+ 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)])));})]);
1337
+ return array;
1338
+ return self;}
1339
+ }),
1340
+ smalltalk.Number);
1341
+
1342
+ smalltalk.addMethod(
1343
+ unescape('_timesRepeat_'),
1344
+ smalltalk.method({
1345
+ selector: unescape('timesRepeat%3A'),
1346
+ fn: function (aBlock){
1347
+ var self=this;
1348
+ var integer=nil;
1349
+ var count=nil;
1350
+ (integer=smalltalk.send(self, "_truncated", []));
1351
+ (count=(1));
1352
+ (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)])));})()}})();
1353
+ return self;}
1354
+ }),
1355
+ smalltalk.Number);
1356
+
1357
+ smalltalk.addMethod(
1358
+ unescape('_to_do_'),
1359
+ smalltalk.method({
1360
+ selector: unescape('to%3Ado%3A'),
1361
+ fn: function (stop, aBlock){
1362
+ var self=this;
1363
+ var nextValue=nil;
1364
+ (nextValue=self);
1365
+ (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)])));})()}})();
1366
+ return self;}
1367
+ }),
1368
+ smalltalk.Number);
1369
+
1370
+ smalltalk.addMethod(
1371
+ unescape('_asString'),
1372
+ smalltalk.method({
1373
+ selector: unescape('asString'),
1374
+ fn: function (){
1375
+ var self=this;
1376
+ return smalltalk.send(self, "_printString", []);
1377
+ return self;}
1378
+ }),
1379
+ smalltalk.Number);
1380
+
1381
+ smalltalk.addMethod(
1382
+ unescape('_asJavascript'),
1383
+ smalltalk.method({
1384
+ selector: unescape('asJavascript'),
1385
+ fn: function (){
1386
+ var self=this;
1387
+ return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
1388
+ return self;}
1389
+ }),
1390
+ smalltalk.Number);
1391
+
1392
+ smalltalk.addMethod(
1393
+ unescape('_printString'),
1394
+ smalltalk.method({
1395
+ selector: unescape('printString'),
1396
+ fn: function (){
1397
+ var self=this;
1398
+ return String(self);
1399
+ return self;}
1400
+ }),
1401
+ smalltalk.Number);
1402
+
1403
+ smalltalk.addMethod(
1404
+ unescape('_isNumber'),
1405
+ smalltalk.method({
1406
+ selector: unescape('isNumber'),
1407
+ fn: function (){
1408
+ var self=this;
1409
+ return true;
1410
+ return self;}
1411
+ }),
1412
+ smalltalk.Number);
1413
+
1414
+ smalltalk.addMethod(
1415
+ unescape('_atRandom'),
1416
+ smalltalk.method({
1417
+ selector: unescape('atRandom'),
1418
+ fn: function (){
1419
+ var self=this;
1420
+ 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)]));
1421
+ return self;}
1422
+ }),
1423
+ smalltalk.Number);
1424
+
1425
+ smalltalk.addMethod(
1426
+ unescape('__at'),
1427
+ smalltalk.method({
1428
+ selector: unescape('@'),
1429
+ fn: function (aNumber){
1430
+ var self=this;
1431
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
1432
+ return self;}
1433
+ }),
1434
+ smalltalk.Number);
1435
+
1436
+ smalltalk.addMethod(
1437
+ unescape('_asPoint'),
1438
+ smalltalk.method({
1439
+ selector: unescape('asPoint'),
1440
+ fn: function (){
1441
+ var self=this;
1442
+ return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
1443
+ return self;}
1444
+ }),
1445
+ smalltalk.Number);
1446
+
1447
+ smalltalk.addMethod(
1448
+ unescape('_clearInterval'),
1449
+ smalltalk.method({
1450
+ selector: unescape('clearInterval'),
1451
+ fn: function (){
1452
+ var self=this;
1453
+ clearInterval(Number(self));
1454
+ return self;}
1455
+ }),
1456
+ smalltalk.Number);
1457
+
1458
+ smalltalk.addMethod(
1459
+ unescape('_clearTimeout'),
1460
+ smalltalk.method({
1461
+ selector: unescape('clearTimeout'),
1462
+ fn: function (){
1463
+ var self=this;
1464
+ clearTimeout(Number(self));
1465
+ return self;}
1466
+ }),
1467
+ smalltalk.Number);
1468
+
1469
+ smalltalk.addMethod(
1470
+ unescape('_even'),
1471
+ smalltalk.method({
1472
+ selector: unescape('even'),
1473
+ fn: function (){
1474
+ var self=this;
1475
+ return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
1476
+ return self;}
1477
+ }),
1478
+ smalltalk.Number);
1479
+
1480
+ smalltalk.addMethod(
1481
+ unescape('_odd'),
1482
+ smalltalk.method({
1483
+ selector: unescape('odd'),
1484
+ fn: function (){
1485
+ var self=this;
1486
+ return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
1487
+ return self;}
1488
+ }),
1489
+ smalltalk.Number);
1490
+
1491
+ smalltalk.addMethod(
1492
+ unescape('_negated'),
1493
+ smalltalk.method({
1494
+ selector: unescape('negated'),
1495
+ fn: function (){
1496
+ var self=this;
1497
+ return (0) - self;
1498
+ return self;}
1499
+ }),
1500
+ smalltalk.Number);
1501
+
1502
+ smalltalk.addMethod(
1503
+ unescape('_printShowingDecimalPlaces_'),
1504
+ smalltalk.method({
1505
+ selector: unescape('printShowingDecimalPlaces%3A'),
1506
+ fn: function (placesDesired){
1507
+ var self=this;
1508
+ return self.toFixed(placesDesired);
1509
+ return self;}
1510
+ }),
1511
+ smalltalk.Number);
1512
+
1513
+ smalltalk.addMethod(
1514
+ unescape('_%5C'),
1515
+ smalltalk.method({
1516
+ selector: unescape('%5C'),
1517
+ fn: function (aNumber){
1518
+ var self=this;
1519
+ return self % aNumber;
1520
+ return self;}
1521
+ }),
1522
+ smalltalk.Number);
1523
+
1524
+ smalltalk.addMethod(
1525
+ unescape('_to_by_'),
1526
+ smalltalk.method({
1527
+ selector: unescape('to%3Aby%3A'),
1528
+ fn: function (stop, step){
1529
+ var self=this;
1530
+ var array=nil;
1531
+ var value=nil;
1532
+ var pos=nil;
1533
+ (value=self);
1534
+ (array=smalltalk.send((smalltalk.Array || Array), "_new", []));
1535
+ (pos=(1));
1536
+ ((($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")]);})]));
1537
+ ((($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])));})()}})();})]));
1538
+ return array;
1539
+ return self;}
1540
+ }),
1541
+ smalltalk.Number);
1542
+
1543
+ smalltalk.addMethod(
1544
+ unescape('_to_by_do_'),
1545
+ smalltalk.method({
1546
+ selector: unescape('to%3Aby%3Ado%3A'),
1547
+ fn: function (stop, step, aBlock){
1548
+ var self=this;
1549
+ var value=nil;
1550
+ (value=self);
1551
+ ((($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")]);})]));
1552
+ ((($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])));})()}})();})]));
1553
+ return self;}
1554
+ }),
1555
+ smalltalk.Number);
1556
+
1557
+ smalltalk.addMethod(
1558
+ unescape('_deepCopy'),
1559
+ smalltalk.method({
1560
+ selector: unescape('deepCopy'),
1561
+ fn: function (){
1562
+ var self=this;
1563
+ return smalltalk.send(self, "_copy", []);
1564
+ return self;}
1565
+ }),
1566
+ smalltalk.Number);
1567
+
1568
+ smalltalk.addMethod(
1569
+ unescape('_copy'),
1570
+ smalltalk.method({
1571
+ selector: unescape('copy'),
1572
+ fn: function (){
1573
+ var self=this;
1574
+ return self;
1575
+ return self;}
1576
+ }),
1577
+ smalltalk.Number);
1578
+
1579
+ smalltalk.addMethod(
1580
+ unescape('_%5C%5C'),
1581
+ smalltalk.method({
1582
+ selector: unescape('%5C%5C'),
1583
+ fn: function (aNumber){
1584
+ var self=this;
1585
+ return self % aNumber;
1586
+ return self;}
1587
+ }),
1588
+ smalltalk.Number);
1589
+
1590
+ smalltalk.addMethod(
1591
+ unescape('_sqrt'),
1592
+ smalltalk.method({
1593
+ selector: unescape('sqrt'),
1594
+ fn: function (){
1595
+ var self=this;
1596
+ return Math.sqrt(self);
1597
+ return self;}
1598
+ }),
1599
+ smalltalk.Number);
1600
+
1601
+ smalltalk.addMethod(
1602
+ unescape('_squared'),
1603
+ smalltalk.method({
1604
+ selector: unescape('squared'),
1605
+ fn: function (){
1606
+ var self=this;
1607
+ return self * self;
1608
+ return self;}
1609
+ }),
1610
+ smalltalk.Number);
1611
+
1612
+ smalltalk.addMethod(
1613
+ unescape('_identityHash'),
1614
+ smalltalk.method({
1615
+ selector: unescape('identityHash'),
1616
+ fn: function (){
1617
+ var self=this;
1618
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", ["n"]);
1619
+ return self;}
1620
+ }),
1621
+ smalltalk.Number);
1622
+
1623
+ smalltalk.addMethod(
1624
+ unescape('_negative'),
1625
+ smalltalk.method({
1626
+ selector: unescape('negative'),
1627
+ fn: function (){
1628
+ var self=this;
1629
+ return self < (0);
1630
+ return self;}
1631
+ }),
1632
+ smalltalk.Number);
1633
+
1634
+ smalltalk.addMethod(
1635
+ unescape('_positive'),
1636
+ smalltalk.method({
1637
+ selector: unescape('positive'),
1638
+ fn: function (){
1639
+ var self=this;
1640
+ return self >= (0);
1641
+ return self;}
1642
+ }),
1643
+ smalltalk.Number);
1644
+
1645
+ smalltalk.addMethod(
1646
+ unescape('_isZero'),
1647
+ smalltalk.method({
1648
+ selector: unescape('isZero'),
1649
+ fn: function (){
1650
+ var self=this;
1651
+ return smalltalk.send(self, "__eq", [(0)]);
1652
+ return self;}
1653
+ }),
1654
+ smalltalk.Number);
1655
+
1656
+
1657
+ smalltalk.addMethod(
1658
+ unescape('_pi'),
1659
+ smalltalk.method({
1660
+ selector: unescape('pi'),
1661
+ fn: function (){
1662
+ var self=this;
1663
+ return Math.PI;
1664
+ return self;}
1665
+ }),
1666
+ smalltalk.Number.klass);
1667
+
1668
+
1669
+ smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel-Objects');
1670
+ smalltalk.addMethod(
1671
+ unescape('__eq'),
1672
+ smalltalk.method({
1673
+ selector: unescape('%3D'),
1674
+ fn: function (aBoolean){
1675
+ var self=this;
1676
+ 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}})})();})]));
1677
+ return Boolean(self == true) == aBoolean;
1678
+ return self;
1679
+ } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}}
1680
+ }),
1681
+ smalltalk.Boolean);
1682
+
1683
+ smalltalk.addMethod(
1684
+ unescape('_shallowCopy'),
1685
+ smalltalk.method({
1686
+ selector: unescape('shallowCopy'),
1687
+ fn: function (){
1688
+ var self=this;
1689
+ return self;
1690
+ return self;}
1691
+ }),
1692
+ smalltalk.Boolean);
1693
+
1694
+ smalltalk.addMethod(
1695
+ unescape('_deepCopy'),
1696
+ smalltalk.method({
1697
+ selector: unescape('deepCopy'),
1698
+ fn: function (){
1699
+ var self=this;
1700
+ return self;
1701
+ return self;}
1702
+ }),
1703
+ smalltalk.Boolean);
1704
+
1705
+ smalltalk.addMethod(
1706
+ unescape('_ifTrue_'),
1707
+ smalltalk.method({
1708
+ selector: unescape('ifTrue%3A'),
1709
+ fn: function (aBlock){
1710
+ var self=this;
1711
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
1712
+ return self;}
1713
+ }),
1714
+ smalltalk.Boolean);
1715
+
1716
+ smalltalk.addMethod(
1717
+ unescape('_ifFalse_'),
1718
+ smalltalk.method({
1719
+ selector: unescape('ifFalse%3A'),
1720
+ fn: function (aBlock){
1721
+ var self=this;
1722
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
1723
+ return self;}
1724
+ }),
1725
+ smalltalk.Boolean);
1726
+
1727
+ smalltalk.addMethod(
1728
+ unescape('_ifFalse_ifTrue_'),
1729
+ smalltalk.method({
1730
+ selector: unescape('ifFalse%3AifTrue%3A'),
1731
+ fn: function (aBlock, anotherBlock){
1732
+ var self=this;
1733
+ return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
1734
+ return self;}
1735
+ }),
1736
+ smalltalk.Boolean);
1737
+
1738
+ smalltalk.addMethod(
1739
+ unescape('_ifTrue_ifFalse_'),
1740
+ smalltalk.method({
1741
+ selector: unescape('ifTrue%3AifFalse%3A'),
1742
+ fn: function (aBlock, anotherBlock){
1743
+ var self=this;
1744
+
1745
+ if(self == true) {
1746
+ return aBlock();
1747
+ } else {
1748
+ return anotherBlock();
1749
+ }
1750
+ ;
1751
+ return self;}
1752
+ }),
1753
+ smalltalk.Boolean);
1754
+
1755
+ smalltalk.addMethod(
1756
+ unescape('_and_'),
1757
+ smalltalk.method({
1758
+ selector: unescape('and%3A'),
1759
+ fn: function (aBlock){
1760
+ var self=this;
1761
+ return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
1762
+ return self;}
1763
+ }),
1764
+ smalltalk.Boolean);
1765
+
1766
+ smalltalk.addMethod(
1767
+ unescape('_or_'),
1768
+ smalltalk.method({
1769
+ selector: unescape('or%3A'),
1770
+ fn: function (aBlock){
1771
+ var self=this;
1772
+ return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
1773
+ return self;}
1774
+ }),
1775
+ smalltalk.Boolean);
1776
+
1777
+ smalltalk.addMethod(
1778
+ unescape('_not'),
1779
+ smalltalk.method({
1780
+ selector: unescape('not'),
1781
+ fn: function (){
1782
+ var self=this;
1783
+ return smalltalk.send(self, "__eq", [false]);
1784
+ return self;}
1785
+ }),
1786
+ smalltalk.Boolean);
1787
+
1788
+ smalltalk.addMethod(
1789
+ unescape('_printString'),
1790
+ smalltalk.method({
1791
+ selector: unescape('printString'),
1792
+ fn: function (){
1793
+ var self=this;
1794
+ return self.toString();
1795
+ return self;}
1796
+ }),
1797
+ smalltalk.Boolean);
1798
+
1799
+ smalltalk.addMethod(
1800
+ unescape('_%26'),
1801
+ smalltalk.method({
1802
+ selector: unescape('%26'),
1803
+ fn: function (aBoolean){
1804
+ var self=this;
1805
+
1806
+ if(self == true) {
1807
+ return aBoolean;
1808
+ } else {
1809
+ return false;
1810
+ }
1811
+ ;
1812
+ return self;}
1813
+ }),
1814
+ smalltalk.Boolean);
1815
+
1816
+ smalltalk.addMethod(
1817
+ unescape('_%7C'),
1818
+ smalltalk.method({
1819
+ selector: unescape('%7C'),
1820
+ fn: function (aBoolean){
1821
+ var self=this;
1822
+
1823
+ if(self == true) {
1824
+ return true;
1825
+ } else {
1826
+ return aBoolean;
1827
+ }
1828
+ ;
1829
+ return self;}
1830
+ }),
1831
+ smalltalk.Boolean);
1832
+
1833
+
1834
+
1835
+ smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel-Objects');
1836
+ smalltalk.addMethod(
1837
+ unescape('_year'),
1838
+ smalltalk.method({
1839
+ selector: unescape('year'),
1840
+ fn: function (){
1841
+ var self=this;
1842
+ return self.getFullYear();
1843
+ return self;}
1844
+ }),
1845
+ smalltalk.Date);
1846
+
1847
+ smalltalk.addMethod(
1848
+ unescape('_month'),
1849
+ smalltalk.method({
1850
+ selector: unescape('month'),
1851
+ fn: function (){
1852
+ var self=this;
1853
+ return self.getMonth() + 1;
1854
+ return self;}
1855
+ }),
1856
+ smalltalk.Date);
1857
+
1858
+ smalltalk.addMethod(
1859
+ unescape('_month_'),
1860
+ smalltalk.method({
1861
+ selector: unescape('month%3A'),
1862
+ fn: function (aNumber){
1863
+ var self=this;
1864
+ self.setMonth(aNumber - 1);
1865
+ return self;}
1866
+ }),
1867
+ smalltalk.Date);
1868
+
1869
+ smalltalk.addMethod(
1870
+ unescape('_day'),
1871
+ smalltalk.method({
1872
+ selector: unescape('day'),
1873
+ fn: function (){
1874
+ var self=this;
1875
+ return smalltalk.send(self, "_dayOfWeek", []);
1876
+ return self;}
1877
+ }),
1878
+ smalltalk.Date);
1879
+
1880
+ smalltalk.addMethod(
1881
+ unescape('_dayOfWeek'),
1882
+ smalltalk.method({
1883
+ selector: unescape('dayOfWeek'),
1884
+ fn: function (){
1885
+ var self=this;
1886
+ return self.getDay() + 1;
1887
+ return self;}
1888
+ }),
1889
+ smalltalk.Date);
1890
+
1891
+ smalltalk.addMethod(
1892
+ unescape('_dayOfWeek_'),
1893
+ smalltalk.method({
1894
+ selector: unescape('dayOfWeek%3A'),
1895
+ fn: function (aNumber){
1896
+ var self=this;
1897
+ return self.setDay(aNumber - 1);
1898
+ return self;}
1899
+ }),
1900
+ smalltalk.Date);
1901
+
1902
+ smalltalk.addMethod(
1903
+ unescape('_day_'),
1904
+ smalltalk.method({
1905
+ selector: unescape('day%3A'),
1906
+ fn: function (aNumber){
1907
+ var self=this;
1908
+ smalltalk.send(self, "_day_", [aNumber]);
1909
+ return self;}
1910
+ }),
1911
+ smalltalk.Date);
1912
+
1913
+ smalltalk.addMethod(
1914
+ unescape('_year_'),
1915
+ smalltalk.method({
1916
+ selector: unescape('year%3A'),
1917
+ fn: function (aNumber){
1918
+ var self=this;
1919
+ self.setFullYear(aNumber);
1920
+ return self;}
1921
+ }),
1922
+ smalltalk.Date);
1923
+
1924
+ smalltalk.addMethod(
1925
+ unescape('_dayOfMonth'),
1926
+ smalltalk.method({
1927
+ selector: unescape('dayOfMonth'),
1928
+ fn: function (){
1929
+ var self=this;
1930
+ return self.getDate();
1931
+ return self;}
1932
+ }),
1933
+ smalltalk.Date);
1934
+
1935
+ smalltalk.addMethod(
1936
+ unescape('_dayOfMonth_'),
1937
+ smalltalk.method({
1938
+ selector: unescape('dayOfMonth%3A'),
1939
+ fn: function (aNumber){
1940
+ var self=this;
1941
+ self.setDate(aNumber);
1942
+ return self;}
1943
+ }),
1944
+ smalltalk.Date);
1945
+
1946
+ smalltalk.addMethod(
1947
+ unescape('_asString'),
1948
+ smalltalk.method({
1949
+ selector: unescape('asString'),
1950
+ fn: function (){
1951
+ var self=this;
1952
+ return self.toString();
1953
+ return self;}
1954
+ }),
1955
+ smalltalk.Date);
1956
+
1957
+ smalltalk.addMethod(
1958
+ unescape('_printString'),
1959
+ smalltalk.method({
1960
+ selector: unescape('printString'),
1961
+ fn: function (){
1962
+ var self=this;
1963
+ return smalltalk.send(self, "_asString", []);
1964
+ return self;}
1965
+ }),
1966
+ smalltalk.Date);
1967
+
1968
+ smalltalk.addMethod(
1969
+ unescape('_asMilliseconds'),
1970
+ smalltalk.method({
1971
+ selector: unescape('asMilliseconds'),
1972
+ fn: function (){
1973
+ var self=this;
1974
+ return smalltalk.send(self, "_time", []);
1975
+ return self;}
1976
+ }),
1977
+ smalltalk.Date);
1978
+
1979
+ smalltalk.addMethod(
1980
+ unescape('_time'),
1981
+ smalltalk.method({
1982
+ selector: unescape('time'),
1983
+ fn: function (){
1984
+ var self=this;
1985
+ return self.getTime();
1986
+ return self;}
1987
+ }),
1988
+ smalltalk.Date);
1989
+
1990
+ smalltalk.addMethod(
1991
+ unescape('_time_'),
1992
+ smalltalk.method({
1993
+ selector: unescape('time%3A'),
1994
+ fn: function (aNumber){
1995
+ var self=this;
1996
+ self.setTime(aNumber);
1997
+ return self;}
1998
+ }),
1999
+ smalltalk.Date);
2000
+
2001
+ smalltalk.addMethod(
2002
+ unescape('_asDateString'),
2003
+ smalltalk.method({
2004
+ selector: unescape('asDateString'),
2005
+ fn: function (){
2006
+ var self=this;
2007
+ return self.toDateString();
2008
+ return self;}
2009
+ }),
2010
+ smalltalk.Date);
2011
+
2012
+ smalltalk.addMethod(
2013
+ unescape('_asTimeString'),
2014
+ smalltalk.method({
2015
+ selector: unescape('asTimeString'),
2016
+ fn: function (){
2017
+ var self=this;
2018
+ return self.toTimeString();
2019
+ return self;}
2020
+ }),
2021
+ smalltalk.Date);
2022
+
2023
+ smalltalk.addMethod(
2024
+ unescape('_asLocaleString'),
2025
+ smalltalk.method({
2026
+ selector: unescape('asLocaleString'),
2027
+ fn: function (){
2028
+ var self=this;
2029
+ return self.toLocaleString();
2030
+ return self;}
2031
+ }),
2032
+ smalltalk.Date);
2033
+
2034
+ smalltalk.addMethod(
2035
+ unescape('_asNumber'),
2036
+ smalltalk.method({
2037
+ selector: unescape('asNumber'),
2038
+ fn: function (){
2039
+ var self=this;
2040
+ return smalltalk.send(self, "_asMilliseconds", []);
2041
+ return self;}
2042
+ }),
2043
+ smalltalk.Date);
2044
+
2045
+ smalltalk.addMethod(
2046
+ unescape('_hours_'),
2047
+ smalltalk.method({
2048
+ selector: unescape('hours%3A'),
2049
+ fn: function (aNumber){
2050
+ var self=this;
2051
+ self.setHours(aNumber);
2052
+ return self;}
2053
+ }),
2054
+ smalltalk.Date);
2055
+
2056
+ smalltalk.addMethod(
2057
+ unescape('_minutes_'),
2058
+ smalltalk.method({
2059
+ selector: unescape('minutes%3A'),
2060
+ fn: function (aNumber){
2061
+ var self=this;
2062
+ self.setMinutes(aNumber);
2063
+ return self;}
2064
+ }),
2065
+ smalltalk.Date);
2066
+
2067
+ smalltalk.addMethod(
2068
+ unescape('_seconds_'),
2069
+ smalltalk.method({
2070
+ selector: unescape('seconds%3A'),
2071
+ fn: function (aNumber){
2072
+ var self=this;
2073
+ self.setSeconds(aNumber);
2074
+ return self;}
2075
+ }),
2076
+ smalltalk.Date);
2077
+
2078
+ smalltalk.addMethod(
2079
+ unescape('_milliseconds_'),
2080
+ smalltalk.method({
2081
+ selector: unescape('milliseconds%3A'),
2082
+ fn: function (aNumber){
2083
+ var self=this;
2084
+ self.setMilliseconds(aNumber);
2085
+ return self;}
2086
+ }),
2087
+ smalltalk.Date);
2088
+
2089
+ smalltalk.addMethod(
2090
+ unescape('_hours'),
2091
+ smalltalk.method({
2092
+ selector: unescape('hours'),
2093
+ fn: function (){
2094
+ var self=this;
2095
+ return self.getHours();
2096
+ return self;}
2097
+ }),
2098
+ smalltalk.Date);
2099
+
2100
+ smalltalk.addMethod(
2101
+ unescape('_minutes'),
2102
+ smalltalk.method({
2103
+ selector: unescape('minutes'),
2104
+ fn: function (){
2105
+ var self=this;
2106
+ return self.getMinutes();
2107
+ return self;}
2108
+ }),
2109
+ smalltalk.Date);
2110
+
2111
+ smalltalk.addMethod(
2112
+ unescape('_seconds'),
2113
+ smalltalk.method({
2114
+ selector: unescape('seconds'),
2115
+ fn: function (){
2116
+ var self=this;
2117
+ return self.getSeconds();
2118
+ return self;}
2119
+ }),
2120
+ smalltalk.Date);
2121
+
2122
+ smalltalk.addMethod(
2123
+ unescape('_milliseconds'),
2124
+ smalltalk.method({
2125
+ selector: unescape('milliseconds'),
2126
+ fn: function (){
2127
+ var self=this;
2128
+ return self.getMilliseconds();
2129
+ return self;}
2130
+ }),
2131
+ smalltalk.Date);
2132
+
2133
+ smalltalk.addMethod(
2134
+ unescape('__lt'),
2135
+ smalltalk.method({
2136
+ selector: unescape('%3C'),
2137
+ fn: function (aDate){
2138
+ var self=this;
2139
+ return self < aDate;
2140
+ return self;}
2141
+ }),
2142
+ smalltalk.Date);
2143
+
2144
+ smalltalk.addMethod(
2145
+ unescape('__gt'),
2146
+ smalltalk.method({
2147
+ selector: unescape('%3E'),
2148
+ fn: function (aDate){
2149
+ var self=this;
2150
+ return self > aDate;
2151
+ return self;}
2152
+ }),
2153
+ smalltalk.Date);
2154
+
2155
+ smalltalk.addMethod(
2156
+ unescape('__lt_eq'),
2157
+ smalltalk.method({
2158
+ selector: unescape('%3C%3D'),
2159
+ fn: function (aDate){
2160
+ var self=this;
2161
+ return self <= aDate;
2162
+ return self;}
2163
+ }),
2164
+ smalltalk.Date);
2165
+
2166
+ smalltalk.addMethod(
2167
+ unescape('__gt_eq'),
2168
+ smalltalk.method({
2169
+ selector: unescape('%3E%3D'),
2170
+ fn: function (aDate){
2171
+ var self=this;
2172
+ return self >= aDate;
2173
+ return self;}
2174
+ }),
2175
+ smalltalk.Date);
2176
+
2177
+ smalltalk.addMethod(
2178
+ unescape('__minus'),
2179
+ smalltalk.method({
2180
+ selector: unescape('-'),
2181
+ fn: function (aDate){
2182
+ var self=this;
2183
+ return self - aDate;
2184
+ return self;}
2185
+ }),
2186
+ smalltalk.Date);
2187
+
2188
+ smalltalk.addMethod(
2189
+ unescape('__plus'),
2190
+ smalltalk.method({
2191
+ selector: unescape('+'),
2192
+ fn: function (aDate){
2193
+ var self=this;
2194
+ return self + aDate;
2195
+ return self;}
2196
+ }),
2197
+ smalltalk.Date);
2198
+
2199
+
2200
+ smalltalk.addMethod(
2201
+ unescape('_new_'),
2202
+ smalltalk.method({
2203
+ selector: unescape('new%3A'),
2204
+ fn: function (anObject){
2205
+ var self=this;
2206
+ return new Date(anObject);
2207
+ return self;}
2208
+ }),
2209
+ smalltalk.Date.klass);
2210
+
2211
+ smalltalk.addMethod(
2212
+ unescape('_fromString_'),
2213
+ smalltalk.method({
2214
+ selector: unescape('fromString%3A'),
2215
+ fn: function (aString){
2216
+ var self=this;
2217
+ return smalltalk.send(self, "_new_", [aString]);
2218
+ return self;}
2219
+ }),
2220
+ smalltalk.Date.klass);
2221
+
2222
+ smalltalk.addMethod(
2223
+ unescape('_fromSeconds_'),
2224
+ smalltalk.method({
2225
+ selector: unescape('fromSeconds%3A'),
2226
+ fn: function (aNumber){
2227
+ var self=this;
2228
+ return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
2229
+ return self;}
2230
+ }),
2231
+ smalltalk.Date.klass);
2232
+
2233
+ smalltalk.addMethod(
2234
+ unescape('_fromMilliseconds_'),
2235
+ smalltalk.method({
2236
+ selector: unescape('fromMilliseconds%3A'),
2237
+ fn: function (aNumber){
2238
+ var self=this;
2239
+ return smalltalk.send(self, "_new_", [aNumber]);
2240
+ return self;}
2241
+ }),
2242
+ smalltalk.Date.klass);
2243
+
2244
+ smalltalk.addMethod(
2245
+ unescape('_today'),
2246
+ smalltalk.method({
2247
+ selector: unescape('today'),
2248
+ fn: function (){
2249
+ var self=this;
2250
+ return smalltalk.send(self, "_new", []);
2251
+ return self;}
2252
+ }),
2253
+ smalltalk.Date.klass);
2254
+
2255
+ smalltalk.addMethod(
2256
+ unescape('_now'),
2257
+ smalltalk.method({
2258
+ selector: unescape('now'),
2259
+ fn: function (){
2260
+ var self=this;
2261
+ return smalltalk.send(self, "_today", []);
2262
+ return self;}
2263
+ }),
2264
+ smalltalk.Date.klass);
2265
+
2266
+ smalltalk.addMethod(
2267
+ unescape('_millisecondsToRun_'),
2268
+ smalltalk.method({
2269
+ selector: unescape('millisecondsToRun%3A'),
2270
+ fn: function (aBlock){
2271
+ var self=this;
2272
+ var t=nil;
2273
+ (t=smalltalk.send((smalltalk.Date || Date), "_now", []));
2274
+ smalltalk.send(aBlock, "_value", []);
2275
+ return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
2276
+ return self;}
2277
+ }),
2278
+ smalltalk.Date.klass);
2279
+
2280
+
2281
+ smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel-Objects');
2282
+ smalltalk.addMethod(
2283
+ unescape('_subclass_instanceVariableNames_'),
2284
+ smalltalk.method({
2285
+ selector: unescape('subclass%3AinstanceVariableNames%3A'),
2286
+ fn: function (aString, anotherString){
2287
+ var self=this;
2288
+ return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
2289
+ return self;}
2290
+ }),
2291
+ smalltalk.UndefinedObject);
2292
+
2293
+ smalltalk.addMethod(
2294
+ unescape('_subclass_instanceVariableNames_category_'),
2295
+ smalltalk.method({
2296
+ selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
2297
+ fn: function (aString, aString2, aString3){
2298
+ var self=this;
2299
+ smalltalk.send(self, "_deprecatedAPI", []);
2300
+ return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
2301
+ return self;}
2302
+ }),
2303
+ smalltalk.UndefinedObject);
2304
+
2305
+ smalltalk.addMethod(
2306
+ unescape('_shallowCopy'),
2307
+ smalltalk.method({
2308
+ selector: unescape('shallowCopy'),
2309
+ fn: function (){
2310
+ var self=this;
2311
+ return self;
2312
+ return self;}
2313
+ }),
2314
+ smalltalk.UndefinedObject);
2315
+
2316
+ smalltalk.addMethod(
2317
+ unescape('_deepCopy'),
2318
+ smalltalk.method({
2319
+ selector: unescape('deepCopy'),
2320
+ fn: function (){
2321
+ var self=this;
2322
+ return self;
2323
+ return self;}
2324
+ }),
2325
+ smalltalk.UndefinedObject);
2326
+
2327
+ smalltalk.addMethod(
2328
+ unescape('_ifNil_'),
2329
+ smalltalk.method({
2330
+ selector: unescape('ifNil%3A'),
2331
+ fn: function (aBlock){
2332
+ var self=this;
2333
+ return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
2334
+ return self;}
2335
+ }),
2336
+ smalltalk.UndefinedObject);
2337
+
2338
+ smalltalk.addMethod(
2339
+ unescape('_ifNotNil_'),
2340
+ smalltalk.method({
2341
+ selector: unescape('ifNotNil%3A'),
2342
+ fn: function (aBlock){
2343
+ var self=this;
2344
+ return self;
2345
+ return self;}
2346
+ }),
2347
+ smalltalk.UndefinedObject);
2348
+
2349
+ smalltalk.addMethod(
2350
+ unescape('_ifNil_ifNotNil_'),
2351
+ smalltalk.method({
2352
+ selector: unescape('ifNil%3AifNotNil%3A'),
2353
+ fn: function (aBlock, anotherBlock){
2354
+ var self=this;
2355
+ return smalltalk.send(aBlock, "_value", []);
2356
+ return self;}
2357
+ }),
2358
+ smalltalk.UndefinedObject);
2359
+
2360
+ smalltalk.addMethod(
2361
+ unescape('_ifNotNil_ifNil_'),
2362
+ smalltalk.method({
2363
+ selector: unescape('ifNotNil%3AifNil%3A'),
2364
+ fn: function (aBlock, anotherBlock){
2365
+ var self=this;
2366
+ return smalltalk.send(anotherBlock, "_value", []);
2367
+ return self;}
2368
+ }),
2369
+ smalltalk.UndefinedObject);
2370
+
2371
+ smalltalk.addMethod(
2372
+ unescape('_isNil'),
2373
+ smalltalk.method({
2374
+ selector: unescape('isNil'),
2375
+ fn: function (){
2376
+ var self=this;
2377
+ return true;
2378
+ return self;}
2379
+ }),
2380
+ smalltalk.UndefinedObject);
2381
+
2382
+ smalltalk.addMethod(
2383
+ unescape('_notNil'),
2384
+ smalltalk.method({
2385
+ selector: unescape('notNil'),
2386
+ fn: function (){
2387
+ var self=this;
2388
+ return false;
2389
+ return self;}
2390
+ }),
2391
+ smalltalk.UndefinedObject);
2392
+
2393
+ smalltalk.addMethod(
2394
+ unescape('_printString'),
2395
+ smalltalk.method({
2396
+ selector: unescape('printString'),
2397
+ fn: function (){
2398
+ var self=this;
2399
+ return "nil";
2400
+ return self;}
2401
+ }),
2402
+ smalltalk.UndefinedObject);
2403
+
2404
+ smalltalk.addMethod(
2405
+ unescape('_subclass_instanceVariableNames_package_'),
2406
+ smalltalk.method({
2407
+ selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
2408
+ fn: function (aString, aString2, aString3){
2409
+ var self=this;
2410
+ return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
2411
+ return self;}
2412
+ }),
2413
+ smalltalk.UndefinedObject);
2414
+
2415
+
2416
+ smalltalk.addMethod(
2417
+ unescape('_new'),
2418
+ smalltalk.method({
2419
+ selector: unescape('new'),
2420
+ fn: function (){
2421
+ var self=this;
2422
+ smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
2423
+ return self;}
2424
+ }),
2425
+ smalltalk.UndefinedObject.klass);
2426
+
2427
+
2428
+ smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel-Objects');
2429
+ smalltalk.addMethod(
2430
+ unescape('_next'),
2431
+ smalltalk.method({
2432
+ selector: unescape('next'),
2433
+ fn: function (){
2434
+ var self=this;
2435
+ return Math.random();
2436
+ return self;}
2437
+ }),
2438
+ smalltalk.Random);
2439
+
2440
+ smalltalk.addMethod(
2441
+ unescape('_next_'),
2442
+ smalltalk.method({
2443
+ selector: unescape('next%3A'),
2444
+ fn: function (anInteger){
2445
+ var self=this;
2446
+ return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
2447
+ return self;}
2448
+ }),
2449
+ smalltalk.Random);
2450
+
2451
+
2452
+
2453
+ smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel-Objects');
2454
+ smalltalk.addMethod(
2455
+ unescape('_x'),
2456
+ smalltalk.method({
2457
+ selector: unescape('x'),
2458
+ fn: function (){
2459
+ var self=this;
2460
+ return self['@x'];
2461
+ return self;}
2462
+ }),
2463
+ smalltalk.Point);
2464
+
2465
+ smalltalk.addMethod(
2466
+ unescape('_y'),
2467
+ smalltalk.method({
2468
+ selector: unescape('y'),
2469
+ fn: function (){
2470
+ var self=this;
2471
+ return self['@y'];
2472
+ return self;}
2473
+ }),
2474
+ smalltalk.Point);
2475
+
2476
+ smalltalk.addMethod(
2477
+ unescape('_y_'),
2478
+ smalltalk.method({
2479
+ selector: unescape('y%3A'),
2480
+ fn: function (aNumber){
2481
+ var self=this;
2482
+ (self['@y']=aNumber);
2483
+ return self;}
2484
+ }),
2485
+ smalltalk.Point);
2486
+
2487
+ smalltalk.addMethod(
2488
+ unescape('_x_'),
2489
+ smalltalk.method({
2490
+ selector: unescape('x%3A'),
2491
+ fn: function (aNumber){
2492
+ var self=this;
2493
+ (self['@x']=aNumber);
2494
+ return self;}
2495
+ }),
2496
+ smalltalk.Point);
2497
+
2498
+ smalltalk.addMethod(
2499
+ unescape('__star'),
2500
+ smalltalk.method({
2501
+ selector: unescape('*'),
2502
+ fn: function (aPoint){
2503
+ var self=this;
2504
+ 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", [])]))]);
2505
+ return self;}
2506
+ }),
2507
+ smalltalk.Point);
2508
+
2509
+ smalltalk.addMethod(
2510
+ unescape('__plus'),
2511
+ smalltalk.method({
2512
+ selector: unescape('+'),
2513
+ fn: function (aPoint){
2514
+ var self=this;
2515
+ 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", [])]))]);
2516
+ return self;}
2517
+ }),
2518
+ smalltalk.Point);
2519
+
2520
+ smalltalk.addMethod(
2521
+ unescape('__minus'),
2522
+ smalltalk.method({
2523
+ selector: unescape('-'),
2524
+ fn: function (aPoint){
2525
+ var self=this;
2526
+ 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", [])]))]);
2527
+ return self;}
2528
+ }),
2529
+ smalltalk.Point);
2530
+
2531
+ smalltalk.addMethod(
2532
+ unescape('__slash'),
2533
+ smalltalk.method({
2534
+ selector: unescape('/'),
2535
+ fn: function (aPoint){
2536
+ var self=this;
2537
+ 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", [])]))]);
2538
+ return self;}
2539
+ }),
2540
+ smalltalk.Point);
2541
+
2542
+ smalltalk.addMethod(
2543
+ unescape('_asPoint'),
2544
+ smalltalk.method({
2545
+ selector: unescape('asPoint'),
2546
+ fn: function (){
2547
+ var self=this;
2548
+ return self;
2549
+ return self;}
2550
+ }),
2551
+ smalltalk.Point);
2552
+
2553
+ smalltalk.addMethod(
2554
+ unescape('__eq'),
2555
+ smalltalk.method({
2556
+ selector: unescape('%3D'),
2557
+ fn: function (aPoint){
2558
+ var self=this;
2559
+ 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", [])])]);})]);
2560
+ return self;}
2561
+ }),
2562
+ smalltalk.Point);
2563
+
2564
+ smalltalk.addMethod(
2565
+ unescape('_printString'),
2566
+ smalltalk.method({
2567
+ selector: unescape('printString'),
2568
+ fn: function (){
2569
+ var self=this;
2570
+ 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", [])]);})]);
2571
+ return self;}
2572
+ }),
2573
+ smalltalk.Point);
2574
+
2575
+
2576
+ smalltalk.addMethod(
2577
+ unescape('_x_y_'),
2578
+ smalltalk.method({
2579
+ selector: unescape('x%3Ay%3A'),
2580
+ fn: function (aNumber, anotherNumber){
2581
+ var self=this;
2582
+ return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
2583
+ return self;}
2584
+ }),
2585
+ smalltalk.Point.klass);
2586
+
2587
+
2588
+ smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel-Objects');
2589
+ smalltalk.addMethod(
2590
+ unescape('_jsObject_'),
2591
+ smalltalk.method({
2592
+ selector: unescape('jsObject%3A'),
2593
+ fn: function (aJSObject){
2594
+ var self=this;
2595
+ (self['@jsObject']=aJSObject);
2596
+ return self;}
2597
+ }),
2598
+ smalltalk.JSObjectProxy);
2599
+
2600
+ smalltalk.addMethod(
2601
+ unescape('_jsObject'),
2602
+ smalltalk.method({
2603
+ selector: unescape('jsObject'),
2604
+ fn: function (){
2605
+ var self=this;
2606
+ return self['@jsObject'];
2607
+ return self;}
2608
+ }),
2609
+ smalltalk.JSObjectProxy);
2610
+
2611
+ smalltalk.addMethod(
2612
+ unescape('_printString'),
2613
+ smalltalk.method({
2614
+ selector: unescape('printString'),
2615
+ fn: function (){
2616
+ var self=this;
2617
+ return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
2618
+ return self;}
2619
+ }),
2620
+ smalltalk.JSObjectProxy);
2621
+
2622
+ smalltalk.addMethod(
2623
+ unescape('_inspectOn_'),
2624
+ smalltalk.method({
2625
+ selector: unescape('inspectOn%3A'),
2626
+ fn: function (anInspector){
2627
+ var self=this;
2628
+ var variables=nil;
2629
+ (variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []));
2630
+ smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
2631
+ smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
2632
+ for(var i in self['@jsObject']) {
2633
+ variables._at_put_(i, self['@jsObject'][i]);
2634
+ };
2635
+ smalltalk.send(anInspector, "_setVariables_", [variables]);
2636
+ return self;}
2637
+ }),
2638
+ smalltalk.JSObjectProxy);
2639
+
2640
+ smalltalk.addMethod(
2641
+ unescape('_doesNotUnderstand_'),
2642
+ smalltalk.method({
2643
+ selector: unescape('doesNotUnderstand%3A'),
2644
+ fn: function (aMessage){
2645
+ var self=this;
2646
+ var obj=nil;
2647
+ var selector=nil;
2648
+ var jsSelector=nil;
2649
+ var arguments=nil;
2650
+ (obj=smalltalk.send(self, "_jsObject", []));
2651
+ (selector=smalltalk.send(aMessage, "_selector", []));
2652
+ (jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []));
2653
+ (arguments=smalltalk.send(aMessage, "_arguments", []));
2654
+ if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
2655
+ smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
2656
+ return self;}
2657
+ }),
2658
+ smalltalk.JSObjectProxy);
2659
+
2660
+ smalltalk.addMethod(
2661
+ unescape('_at_'),
2662
+ smalltalk.method({
2663
+ selector: unescape('at%3A'),
2664
+ fn: function (aSymbol){
2665
+ var self=this;
2666
+ var attr=nil;
2667
+ (attr=smalltalk.send(aSymbol, "_asString", []));
2668
+ return self['@jsObject'][attr];
2669
+ return self;}
2670
+ }),
2671
+ smalltalk.JSObjectProxy);
2672
+
2673
+ smalltalk.addMethod(
2674
+ unescape('_at_put_'),
2675
+ smalltalk.method({
2676
+ selector: unescape('at%3Aput%3A'),
2677
+ fn: function (aSymbol, anObject){
2678
+ var self=this;
2679
+ var attr=nil;
2680
+ (attr=smalltalk.send(aSymbol, "_asString", []));
2681
+ self['@jsObject'][attr] = anObject;
2682
+ return self;}
2683
+ }),
2684
+ smalltalk.JSObjectProxy);
2685
+
2686
+
2687
+ smalltalk.addMethod(
2688
+ unescape('_on_'),
2689
+ smalltalk.method({
2690
+ selector: unescape('on%3A'),
2691
+ fn: function (aJSObject){
2692
+ var self=this;
2693
+ return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
2694
+ return self;}
2695
+ }),
2696
+ smalltalk.JSObjectProxy.klass);
2697
+
2698
+