resin 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,92 @@
1
1
  smalltalk.addPackage('Kernel-Collections', {});
2
+ smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel-Collections');
3
+ smalltalk.addMethod(
4
+ unescape('__eq'),
5
+ smalltalk.method({
6
+ selector: unescape('%3D'),
7
+ fn: function (anAssociation) {
8
+ var self=this;
9
+ return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(anAssociation, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_key", []), "__eq", [smalltalk.send(anAssociation, "_key", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_value", []), "__eq", [smalltalk.send(anAssociation, "_value", [])]);})]);})]);
10
+ return self;}
11
+ }),
12
+ smalltalk.Association);
13
+
14
+ smalltalk.addMethod(
15
+ unescape('_key_'),
16
+ smalltalk.method({
17
+ selector: unescape('key%3A'),
18
+ fn: function (aKey) {
19
+ var self=this;
20
+ (self['@key']=aKey);
21
+ return self;}
22
+ }),
23
+ smalltalk.Association);
24
+
25
+ smalltalk.addMethod(
26
+ unescape('_key'),
27
+ smalltalk.method({
28
+ selector: unescape('key'),
29
+ fn: function () {
30
+ var self=this;
31
+ return self['@key'];
32
+ return self;}
33
+ }),
34
+ smalltalk.Association);
35
+
36
+ smalltalk.addMethod(
37
+ unescape('_value_'),
38
+ smalltalk.method({
39
+ selector: unescape('value%3A'),
40
+ fn: function (aValue) {
41
+ var self=this;
42
+ (self['@value']=aValue);
43
+ return self;}
44
+ }),
45
+ smalltalk.Association);
46
+
47
+ smalltalk.addMethod(
48
+ unescape('_value'),
49
+ smalltalk.method({
50
+ selector: unescape('value'),
51
+ fn: function () {
52
+ var self=this;
53
+ return self['@value'];
54
+ return self;}
55
+ }),
56
+ smalltalk.Association);
57
+
58
+ smalltalk.addMethod(
59
+ unescape('_storeOn_'),
60
+ smalltalk.method({
61
+ selector: unescape('storeOn%3A'),
62
+ fn: function (aStream) {
63
+ var self=this;
64
+ smalltalk.send(self['@key'], "_storeOn_", [aStream]);
65
+ smalltalk.send(aStream, "_nextPutAll_", [unescape("-%3E")]);
66
+ smalltalk.send(self['@value'], "_storeOn_", [aStream]);
67
+ return self;}
68
+ }),
69
+ smalltalk.Association);
70
+
71
+
72
+ smalltalk.addMethod(
73
+ unescape('_key_value_'),
74
+ smalltalk.method({
75
+ selector: unescape('key%3Avalue%3A'),
76
+ fn: function (aKey, aValue) {
77
+ var self=this;
78
+ return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
79
+ return self;}
80
+ }),
81
+ smalltalk.Association.klass);
82
+
83
+
2
84
  smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel-Collections');
3
85
  smalltalk.addMethod(
4
86
  unescape('_collection'),
5
87
  smalltalk.method({
6
88
  selector: unescape('collection'),
7
- fn: function (){
89
+ fn: function () {
8
90
  var self=this;
9
91
  return self['@collection'];
10
92
  return self;}
@@ -15,7 +97,7 @@ smalltalk.addMethod(
15
97
  unescape('_setCollection_'),
16
98
  smalltalk.method({
17
99
  selector: unescape('setCollection%3A'),
18
- fn: function (aCollection){
100
+ fn: function (aCollection) {
19
101
  var self=this;
20
102
  (self['@collection']=aCollection);
21
103
  return self;}
@@ -26,7 +108,7 @@ smalltalk.addMethod(
26
108
  unescape('_position'),
27
109
  smalltalk.method({
28
110
  selector: unescape('position'),
29
- fn: function (){
111
+ fn: function () {
30
112
  var self=this;
31
113
  return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return (self['@position']=(0));})() : $receiver;
32
114
  return self;}
@@ -37,7 +119,7 @@ smalltalk.addMethod(
37
119
  unescape('_position_'),
38
120
  smalltalk.method({
39
121
  selector: unescape('position%3A'),
40
- fn: function (anInteger){
122
+ fn: function (anInteger) {
41
123
  var self=this;
42
124
  (self['@position']=anInteger);
43
125
  return self;}
@@ -48,7 +130,7 @@ smalltalk.addMethod(
48
130
  unescape('_streamSize'),
49
131
  smalltalk.method({
50
132
  selector: unescape('streamSize'),
51
- fn: function (){
133
+ fn: function () {
52
134
  var self=this;
53
135
  return self['@streamSize'];
54
136
  return self;}
@@ -59,7 +141,7 @@ smalltalk.addMethod(
59
141
  unescape('_setStreamSize_'),
60
142
  smalltalk.method({
61
143
  selector: unescape('setStreamSize%3A'),
62
- fn: function (anInteger){
144
+ fn: function (anInteger) {
63
145
  var self=this;
64
146
  (self['@streamSize']=anInteger);
65
147
  return self;}
@@ -70,7 +152,7 @@ smalltalk.addMethod(
70
152
  unescape('_contents'),
71
153
  smalltalk.method({
72
154
  selector: unescape('contents'),
73
- fn: function (){
155
+ fn: function () {
74
156
  var self=this;
75
157
  return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
76
158
  return self;}
@@ -81,7 +163,7 @@ smalltalk.addMethod(
81
163
  unescape('_size'),
82
164
  smalltalk.method({
83
165
  selector: unescape('size'),
84
- fn: function (){
166
+ fn: function () {
85
167
  var self=this;
86
168
  return smalltalk.send(self, "_streamSize", []);
87
169
  return self;}
@@ -92,7 +174,7 @@ smalltalk.addMethod(
92
174
  unescape('_reset'),
93
175
  smalltalk.method({
94
176
  selector: unescape('reset'),
95
- fn: function (){
177
+ fn: function () {
96
178
  var self=this;
97
179
  smalltalk.send(self, "_position_", [(0)]);
98
180
  return self;}
@@ -103,7 +185,7 @@ smalltalk.addMethod(
103
185
  unescape('_close'),
104
186
  smalltalk.method({
105
187
  selector: unescape('close'),
106
- fn: function (){
188
+ fn: function () {
107
189
  var self=this;
108
190
 
109
191
  return self;}
@@ -114,7 +196,7 @@ smalltalk.addMethod(
114
196
  unescape('_flush'),
115
197
  smalltalk.method({
116
198
  selector: unescape('flush'),
117
- fn: function (){
199
+ fn: function () {
118
200
  var self=this;
119
201
 
120
202
  return self;}
@@ -125,7 +207,7 @@ smalltalk.addMethod(
125
207
  unescape('_resetContents'),
126
208
  smalltalk.method({
127
209
  selector: unescape('resetContents'),
128
- fn: function (){
210
+ fn: function () {
129
211
  var self=this;
130
212
  smalltalk.send(self, "_reset", []);
131
213
  smalltalk.send(self, "_setStreamSize_", [(0)]);
@@ -137,7 +219,7 @@ smalltalk.addMethod(
137
219
  unescape('_do_'),
138
220
  smalltalk.method({
139
221
  selector: unescape('do%3A'),
140
- fn: function (aBlock){
222
+ fn: function (aBlock) {
141
223
  var self=this;
142
224
  (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
143
225
  return self;}
@@ -148,7 +230,7 @@ smalltalk.addMethod(
148
230
  unescape('_setToEnd'),
149
231
  smalltalk.method({
150
232
  selector: unescape('setToEnd'),
151
- fn: function (){
233
+ fn: function () {
152
234
  var self=this;
153
235
  smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
154
236
  return self;}
@@ -159,7 +241,7 @@ smalltalk.addMethod(
159
241
  unescape('_skip_'),
160
242
  smalltalk.method({
161
243
  selector: unescape('skip%3A'),
162
- fn: function (anInteger){
244
+ fn: function (anInteger) {
163
245
  var self=this;
164
246
  smalltalk.send(self, "_position_", [smalltalk.send(((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +anInteger : smalltalk.send($receiver, "__plus", [anInteger])), "_min_max_", [smalltalk.send(self, "_size", []), (0)])]);
165
247
  return self;}
@@ -170,7 +252,7 @@ smalltalk.addMethod(
170
252
  unescape('_next'),
171
253
  smalltalk.method({
172
254
  selector: unescape('next'),
173
- fn: function (){
255
+ fn: function () {
174
256
  var self=this;
175
257
  return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return nil;})() : (function(){smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return nil;}), (function(){smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);})]));
176
258
  return self;}
@@ -181,7 +263,7 @@ smalltalk.addMethod(
181
263
  unescape('_next_'),
182
264
  smalltalk.method({
183
265
  selector: unescape('next%3A'),
184
- fn: function (anInteger){
266
+ fn: function (anInteger) {
185
267
  var self=this;
186
268
  var tempCollection=nil;
187
269
  (tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []));
@@ -195,7 +277,7 @@ smalltalk.addMethod(
195
277
  unescape('_nextPut_'),
196
278
  smalltalk.method({
197
279
  selector: unescape('nextPut%3A'),
198
- fn: function (anObject){
280
+ fn: function (anObject) {
199
281
  var self=this;
200
282
  smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
201
283
  smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
@@ -208,7 +290,7 @@ smalltalk.addMethod(
208
290
  unescape('_nextPutAll_'),
209
291
  smalltalk.method({
210
292
  selector: unescape('nextPutAll%3A'),
211
- fn: function (aCollection){
293
+ fn: function (aCollection) {
212
294
  var self=this;
213
295
  smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
214
296
  return self;}
@@ -219,7 +301,7 @@ smalltalk.addMethod(
219
301
  unescape('_peek'),
220
302
  smalltalk.method({
221
303
  selector: unescape('peek'),
222
- fn: function (){
304
+ fn: function () {
223
305
  var self=this;
224
306
  return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})]));
225
307
  return self;}
@@ -230,7 +312,7 @@ smalltalk.addMethod(
230
312
  unescape('_atEnd'),
231
313
  smalltalk.method({
232
314
  selector: unescape('atEnd'),
233
- fn: function (){
315
+ fn: function () {
234
316
  var self=this;
235
317
  return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
236
318
  return self;}
@@ -241,7 +323,7 @@ smalltalk.addMethod(
241
323
  unescape('_atStart'),
242
324
  smalltalk.method({
243
325
  selector: unescape('atStart'),
244
- fn: function (){
326
+ fn: function () {
245
327
  var self=this;
246
328
  return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
247
329
  return self;}
@@ -252,7 +334,7 @@ smalltalk.addMethod(
252
334
  unescape('_isEmpty'),
253
335
  smalltalk.method({
254
336
  selector: unescape('isEmpty'),
255
- fn: function (){
337
+ fn: function () {
256
338
  var self=this;
257
339
  return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
258
340
  return self;}
@@ -264,7 +346,7 @@ smalltalk.addMethod(
264
346
  unescape('_on_'),
265
347
  smalltalk.method({
266
348
  selector: unescape('on%3A'),
267
- fn: function (aCollection){
349
+ fn: function (aCollection) {
268
350
  var self=this;
269
351
  return (function($rec){smalltalk.send($rec, "_setCollection_", [aCollection]);smalltalk.send($rec, "_setStreamSize_", [smalltalk.send(aCollection, "_size", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
270
352
  return self;}
@@ -272,94 +354,12 @@ return self;}
272
354
  smalltalk.Stream.klass);
273
355
 
274
356
 
275
- smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel-Collections');
276
- smalltalk.addMethod(
277
- unescape('__eq'),
278
- smalltalk.method({
279
- selector: unescape('%3D'),
280
- fn: function (anAssociation){
281
- var self=this;
282
- return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(anAssociation, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_key", []), "__eq", [smalltalk.send(anAssociation, "_key", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_value", []), "__eq", [smalltalk.send(anAssociation, "_value", [])]);})]);})]);
283
- return self;}
284
- }),
285
- smalltalk.Association);
286
-
287
- smalltalk.addMethod(
288
- unescape('_key_'),
289
- smalltalk.method({
290
- selector: unescape('key%3A'),
291
- fn: function (aKey){
292
- var self=this;
293
- (self['@key']=aKey);
294
- return self;}
295
- }),
296
- smalltalk.Association);
297
-
298
- smalltalk.addMethod(
299
- unescape('_key'),
300
- smalltalk.method({
301
- selector: unescape('key'),
302
- fn: function (){
303
- var self=this;
304
- return self['@key'];
305
- return self;}
306
- }),
307
- smalltalk.Association);
308
-
309
- smalltalk.addMethod(
310
- unescape('_value_'),
311
- smalltalk.method({
312
- selector: unescape('value%3A'),
313
- fn: function (aValue){
314
- var self=this;
315
- (self['@value']=aValue);
316
- return self;}
317
- }),
318
- smalltalk.Association);
319
-
320
- smalltalk.addMethod(
321
- unescape('_value'),
322
- smalltalk.method({
323
- selector: unescape('value'),
324
- fn: function (){
325
- var self=this;
326
- return self['@value'];
327
- return self;}
328
- }),
329
- smalltalk.Association);
330
-
331
- smalltalk.addMethod(
332
- unescape('_storeOn_'),
333
- smalltalk.method({
334
- selector: unescape('storeOn%3A'),
335
- fn: function (aStream){
336
- var self=this;
337
- smalltalk.send(self['@key'], "_storeOn_", [aStream]);
338
- smalltalk.send(aStream, "_nextPutAll_", [unescape("-%3E")]);
339
- smalltalk.send(self['@value'], "_storeOn_", [aStream]);
340
- return self;}
341
- }),
342
- smalltalk.Association);
343
-
344
-
345
- smalltalk.addMethod(
346
- unescape('_key_value_'),
347
- smalltalk.method({
348
- selector: unescape('key%3Avalue%3A'),
349
- fn: function (aKey, aValue){
350
- var self=this;
351
- return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
352
- return self;}
353
- }),
354
- smalltalk.Association.klass);
355
-
356
-
357
357
  smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel-Collections');
358
358
  smalltalk.addMethod(
359
359
  unescape('_compile_'),
360
360
  smalltalk.method({
361
361
  selector: unescape('compile%3A'),
362
- fn: function (aString){
362
+ fn: function (aString) {
363
363
  var self=this;
364
364
  return self.compile(aString);
365
365
  return self;}
@@ -370,7 +370,7 @@ smalltalk.addMethod(
370
370
  unescape('_exec_'),
371
371
  smalltalk.method({
372
372
  selector: unescape('exec%3A'),
373
- fn: function (aString){
373
+ fn: function (aString) {
374
374
  var self=this;
375
375
  return self.exec(aString) || nil;
376
376
  return self;}
@@ -381,7 +381,7 @@ smalltalk.addMethod(
381
381
  unescape('_test_'),
382
382
  smalltalk.method({
383
383
  selector: unescape('test%3A'),
384
- fn: function (aString){
384
+ fn: function (aString) {
385
385
  var self=this;
386
386
  return self.test(aString);
387
387
  return self;}
@@ -393,7 +393,7 @@ smalltalk.addMethod(
393
393
  unescape('_fromString_flag_'),
394
394
  smalltalk.method({
395
395
  selector: unescape('fromString%3Aflag%3A'),
396
- fn: function (aString, anotherString){
396
+ fn: function (aString, anotherString) {
397
397
  var self=this;
398
398
  return new RegExp(aString, anotherString);
399
399
  return self;}
@@ -404,7 +404,7 @@ smalltalk.addMethod(
404
404
  unescape('_fromString_'),
405
405
  smalltalk.method({
406
406
  selector: unescape('fromString%3A'),
407
- fn: function (aString){
407
+ fn: function (aString) {
408
408
  var self=this;
409
409
  return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
410
410
  return self;}
@@ -417,7 +417,7 @@ smalltalk.addMethod(
417
417
  unescape('_size'),
418
418
  smalltalk.method({
419
419
  selector: unescape('size'),
420
- fn: function (){
420
+ fn: function () {
421
421
  var self=this;
422
422
  smalltalk.send(self, "_subclassResponsibility", []);
423
423
  return self;}
@@ -428,7 +428,7 @@ smalltalk.addMethod(
428
428
  unescape('_readStream'),
429
429
  smalltalk.method({
430
430
  selector: unescape('readStream'),
431
- fn: function (){
431
+ fn: function () {
432
432
  var self=this;
433
433
  return smalltalk.send(self, "_stream", []);
434
434
  return self;}
@@ -439,7 +439,7 @@ smalltalk.addMethod(
439
439
  unescape('_writeStream'),
440
440
  smalltalk.method({
441
441
  selector: unescape('writeStream'),
442
- fn: function (){
442
+ fn: function () {
443
443
  var self=this;
444
444
  return smalltalk.send(self, "_stream", []);
445
445
  return self;}
@@ -450,7 +450,7 @@ smalltalk.addMethod(
450
450
  unescape('_stream'),
451
451
  smalltalk.method({
452
452
  selector: unescape('stream'),
453
- fn: function (){
453
+ fn: function () {
454
454
  var self=this;
455
455
  return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
456
456
  return self;}
@@ -461,7 +461,7 @@ smalltalk.addMethod(
461
461
  unescape('_streamClass'),
462
462
  smalltalk.method({
463
463
  selector: unescape('streamClass'),
464
- fn: function (){
464
+ fn: function () {
465
465
  var self=this;
466
466
  return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
467
467
  return self;}
@@ -472,7 +472,7 @@ smalltalk.addMethod(
472
472
  unescape('_add_'),
473
473
  smalltalk.method({
474
474
  selector: unescape('add%3A'),
475
- fn: function (anObject){
475
+ fn: function (anObject) {
476
476
  var self=this;
477
477
  smalltalk.send(self, "_subclassResponsibility", []);
478
478
  return self;}
@@ -483,7 +483,7 @@ smalltalk.addMethod(
483
483
  unescape('_addAll_'),
484
484
  smalltalk.method({
485
485
  selector: unescape('addAll%3A'),
486
- fn: function (aCollection){
486
+ fn: function (aCollection) {
487
487
  var self=this;
488
488
  smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
489
489
  return aCollection;
@@ -495,7 +495,7 @@ smalltalk.addMethod(
495
495
  unescape('__comma'),
496
496
  smalltalk.method({
497
497
  selector: unescape('%2C'),
498
- fn: function (aCollection){
498
+ fn: function (aCollection) {
499
499
  var self=this;
500
500
  return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
501
501
  return self;}
@@ -506,7 +506,7 @@ smalltalk.addMethod(
506
506
  unescape('_copyWith_'),
507
507
  smalltalk.method({
508
508
  selector: unescape('copyWith%3A'),
509
- fn: function (anObject){
509
+ fn: function (anObject) {
510
510
  var self=this;
511
511
  return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
512
512
  return self;}
@@ -517,7 +517,7 @@ smalltalk.addMethod(
517
517
  unescape('_copyWithAll_'),
518
518
  smalltalk.method({
519
519
  selector: unescape('copyWithAll%3A'),
520
- fn: function (aCollection){
520
+ fn: function (aCollection) {
521
521
  var self=this;
522
522
  return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
523
523
  return self;}
@@ -528,7 +528,7 @@ smalltalk.addMethod(
528
528
  unescape('_asArray'),
529
529
  smalltalk.method({
530
530
  selector: unescape('asArray'),
531
- fn: function (){
531
+ fn: function () {
532
532
  var self=this;
533
533
  return smalltalk.send((smalltalk.Array || Array), "_withAll_", [self]);
534
534
  return self;}
@@ -539,7 +539,7 @@ smalltalk.addMethod(
539
539
  unescape('_do_'),
540
540
  smalltalk.method({
541
541
  selector: unescape('do%3A'),
542
- fn: function (aBlock){
542
+ fn: function (aBlock) {
543
543
  var self=this;
544
544
  for(var i=0;i<self.length;i++){aBlock(self[i]);};
545
545
  return self;}
@@ -550,7 +550,7 @@ smalltalk.addMethod(
550
550
  unescape('_collect_'),
551
551
  smalltalk.method({
552
552
  selector: unescape('collect%3A'),
553
- fn: function (aBlock){
553
+ fn: function (aBlock) {
554
554
  var self=this;
555
555
  var newCollection=nil;
556
556
  (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
@@ -564,7 +564,7 @@ smalltalk.addMethod(
564
564
  unescape('_detect_'),
565
565
  smalltalk.method({
566
566
  selector: unescape('detect%3A'),
567
- fn: function (aBlock){
567
+ fn: function (aBlock) {
568
568
  var self=this;
569
569
  return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
570
570
  return self;}
@@ -575,7 +575,7 @@ smalltalk.addMethod(
575
575
  unescape('_detect_ifNone_'),
576
576
  smalltalk.method({
577
577
  selector: unescape('detect%3AifNone%3A'),
578
- fn: function (aBlock, anotherBlock){
578
+ fn: function (aBlock, anotherBlock) {
579
579
  var self=this;
580
580
 
581
581
  for(var i = 0; i < self.length; i++)
@@ -591,7 +591,7 @@ smalltalk.addMethod(
591
591
  unescape('_do_separatedBy_'),
592
592
  smalltalk.method({
593
593
  selector: unescape('do%3AseparatedBy%3A'),
594
- fn: function (aBlock, anotherBlock){
594
+ fn: function (aBlock, anotherBlock) {
595
595
  var self=this;
596
596
  var first=nil;
597
597
  (first=true);
@@ -604,7 +604,7 @@ smalltalk.addMethod(
604
604
  unescape('_inject_into_'),
605
605
  smalltalk.method({
606
606
  selector: unescape('inject%3Ainto%3A'),
607
- fn: function (anObject, aBlock){
607
+ fn: function (anObject, aBlock) {
608
608
  var self=this;
609
609
  var result=nil;
610
610
  (result=anObject);
@@ -618,7 +618,7 @@ smalltalk.addMethod(
618
618
  unescape('_reject_'),
619
619
  smalltalk.method({
620
620
  selector: unescape('reject%3A'),
621
- fn: function (aBlock){
621
+ fn: function (aBlock) {
622
622
  var self=this;
623
623
  return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
624
624
  return self;}
@@ -629,7 +629,7 @@ smalltalk.addMethod(
629
629
  unescape('_select_'),
630
630
  smalltalk.method({
631
631
  selector: unescape('select%3A'),
632
- fn: function (aBlock){
632
+ fn: function (aBlock) {
633
633
  var self=this;
634
634
  var stream=nil;
635
635
  (stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []));
@@ -643,7 +643,7 @@ smalltalk.addMethod(
643
643
  unescape('_errorNotFound'),
644
644
  smalltalk.method({
645
645
  selector: unescape('errorNotFound'),
646
- fn: function (){
646
+ fn: function () {
647
647
  var self=this;
648
648
  smalltalk.send(self, "_error_", ["Object is not in the collection"]);
649
649
  return self;}
@@ -654,7 +654,7 @@ smalltalk.addMethod(
654
654
  unescape('_includes_'),
655
655
  smalltalk.method({
656
656
  selector: unescape('includes%3A'),
657
- fn: function (anObject){
657
+ fn: function (anObject) {
658
658
  var self=this;
659
659
 
660
660
  var i = self.length;
@@ -671,7 +671,7 @@ smalltalk.addMethod(
671
671
  unescape('_notEmpty'),
672
672
  smalltalk.method({
673
673
  selector: unescape('notEmpty'),
674
- fn: function (){
674
+ fn: function () {
675
675
  var self=this;
676
676
  return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
677
677
  return self;}
@@ -682,7 +682,7 @@ smalltalk.addMethod(
682
682
  unescape('_isEmpty'),
683
683
  smalltalk.method({
684
684
  selector: unescape('isEmpty'),
685
- fn: function (){
685
+ fn: function () {
686
686
  var self=this;
687
687
  return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
688
688
  return self;}
@@ -693,7 +693,7 @@ smalltalk.addMethod(
693
693
  unescape('_remove_'),
694
694
  smalltalk.method({
695
695
  selector: unescape('remove%3A'),
696
- fn: function (anObject){
696
+ fn: function (anObject) {
697
697
  var self=this;
698
698
  return smalltalk.send(self, "_remove_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
699
699
  return self;}
@@ -704,7 +704,7 @@ smalltalk.addMethod(
704
704
  unescape('_asSet'),
705
705
  smalltalk.method({
706
706
  selector: unescape('asSet'),
707
- fn: function (){
707
+ fn: function () {
708
708
  var self=this;
709
709
  return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
710
710
  return self;}
@@ -715,7 +715,7 @@ smalltalk.addMethod(
715
715
  unescape('_ifNotEmpty_'),
716
716
  smalltalk.method({
717
717
  selector: unescape('ifNotEmpty%3A'),
718
- fn: function (aBlock){
718
+ fn: function (aBlock) {
719
719
  var self=this;
720
720
  smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
721
721
  return self;}
@@ -728,7 +728,7 @@ smalltalk.method({
728
728
  selector: unescape('ifEmpty%3A'),
729
729
  fn: function (aBlock){
730
730
  var self=this;
731
- smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
731
+ return ((($receiver = smalltalk.send(self, "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : (function(){return self;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);}), (function(){return self;})]));
732
732
  return self;}
733
733
  }),
734
734
  smalltalk.Collection);
@@ -737,7 +737,7 @@ smalltalk.addMethod(
737
737
  unescape('_copyWithoutAll_'),
738
738
  smalltalk.method({
739
739
  selector: unescape('copyWithoutAll%3A'),
740
- fn: function (aCollection){
740
+ fn: function (aCollection) {
741
741
  var self=this;
742
742
  return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
743
743
  return self;}
@@ -748,7 +748,7 @@ smalltalk.addMethod(
748
748
  unescape('_remove_ifAbsent_'),
749
749
  smalltalk.method({
750
750
  selector: unescape('remove%3AifAbsent%3A'),
751
- fn: function (anObject, aBlock){
751
+ fn: function (anObject, aBlock) {
752
752
  var self=this;
753
753
  smalltalk.send(self, "_subclassResponsibility", []);
754
754
  return self;}
@@ -756,23 +756,23 @@ return self;}
756
756
  smalltalk.Collection);
757
757
 
758
758
  smalltalk.addMethod(
759
- unescape('_asJSONString'),
759
+ unescape('_asOrderedCollection'),
760
760
  smalltalk.method({
761
- selector: unescape('asJSONString'),
762
- fn: function (){
761
+ selector: unescape('asOrderedCollection'),
762
+ fn: function () {
763
763
  var self=this;
764
- return smalltalk.send((smalltalk.JSON || JSON), "_stringify_", [smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONString", []);})])]);
764
+ return smalltalk.send(self, "_asArray", []);
765
765
  return self;}
766
766
  }),
767
767
  smalltalk.Collection);
768
768
 
769
769
  smalltalk.addMethod(
770
- unescape('_asOrderedCollection'),
770
+ unescape('_asJSON'),
771
771
  smalltalk.method({
772
- selector: unescape('asOrderedCollection'),
772
+ selector: unescape('asJSON'),
773
773
  fn: function (){
774
774
  var self=this;
775
- return smalltalk.send(self, "_asArray", []);
775
+ return smalltalk.send(smalltalk.send(self, "_asArray", []), "_collect_", [(function(each){return smalltalk.send(each, "_asJSON", []);})]);
776
776
  return self;}
777
777
  }),
778
778
  smalltalk.Collection);
@@ -782,7 +782,7 @@ smalltalk.addMethod(
782
782
  unescape('_streamClass'),
783
783
  smalltalk.method({
784
784
  selector: unescape('streamClass'),
785
- fn: function (){
785
+ fn: function () {
786
786
  var self=this;
787
787
  return (smalltalk.Stream || Stream);
788
788
  return self;}
@@ -793,7 +793,7 @@ smalltalk.addMethod(
793
793
  unescape('_with_'),
794
794
  smalltalk.method({
795
795
  selector: unescape('with%3A'),
796
- fn: function (anObject){
796
+ fn: function (anObject) {
797
797
  var self=this;
798
798
  return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
799
799
  return self;}
@@ -804,7 +804,7 @@ smalltalk.addMethod(
804
804
  unescape('_with_with_'),
805
805
  smalltalk.method({
806
806
  selector: unescape('with%3Awith%3A'),
807
- fn: function (anObject, anotherObject){
807
+ fn: function (anObject, anotherObject) {
808
808
  var self=this;
809
809
  return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
810
810
  return self;}
@@ -815,7 +815,7 @@ smalltalk.addMethod(
815
815
  unescape('_with_with_with_'),
816
816
  smalltalk.method({
817
817
  selector: unescape('with%3Awith%3Awith%3A'),
818
- fn: function (firstObject, secondObject, thirdObject){
818
+ fn: function (firstObject, secondObject, thirdObject) {
819
819
  var self=this;
820
820
  return (function($rec){smalltalk.send($rec, "_add_", [firstObject]);smalltalk.send($rec, "_add_", [secondObject]);smalltalk.send($rec, "_add_", [thirdObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
821
821
  return self;}
@@ -826,7 +826,7 @@ smalltalk.addMethod(
826
826
  unescape('_withAll_'),
827
827
  smalltalk.method({
828
828
  selector: unescape('withAll%3A'),
829
- fn: function (aCollection){
829
+ fn: function (aCollection) {
830
830
  var self=this;
831
831
  return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
832
832
  return self;}
@@ -837,7 +837,7 @@ smalltalk.addMethod(
837
837
  unescape('_new_'),
838
838
  smalltalk.method({
839
839
  selector: unescape('new%3A'),
840
- fn: function (anInteger){
840
+ fn: function (anInteger) {
841
841
  var self=this;
842
842
  return smalltalk.send(self, "_new", []);
843
843
  return self;}
@@ -850,7 +850,7 @@ smalltalk.addMethod(
850
850
  unescape('_at_'),
851
851
  smalltalk.method({
852
852
  selector: unescape('at%3A'),
853
- fn: function (anIndex){
853
+ fn: function (anIndex) {
854
854
  var self=this;
855
855
  return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
856
856
  return self;}
@@ -861,7 +861,7 @@ smalltalk.addMethod(
861
861
  unescape('_at_ifAbsent_'),
862
862
  smalltalk.method({
863
863
  selector: unescape('at%3AifAbsent%3A'),
864
- fn: function (anIndex, aBlock){
864
+ fn: function (anIndex, aBlock) {
865
865
  var self=this;
866
866
  smalltalk.send(self, "_subclassResponsibility", []);
867
867
  return self;}
@@ -872,7 +872,7 @@ smalltalk.addMethod(
872
872
  unescape('_at_put_'),
873
873
  smalltalk.method({
874
874
  selector: unescape('at%3Aput%3A'),
875
- fn: function (anIndex, anObject){
875
+ fn: function (anIndex, anObject) {
876
876
  var self=this;
877
877
  smalltalk.send(self, "_subclassResponsibility", []);
878
878
  return self;}
@@ -883,7 +883,7 @@ smalltalk.addMethod(
883
883
  unescape('_copyFrom_to_'),
884
884
  smalltalk.method({
885
885
  selector: unescape('copyFrom%3Ato%3A'),
886
- fn: function (anIndex, anotherIndex){
886
+ fn: function (anIndex, anotherIndex) {
887
887
  var self=this;
888
888
  var range=nil;
889
889
  var newCollection=nil;
@@ -899,7 +899,7 @@ smalltalk.addMethod(
899
899
  unescape('_first'),
900
900
  smalltalk.method({
901
901
  selector: unescape('first'),
902
- fn: function (){
902
+ fn: function () {
903
903
  var self=this;
904
904
  return smalltalk.send(self, "_at_", [(1)]);
905
905
  return self;}
@@ -910,7 +910,7 @@ smalltalk.addMethod(
910
910
  unescape('_fourth'),
911
911
  smalltalk.method({
912
912
  selector: unescape('fourth'),
913
- fn: function (){
913
+ fn: function () {
914
914
  var self=this;
915
915
  return smalltalk.send(self, "_at_", [(4)]);
916
916
  return self;}
@@ -921,7 +921,7 @@ smalltalk.addMethod(
921
921
  unescape('_last'),
922
922
  smalltalk.method({
923
923
  selector: unescape('last'),
924
- fn: function (){
924
+ fn: function () {
925
925
  var self=this;
926
926
  return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
927
927
  return self;}
@@ -932,7 +932,7 @@ smalltalk.addMethod(
932
932
  unescape('_second'),
933
933
  smalltalk.method({
934
934
  selector: unescape('second'),
935
- fn: function (){
935
+ fn: function () {
936
936
  var self=this;
937
937
  return smalltalk.send(self, "_at_", [(2)]);
938
938
  return self;}
@@ -943,7 +943,7 @@ smalltalk.addMethod(
943
943
  unescape('_third'),
944
944
  smalltalk.method({
945
945
  selector: unescape('third'),
946
- fn: function (){
946
+ fn: function () {
947
947
  var self=this;
948
948
  return smalltalk.send(self, "_at_", [(3)]);
949
949
  return self;}
@@ -954,7 +954,7 @@ smalltalk.addMethod(
954
954
  unescape('_removeLast'),
955
955
  smalltalk.method({
956
956
  selector: unescape('removeLast'),
957
- fn: function (){
957
+ fn: function () {
958
958
  var self=this;
959
959
  smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
960
960
  return self;}
@@ -965,7 +965,7 @@ smalltalk.addMethod(
965
965
  unescape('_addLast_'),
966
966
  smalltalk.method({
967
967
  selector: unescape('addLast%3A'),
968
- fn: function (anObject){
968
+ fn: function (anObject) {
969
969
  var self=this;
970
970
  smalltalk.send(self, "_add_", [anObject]);
971
971
  return self;}
@@ -976,7 +976,7 @@ smalltalk.addMethod(
976
976
  unescape('_withIndexDo_'),
977
977
  smalltalk.method({
978
978
  selector: unescape('withIndexDo%3A'),
979
- fn: function (aBlock){
979
+ fn: function (aBlock) {
980
980
  var self=this;
981
981
  for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
982
982
  return self;}
@@ -987,7 +987,7 @@ smalltalk.addMethod(
987
987
  unescape('_allButFirst'),
988
988
  smalltalk.method({
989
989
  selector: unescape('allButFirst'),
990
- fn: function (){
990
+ fn: function () {
991
991
  var self=this;
992
992
  return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
993
993
  return self;}
@@ -998,7 +998,7 @@ smalltalk.addMethod(
998
998
  unescape('_allButLast'),
999
999
  smalltalk.method({
1000
1000
  selector: unescape('allButLast'),
1001
- fn: function (){
1001
+ fn: function () {
1002
1002
  var self=this;
1003
1003
  return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
1004
1004
  return self;}
@@ -1009,7 +1009,7 @@ smalltalk.addMethod(
1009
1009
  unescape('_indexOf_'),
1010
1010
  smalltalk.method({
1011
1011
  selector: unescape('indexOf%3A'),
1012
- fn: function (anObject){
1012
+ fn: function (anObject) {
1013
1013
  var self=this;
1014
1014
  return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
1015
1015
  return self;}
@@ -1020,7 +1020,7 @@ smalltalk.addMethod(
1020
1020
  unescape('_indexOf_ifAbsent_'),
1021
1021
  smalltalk.method({
1022
1022
  selector: unescape('indexOf%3AifAbsent%3A'),
1023
- fn: function (anObject, aBlock){
1023
+ fn: function (anObject, aBlock) {
1024
1024
  var self=this;
1025
1025
 
1026
1026
  for(var i=0;i<self.length;i++){
@@ -1036,7 +1036,7 @@ smalltalk.addMethod(
1036
1036
  unescape('_indexOf_startingAt_ifAbsent_'),
1037
1037
  smalltalk.method({
1038
1038
  selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
1039
- fn: function (anObject, start, aBlock){
1039
+ fn: function (anObject, start, aBlock) {
1040
1040
  var self=this;
1041
1041
 
1042
1042
  for(var i=start-1;i<self.length;i++){
@@ -1052,7 +1052,7 @@ smalltalk.addMethod(
1052
1052
  unescape('_indexOf_startingAt_'),
1053
1053
  smalltalk.method({
1054
1054
  selector: unescape('indexOf%3AstartingAt%3A'),
1055
- fn: function (anObject, start){
1055
+ fn: function (anObject, start) {
1056
1056
  var self=this;
1057
1057
  return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
1058
1058
  return self;}
@@ -1063,7 +1063,7 @@ smalltalk.addMethod(
1063
1063
  unescape('_reversed'),
1064
1064
  smalltalk.method({
1065
1065
  selector: unescape('reversed'),
1066
- fn: function (){
1066
+ fn: function () {
1067
1067
  var self=this;
1068
1068
  smalltalk.send(self, "_subclassResponsibility", []);
1069
1069
  return self;}
@@ -1074,7 +1074,7 @@ smalltalk.addMethod(
1074
1074
  unescape('_atRandom'),
1075
1075
  smalltalk.method({
1076
1076
  selector: unescape('atRandom'),
1077
- fn: function (){
1077
+ fn: function () {
1078
1078
  var self=this;
1079
1079
  return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
1080
1080
  return self;}
@@ -1085,7 +1085,7 @@ smalltalk.addMethod(
1085
1085
  unescape('__eq'),
1086
1086
  smalltalk.method({
1087
1087
  selector: unescape('%3D'),
1088
- fn: function (aCollection){
1088
+ fn: function (aCollection) {
1089
1089
  var self=this;
1090
1090
  try{((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aCollection, "_size", [])]);})])).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}})})();})]));
1091
1091
  smalltalk.send(self, "_withIndexDo_", [(function(each, i){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_at_", [i]), "__eq", [each])).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}})})();})]));})]);
@@ -1099,7 +1099,7 @@ smalltalk.addMethod(
1099
1099
  unescape('_shallowCopy'),
1100
1100
  smalltalk.method({
1101
1101
  selector: unescape('shallowCopy'),
1102
- fn: function (){
1102
+ fn: function () {
1103
1103
  var self=this;
1104
1104
  var newCollection=nil;
1105
1105
  (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(self, "_size", [])]));
@@ -1113,7 +1113,7 @@ smalltalk.addMethod(
1113
1113
  unescape('_deepCopy'),
1114
1114
  smalltalk.method({
1115
1115
  selector: unescape('deepCopy'),
1116
- fn: function (){
1116
+ fn: function () {
1117
1117
  var self=this;
1118
1118
  var newCollection=nil;
1119
1119
  (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(self, "_size", [])]));
@@ -1127,7 +1127,7 @@ smalltalk.addMethod(
1127
1127
  unescape('_printString'),
1128
1128
  smalltalk.method({
1129
1129
  selector: unescape('printString'),
1130
- fn: function (){
1130
+ fn: function () {
1131
1131
  var self=this;
1132
1132
  var str=nil;
1133
1133
  (str=smalltalk.send("", "_writeStream", []));
@@ -1139,6 +1139,17 @@ return self;}
1139
1139
  }),
1140
1140
  smalltalk.SequenceableCollection);
1141
1141
 
1142
+ smalltalk.addMethod(
1143
+ unescape('_first_'),
1144
+ smalltalk.method({
1145
+ selector: unescape('first%3A'),
1146
+ fn: function (n){
1147
+ var self=this;
1148
+ return smalltalk.send(self, "_copyFrom_to_", [(1), n]);
1149
+ return self;}
1150
+ }),
1151
+ smalltalk.SequenceableCollection);
1152
+
1142
1153
 
1143
1154
 
1144
1155
  smalltalk.addClass('CharacterArray', smalltalk.SequenceableCollection, [], 'Kernel-Collections');
@@ -1146,7 +1157,7 @@ smalltalk.addMethod(
1146
1157
  unescape('_at_put_'),
1147
1158
  smalltalk.method({
1148
1159
  selector: unescape('at%3Aput%3A'),
1149
- fn: function (anIndex, anObject){
1160
+ fn: function (anIndex, anObject) {
1150
1161
  var self=this;
1151
1162
  smalltalk.send(self, "_errorReadOnly", []);
1152
1163
  return self;}
@@ -1157,7 +1168,7 @@ smalltalk.addMethod(
1157
1168
  unescape('_add_'),
1158
1169
  smalltalk.method({
1159
1170
  selector: unescape('add%3A'),
1160
- fn: function (anObject){
1171
+ fn: function (anObject) {
1161
1172
  var self=this;
1162
1173
  smalltalk.send(self, "_errorReadOnly", []);
1163
1174
  return self;}
@@ -1168,7 +1179,7 @@ smalltalk.addMethod(
1168
1179
  unescape('__comma'),
1169
1180
  smalltalk.method({
1170
1181
  selector: unescape('%2C'),
1171
- fn: function (aString){
1182
+ fn: function (aString) {
1172
1183
  var self=this;
1173
1184
  return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", [smalltalk.send(aString, "_asString", [])]);
1174
1185
  return self;}
@@ -1179,7 +1190,7 @@ smalltalk.addMethod(
1179
1190
  unescape('_asString'),
1180
1191
  smalltalk.method({
1181
1192
  selector: unescape('asString'),
1182
- fn: function (){
1193
+ fn: function () {
1183
1194
  var self=this;
1184
1195
  return smalltalk.send(self, "_subclassResponsibility", []);
1185
1196
  return self;}
@@ -1190,7 +1201,7 @@ smalltalk.addMethod(
1190
1201
  unescape('_asNumber'),
1191
1202
  smalltalk.method({
1192
1203
  selector: unescape('asNumber'),
1193
- fn: function (){
1204
+ fn: function () {
1194
1205
  var self=this;
1195
1206
  return smalltalk.send(smalltalk.send(self, "_asString", []), "_asNumber", []);
1196
1207
  return self;}
@@ -1201,7 +1212,7 @@ smalltalk.addMethod(
1201
1212
  unescape('_errorReadOnly'),
1202
1213
  smalltalk.method({
1203
1214
  selector: unescape('errorReadOnly'),
1204
- fn: function (){
1215
+ fn: function () {
1205
1216
  var self=this;
1206
1217
  smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
1207
1218
  return self;}
@@ -1212,7 +1223,7 @@ smalltalk.addMethod(
1212
1223
  unescape('_printString'),
1213
1224
  smalltalk.method({
1214
1225
  selector: unescape('printString'),
1215
- fn: function (){
1226
+ fn: function () {
1216
1227
  var self=this;
1217
1228
  return smalltalk.send(smalltalk.send(self, "_asString", []), "_printString", []);
1218
1229
  return self;}
@@ -1223,7 +1234,7 @@ smalltalk.addMethod(
1223
1234
  unescape('_remove_'),
1224
1235
  smalltalk.method({
1225
1236
  selector: unescape('remove%3A'),
1226
- fn: function (anObject){
1237
+ fn: function (anObject) {
1227
1238
  var self=this;
1228
1239
  smalltalk.send(self, "_errorReadOnly", []);
1229
1240
  return self;}
@@ -1234,7 +1245,7 @@ smalltalk.addMethod(
1234
1245
  unescape('_asUppercase'),
1235
1246
  smalltalk.method({
1236
1247
  selector: unescape('asUppercase'),
1237
- fn: function (){
1248
+ fn: function () {
1238
1249
  var self=this;
1239
1250
  return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_asUppercase", [])]);
1240
1251
  return self;}
@@ -1245,7 +1256,7 @@ smalltalk.addMethod(
1245
1256
  unescape('_asSymbol'),
1246
1257
  smalltalk.method({
1247
1258
  selector: unescape('asSymbol'),
1248
- fn: function (){
1259
+ fn: function () {
1249
1260
  var self=this;
1250
1261
  return smalltalk.send(self, "_subclassResponsibility", []);
1251
1262
  return self;}
@@ -1256,7 +1267,7 @@ smalltalk.addMethod(
1256
1267
  unescape('_asLowercase'),
1257
1268
  smalltalk.method({
1258
1269
  selector: unescape('asLowercase'),
1259
- fn: function (){
1270
+ fn: function () {
1260
1271
  var self=this;
1261
1272
  return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_asLowercase", [])]);
1262
1273
  return self;}
@@ -1268,7 +1279,7 @@ smalltalk.addMethod(
1268
1279
  unescape('_fromString_'),
1269
1280
  smalltalk.method({
1270
1281
  selector: unescape('fromString%3A'),
1271
- fn: function (aString){
1282
+ fn: function (aString) {
1272
1283
  var self=this;
1273
1284
  smalltalk.send(self, "_subclassResponsibility", []);
1274
1285
  return self;}
@@ -1281,7 +1292,7 @@ smalltalk.addMethod(
1281
1292
  unescape('__eq'),
1282
1293
  smalltalk.method({
1283
1294
  selector: unescape('%3D'),
1284
- fn: function (aString){
1295
+ fn: function (aString) {
1285
1296
  var self=this;
1286
1297
  try{((($receiver = smalltalk.send(smalltalk.send(aString, "_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}})})();})]));
1287
1298
  return String(self) === String(aString);
@@ -1294,7 +1305,7 @@ smalltalk.addMethod(
1294
1305
  unescape('_size'),
1295
1306
  smalltalk.method({
1296
1307
  selector: unescape('size'),
1297
- fn: function (){
1308
+ fn: function () {
1298
1309
  var self=this;
1299
1310
  return self.length;
1300
1311
  return self;}
@@ -1305,7 +1316,7 @@ smalltalk.addMethod(
1305
1316
  unescape('_at_ifAbsent_'),
1306
1317
  smalltalk.method({
1307
1318
  selector: unescape('at%3AifAbsent%3A'),
1308
- fn: function (anIndex, aBlock){
1319
+ fn: function (anIndex, aBlock) {
1309
1320
  var self=this;
1310
1321
  return self[anIndex - 1] || aBlock();
1311
1322
  return self;}
@@ -1316,7 +1327,7 @@ smalltalk.addMethod(
1316
1327
  unescape('_escaped'),
1317
1328
  smalltalk.method({
1318
1329
  selector: unescape('escaped'),
1319
- fn: function (){
1330
+ fn: function () {
1320
1331
  var self=this;
1321
1332
  return escape(self);
1322
1333
  return self;}
@@ -1327,7 +1338,7 @@ smalltalk.addMethod(
1327
1338
  unescape('_unescaped'),
1328
1339
  smalltalk.method({
1329
1340
  selector: unescape('unescaped'),
1330
- fn: function (){
1341
+ fn: function () {
1331
1342
  var self=this;
1332
1343
  return unescape(self);
1333
1344
  return self;}
@@ -1338,7 +1349,7 @@ smalltalk.addMethod(
1338
1349
  unescape('__comma'),
1339
1350
  smalltalk.method({
1340
1351
  selector: unescape('%2C'),
1341
- fn: function (aString){
1352
+ fn: function (aString) {
1342
1353
  var self=this;
1343
1354
  return self + aString;
1344
1355
  return self;}
@@ -1349,7 +1360,7 @@ smalltalk.addMethod(
1349
1360
  unescape('_copyFrom_to_'),
1350
1361
  smalltalk.method({
1351
1362
  selector: unescape('copyFrom%3Ato%3A'),
1352
- fn: function (anIndex, anotherIndex){
1363
+ fn: function (anIndex, anotherIndex) {
1353
1364
  var self=this;
1354
1365
  return self.substring(anIndex - 1, anotherIndex);
1355
1366
  return self;}
@@ -1360,7 +1371,7 @@ smalltalk.addMethod(
1360
1371
  unescape('_shallowCopy'),
1361
1372
  smalltalk.method({
1362
1373
  selector: unescape('shallowCopy'),
1363
- fn: function (){
1374
+ fn: function () {
1364
1375
  var self=this;
1365
1376
  return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
1366
1377
  return self;}
@@ -1371,7 +1382,7 @@ smalltalk.addMethod(
1371
1382
  unescape('_deepCopy'),
1372
1383
  smalltalk.method({
1373
1384
  selector: unescape('deepCopy'),
1374
- fn: function (){
1385
+ fn: function () {
1375
1386
  var self=this;
1376
1387
  return smalltalk.send(self, "_shallowCopy", []);
1377
1388
  return self;}
@@ -1382,7 +1393,7 @@ smalltalk.addMethod(
1382
1393
  unescape('_asSelector'),
1383
1394
  smalltalk.method({
1384
1395
  selector: unescape('asSelector'),
1385
- fn: function (){
1396
+ fn: function () {
1386
1397
  var self=this;
1387
1398
  var selector=nil;
1388
1399
  (selector=smalltalk.send("_", "__comma", [self]));
@@ -1405,7 +1416,7 @@ smalltalk.addMethod(
1405
1416
  unescape('_asJavascript'),
1406
1417
  smalltalk.method({
1407
1418
  selector: unescape('asJavascript'),
1408
- fn: function (){
1419
+ fn: function () {
1409
1420
  var self=this;
1410
1421
 
1411
1422
  if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
@@ -1421,7 +1432,7 @@ smalltalk.addMethod(
1421
1432
  unescape('_replace_with_'),
1422
1433
  smalltalk.method({
1423
1434
  selector: unescape('replace%3Awith%3A'),
1424
- fn: function (aString, anotherString){
1435
+ fn: function (aString, anotherString) {
1425
1436
  var self=this;
1426
1437
  return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
1427
1438
  return self;}
@@ -1432,7 +1443,7 @@ smalltalk.addMethod(
1432
1443
  unescape('_replaceRegexp_with_'),
1433
1444
  smalltalk.method({
1434
1445
  selector: unescape('replaceRegexp%3Awith%3A'),
1435
- fn: function (aRegexp, aString){
1446
+ fn: function (aRegexp, aString) {
1436
1447
  var self=this;
1437
1448
  return self.replace(aRegexp, aString);
1438
1449
  return self;}
@@ -1443,7 +1454,7 @@ smalltalk.addMethod(
1443
1454
  unescape('_tokenize_'),
1444
1455
  smalltalk.method({
1445
1456
  selector: unescape('tokenize%3A'),
1446
- fn: function (aString){
1457
+ fn: function (aString) {
1447
1458
  var self=this;
1448
1459
  return self.split(aString);
1449
1460
  return self;}
@@ -1454,7 +1465,7 @@ smalltalk.addMethod(
1454
1465
  unescape('_match_'),
1455
1466
  smalltalk.method({
1456
1467
  selector: unescape('match%3A'),
1457
- fn: function (aRegexp){
1468
+ fn: function (aRegexp) {
1458
1469
  var self=this;
1459
1470
  return self.search(aRegexp) != -1;
1460
1471
  return self;}
@@ -1465,7 +1476,7 @@ smalltalk.addMethod(
1465
1476
  unescape('_asString'),
1466
1477
  smalltalk.method({
1467
1478
  selector: unescape('asString'),
1468
- fn: function (){
1479
+ fn: function () {
1469
1480
  var self=this;
1470
1481
  return self;
1471
1482
  return self;}
@@ -1476,7 +1487,7 @@ smalltalk.addMethod(
1476
1487
  unescape('_asNumber'),
1477
1488
  smalltalk.method({
1478
1489
  selector: unescape('asNumber'),
1479
- fn: function (){
1490
+ fn: function () {
1480
1491
  var self=this;
1481
1492
  return Number(self);
1482
1493
  return self;}
@@ -1487,7 +1498,7 @@ smalltalk.addMethod(
1487
1498
  unescape('_printString'),
1488
1499
  smalltalk.method({
1489
1500
  selector: unescape('printString'),
1490
- fn: function (){
1501
+ fn: function () {
1491
1502
  var self=this;
1492
1503
  return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
1493
1504
  return self;}
@@ -1498,7 +1509,7 @@ smalltalk.addMethod(
1498
1509
  unescape('_printNl'),
1499
1510
  smalltalk.method({
1500
1511
  selector: unescape('printNl'),
1501
- fn: function (){
1512
+ fn: function () {
1502
1513
  var self=this;
1503
1514
  console.log(self);
1504
1515
  return self;}
@@ -1509,7 +1520,7 @@ smalltalk.addMethod(
1509
1520
  unescape('_isString'),
1510
1521
  smalltalk.method({
1511
1522
  selector: unescape('isString'),
1512
- fn: function (){
1523
+ fn: function () {
1513
1524
  var self=this;
1514
1525
  return true;
1515
1526
  return self;}
@@ -1520,7 +1531,7 @@ smalltalk.addMethod(
1520
1531
  unescape('__gt'),
1521
1532
  smalltalk.method({
1522
1533
  selector: unescape('%3E'),
1523
- fn: function (aString){
1534
+ fn: function (aString) {
1524
1535
  var self=this;
1525
1536
  return String(self) > aString._asString();
1526
1537
  return self;}
@@ -1531,7 +1542,7 @@ smalltalk.addMethod(
1531
1542
  unescape('__lt'),
1532
1543
  smalltalk.method({
1533
1544
  selector: unescape('%3C'),
1534
- fn: function (aString){
1545
+ fn: function (aString) {
1535
1546
  var self=this;
1536
1547
  return String(self) < aString._asString();
1537
1548
  return self;}
@@ -1542,7 +1553,7 @@ smalltalk.addMethod(
1542
1553
  unescape('__gt_eq'),
1543
1554
  smalltalk.method({
1544
1555
  selector: unescape('%3E%3D'),
1545
- fn: function (aString){
1556
+ fn: function (aString) {
1546
1557
  var self=this;
1547
1558
  return String(self) >= aString._asString();
1548
1559
  return self;}
@@ -1553,7 +1564,7 @@ smalltalk.addMethod(
1553
1564
  unescape('__lt_eq'),
1554
1565
  smalltalk.method({
1555
1566
  selector: unescape('%3C%3D'),
1556
- fn: function (aString){
1567
+ fn: function (aString) {
1557
1568
  var self=this;
1558
1569
  return String(self) <= aString._asString();
1559
1570
  return self;}
@@ -1564,7 +1575,7 @@ smalltalk.addMethod(
1564
1575
  unescape('_trimLeft_'),
1565
1576
  smalltalk.method({
1566
1577
  selector: unescape('trimLeft%3A'),
1567
- fn: function (separators){
1578
+ fn: function (separators) {
1568
1579
  var self=this;
1569
1580
  return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
1570
1581
  return self;}
@@ -1575,7 +1586,7 @@ smalltalk.addMethod(
1575
1586
  unescape('_trimRight_'),
1576
1587
  smalltalk.method({
1577
1588
  selector: unescape('trimRight%3A'),
1578
- fn: function (separators){
1589
+ fn: function (separators) {
1579
1590
  var self=this;
1580
1591
  return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
1581
1592
  return self;}
@@ -1586,7 +1597,7 @@ smalltalk.addMethod(
1586
1597
  unescape('_trimLeft'),
1587
1598
  smalltalk.method({
1588
1599
  selector: unescape('trimLeft'),
1589
- fn: function (){
1600
+ fn: function () {
1590
1601
  var self=this;
1591
1602
  return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
1592
1603
  return self;}
@@ -1597,7 +1608,7 @@ smalltalk.addMethod(
1597
1608
  unescape('_trimRight'),
1598
1609
  smalltalk.method({
1599
1610
  selector: unescape('trimRight'),
1600
- fn: function (){
1611
+ fn: function () {
1601
1612
  var self=this;
1602
1613
  return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
1603
1614
  return self;}
@@ -1608,7 +1619,7 @@ smalltalk.addMethod(
1608
1619
  unescape('_trimBoth'),
1609
1620
  smalltalk.method({
1610
1621
  selector: unescape('trimBoth'),
1611
- fn: function (){
1622
+ fn: function () {
1612
1623
  var self=this;
1613
1624
  return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
1614
1625
  return self;}
@@ -1619,7 +1630,7 @@ smalltalk.addMethod(
1619
1630
  unescape('_trimBoth_'),
1620
1631
  smalltalk.method({
1621
1632
  selector: unescape('trimBoth%3A'),
1622
- fn: function (separators){
1633
+ fn: function (separators) {
1623
1634
  var self=this;
1624
1635
  return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
1625
1636
  return self;}
@@ -1630,7 +1641,7 @@ smalltalk.addMethod(
1630
1641
  unescape('_asLowercase'),
1631
1642
  smalltalk.method({
1632
1643
  selector: unescape('asLowercase'),
1633
- fn: function (){
1644
+ fn: function () {
1634
1645
  var self=this;
1635
1646
  return self.toLowerCase();
1636
1647
  return self;}
@@ -1641,7 +1652,7 @@ smalltalk.addMethod(
1641
1652
  unescape('_asUppercase'),
1642
1653
  smalltalk.method({
1643
1654
  selector: unescape('asUppercase'),
1644
- fn: function (){
1655
+ fn: function () {
1645
1656
  var self=this;
1646
1657
  return self.toUpperCase();
1647
1658
  return self;}
@@ -1652,7 +1663,7 @@ smalltalk.addMethod(
1652
1663
  unescape('_join_'),
1653
1664
  smalltalk.method({
1654
1665
  selector: unescape('join%3A'),
1655
- fn: function (aCollection){
1666
+ fn: function (aCollection) {
1656
1667
  var self=this;
1657
1668
  return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){return smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(each, "_asString", [])]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [self]);})]);})]);
1658
1669
  return self;}
@@ -1663,7 +1674,7 @@ smalltalk.addMethod(
1663
1674
  unescape('_includesSubString_'),
1664
1675
  smalltalk.method({
1665
1676
  selector: unescape('includesSubString%3A'),
1666
- fn: function (subString){
1677
+ fn: function (subString) {
1667
1678
  var self=this;
1668
1679
  return self.indexOf(subString) != -1 ;
1669
1680
  return self;}
@@ -1674,7 +1685,7 @@ smalltalk.addMethod(
1674
1685
  unescape('_asciiValue'),
1675
1686
  smalltalk.method({
1676
1687
  selector: unescape('asciiValue'),
1677
- fn: function (){
1688
+ fn: function () {
1678
1689
  var self=this;
1679
1690
  return self.charCodeAt(0);;
1680
1691
  return self;}
@@ -1685,7 +1696,7 @@ smalltalk.addMethod(
1685
1696
  unescape('_lineIndicesDo_'),
1686
1697
  smalltalk.method({
1687
1698
  selector: unescape('lineIndicesDo%3A'),
1688
- fn: function (aBlock){
1699
+ fn: function (aBlock) {
1689
1700
  var self=this;
1690
1701
  try{var cr=nil;
1691
1702
  var lf=nil;
@@ -1709,7 +1720,7 @@ smalltalk.addMethod(
1709
1720
  unescape('_linesDo_'),
1710
1721
  smalltalk.method({
1711
1722
  selector: unescape('linesDo%3A'),
1712
- fn: function (aBlock){
1723
+ fn: function (aBlock) {
1713
1724
  var self=this;
1714
1725
  smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
1715
1726
  return self;}
@@ -1720,7 +1731,7 @@ smalltalk.addMethod(
1720
1731
  unescape('_lines'),
1721
1732
  smalltalk.method({
1722
1733
  selector: unescape('lines'),
1723
- fn: function (){
1734
+ fn: function () {
1724
1735
  var self=this;
1725
1736
  var lines=nil;
1726
1737
  (lines=smalltalk.send((smalltalk.Array || Array), "_new", []));
@@ -1734,7 +1745,7 @@ smalltalk.addMethod(
1734
1745
  unescape('_lineNumber_'),
1735
1746
  smalltalk.method({
1736
1747
  selector: unescape('lineNumber%3A'),
1737
- fn: function (anIndex){
1748
+ fn: function (anIndex) {
1738
1749
  var self=this;
1739
1750
  try{var lineCount=nil;
1740
1751
  (lineCount=(0));
@@ -1749,7 +1760,7 @@ smalltalk.addMethod(
1749
1760
  unescape('_reversed'),
1750
1761
  smalltalk.method({
1751
1762
  selector: unescape('reversed'),
1752
- fn: function (){
1763
+ fn: function () {
1753
1764
  var self=this;
1754
1765
  return self.split("").reverse().join("");
1755
1766
  return self;}
@@ -1760,7 +1771,7 @@ smalltalk.addMethod(
1760
1771
  unescape('_asJavaScriptSelector'),
1761
1772
  smalltalk.method({
1762
1773
  selector: unescape('asJavaScriptSelector'),
1763
- fn: function (){
1774
+ fn: function () {
1764
1775
  var self=this;
1765
1776
  return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
1766
1777
  return self;}
@@ -1768,23 +1779,23 @@ return self;}
1768
1779
  smalltalk.String);
1769
1780
 
1770
1781
  smalltalk.addMethod(
1771
- unescape('_asJSONString'),
1782
+ unescape('_asSymbol'),
1772
1783
  smalltalk.method({
1773
- selector: unescape('asJSONString'),
1774
- fn: function (){
1784
+ selector: unescape('asSymbol'),
1785
+ fn: function () {
1775
1786
  var self=this;
1776
- return self;
1787
+ return smalltalk.send((smalltalk.Symbol || Symbol), "_lookup_", [self]);
1777
1788
  return self;}
1778
1789
  }),
1779
1790
  smalltalk.String);
1780
1791
 
1781
1792
  smalltalk.addMethod(
1782
- unescape('_asSymbol'),
1793
+ unescape('_asJSON'),
1783
1794
  smalltalk.method({
1784
- selector: unescape('asSymbol'),
1795
+ selector: unescape('asJSON'),
1785
1796
  fn: function (){
1786
1797
  var self=this;
1787
- return smalltalk.send((smalltalk.Symbol || Symbol), "_lookup_", [self]);
1798
+ return self;
1788
1799
  return self;}
1789
1800
  }),
1790
1801
  smalltalk.String);
@@ -1794,7 +1805,7 @@ smalltalk.addMethod(
1794
1805
  unescape('_streamClass'),
1795
1806
  smalltalk.method({
1796
1807
  selector: unescape('streamClass'),
1797
- fn: function (){
1808
+ fn: function () {
1798
1809
  var self=this;
1799
1810
  return (smalltalk.StringStream || StringStream);
1800
1811
  return self;}
@@ -1805,7 +1816,7 @@ smalltalk.addMethod(
1805
1816
  unescape('_fromString_'),
1806
1817
  smalltalk.method({
1807
1818
  selector: unescape('fromString%3A'),
1808
- fn: function (aString){
1819
+ fn: function (aString) {
1809
1820
  var self=this;
1810
1821
  return new self.fn(aString);
1811
1822
  return self;}
@@ -1816,7 +1827,7 @@ smalltalk.addMethod(
1816
1827
  unescape('_cr'),
1817
1828
  smalltalk.method({
1818
1829
  selector: unescape('cr'),
1819
- fn: function (){
1830
+ fn: function () {
1820
1831
  var self=this;
1821
1832
  return '\r';
1822
1833
  return self;}
@@ -1827,7 +1838,7 @@ smalltalk.addMethod(
1827
1838
  unescape('_lf'),
1828
1839
  smalltalk.method({
1829
1840
  selector: unescape('lf'),
1830
- fn: function (){
1841
+ fn: function () {
1831
1842
  var self=this;
1832
1843
  return '\n';
1833
1844
  return self;}
@@ -1838,7 +1849,7 @@ smalltalk.addMethod(
1838
1849
  unescape('_space'),
1839
1850
  smalltalk.method({
1840
1851
  selector: unescape('space'),
1841
- fn: function (){
1852
+ fn: function () {
1842
1853
  var self=this;
1843
1854
  return ' ';
1844
1855
  return self;}
@@ -1849,7 +1860,7 @@ smalltalk.addMethod(
1849
1860
  unescape('_tab'),
1850
1861
  smalltalk.method({
1851
1862
  selector: unescape('tab'),
1852
- fn: function (){
1863
+ fn: function () {
1853
1864
  var self=this;
1854
1865
  return '\t';
1855
1866
  return self;}
@@ -1860,7 +1871,7 @@ smalltalk.addMethod(
1860
1871
  unescape('_crlf'),
1861
1872
  smalltalk.method({
1862
1873
  selector: unescape('crlf'),
1863
- fn: function (){
1874
+ fn: function () {
1864
1875
  var self=this;
1865
1876
  return '\r\n';
1866
1877
  return self;}
@@ -1871,7 +1882,7 @@ smalltalk.addMethod(
1871
1882
  unescape('_streamContents_'),
1872
1883
  smalltalk.method({
1873
1884
  selector: unescape('streamContents%3A'),
1874
- fn: function (blockWithArg){
1885
+ fn: function (blockWithArg) {
1875
1886
  var self=this;
1876
1887
  var stream=nil;
1877
1888
  (stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]));
@@ -1885,7 +1896,7 @@ smalltalk.addMethod(
1885
1896
  unescape('_value_'),
1886
1897
  smalltalk.method({
1887
1898
  selector: unescape('value%3A'),
1888
- fn: function (aUTFCharCode){
1899
+ fn: function (aUTFCharCode) {
1889
1900
  var self=this;
1890
1901
  return String.fromCharCode(aUTFCharCode);;
1891
1902
  return self;}
@@ -1898,7 +1909,7 @@ smalltalk.addMethod(
1898
1909
  unescape('_at_ifAbsent_'),
1899
1910
  smalltalk.method({
1900
1911
  selector: unescape('at%3AifAbsent%3A'),
1901
- fn: function (anIndex, aBlock){
1912
+ fn: function (anIndex, aBlock) {
1902
1913
  var self=this;
1903
1914
  return smalltalk.send(smalltalk.send(self, "_asString", []), "_at_ifAbsent_", [anIndex, aBlock]);
1904
1915
  return self;}
@@ -1909,7 +1920,7 @@ smalltalk.addMethod(
1909
1920
  unescape('_asString'),
1910
1921
  smalltalk.method({
1911
1922
  selector: unescape('asString'),
1912
- fn: function (){
1923
+ fn: function () {
1913
1924
  var self=this;
1914
1925
  return self.value;
1915
1926
  return self;}
@@ -1920,7 +1931,7 @@ smalltalk.addMethod(
1920
1931
  unescape('_printString'),
1921
1932
  smalltalk.method({
1922
1933
  selector: unescape('printString'),
1923
- fn: function (){
1934
+ fn: function () {
1924
1935
  var self=this;
1925
1936
  return smalltalk.send(unescape("%23"), "__comma", [smalltalk.send(self, "_asString", [])]);
1926
1937
  return self;}
@@ -1931,7 +1942,7 @@ smalltalk.addMethod(
1931
1942
  unescape('_size'),
1932
1943
  smalltalk.method({
1933
1944
  selector: unescape('size'),
1934
- fn: function (){
1945
+ fn: function () {
1935
1946
  var self=this;
1936
1947
  return smalltalk.send(smalltalk.send(self, "_asString", []), "_size", []);
1937
1948
  return self;}
@@ -1942,7 +1953,7 @@ smalltalk.addMethod(
1942
1953
  unescape('_asSymbol'),
1943
1954
  smalltalk.method({
1944
1955
  selector: unescape('asSymbol'),
1945
- fn: function (){
1956
+ fn: function () {
1946
1957
  var self=this;
1947
1958
  return self;
1948
1959
  return self;}
@@ -1953,7 +1964,7 @@ smalltalk.addMethod(
1953
1964
  unescape('_copyFrom_to_'),
1954
1965
  smalltalk.method({
1955
1966
  selector: unescape('copyFrom%3Ato%3A'),
1956
- fn: function (anIndex, anotherIndex){
1967
+ fn: function (anIndex, anotherIndex) {
1957
1968
  var self=this;
1958
1969
  return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_copyFrom_to_", [anIndex, anotherIndex])]);
1959
1970
  return self;}
@@ -1964,7 +1975,7 @@ smalltalk.addMethod(
1964
1975
  unescape('_deepCopy'),
1965
1976
  smalltalk.method({
1966
1977
  selector: unescape('deepCopy'),
1967
- fn: function (){
1978
+ fn: function () {
1968
1979
  var self=this;
1969
1980
  return self;
1970
1981
  return self;}
@@ -1975,7 +1986,7 @@ smalltalk.addMethod(
1975
1986
  unescape('__lt'),
1976
1987
  smalltalk.method({
1977
1988
  selector: unescape('%3C'),
1978
- fn: function (aSymbol){
1989
+ fn: function (aSymbol) {
1979
1990
  var self=this;
1980
1991
  return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(aSymbol, "_asString", [])]));
1981
1992
  return self;}
@@ -1986,7 +1997,7 @@ smalltalk.addMethod(
1986
1997
  unescape('__lt_eq'),
1987
1998
  smalltalk.method({
1988
1999
  selector: unescape('%3C%3D'),
1989
- fn: function (aSymbol){
2000
+ fn: function (aSymbol) {
1990
2001
  var self=this;
1991
2002
  return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver <=smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__lt_eq", [smalltalk.send(aSymbol, "_asString", [])]));
1992
2003
  return self;}
@@ -1997,7 +2008,7 @@ smalltalk.addMethod(
1997
2008
  unescape('__gt_eq'),
1998
2009
  smalltalk.method({
1999
2010
  selector: unescape('%3E%3D'),
2000
- fn: function (aSymbol){
2011
+ fn: function (aSymbol) {
2001
2012
  var self=this;
2002
2013
  return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver >=smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__gt_eq", [smalltalk.send(aSymbol, "_asString", [])]));
2003
2014
  return self;}
@@ -2008,7 +2019,7 @@ smalltalk.addMethod(
2008
2019
  unescape('__eq'),
2009
2020
  smalltalk.method({
2010
2021
  selector: unescape('%3D'),
2011
- fn: function (aSymbol){
2022
+ fn: function (aSymbol) {
2012
2023
  var self=this;
2013
2024
  try{((($receiver = smalltalk.send(smalltalk.send(aSymbol, "_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}})})();})]));
2014
2025
  (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_asString", []), "__eq", [smalltalk.send(aSymbol, "_asString", [])])}})})();
@@ -2021,7 +2032,7 @@ smalltalk.addMethod(
2021
2032
  unescape('_isSymbol'),
2022
2033
  smalltalk.method({
2023
2034
  selector: unescape('isSymbol'),
2024
- fn: function (){
2035
+ fn: function () {
2025
2036
  var self=this;
2026
2037
  return true;
2027
2038
  return self;}
@@ -2032,7 +2043,7 @@ smalltalk.addMethod(
2032
2043
  unescape('_asJavascript'),
2033
2044
  smalltalk.method({
2034
2045
  selector: unescape('asJavascript'),
2035
- fn: function (){
2046
+ fn: function () {
2036
2047
  var self=this;
2037
2048
  return smalltalk.send(smalltalk.send(unescape("smalltalk.symbolFor%28%22"), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%22%29")]);
2038
2049
  return self;}
@@ -2043,7 +2054,7 @@ smalltalk.addMethod(
2043
2054
  unescape('__gt'),
2044
2055
  smalltalk.method({
2045
2056
  selector: unescape('%3E'),
2046
- fn: function (aSymbol){
2057
+ fn: function (aSymbol) {
2047
2058
  var self=this;
2048
2059
  return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver >smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__gt", [smalltalk.send(aSymbol, "_asString", [])]));
2049
2060
  return self;}
@@ -2054,7 +2065,7 @@ smalltalk.addMethod(
2054
2065
  unescape('_shallowCopy'),
2055
2066
  smalltalk.method({
2056
2067
  selector: unescape('shallowCopy'),
2057
- fn: function (){
2068
+ fn: function () {
2058
2069
  var self=this;
2059
2070
  return self;
2060
2071
  return self;}
@@ -2065,19 +2076,30 @@ smalltalk.addMethod(
2065
2076
  unescape('_asSelector'),
2066
2077
  smalltalk.method({
2067
2078
  selector: unescape('asSelector'),
2068
- fn: function (){
2079
+ fn: function () {
2069
2080
  var self=this;
2070
2081
  return smalltalk.send(smalltalk.send(self, "_asString", []), "_asSelector", []);
2071
2082
  return self;}
2072
2083
  }),
2073
2084
  smalltalk.Symbol);
2074
2085
 
2086
+ smalltalk.addMethod(
2087
+ unescape('_asJSON'),
2088
+ smalltalk.method({
2089
+ selector: unescape('asJSON'),
2090
+ fn: function (){
2091
+ var self=this;
2092
+ return smalltalk.send(smalltalk.send(self, "_asString", []), "_asJSON", []);
2093
+ return self;}
2094
+ }),
2095
+ smalltalk.Symbol);
2096
+
2075
2097
 
2076
2098
  smalltalk.addMethod(
2077
2099
  unescape('_lookup_'),
2078
2100
  smalltalk.method({
2079
2101
  selector: unescape('lookup%3A'),
2080
- fn: function (aString){
2102
+ fn: function (aString) {
2081
2103
  var self=this;
2082
2104
  return smalltalk.symbolFor(aString);;
2083
2105
  return self;}
@@ -2088,7 +2110,7 @@ smalltalk.addMethod(
2088
2110
  unescape('_basicNew'),
2089
2111
  smalltalk.method({
2090
2112
  selector: unescape('basicNew'),
2091
- fn: function (){
2113
+ fn: function () {
2092
2114
  var self=this;
2093
2115
  smalltalk.send(self, "_shouldNotImplement", []);
2094
2116
  return self;}
@@ -2099,7 +2121,7 @@ smalltalk.addMethod(
2099
2121
  unescape('_fromString_'),
2100
2122
  smalltalk.method({
2101
2123
  selector: unescape('fromString%3A'),
2102
- fn: function (aString){
2124
+ fn: function (aString) {
2103
2125
  var self=this;
2104
2126
  return smalltalk.send(self, "_lookup_", [aString]);
2105
2127
  return self;}
@@ -2112,7 +2134,7 @@ smalltalk.addMethod(
2112
2134
  unescape('_size'),
2113
2135
  smalltalk.method({
2114
2136
  selector: unescape('size'),
2115
- fn: function (){
2137
+ fn: function () {
2116
2138
  var self=this;
2117
2139
  return self.length;
2118
2140
  return self;}
@@ -2123,7 +2145,7 @@ smalltalk.addMethod(
2123
2145
  unescape('_at_put_'),
2124
2146
  smalltalk.method({
2125
2147
  selector: unescape('at%3Aput%3A'),
2126
- fn: function (anIndex, anObject){
2148
+ fn: function (anIndex, anObject) {
2127
2149
  var self=this;
2128
2150
  return self[anIndex - 1] = anObject;
2129
2151
  return self;}
@@ -2134,7 +2156,7 @@ smalltalk.addMethod(
2134
2156
  unescape('_at_ifAbsent_'),
2135
2157
  smalltalk.method({
2136
2158
  selector: unescape('at%3AifAbsent%3A'),
2137
- fn: function (anIndex, aBlock){
2159
+ fn: function (anIndex, aBlock) {
2138
2160
  var self=this;
2139
2161
 
2140
2162
  var value = self[anIndex - 1];
@@ -2152,7 +2174,7 @@ smalltalk.addMethod(
2152
2174
  unescape('_add_'),
2153
2175
  smalltalk.method({
2154
2176
  selector: unescape('add%3A'),
2155
- fn: function (anObject){
2177
+ fn: function (anObject) {
2156
2178
  var self=this;
2157
2179
  self.push(anObject); return anObject;;
2158
2180
  return self;}
@@ -2163,7 +2185,7 @@ smalltalk.addMethod(
2163
2185
  unescape('_join_'),
2164
2186
  smalltalk.method({
2165
2187
  selector: unescape('join%3A'),
2166
- fn: function (aString){
2188
+ fn: function (aString) {
2167
2189
  var self=this;
2168
2190
  return self.join(aString);
2169
2191
  return self;}
@@ -2174,7 +2196,7 @@ smalltalk.addMethod(
2174
2196
  unescape('_asJavascript'),
2175
2197
  smalltalk.method({
2176
2198
  selector: unescape('asJavascript'),
2177
- fn: function (){
2199
+ fn: function () {
2178
2200
  var self=this;
2179
2201
  return smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [smalltalk.send(smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJavascript", []);})]), "_join_", [unescape("%2C%20")])]), "__comma", [unescape("%5D")]);
2180
2202
  return self;}
@@ -2185,7 +2207,7 @@ smalltalk.addMethod(
2185
2207
  unescape('_sort'),
2186
2208
  smalltalk.method({
2187
2209
  selector: unescape('sort'),
2188
- fn: function (){
2210
+ fn: function () {
2189
2211
  var self=this;
2190
2212
  return smalltalk.send(self, "_basicPerform_", ["sort"]);
2191
2213
  return self;}
@@ -2196,7 +2218,7 @@ smalltalk.addMethod(
2196
2218
  unescape('_sort_'),
2197
2219
  smalltalk.method({
2198
2220
  selector: unescape('sort%3A'),
2199
- fn: function (aBlock){
2221
+ fn: function (aBlock) {
2200
2222
  var self=this;
2201
2223
 
2202
2224
  return self.sort(function(a, b) {
@@ -2211,7 +2233,7 @@ smalltalk.addMethod(
2211
2233
  unescape('_remove_'),
2212
2234
  smalltalk.method({
2213
2235
  selector: unescape('remove%3A'),
2214
- fn: function (anObject){
2236
+ fn: function (anObject) {
2215
2237
  var self=this;
2216
2238
 
2217
2239
  for(var i=0;i<self.length;i++) {
@@ -2229,7 +2251,7 @@ smalltalk.addMethod(
2229
2251
  unescape('_sorted'),
2230
2252
  smalltalk.method({
2231
2253
  selector: unescape('sorted'),
2232
- fn: function (){
2254
+ fn: function () {
2233
2255
  var self=this;
2234
2256
  return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
2235
2257
  return self;}
@@ -2240,7 +2262,7 @@ smalltalk.addMethod(
2240
2262
  unescape('_sorted_'),
2241
2263
  smalltalk.method({
2242
2264
  selector: unescape('sorted%3A'),
2243
- fn: function (aBlock){
2265
+ fn: function (aBlock) {
2244
2266
  var self=this;
2245
2267
  return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
2246
2268
  return self;}
@@ -2251,7 +2273,7 @@ smalltalk.addMethod(
2251
2273
  unescape('_removeFrom_to_'),
2252
2274
  smalltalk.method({
2253
2275
  selector: unescape('removeFrom%3Ato%3A'),
2254
- fn: function (aNumber, anotherNumber){
2276
+ fn: function (aNumber, anotherNumber) {
2255
2277
  var self=this;
2256
2278
  self.splice(aNumber - 1,anotherNumber - 1);
2257
2279
  return self;}
@@ -2262,7 +2284,7 @@ smalltalk.addMethod(
2262
2284
  unescape('_reversed'),
2263
2285
  smalltalk.method({
2264
2286
  selector: unescape('reversed'),
2265
- fn: function (){
2287
+ fn: function () {
2266
2288
  var self=this;
2267
2289
  return self._copy().reverse();
2268
2290
  return self;}
@@ -2274,7 +2296,7 @@ smalltalk.addMethod(
2274
2296
  unescape('_new_'),
2275
2297
  smalltalk.method({
2276
2298
  selector: unescape('new%3A'),
2277
- fn: function (anInteger){
2299
+ fn: function (anInteger) {
2278
2300
  var self=this;
2279
2301
  return new Array(anInteger);
2280
2302
  return self;}
@@ -2285,7 +2307,7 @@ smalltalk.addMethod(
2285
2307
  unescape('_with_'),
2286
2308
  smalltalk.method({
2287
2309
  selector: unescape('with%3A'),
2288
- fn: function (anObject){
2310
+ fn: function (anObject) {
2289
2311
  var self=this;
2290
2312
  return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(1)]));
2291
2313
  return self;}
@@ -2296,7 +2318,7 @@ smalltalk.addMethod(
2296
2318
  unescape('_with_with_'),
2297
2319
  smalltalk.method({
2298
2320
  selector: unescape('with%3Awith%3A'),
2299
- fn: function (anObject, anObject2){
2321
+ fn: function (anObject, anObject2) {
2300
2322
  var self=this;
2301
2323
  return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);smalltalk.send($rec, "_at_put_", [(2), anObject2]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(2)]));
2302
2324
  return self;}
@@ -2307,7 +2329,7 @@ smalltalk.addMethod(
2307
2329
  unescape('_with_with_with_'),
2308
2330
  smalltalk.method({
2309
2331
  selector: unescape('with%3Awith%3Awith%3A'),
2310
- fn: function (anObject, anObject2, anObject3){
2332
+ fn: function (anObject, anObject2, anObject3) {
2311
2333
  var self=this;
2312
2334
  return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);smalltalk.send($rec, "_at_put_", [(2), anObject2]);smalltalk.send($rec, "_at_put_", [(3), anObject3]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(3)]));
2313
2335
  return self;}
@@ -2318,11 +2340,11 @@ smalltalk.addMethod(
2318
2340
  unescape('_withAll_'),
2319
2341
  smalltalk.method({
2320
2342
  selector: unescape('withAll%3A'),
2321
- fn: function (aCollection){
2343
+ fn: function (aCollection) {
2322
2344
  var self=this;
2323
2345
  var instance=nil;
2324
2346
  (instance=smalltalk.send(self, "_new_", [smalltalk.send(aCollection, "_size", [])]));
2325
- smalltalk.send(aCollection, "_withIndexDo_", [(function(index, each){return smalltalk.send(instance, "_at_put_", [index, each]);})]);
2347
+ smalltalk.send(aCollection, "_withIndexDo_", [(function(each, index){return smalltalk.send(instance, "_at_put_", [index, each]);})]);
2326
2348
  return instance;
2327
2349
  return self;}
2328
2350
  }),
@@ -2334,7 +2356,7 @@ smalltalk.addMethod(
2334
2356
  unescape('_size'),
2335
2357
  smalltalk.method({
2336
2358
  selector: unescape('size'),
2337
- fn: function (){
2359
+ fn: function () {
2338
2360
  var self=this;
2339
2361
  return self.length;
2340
2362
  return self;}
@@ -2345,7 +2367,7 @@ smalltalk.addMethod(
2345
2367
  unescape('_at_put_'),
2346
2368
  smalltalk.method({
2347
2369
  selector: unescape('at%3Aput%3A'),
2348
- fn: function (anIndex, anObject){
2370
+ fn: function (anIndex, anObject) {
2349
2371
  var self=this;
2350
2372
  return self[anIndex - 1] = anObject;
2351
2373
  return self;}
@@ -2356,7 +2378,7 @@ smalltalk.addMethod(
2356
2378
  unescape('_at_ifAbsent_'),
2357
2379
  smalltalk.method({
2358
2380
  selector: unescape('at%3AifAbsent%3A'),
2359
- fn: function (anIndex, aBlock){
2381
+ fn: function (anIndex, aBlock) {
2360
2382
  var self=this;
2361
2383
 
2362
2384
  var value = self[anIndex - 1];
@@ -2374,7 +2396,7 @@ smalltalk.addMethod(
2374
2396
  unescape('_add_'),
2375
2397
  smalltalk.method({
2376
2398
  selector: unescape('add%3A'),
2377
- fn: function (anObject){
2399
+ fn: function (anObject) {
2378
2400
  var self=this;
2379
2401
  self.push(anObject); return anObject;;
2380
2402
  return self;}
@@ -2385,7 +2407,7 @@ smalltalk.addMethod(
2385
2407
  unescape('_join_'),
2386
2408
  smalltalk.method({
2387
2409
  selector: unescape('join%3A'),
2388
- fn: function (aString){
2410
+ fn: function (aString) {
2389
2411
  var self=this;
2390
2412
  return self.join(aString);
2391
2413
  return self;}
@@ -2396,7 +2418,7 @@ smalltalk.addMethod(
2396
2418
  unescape('_asJavascript'),
2397
2419
  smalltalk.method({
2398
2420
  selector: unescape('asJavascript'),
2399
- fn: function (){
2421
+ fn: function () {
2400
2422
  var self=this;
2401
2423
  return smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [smalltalk.send(smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJavascript", []);})]), "_join_", [unescape("%2C%20")])]), "__comma", [unescape("%5D")]);
2402
2424
  return self;}
@@ -2407,7 +2429,7 @@ smalltalk.addMethod(
2407
2429
  unescape('_sort'),
2408
2430
  smalltalk.method({
2409
2431
  selector: unescape('sort'),
2410
- fn: function (){
2432
+ fn: function () {
2411
2433
  var self=this;
2412
2434
  return smalltalk.send(self, "_basicPerform_", ["sort"]);
2413
2435
  return self;}
@@ -2418,7 +2440,7 @@ smalltalk.addMethod(
2418
2440
  unescape('_sort_'),
2419
2441
  smalltalk.method({
2420
2442
  selector: unescape('sort%3A'),
2421
- fn: function (aBlock){
2443
+ fn: function (aBlock) {
2422
2444
  var self=this;
2423
2445
 
2424
2446
  return self.sort(function(a, b) {
@@ -2433,7 +2455,7 @@ smalltalk.addMethod(
2433
2455
  unescape('_remove_'),
2434
2456
  smalltalk.method({
2435
2457
  selector: unescape('remove%3A'),
2436
- fn: function (anObject){
2458
+ fn: function (anObject) {
2437
2459
  var self=this;
2438
2460
 
2439
2461
  for(var i=0;i<self.length;i++) {
@@ -2451,7 +2473,7 @@ smalltalk.addMethod(
2451
2473
  unescape('_sorted'),
2452
2474
  smalltalk.method({
2453
2475
  selector: unescape('sorted'),
2454
- fn: function (){
2476
+ fn: function () {
2455
2477
  var self=this;
2456
2478
  return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
2457
2479
  return self;}
@@ -2462,7 +2484,7 @@ smalltalk.addMethod(
2462
2484
  unescape('_sorted_'),
2463
2485
  smalltalk.method({
2464
2486
  selector: unescape('sorted%3A'),
2465
- fn: function (aBlock){
2487
+ fn: function (aBlock) {
2466
2488
  var self=this;
2467
2489
  return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
2468
2490
  return self;}
@@ -2473,7 +2495,7 @@ smalltalk.addMethod(
2473
2495
  unescape('_removeFrom_to_'),
2474
2496
  smalltalk.method({
2475
2497
  selector: unescape('removeFrom%3Ato%3A'),
2476
- fn: function (aNumber, anotherNumber){
2498
+ fn: function (aNumber, anotherNumber) {
2477
2499
  var self=this;
2478
2500
  self.splice(aNumber - 1,anotherNumber - 1);
2479
2501
  return self;}
@@ -2484,7 +2506,7 @@ smalltalk.addMethod(
2484
2506
  unescape('_reversed'),
2485
2507
  smalltalk.method({
2486
2508
  selector: unescape('reversed'),
2487
- fn: function (){
2509
+ fn: function () {
2488
2510
  var self=this;
2489
2511
  return self._copy().reverse();
2490
2512
  return self;}
@@ -2496,7 +2518,7 @@ smalltalk.addMethod(
2496
2518
  unescape('_new_'),
2497
2519
  smalltalk.method({
2498
2520
  selector: unescape('new%3A'),
2499
- fn: function (anInteger){
2521
+ fn: function (anInteger) {
2500
2522
  var self=this;
2501
2523
  return new Array(anInteger);
2502
2524
  return self;}
@@ -2507,7 +2529,7 @@ smalltalk.addMethod(
2507
2529
  unescape('_with_'),
2508
2530
  smalltalk.method({
2509
2531
  selector: unescape('with%3A'),
2510
- fn: function (anObject){
2532
+ fn: function (anObject) {
2511
2533
  var self=this;
2512
2534
  return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(1)]));
2513
2535
  return self;}
@@ -2518,7 +2540,7 @@ smalltalk.addMethod(
2518
2540
  unescape('_with_with_'),
2519
2541
  smalltalk.method({
2520
2542
  selector: unescape('with%3Awith%3A'),
2521
- fn: function (anObject, anObject2){
2543
+ fn: function (anObject, anObject2) {
2522
2544
  var self=this;
2523
2545
  return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);smalltalk.send($rec, "_at_put_", [(2), anObject2]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(2)]));
2524
2546
  return self;}
@@ -2529,7 +2551,7 @@ smalltalk.addMethod(
2529
2551
  unescape('_with_with_with_'),
2530
2552
  smalltalk.method({
2531
2553
  selector: unescape('with%3Awith%3Awith%3A'),
2532
- fn: function (anObject, anObject2, anObject3){
2554
+ fn: function (anObject, anObject2, anObject3) {
2533
2555
  var self=this;
2534
2556
  return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);smalltalk.send($rec, "_at_put_", [(2), anObject2]);smalltalk.send($rec, "_at_put_", [(3), anObject3]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(3)]));
2535
2557
  return self;}
@@ -2540,11 +2562,11 @@ smalltalk.addMethod(
2540
2562
  unescape('_withAll_'),
2541
2563
  smalltalk.method({
2542
2564
  selector: unescape('withAll%3A'),
2543
- fn: function (aCollection){
2565
+ fn: function (aCollection) {
2544
2566
  var self=this;
2545
2567
  var instance=nil;
2546
2568
  (instance=smalltalk.send(self, "_new_", [smalltalk.send(aCollection, "_size", [])]));
2547
- smalltalk.send(aCollection, "_withIndexDo_", [(function(index, each){return smalltalk.send(instance, "_at_put_", [index, each]);})]);
2569
+ smalltalk.send(aCollection, "_withIndexDo_", [(function(each, index){return smalltalk.send(instance, "_at_put_", [index, each]);})]);
2548
2570
  return instance;
2549
2571
  return self;}
2550
2572
  }),
@@ -2556,7 +2578,7 @@ smalltalk.addMethod(
2556
2578
  unescape('_next_'),
2557
2579
  smalltalk.method({
2558
2580
  selector: unescape('next%3A'),
2559
- fn: function (anInteger){
2581
+ fn: function (anInteger) {
2560
2582
  var self=this;
2561
2583
  var tempCollection=nil;
2562
2584
  (tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []));
@@ -2570,7 +2592,7 @@ smalltalk.addMethod(
2570
2592
  unescape('_nextPut_'),
2571
2593
  smalltalk.method({
2572
2594
  selector: unescape('nextPut%3A'),
2573
- fn: function (aString){
2595
+ fn: function (aString) {
2574
2596
  var self=this;
2575
2597
  smalltalk.send(self, "_nextPutAll_", [aString]);
2576
2598
  return self;}
@@ -2581,7 +2603,7 @@ smalltalk.addMethod(
2581
2603
  unescape('_nextPutAll_'),
2582
2604
  smalltalk.method({
2583
2605
  selector: unescape('nextPutAll%3A'),
2584
- fn: function (aString){
2606
+ fn: function (aString) {
2585
2607
  var self=this;
2586
2608
  smalltalk.send(self, "_setCollection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_position", [])]), "__comma", [aString]), "__comma", [smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [((($receiver = ((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])])), smalltalk.send(smalltalk.send(self, "_collection", []), "_size", [])])])]);
2587
2609
  smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])]))]);
@@ -2594,7 +2616,7 @@ smalltalk.addMethod(
2594
2616
  unescape('_cr'),
2595
2617
  smalltalk.method({
2596
2618
  selector: unescape('cr'),
2597
- fn: function (){
2619
+ fn: function () {
2598
2620
  var self=this;
2599
2621
  return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
2600
2622
  return self;}
@@ -2605,7 +2627,7 @@ smalltalk.addMethod(
2605
2627
  unescape('_crlf'),
2606
2628
  smalltalk.method({
2607
2629
  selector: unescape('crlf'),
2608
- fn: function (){
2630
+ fn: function () {
2609
2631
  var self=this;
2610
2632
  return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
2611
2633
  return self;}
@@ -2616,7 +2638,7 @@ smalltalk.addMethod(
2616
2638
  unescape('_lf'),
2617
2639
  smalltalk.method({
2618
2640
  selector: unescape('lf'),
2619
- fn: function (){
2641
+ fn: function () {
2620
2642
  var self=this;
2621
2643
  return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
2622
2644
  return self;}
@@ -2627,7 +2649,7 @@ smalltalk.addMethod(
2627
2649
  unescape('_space'),
2628
2650
  smalltalk.method({
2629
2651
  selector: unescape('space'),
2630
- fn: function (){
2652
+ fn: function () {
2631
2653
  var self=this;
2632
2654
  smalltalk.send(self, "_nextPut_", [" "]);
2633
2655
  return self;}
@@ -2641,7 +2663,7 @@ smalltalk.addMethod(
2641
2663
  unescape('_add_'),
2642
2664
  smalltalk.method({
2643
2665
  selector: unescape('add%3A'),
2644
- fn: function (anObject){
2666
+ fn: function (anObject) {
2645
2667
  var self=this;
2646
2668
 
2647
2669
  var found;
@@ -2661,7 +2683,7 @@ smalltalk.addMethod(
2661
2683
  unescape('_remove_'),
2662
2684
  smalltalk.method({
2663
2685
  selector: unescape('remove%3A'),
2664
- fn: function (anObject){
2686
+ fn: function (anObject) {
2665
2687
  var self=this;
2666
2688
  smalltalk.send(self['@elements'], "_remove_", [anObject]);
2667
2689
  return self;}
@@ -2672,7 +2694,7 @@ smalltalk.addMethod(
2672
2694
  unescape('_initialize'),
2673
2695
  smalltalk.method({
2674
2696
  selector: unescape('initialize'),
2675
- fn: function (){
2697
+ fn: function () {
2676
2698
  var self=this;
2677
2699
  smalltalk.send(self, "_initialize", [], smalltalk.Collection);
2678
2700
  (self['@elements']=[]);
@@ -2684,7 +2706,7 @@ smalltalk.addMethod(
2684
2706
  unescape('_size'),
2685
2707
  smalltalk.method({
2686
2708
  selector: unescape('size'),
2687
- fn: function (){
2709
+ fn: function () {
2688
2710
  var self=this;
2689
2711
  return smalltalk.send(self['@elements'], "_size", []);
2690
2712
  return self;}
@@ -2695,7 +2717,7 @@ smalltalk.addMethod(
2695
2717
  unescape('_asArray'),
2696
2718
  smalltalk.method({
2697
2719
  selector: unescape('asArray'),
2698
- fn: function (){
2720
+ fn: function () {
2699
2721
  var self=this;
2700
2722
  return smalltalk.send(self['@elements'], "_copy", []);
2701
2723
  return self;}
@@ -2706,7 +2728,7 @@ smalltalk.addMethod(
2706
2728
  unescape('_detect_ifNone_'),
2707
2729
  smalltalk.method({
2708
2730
  selector: unescape('detect%3AifNone%3A'),
2709
- fn: function (aBlock, anotherBlock){
2731
+ fn: function (aBlock, anotherBlock) {
2710
2732
  var self=this;
2711
2733
  return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
2712
2734
  return self;}
@@ -2717,7 +2739,7 @@ smalltalk.addMethod(
2717
2739
  unescape('_do_'),
2718
2740
  smalltalk.method({
2719
2741
  selector: unescape('do%3A'),
2720
- fn: function (aBlock){
2742
+ fn: function (aBlock) {
2721
2743
  var self=this;
2722
2744
  smalltalk.send(self['@elements'], "_do_", [aBlock]);
2723
2745
  return self;}
@@ -2728,7 +2750,7 @@ smalltalk.addMethod(
2728
2750
  unescape('_includes_'),
2729
2751
  smalltalk.method({
2730
2752
  selector: unescape('includes%3A'),
2731
- fn: function (anObject){
2753
+ fn: function (anObject) {
2732
2754
  var self=this;
2733
2755
  return smalltalk.send(self['@elements'], "_includes_", [anObject]);
2734
2756
  return self;}
@@ -2739,7 +2761,7 @@ smalltalk.addMethod(
2739
2761
  unescape('__eq'),
2740
2762
  smalltalk.method({
2741
2763
  selector: unescape('%3D'),
2742
- fn: function (aCollection){
2764
+ fn: function (aCollection) {
2743
2765
  var self=this;
2744
2766
  return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(self['@elements'], "__eq", [smalltalk.send(aCollection, "_asArray", [])]);})]);
2745
2767
  return self;}
@@ -2750,7 +2772,7 @@ smalltalk.addMethod(
2750
2772
  unescape('_select_'),
2751
2773
  smalltalk.method({
2752
2774
  selector: unescape('select%3A'),
2753
- fn: function (aBlock){
2775
+ fn: function (aBlock) {
2754
2776
  var self=this;
2755
2777
  var collection=nil;
2756
2778
  (collection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
@@ -2767,7 +2789,7 @@ smalltalk.addMethod(
2767
2789
  unescape('_size'),
2768
2790
  smalltalk.method({
2769
2791
  selector: unescape('size'),
2770
- fn: function (){
2792
+ fn: function () {
2771
2793
  var self=this;
2772
2794
  return smalltalk.send(smalltalk.send(self, "_keys", []), "_size", []);
2773
2795
  return self;}
@@ -2778,7 +2800,7 @@ smalltalk.addMethod(
2778
2800
  unescape('_associations'),
2779
2801
  smalltalk.method({
2780
2802
  selector: unescape('associations'),
2781
- fn: function (){
2803
+ fn: function () {
2782
2804
  var self=this;
2783
2805
  var associations=nil;
2784
2806
  (associations=[]);
@@ -2792,7 +2814,7 @@ smalltalk.addMethod(
2792
2814
  unescape('_keys'),
2793
2815
  smalltalk.method({
2794
2816
  selector: unescape('keys'),
2795
- fn: function (){
2817
+ fn: function () {
2796
2818
  var self=this;
2797
2819
 
2798
2820
  var keys = [];
@@ -2811,7 +2833,7 @@ smalltalk.addMethod(
2811
2833
  unescape('_values'),
2812
2834
  smalltalk.method({
2813
2835
  selector: unescape('values'),
2814
- fn: function (){
2836
+ fn: function () {
2815
2837
  var self=this;
2816
2838
  return smalltalk.send(smalltalk.send(self, "_keys", []), "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
2817
2839
  return self;}
@@ -2822,7 +2844,7 @@ smalltalk.addMethod(
2822
2844
  unescape('_at_put_'),
2823
2845
  smalltalk.method({
2824
2846
  selector: unescape('at%3Aput%3A'),
2825
- fn: function (aKey, aValue){
2847
+ fn: function (aKey, aValue) {
2826
2848
  var self=this;
2827
2849
  return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
2828
2850
  return self;}
@@ -2833,7 +2855,7 @@ smalltalk.addMethod(
2833
2855
  unescape('_at_ifAbsent_'),
2834
2856
  smalltalk.method({
2835
2857
  selector: unescape('at%3AifAbsent%3A'),
2836
- fn: function (aKey, aBlock){
2858
+ fn: function (aKey, aBlock) {
2837
2859
  var self=this;
2838
2860
  return smalltalk.send(smalltalk.send(self, "_includesKey_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
2839
2861
  return self;}
@@ -2844,7 +2866,7 @@ smalltalk.addMethod(
2844
2866
  unescape('_at_ifAbsentPut_'),
2845
2867
  smalltalk.method({
2846
2868
  selector: unescape('at%3AifAbsentPut%3A'),
2847
- fn: function (aKey, aBlock){
2869
+ fn: function (aKey, aBlock) {
2848
2870
  var self=this;
2849
2871
  return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
2850
2872
  return self;}
@@ -2855,7 +2877,7 @@ smalltalk.addMethod(
2855
2877
  unescape('_at_ifPresent_'),
2856
2878
  smalltalk.method({
2857
2879
  selector: unescape('at%3AifPresent%3A'),
2858
- fn: function (aKey, aBlock){
2880
+ fn: function (aKey, aBlock) {
2859
2881
  var self=this;
2860
2882
  return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
2861
2883
  return self;}
@@ -2866,7 +2888,7 @@ smalltalk.addMethod(
2866
2888
  unescape('_at_ifPresent_ifAbsent_'),
2867
2889
  smalltalk.method({
2868
2890
  selector: unescape('at%3AifPresent%3AifAbsent%3A'),
2869
- fn: function (aKey, aBlock, anotherBlock){
2891
+ fn: function (aKey, aBlock, anotherBlock) {
2870
2892
  var self=this;
2871
2893
  return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
2872
2894
  return self;}
@@ -2877,7 +2899,7 @@ smalltalk.addMethod(
2877
2899
  unescape('_at_'),
2878
2900
  smalltalk.method({
2879
2901
  selector: unescape('at%3A'),
2880
- fn: function (aKey){
2902
+ fn: function (aKey) {
2881
2903
  var self=this;
2882
2904
  return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
2883
2905
  return self;}
@@ -2888,7 +2910,7 @@ smalltalk.addMethod(
2888
2910
  unescape('_add_'),
2889
2911
  smalltalk.method({
2890
2912
  selector: unescape('add%3A'),
2891
- fn: function (anAssociation){
2913
+ fn: function (anAssociation) {
2892
2914
  var self=this;
2893
2915
  smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
2894
2916
  return self;}
@@ -2899,7 +2921,7 @@ smalltalk.addMethod(
2899
2921
  unescape('_addAll_'),
2900
2922
  smalltalk.method({
2901
2923
  selector: unescape('addAll%3A'),
2902
- fn: function (aHashedCollection){
2924
+ fn: function (aHashedCollection) {
2903
2925
  var self=this;
2904
2926
  smalltalk.send(self, "_addAll_", [smalltalk.send(aHashedCollection, "_associations", [])], smalltalk.Collection);
2905
2927
  return aHashedCollection;
@@ -2911,7 +2933,7 @@ smalltalk.addMethod(
2911
2933
  unescape('_removeKey_'),
2912
2934
  smalltalk.method({
2913
2935
  selector: unescape('removeKey%3A'),
2914
- fn: function (aKey){
2936
+ fn: function (aKey) {
2915
2937
  var self=this;
2916
2938
  smalltalk.send(self, "_remove_", [aKey]);
2917
2939
  return self;}
@@ -2922,7 +2944,7 @@ smalltalk.addMethod(
2922
2944
  unescape('_remove_ifAbsent_'),
2923
2945
  smalltalk.method({
2924
2946
  selector: unescape('remove%3AifAbsent%3A'),
2925
- fn: function (aKey, aBlock){
2947
+ fn: function (aKey, aBlock) {
2926
2948
  var self=this;
2927
2949
  return smalltalk.send(self, "_removeKey_ifAbsent_", [aKey, aBlock]);
2928
2950
  return self;}
@@ -2933,7 +2955,7 @@ smalltalk.addMethod(
2933
2955
  unescape('_removeKey_ifAbsent_'),
2934
2956
  smalltalk.method({
2935
2957
  selector: unescape('removeKey%3AifAbsent%3A'),
2936
- fn: function (aKey, aBlock){
2958
+ fn: function (aKey, aBlock) {
2937
2959
  var self=this;
2938
2960
  return ((($receiver = smalltalk.send(self, "_includesKey_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : (function(){return smalltalk.send(self, "_basicDelete_", [aKey]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(aBlock, "_value", []);}), (function(){return smalltalk.send(self, "_basicDelete_", [aKey]);})]));
2939
2961
  return self;}
@@ -2944,7 +2966,7 @@ smalltalk.addMethod(
2944
2966
  unescape('__eq'),
2945
2967
  smalltalk.method({
2946
2968
  selector: unescape('%3D'),
2947
- fn: function (aHashedCollection){
2969
+ fn: function (aHashedCollection) {
2948
2970
  var self=this;
2949
2971
  try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aHashedCollection, "_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}})})();})]));
2950
2972
  ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aHashedCollection, "_size", [])])).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}})})();})]));
@@ -2958,7 +2980,7 @@ smalltalk.addMethod(
2958
2980
  unescape('_shallowCopy'),
2959
2981
  smalltalk.method({
2960
2982
  selector: unescape('shallowCopy'),
2961
- fn: function (){
2983
+ fn: function () {
2962
2984
  var self=this;
2963
2985
  var copy=nil;
2964
2986
  (copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
@@ -2972,7 +2994,7 @@ smalltalk.addMethod(
2972
2994
  unescape('__comma'),
2973
2995
  smalltalk.method({
2974
2996
  selector: unescape('%2C'),
2975
- fn: function (aCollection){
2997
+ fn: function (aCollection) {
2976
2998
  var self=this;
2977
2999
  smalltalk.send(self, "_shouldNotImplement", []);
2978
3000
  return self;}
@@ -2983,7 +3005,7 @@ smalltalk.addMethod(
2983
3005
  unescape('_copyFrom_to_'),
2984
3006
  smalltalk.method({
2985
3007
  selector: unescape('copyFrom%3Ato%3A'),
2986
- fn: function (anIndex, anotherIndex){
3008
+ fn: function (anIndex, anotherIndex) {
2987
3009
  var self=this;
2988
3010
  smalltalk.send(self, "_shouldNotImplement", []);
2989
3011
  return self;}
@@ -2994,7 +3016,7 @@ smalltalk.addMethod(
2994
3016
  unescape('_deepCopy'),
2995
3017
  smalltalk.method({
2996
3018
  selector: unescape('deepCopy'),
2997
- fn: function (){
3019
+ fn: function () {
2998
3020
  var self=this;
2999
3021
  var copy=nil;
3000
3022
  (copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
@@ -3008,7 +3030,7 @@ smalltalk.addMethod(
3008
3030
  unescape('_associationsDo_'),
3009
3031
  smalltalk.method({
3010
3032
  selector: unescape('associationsDo%3A'),
3011
- fn: function (aBlock){
3033
+ fn: function (aBlock) {
3012
3034
  var self=this;
3013
3035
  smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
3014
3036
  return self;}
@@ -3019,7 +3041,7 @@ smalltalk.addMethod(
3019
3041
  unescape('_keysAndValuesDo_'),
3020
3042
  smalltalk.method({
3021
3043
  selector: unescape('keysAndValuesDo%3A'),
3022
- fn: function (aBlock){
3044
+ fn: function (aBlock) {
3023
3045
  var self=this;
3024
3046
  smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
3025
3047
  return self;}
@@ -3030,7 +3052,7 @@ smalltalk.addMethod(
3030
3052
  unescape('_do_'),
3031
3053
  smalltalk.method({
3032
3054
  selector: unescape('do%3A'),
3033
- fn: function (aBlock){
3055
+ fn: function (aBlock) {
3034
3056
  var self=this;
3035
3057
  smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
3036
3058
  return self;}
@@ -3041,7 +3063,7 @@ smalltalk.addMethod(
3041
3063
  unescape('_select_'),
3042
3064
  smalltalk.method({
3043
3065
  selector: unescape('select%3A'),
3044
- fn: function (aBlock){
3066
+ fn: function (aBlock) {
3045
3067
  var self=this;
3046
3068
  var newDict=nil;
3047
3069
  (newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
@@ -3055,7 +3077,7 @@ smalltalk.addMethod(
3055
3077
  unescape('_collect_'),
3056
3078
  smalltalk.method({
3057
3079
  selector: unescape('collect%3A'),
3058
- fn: function (aBlock){
3080
+ fn: function (aBlock) {
3059
3081
  var self=this;
3060
3082
  var newDict=nil;
3061
3083
  (newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
@@ -3069,7 +3091,7 @@ smalltalk.addMethod(
3069
3091
  unescape('_detect_ifNone_'),
3070
3092
  smalltalk.method({
3071
3093
  selector: unescape('detect%3AifNone%3A'),
3072
- fn: function (aBlock, anotherBlock){
3094
+ fn: function (aBlock, anotherBlock) {
3073
3095
  var self=this;
3074
3096
  return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
3075
3097
  return self;}
@@ -3080,7 +3102,7 @@ smalltalk.addMethod(
3080
3102
  unescape('_includes_'),
3081
3103
  smalltalk.method({
3082
3104
  selector: unescape('includes%3A'),
3083
- fn: function (anObject){
3105
+ fn: function (anObject) {
3084
3106
  var self=this;
3085
3107
  return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
3086
3108
  return self;}
@@ -3091,7 +3113,7 @@ smalltalk.addMethod(
3091
3113
  unescape('_printString'),
3092
3114
  smalltalk.method({
3093
3115
  selector: unescape('printString'),
3094
- fn: function (){
3116
+ fn: function () {
3095
3117
  var self=this;
3096
3118
  return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Collection)]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);})(aStream);smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(anAssociation){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_key", []), "_printString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20-%3E%20")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%20%2C%20")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [unescape("%29")]);})]);
3097
3119
  return self;}
@@ -3102,7 +3124,7 @@ smalltalk.addMethod(
3102
3124
  unescape('_storeOn_'),
3103
3125
  smalltalk.method({
3104
3126
  selector: unescape('storeOn%3A'),
3105
- fn: function (aStream){
3127
+ fn: function (aStream) {
3106
3128
  var self=this;
3107
3129
  smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
3108
3130
  smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
@@ -3115,7 +3137,7 @@ smalltalk.addMethod(
3115
3137
  unescape('_includesKey_'),
3116
3138
  smalltalk.method({
3117
3139
  selector: unescape('includesKey%3A'),
3118
- fn: function (aKey){
3140
+ fn: function (aKey) {
3119
3141
  var self=this;
3120
3142
  return self.hasOwnProperty(aKey);
3121
3143
  return self;}
@@ -3126,19 +3148,33 @@ smalltalk.addMethod(
3126
3148
  unescape('_asDictionary'),
3127
3149
  smalltalk.method({
3128
3150
  selector: unescape('asDictionary'),
3129
- fn: function (){
3151
+ fn: function () {
3130
3152
  var self=this;
3131
3153
  return smalltalk.send((smalltalk.Dictionary || Dictionary), "_fromPairs_", [smalltalk.send(self, "_associations", [])]);
3132
3154
  return self;}
3133
3155
  }),
3134
3156
  smalltalk.HashedCollection);
3135
3157
 
3158
+ smalltalk.addMethod(
3159
+ unescape('_asJSON'),
3160
+ smalltalk.method({
3161
+ selector: unescape('asJSON'),
3162
+ fn: function (){
3163
+ var self=this;
3164
+ var c=nil;
3165
+ (c=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
3166
+ smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(c, "_at_put_", [key, smalltalk.send(value, "_asJSON", [])]);})]);
3167
+ return c;
3168
+ return self;}
3169
+ }),
3170
+ smalltalk.HashedCollection);
3171
+
3136
3172
 
3137
3173
  smalltalk.addMethod(
3138
3174
  unescape('_fromPairs_'),
3139
3175
  smalltalk.method({
3140
3176
  selector: unescape('fromPairs%3A'),
3141
- fn: function (aCollection){
3177
+ fn: function (aCollection) {
3142
3178
  var self=this;
3143
3179
  var dict=nil;
3144
3180
  (dict=smalltalk.send(self, "_new", []));
@@ -3154,7 +3190,7 @@ smalltalk.addMethod(
3154
3190
  unescape('_at_ifAbsent_'),
3155
3191
  smalltalk.method({
3156
3192
  selector: unescape('at%3AifAbsent%3A'),
3157
- fn: function (aKey, aBlock){
3193
+ fn: function (aKey, aBlock) {
3158
3194
  var self=this;
3159
3195
 
3160
3196
  var index;
@@ -3175,7 +3211,7 @@ smalltalk.addMethod(
3175
3211
  unescape('_keys'),
3176
3212
  smalltalk.method({
3177
3213
  selector: unescape('keys'),
3178
- fn: function (){
3214
+ fn: function () {
3179
3215
  var self=this;
3180
3216
  return smalltalk.send(self['@keys'], "_copy", []);
3181
3217
  return self;}
@@ -3186,7 +3222,7 @@ smalltalk.addMethod(
3186
3222
  unescape('_values'),
3187
3223
  smalltalk.method({
3188
3224
  selector: unescape('values'),
3189
- fn: function (){
3225
+ fn: function () {
3190
3226
  var self=this;
3191
3227
  return smalltalk.send(self['@values'], "_copy", []);
3192
3228
  return self;}
@@ -3197,7 +3233,7 @@ smalltalk.addMethod(
3197
3233
  unescape('_at_put_'),
3198
3234
  smalltalk.method({
3199
3235
  selector: unescape('at%3Aput%3A'),
3200
- fn: function (aKey, aValue){
3236
+ fn: function (aKey, aValue) {
3201
3237
  var self=this;
3202
3238
 
3203
3239
  var index = self['@keys'].indexOf(aKey);
@@ -3218,7 +3254,7 @@ smalltalk.addMethod(
3218
3254
  unescape('_removeKey_ifAbsent_'),
3219
3255
  smalltalk.method({
3220
3256
  selector: unescape('removeKey%3AifAbsent%3A'),
3221
- fn: function (aKey, aBlock){
3257
+ fn: function (aKey, aBlock) {
3222
3258
  var self=this;
3223
3259
 
3224
3260
  var index = self['@keys'].indexOf(aKey);
@@ -3238,7 +3274,7 @@ smalltalk.addMethod(
3238
3274
  unescape('_initialize'),
3239
3275
  smalltalk.method({
3240
3276
  selector: unescape('initialize'),
3241
- fn: function (){
3277
+ fn: function () {
3242
3278
  var self=this;
3243
3279
  smalltalk.send(self, "_initialize", [], smalltalk.HashedCollection);
3244
3280
  (self['@keys']=[]);
@@ -3251,7 +3287,7 @@ smalltalk.addMethod(
3251
3287
  unescape('_includesKey_'),
3252
3288
  smalltalk.method({
3253
3289
  selector: unescape('includesKey%3A'),
3254
- fn: function (aKey){
3290
+ fn: function (aKey) {
3255
3291
  var self=this;
3256
3292
  return smalltalk.send(self['@keys'], "_includes_", [aKey]);
3257
3293
  return self;}
@@ -3262,7 +3298,7 @@ smalltalk.addMethod(
3262
3298
  unescape('_asHashedCollection'),
3263
3299
  smalltalk.method({
3264
3300
  selector: unescape('asHashedCollection'),
3265
- fn: function (){
3301
+ fn: function () {
3266
3302
  var self=this;
3267
3303
  return smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_fromPairs_", [smalltalk.send(self, "_associations", [])]);
3268
3304
  return self;}
@@ -3270,12 +3306,12 @@ return self;}
3270
3306
  smalltalk.Dictionary);
3271
3307
 
3272
3308
  smalltalk.addMethod(
3273
- unescape('_asJSONString'),
3309
+ unescape('_asJSON'),
3274
3310
  smalltalk.method({
3275
- selector: unescape('asJSONString'),
3311
+ selector: unescape('asJSON'),
3276
3312
  fn: function (){
3277
3313
  var self=this;
3278
- return smalltalk.send(smalltalk.send(self, "_asHashedCollection", []), "_asJSONString", []);
3314
+ return smalltalk.send(smalltalk.send(self, "_asHashedCollection", []), "_asJSON", []);
3279
3315
  return self;}
3280
3316
  }),
3281
3317
  smalltalk.Dictionary);