resin 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/amber/css/amber-normalize.css +73 -73
  2. data/amber/css/amber-normalize.less +1 -1
  3. data/amber/css/amber.css +106 -106
  4. data/amber/css/helios.css +242 -0
  5. data/amber/images/hsplitter.png +0 -0
  6. data/amber/images/vsplitter.png +0 -0
  7. data/amber/js/Benchfib.deploy.js +116 -38
  8. data/amber/js/Benchfib.js +120 -42
  9. data/amber/js/Canvas.deploy.js +674 -403
  10. data/amber/js/Canvas.js +682 -411
  11. data/amber/js/Compiler-AST.deploy.js +1150 -0
  12. data/amber/js/Compiler-AST.js +1591 -0
  13. data/amber/js/Compiler-Core.deploy.js +1562 -0
  14. data/amber/js/Compiler-Core.js +1972 -0
  15. data/amber/js/Compiler-Exceptions.deploy.js +114 -0
  16. data/amber/js/Compiler-Exceptions.js +161 -0
  17. data/amber/js/Compiler-IR.deploy.js +2326 -0
  18. data/amber/js/Compiler-IR.js +3146 -0
  19. data/amber/js/Compiler-Inlining.deploy.js +1147 -0
  20. data/amber/js/Compiler-Inlining.js +1514 -0
  21. data/amber/js/Compiler-Semantic.deploy.js +1207 -0
  22. data/amber/js/Compiler-Semantic.js +1628 -0
  23. data/amber/js/Compiler-Tests.deploy.js +646 -60
  24. data/amber/js/Compiler-Tests.js +843 -82
  25. data/amber/js/Compiler.deploy.js +1097 -159
  26. data/amber/js/Compiler.js +1414 -161
  27. data/amber/js/Examples.deploy.js +31 -15
  28. data/amber/js/Examples.js +33 -17
  29. data/amber/js/Helios-Announcements.deploy.js +127 -0
  30. data/amber/js/Helios-Announcements.js +157 -0
  31. data/amber/js/Helios-Browser.deploy.js +1473 -0
  32. data/amber/js/Helios-Browser.js +1953 -0
  33. data/amber/js/Helios-Commands.deploy.js +403 -0
  34. data/amber/js/Helios-Commands.js +563 -0
  35. data/amber/js/Helios-Core.deploy.js +1070 -0
  36. data/amber/js/Helios-Core.js +1445 -0
  37. data/amber/js/Helios-Environments.deploy.js +132 -0
  38. data/amber/js/Helios-Environments.js +179 -0
  39. data/amber/js/Helios-Inspector.deploy.js +855 -0
  40. data/amber/js/Helios-Inspector.js +1155 -0
  41. data/amber/js/Helios-KeyBindings.deploy.js +753 -0
  42. data/amber/js/Helios-KeyBindings.js +1023 -0
  43. data/amber/js/Helios-Layout.deploy.js +383 -0
  44. data/amber/js/Helios-Layout.js +523 -0
  45. data/amber/js/Helios-Workspace.deploy.js +799 -0
  46. data/amber/js/Helios-Workspace.js +1074 -0
  47. data/amber/js/IDE.deploy.js +2541 -1490
  48. data/amber/js/IDE.js +2721 -1660
  49. data/amber/js/Importer-Exporter.deploy.js +671 -0
  50. data/amber/js/Importer-Exporter.js +816 -0
  51. data/amber/js/Kernel-Announcements.deploy.js +137 -20
  52. data/amber/js/Kernel-Announcements.js +176 -22
  53. data/amber/js/Kernel-Classes.deploy.js +555 -168
  54. data/amber/js/Kernel-Classes.js +662 -205
  55. data/amber/js/Kernel-Collections.deploy.js +1403 -618
  56. data/amber/js/Kernel-Collections.js +1545 -690
  57. data/amber/js/Kernel-Exceptions.deploy.js +109 -45
  58. data/amber/js/Kernel-Exceptions.js +123 -49
  59. data/amber/js/Kernel-Methods.deploy.js +196 -81
  60. data/amber/js/Kernel-Methods.js +214 -89
  61. data/amber/js/Kernel-Objects.deploy.js +1542 -1117
  62. data/amber/js/Kernel-Objects.js +1593 -1148
  63. data/amber/js/Kernel-Tests.deploy.js +1725 -772
  64. data/amber/js/Kernel-Tests.js +2301 -1123
  65. data/amber/js/Kernel-Transcript.deploy.js +23 -25
  66. data/amber/js/Kernel-Transcript.js +24 -26
  67. data/amber/js/SUnit.deploy.js +204 -131
  68. data/amber/js/SUnit.js +222 -139
  69. data/amber/js/Spaces.deploy.js +240 -0
  70. data/amber/js/Spaces.js +326 -0
  71. data/amber/js/amber.js +26 -7
  72. data/amber/js/boot.js +65 -47
  73. data/amber/js/init.js +1 -1
  74. data/amber/js/lib/CodeMirror/amber.css +21 -21
  75. data/amber/js/lib/CodeMirror/codemirror.css +119 -13
  76. data/amber/js/lib/CodeMirror/codemirror.js +2219 -1220
  77. data/amber/js/lib/CodeMirror/smalltalk.js +134 -129
  78. data/amber/js/lib/bootstrap/css/bootstrap.css +5837 -0
  79. data/amber/js/lib/bootstrap/css/bootstrap.min.css +841 -0
  80. data/amber/js/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
  81. data/amber/js/lib/bootstrap/img/glyphicons-halflings.png +0 -0
  82. data/amber/js/lib/bootstrap/js/bootstrap.js +2038 -0
  83. data/amber/js/lib/bootstrap/js/bootstrap.min.js +7 -0
  84. data/amber/js/lib/jQuery/jquery-1.8.2.min.js +2 -0
  85. data/amber/js/lib/jQuery/jquery-ui-1.8.24.custom.min.js +125 -0
  86. data/amber/st/Compiler-AST.st +505 -0
  87. data/amber/st/Compiler-Core.st +835 -0
  88. data/amber/st/Compiler-Exceptions.st +87 -0
  89. data/amber/st/Compiler-IR.st +1097 -0
  90. data/amber/st/Compiler-Inlining.st +650 -0
  91. data/amber/st/Compiler-Semantic.st +558 -0
  92. data/amber/st/Compiler-Tests.st +285 -381
  93. data/amber/st/Compiler.st +725 -2
  94. data/amber/st/Helios-Announcements.st +104 -0
  95. data/amber/st/Helios-Browser.st +708 -0
  96. data/amber/st/Helios-Commands.st +223 -0
  97. data/amber/st/Helios-Core.st +532 -0
  98. data/amber/st/Helios-Environments.st +98 -0
  99. data/amber/st/Helios-Inspector.st +367 -0
  100. data/amber/st/Helios-KeyBindings.st +337 -0
  101. data/amber/st/Helios-Layout.st +199 -0
  102. data/amber/st/Helios-Workspace.st +367 -0
  103. data/amber/st/IDE.st +75 -53
  104. data/amber/st/Importer-Exporter.st +386 -0
  105. data/amber/st/Kernel-Announcements.st +92 -0
  106. data/amber/st/Kernel-Classes.st +137 -15
  107. data/amber/st/Kernel-Collections.st +137 -47
  108. data/amber/st/Kernel-Exceptions.st +14 -0
  109. data/amber/st/Kernel-Methods.st +9 -1
  110. data/amber/st/Kernel-Objects.st +29 -5
  111. data/amber/st/Kernel-Tests.st +545 -199
  112. data/amber/st/SUnit.st +10 -0
  113. data/amber/st/Spaces.st +142 -0
  114. data/lib/resin/app.rb +1 -1
  115. metadata +86 -31
  116. data/amber/js/lib/jQuery/jquery-1.4.4.min.js +0 -167
  117. data/amber/js/lib/jQuery/jquery-1.6.4.min.js +0 -4
@@ -6,8 +6,14 @@ smalltalk.method({
6
6
  selector: "=",
7
7
  fn: function (anAssociation){
8
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;}
9
+ var $1;
10
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_class",[]),"__eq",[smalltalk.send(anAssociation,"_class",[])]),"_and_",[(function(){
11
+ return smalltalk.send(smalltalk.send(smalltalk.send(self,"_key",[]),"__eq",[smalltalk.send(anAssociation,"_key",[])]),"_and_",[(function(){
12
+ return smalltalk.send(smalltalk.send(self,"_value",[]),"__eq",[smalltalk.send(anAssociation,"_value",[])]);
13
+ })]);
14
+ })]);
15
+ return $1;
16
+ }
11
17
  }),
12
18
  smalltalk.Association);
13
19
 
@@ -17,8 +23,8 @@ smalltalk.method({
17
23
  selector: "key",
18
24
  fn: function (){
19
25
  var self=this;
20
- return self['@key'];
21
- return self;}
26
+ return self["@key"];
27
+ }
22
28
  }),
23
29
  smalltalk.Association);
24
30
 
@@ -28,8 +34,23 @@ smalltalk.method({
28
34
  selector: "key:",
29
35
  fn: function (aKey){
30
36
  var self=this;
31
- (self['@key']=aKey);
32
- return self;}
37
+ self["@key"]=aKey;
38
+ return self}
39
+ }),
40
+ smalltalk.Association);
41
+
42
+ smalltalk.addMethod(
43
+ "_printString",
44
+ smalltalk.method({
45
+ selector: "printString",
46
+ fn: function (){
47
+ var self=this;
48
+ var $1;
49
+ $1=smalltalk.send((smalltalk.String || String),"_streamContents_",[(function(aStream){
50
+ return smalltalk.send(self,"_storeOn_",[aStream]);
51
+ })]);
52
+ return $1;
53
+ }
33
54
  }),
34
55
  smalltalk.Association);
35
56
 
@@ -39,10 +60,10 @@ smalltalk.method({
39
60
  selector: "storeOn:",
40
61
  fn: function (aStream){
41
62
  var self=this;
42
- smalltalk.send(self['@key'], "_storeOn_", [aStream]);
43
- smalltalk.send(aStream, "_nextPutAll_", ["->"]);
44
- smalltalk.send(self['@value'], "_storeOn_", [aStream]);
45
- return self;}
63
+ smalltalk.send(self["@key"],"_storeOn_",[aStream]);
64
+ smalltalk.send(aStream,"_nextPutAll_",["->"]);
65
+ smalltalk.send(self["@value"],"_storeOn_",[aStream]);
66
+ return self}
46
67
  }),
47
68
  smalltalk.Association);
48
69
 
@@ -52,8 +73,8 @@ smalltalk.method({
52
73
  selector: "value",
53
74
  fn: function (){
54
75
  var self=this;
55
- return self['@value'];
56
- return self;}
76
+ return self["@value"];
77
+ }
57
78
  }),
58
79
  smalltalk.Association);
59
80
 
@@ -63,8 +84,8 @@ smalltalk.method({
63
84
  selector: "value:",
64
85
  fn: function (aValue){
65
86
  var self=this;
66
- (self['@value']=aValue);
67
- return self;}
87
+ self["@value"]=aValue;
88
+ return self}
68
89
  }),
69
90
  smalltalk.Association);
70
91
 
@@ -73,10 +94,16 @@ smalltalk.addMethod(
73
94
  "_key_value_",
74
95
  smalltalk.method({
75
96
  selector: "key:value:",
76
- fn: function (aKey, aValue){
97
+ fn: function (aKey,aValue){
77
98
  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;}
99
+ var $2,$3,$1;
100
+ $2=smalltalk.send(self,"_new",[]);
101
+ smalltalk.send($2,"_key_",[aKey]);
102
+ smalltalk.send($2,"_value_",[aValue]);
103
+ $3=smalltalk.send($2,"_yourself",[]);
104
+ $1=$3;
105
+ return $1;
106
+ }
80
107
  }),
81
108
  smalltalk.Association.klass);
82
109
 
@@ -88,8 +115,13 @@ smalltalk.method({
88
115
  selector: ",",
89
116
  fn: function (aCollection){
90
117
  var self=this;
91
- return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
92
- return self;}
118
+ var $2,$3,$1;
119
+ $2=smalltalk.send(self,"_copy",[]);
120
+ smalltalk.send($2,"_addAll_",[aCollection]);
121
+ $3=smalltalk.send($2,"_yourself",[]);
122
+ $1=$3;
123
+ return $1;
124
+ }
93
125
  }),
94
126
  smalltalk.Collection);
95
127
 
@@ -99,8 +131,8 @@ smalltalk.method({
99
131
  selector: "add:",
100
132
  fn: function (anObject){
101
133
  var self=this;
102
- smalltalk.send(self, "_subclassResponsibility", []);
103
- return self;}
134
+ smalltalk.send(self,"_subclassResponsibility",[]);
135
+ return self}
104
136
  }),
105
137
  smalltalk.Collection);
106
138
 
@@ -110,9 +142,11 @@ smalltalk.method({
110
142
  selector: "addAll:",
111
143
  fn: function (aCollection){
112
144
  var self=this;
113
- smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
145
+ smalltalk.send(aCollection,"_do_",[(function(each){
146
+ return smalltalk.send(self,"_add_",[each]);
147
+ })]);
114
148
  return aCollection;
115
- return self;}
149
+ }
116
150
  }),
117
151
  smalltalk.Collection);
118
152
 
@@ -122,8 +156,10 @@ smalltalk.method({
122
156
  selector: "asArray",
123
157
  fn: function (){
124
158
  var self=this;
125
- return smalltalk.send((smalltalk.Array || Array), "_withAll_", [self]);
126
- return self;}
159
+ var $1;
160
+ $1=smalltalk.send((smalltalk.Array || Array),"_withAll_",[self]);
161
+ return $1;
162
+ }
127
163
  }),
128
164
  smalltalk.Collection);
129
165
 
@@ -133,8 +169,12 @@ smalltalk.method({
133
169
  selector: "asJSON",
134
170
  fn: function (){
135
171
  var self=this;
136
- return smalltalk.send(smalltalk.send(self, "_asArray", []), "_collect_", [(function(each){return smalltalk.send(each, "_asJSON", []);})]);
137
- return self;}
172
+ var $1;
173
+ $1=smalltalk.send(smalltalk.send(self,"_asArray",[]),"_collect_",[(function(each){
174
+ return smalltalk.send(each,"_asJSON",[]);
175
+ })]);
176
+ return $1;
177
+ }
138
178
  }),
139
179
  smalltalk.Collection);
140
180
 
@@ -144,8 +184,10 @@ smalltalk.method({
144
184
  selector: "asOrderedCollection",
145
185
  fn: function (){
146
186
  var self=this;
147
- return smalltalk.send(self, "_asArray", []);
148
- return self;}
187
+ var $1;
188
+ $1=smalltalk.send(self,"_asArray",[]);
189
+ return $1;
190
+ }
149
191
  }),
150
192
  smalltalk.Collection);
151
193
 
@@ -155,8 +197,10 @@ smalltalk.method({
155
197
  selector: "asSet",
156
198
  fn: function (){
157
199
  var self=this;
158
- return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
159
- return self;}
200
+ var $1;
201
+ $1=smalltalk.send((smalltalk.Set || Set),"_withAll_",[self]);
202
+ return $1;
203
+ }
160
204
  }),
161
205
  smalltalk.Collection);
162
206
 
@@ -166,11 +210,15 @@ smalltalk.method({
166
210
  selector: "collect:",
167
211
  fn: function (aBlock){
168
212
  var self=this;
169
- var newCollection=nil;
170
- (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
171
- smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
172
- return newCollection;
173
- return self;}
213
+ var $1;
214
+ var stream;
215
+ stream=smalltalk.send(smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]),"_writeStream",[]);
216
+ smalltalk.send(self,"_do_",[(function(each){
217
+ return smalltalk.send(stream,"_nextPut_",[smalltalk.send(aBlock,"_value_",[each])]);
218
+ })]);
219
+ $1=smalltalk.send(stream,"_contents",[]);
220
+ return $1;
221
+ }
174
222
  }),
175
223
  smalltalk.Collection);
176
224
 
@@ -180,8 +228,13 @@ smalltalk.method({
180
228
  selector: "copyWith:",
181
229
  fn: function (anObject){
182
230
  var self=this;
183
- return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
184
- return self;}
231
+ var $2,$3,$1;
232
+ $2=smalltalk.send(self,"_copy",[]);
233
+ smalltalk.send($2,"_add_",[anObject]);
234
+ $3=smalltalk.send($2,"_yourself",[]);
235
+ $1=$3;
236
+ return $1;
237
+ }
185
238
  }),
186
239
  smalltalk.Collection);
187
240
 
@@ -191,8 +244,13 @@ smalltalk.method({
191
244
  selector: "copyWithAll:",
192
245
  fn: function (aCollection){
193
246
  var self=this;
194
- return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
195
- return self;}
247
+ var $2,$3,$1;
248
+ $2=smalltalk.send(self,"_copy",[]);
249
+ smalltalk.send($2,"_addAll_",[aCollection]);
250
+ $3=smalltalk.send($2,"_yourself",[]);
251
+ $1=$3;
252
+ return $1;
253
+ }
196
254
  }),
197
255
  smalltalk.Collection);
198
256
 
@@ -202,8 +260,12 @@ smalltalk.method({
202
260
  selector: "copyWithoutAll:",
203
261
  fn: function (aCollection){
204
262
  var self=this;
205
- return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
206
- return self;}
263
+ var $1;
264
+ $1=smalltalk.send(self,"_reject_",[(function(each){
265
+ return smalltalk.send(aCollection,"_includes_",[each]);
266
+ })]);
267
+ return $1;
268
+ }
207
269
  }),
208
270
  smalltalk.Collection);
209
271
 
@@ -213,8 +275,12 @@ smalltalk.method({
213
275
  selector: "detect:",
214
276
  fn: function (aBlock){
215
277
  var self=this;
216
- return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
217
- return self;}
278
+ var $1;
279
+ $1=smalltalk.send(self,"_detect_ifNone_",[aBlock,(function(){
280
+ return smalltalk.send(self,"_errorNotFound",[]);
281
+ })]);
282
+ return $1;
283
+ }
218
284
  }),
219
285
  smalltalk.Collection);
220
286
 
@@ -222,7 +288,7 @@ smalltalk.addMethod(
222
288
  "_detect_ifNone_",
223
289
  smalltalk.method({
224
290
  selector: "detect:ifNone:",
225
- fn: function (aBlock, anotherBlock){
291
+ fn: function (aBlock,anotherBlock){
226
292
  var self=this;
227
293
 
228
294
  for(var i = 0; i < self.length; i++)
@@ -230,7 +296,8 @@ var self=this;
230
296
  return self[i];
231
297
  return anotherBlock();
232
298
  ;
233
- return self;}
299
+ ;
300
+ return self}
234
301
  }),
235
302
  smalltalk.Collection);
236
303
 
@@ -241,7 +308,8 @@ selector: "do:",
241
308
  fn: function (aBlock){
242
309
  var self=this;
243
310
  for(var i=0;i<self.length;i++){aBlock(self[i]);};
244
- return self;}
311
+ ;
312
+ return self}
245
313
  }),
246
314
  smalltalk.Collection);
247
315
 
@@ -249,12 +317,20 @@ smalltalk.addMethod(
249
317
  "_do_separatedBy_",
250
318
  smalltalk.method({
251
319
  selector: "do:separatedBy:",
252
- fn: function (aBlock, anotherBlock){
253
- var self=this;
254
- var first=nil;
255
- (first=true);
256
- smalltalk.send(self, "_do_", [(function(each){((($receiver = first).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (first=false);})() : (function(){return smalltalk.send(anotherBlock, "_value", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (first=false);}), (function(){return smalltalk.send(anotherBlock, "_value", []);})]));return smalltalk.send(aBlock, "_value_", [each]);})]);
257
- return self;}
320
+ fn: function (aBlock,anotherBlock){
321
+ var self=this;
322
+ var first;
323
+ first=true;
324
+ smalltalk.send(self,"_do_",[(function(each){
325
+ if(smalltalk.assert(first)){
326
+ first=false;
327
+ first;
328
+ } else {
329
+ smalltalk.send(anotherBlock,"_value",[]);
330
+ };
331
+ return smalltalk.send(aBlock,"_value_",[each]);
332
+ })]);
333
+ return self}
258
334
  }),
259
335
  smalltalk.Collection);
260
336
 
@@ -264,8 +340,8 @@ smalltalk.method({
264
340
  selector: "errorNotFound",
265
341
  fn: function (){
266
342
  var self=this;
267
- smalltalk.send(self, "_error_", ["Object is not in the collection"]);
268
- return self;}
343
+ smalltalk.send(self,"_error_",["Object is not in the collection"]);
344
+ return self}
269
345
  }),
270
346
  smalltalk.Collection);
271
347
 
@@ -275,8 +351,15 @@ smalltalk.method({
275
351
  selector: "ifEmpty:",
276
352
  fn: function (aBlock){
277
353
  var self=this;
278
- 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;})]));
279
- return self;}
354
+ var $2,$1;
355
+ $2=smalltalk.send(self,"_isEmpty",[]);
356
+ if(smalltalk.assert($2)){
357
+ $1=smalltalk.send(aBlock,"_value",[]);
358
+ } else {
359
+ $1=self;
360
+ };
361
+ return $1;
362
+ }
280
363
  }),
281
364
  smalltalk.Collection);
282
365
 
@@ -286,8 +369,10 @@ smalltalk.method({
286
369
  selector: "ifNotEmpty:",
287
370
  fn: function (aBlock){
288
371
  var self=this;
289
- smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
290
- return self;}
372
+ var $1;
373
+ $1=smalltalk.send(self,"_notEmpty",[]);
374
+ smalltalk.send($1,"_ifTrue_",[aBlock]);
375
+ return self}
291
376
  }),
292
377
  smalltalk.Collection);
293
378
 
@@ -304,7 +389,8 @@ var self=this;
304
389
  }
305
390
  return false
306
391
  ;
307
- return self;}
392
+ ;
393
+ return self}
308
394
  }),
309
395
  smalltalk.Collection);
310
396
 
@@ -312,13 +398,41 @@ smalltalk.addMethod(
312
398
  "_inject_into_",
313
399
  smalltalk.method({
314
400
  selector: "inject:into:",
315
- fn: function (anObject, aBlock){
401
+ fn: function (anObject,aBlock){
316
402
  var self=this;
317
- var result=nil;
318
- (result=anObject);
319
- smalltalk.send(self, "_do_", [(function(each){return (result=smalltalk.send(aBlock, "_value_value_", [result, each]));})]);
403
+ var result;
404
+ result=anObject;
405
+ smalltalk.send(self,"_do_",[(function(each){
406
+ result=smalltalk.send(aBlock,"_value_value_",[result,each]);
320
407
  return result;
321
- return self;}
408
+ })]);
409
+ return result;
410
+ }
411
+ }),
412
+ smalltalk.Collection);
413
+
414
+ smalltalk.addMethod(
415
+ "_intersection_",
416
+ smalltalk.method({
417
+ selector: "intersection:",
418
+ fn: function (aCollection){
419
+ var self=this;
420
+ var $1,$2;
421
+ var set;
422
+ var outputSet;
423
+ set=smalltalk.send(self,"_asSet",[]);
424
+ outputSet=smalltalk.send((smalltalk.Set || Set),"_new",[]);
425
+ smalltalk.send(aCollection,"_do_",[(function(each){
426
+ $1=smalltalk.send(smalltalk.send(set,"_includes_",[each]),"_and_",[(function(){
427
+ return smalltalk.send(smalltalk.send(outputSet,"_includes_",[each]),"_not",[]);
428
+ })]);
429
+ if(smalltalk.assert($1)){
430
+ return smalltalk.send(outputSet,"_add_",[each]);
431
+ };
432
+ })]);
433
+ $2=smalltalk.send(smalltalk.send(self,"_class",[]),"_withAll_",[smalltalk.send(outputSet,"_asArray",[])]);
434
+ return $2;
435
+ }
322
436
  }),
323
437
  smalltalk.Collection);
324
438
 
@@ -328,8 +442,10 @@ smalltalk.method({
328
442
  selector: "isEmpty",
329
443
  fn: function (){
330
444
  var self=this;
331
- return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
332
- return self;}
445
+ var $1;
446
+ $1=smalltalk.send(smalltalk.send(self,"_size",[]),"__eq",[(0)]);
447
+ return $1;
448
+ }
333
449
  }),
334
450
  smalltalk.Collection);
335
451
 
@@ -339,8 +455,52 @@ smalltalk.method({
339
455
  selector: "notEmpty",
340
456
  fn: function (){
341
457
  var self=this;
342
- return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
343
- return self;}
458
+ var $1;
459
+ $1=smalltalk.send(smalltalk.send(self,"_isEmpty",[]),"_not",[]);
460
+ return $1;
461
+ }
462
+ }),
463
+ smalltalk.Collection);
464
+
465
+ smalltalk.addMethod(
466
+ "_occurrencesOf_",
467
+ smalltalk.method({
468
+ selector: "occurrencesOf:",
469
+ fn: function (anObject){
470
+ var self=this;
471
+ var $1;
472
+ var tally;
473
+ tally=(0);
474
+ smalltalk.send(self,"_do_",[(function(each){
475
+ $1=smalltalk.send(anObject,"__eq",[each]);
476
+ if(smalltalk.assert($1)){
477
+ tally=smalltalk.send(tally,"__plus",[(1)]);
478
+ return tally;
479
+ };
480
+ })]);
481
+ return tally;
482
+ }
483
+ }),
484
+ smalltalk.Collection);
485
+
486
+ smalltalk.addMethod(
487
+ "_printString",
488
+ smalltalk.method({
489
+ selector: "printString",
490
+ fn: function (){
491
+ var self=this;
492
+ var $1;
493
+ $1=smalltalk.send((smalltalk.String || String),"_streamContents_",[(function(aStream){
494
+ smalltalk.send(aStream,"_nextPutAll_",[smalltalk.send(smalltalk.send(self,"_printString",[],smalltalk.Object),"__comma",[" ("])]);
495
+ smalltalk.send(self,"_do_separatedBy_",[(function(each){
496
+ return smalltalk.send(aStream,"_nextPutAll_",[smalltalk.send(each,"_printString",[])]);
497
+ }),(function(){
498
+ return smalltalk.send(aStream,"_nextPutAll_",[" "]);
499
+ })]);
500
+ return smalltalk.send(aStream,"_nextPutAll_",[")"]);
501
+ })]);
502
+ return $1;
503
+ }
344
504
  }),
345
505
  smalltalk.Collection);
346
506
 
@@ -350,8 +510,10 @@ smalltalk.method({
350
510
  selector: "readStream",
351
511
  fn: function (){
352
512
  var self=this;
353
- return smalltalk.send(self, "_stream", []);
354
- return self;}
513
+ var $1;
514
+ $1=smalltalk.send(self,"_stream",[]);
515
+ return $1;
516
+ }
355
517
  }),
356
518
  smalltalk.Collection);
357
519
 
@@ -361,8 +523,12 @@ smalltalk.method({
361
523
  selector: "reject:",
362
524
  fn: function (aBlock){
363
525
  var self=this;
364
- return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
365
- return self;}
526
+ var $1;
527
+ $1=smalltalk.send(self,"_select_",[(function(each){
528
+ return smalltalk.send(smalltalk.send(aBlock,"_value_",[each]),"__eq",[false]);
529
+ })]);
530
+ return $1;
531
+ }
366
532
  }),
367
533
  smalltalk.Collection);
368
534
 
@@ -372,8 +538,12 @@ smalltalk.method({
372
538
  selector: "remove:",
373
539
  fn: function (anObject){
374
540
  var self=this;
375
- return smalltalk.send(self, "_remove_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
376
- return self;}
541
+ var $1;
542
+ $1=smalltalk.send(self,"_remove_ifAbsent_",[anObject,(function(){
543
+ return smalltalk.send(self,"_errorNotFound",[]);
544
+ })]);
545
+ return $1;
546
+ }
377
547
  }),
378
548
  smalltalk.Collection);
379
549
 
@@ -381,10 +551,10 @@ smalltalk.addMethod(
381
551
  "_remove_ifAbsent_",
382
552
  smalltalk.method({
383
553
  selector: "remove:ifAbsent:",
384
- fn: function (anObject, aBlock){
554
+ fn: function (anObject,aBlock){
385
555
  var self=this;
386
- smalltalk.send(self, "_subclassResponsibility", []);
387
- return self;}
556
+ smalltalk.send(self,"_subclassResponsibility",[]);
557
+ return self}
388
558
  }),
389
559
  smalltalk.Collection);
390
560
 
@@ -394,11 +564,18 @@ smalltalk.method({
394
564
  selector: "select:",
395
565
  fn: function (aBlock){
396
566
  var self=this;
397
- var stream=nil;
398
- (stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []));
399
- smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_nextPut_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_nextPut_", [each]);})]));})]);
400
- return smalltalk.send(stream, "_contents", []);
401
- return self;}
567
+ var $1,$2;
568
+ var stream;
569
+ stream=smalltalk.send(smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]),"_writeStream",[]);
570
+ smalltalk.send(self,"_do_",[(function(each){
571
+ $1=smalltalk.send(aBlock,"_value_",[each]);
572
+ if(smalltalk.assert($1)){
573
+ return smalltalk.send(stream,"_nextPut_",[each]);
574
+ };
575
+ })]);
576
+ $2=smalltalk.send(stream,"_contents",[]);
577
+ return $2;
578
+ }
402
579
  }),
403
580
  smalltalk.Collection);
404
581
 
@@ -408,8 +585,8 @@ smalltalk.method({
408
585
  selector: "size",
409
586
  fn: function (){
410
587
  var self=this;
411
- smalltalk.send(self, "_subclassResponsibility", []);
412
- return self;}
588
+ smalltalk.send(self,"_subclassResponsibility",[]);
589
+ return self}
413
590
  }),
414
591
  smalltalk.Collection);
415
592
 
@@ -419,8 +596,10 @@ smalltalk.method({
419
596
  selector: "stream",
420
597
  fn: function (){
421
598
  var self=this;
422
- return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
423
- return self;}
599
+ var $1;
600
+ $1=smalltalk.send(smalltalk.send(self,"_streamClass",[]),"_on_",[self]);
601
+ return $1;
602
+ }
424
603
  }),
425
604
  smalltalk.Collection);
426
605
 
@@ -430,8 +609,10 @@ smalltalk.method({
430
609
  selector: "streamClass",
431
610
  fn: function (){
432
611
  var self=this;
433
- return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
434
- return self;}
612
+ var $1;
613
+ $1=smalltalk.send(smalltalk.send(self,"_class",[]),"_streamClass",[]);
614
+ return $1;
615
+ }
435
616
  }),
436
617
  smalltalk.Collection);
437
618
 
@@ -441,8 +622,10 @@ smalltalk.method({
441
622
  selector: "writeStream",
442
623
  fn: function (){
443
624
  var self=this;
444
- return smalltalk.send(self, "_stream", []);
445
- return self;}
625
+ var $1;
626
+ $1=smalltalk.send(self,"_stream",[]);
627
+ return $1;
628
+ }
446
629
  }),
447
630
  smalltalk.Collection);
448
631
 
@@ -453,8 +636,10 @@ smalltalk.method({
453
636
  selector: "new:",
454
637
  fn: function (anInteger){
455
638
  var self=this;
456
- return smalltalk.send(self, "_new", []);
457
- return self;}
639
+ var $1;
640
+ $1=smalltalk.send(self,"_new",[]);
641
+ return $1;
642
+ }
458
643
  }),
459
644
  smalltalk.Collection.klass);
460
645
 
@@ -465,7 +650,7 @@ selector: "streamClass",
465
650
  fn: function (){
466
651
  var self=this;
467
652
  return (smalltalk.Stream || Stream);
468
- return self;}
653
+ }
469
654
  }),
470
655
  smalltalk.Collection.klass);
471
656
 
@@ -475,8 +660,13 @@ smalltalk.method({
475
660
  selector: "with:",
476
661
  fn: function (anObject){
477
662
  var self=this;
478
- return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
479
- return self;}
663
+ var $2,$3,$1;
664
+ $2=smalltalk.send(self,"_new",[]);
665
+ smalltalk.send($2,"_add_",[anObject]);
666
+ $3=smalltalk.send($2,"_yourself",[]);
667
+ $1=$3;
668
+ return $1;
669
+ }
480
670
  }),
481
671
  smalltalk.Collection.klass);
482
672
 
@@ -484,10 +674,16 @@ smalltalk.addMethod(
484
674
  "_with_with_",
485
675
  smalltalk.method({
486
676
  selector: "with:with:",
487
- fn: function (anObject, anotherObject){
677
+ fn: function (anObject,anotherObject){
488
678
  var self=this;
489
- return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
490
- return self;}
679
+ var $2,$3,$1;
680
+ $2=smalltalk.send(self,"_new",[]);
681
+ smalltalk.send($2,"_add_",[anObject]);
682
+ smalltalk.send($2,"_add_",[anotherObject]);
683
+ $3=smalltalk.send($2,"_yourself",[]);
684
+ $1=$3;
685
+ return $1;
686
+ }
491
687
  }),
492
688
  smalltalk.Collection.klass);
493
689
 
@@ -495,10 +691,17 @@ smalltalk.addMethod(
495
691
  "_with_with_with_",
496
692
  smalltalk.method({
497
693
  selector: "with:with:with:",
498
- fn: function (firstObject, secondObject, thirdObject){
499
- var self=this;
500
- 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", []));
501
- return self;}
694
+ fn: function (firstObject,secondObject,thirdObject){
695
+ var self=this;
696
+ var $2,$3,$1;
697
+ $2=smalltalk.send(self,"_new",[]);
698
+ smalltalk.send($2,"_add_",[firstObject]);
699
+ smalltalk.send($2,"_add_",[secondObject]);
700
+ smalltalk.send($2,"_add_",[thirdObject]);
701
+ $3=smalltalk.send($2,"_yourself",[]);
702
+ $1=$3;
703
+ return $1;
704
+ }
502
705
  }),
503
706
  smalltalk.Collection.klass);
504
707
 
@@ -508,8 +711,13 @@ smalltalk.method({
508
711
  selector: "withAll:",
509
712
  fn: function (aCollection){
510
713
  var self=this;
511
- return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
512
- return self;}
714
+ var $2,$3,$1;
715
+ $2=smalltalk.send(self,"_new",[]);
716
+ smalltalk.send($2,"_addAll_",[aCollection]);
717
+ $3=smalltalk.send($2,"_yourself",[]);
718
+ $1=$3;
719
+ return $1;
720
+ }
513
721
  }),
514
722
  smalltalk.Collection.klass);
515
723
 
@@ -521,8 +729,8 @@ smalltalk.method({
521
729
  selector: ",",
522
730
  fn: function (aCollection){
523
731
  var self=this;
524
- smalltalk.send(self, "_shouldNotImplement", []);
525
- return self;}
732
+ smalltalk.send(self,"_shouldNotImplement",[]);
733
+ return self}
526
734
  }),
527
735
  smalltalk.HashedCollection);
528
736
 
@@ -532,12 +740,18 @@ smalltalk.method({
532
740
  selector: "=",
533
741
  fn: function (aHashedCollection){
534
742
  var self=this;
535
- var $early={};
536
- try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aHashedCollection, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
537
- ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aHashedCollection, "_size", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
538
- return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aHashedCollection, "_associations", [])]);
539
- return self;
540
- } catch(e) {if(e===$early)return e[0]; throw e}}
743
+ var $1,$2,$3;
744
+ $1=smalltalk.send(smalltalk.send(self,"_class",[]),"__eq",[smalltalk.send(aHashedCollection,"_class",[])]);
745
+ if(! smalltalk.assert($1)){
746
+ return false;
747
+ };
748
+ $2=smalltalk.send(smalltalk.send(self,"_size",[]),"__eq",[smalltalk.send(aHashedCollection,"_size",[])]);
749
+ if(! smalltalk.assert($2)){
750
+ return false;
751
+ };
752
+ $3=smalltalk.send(smalltalk.send(self,"_associations",[]),"__eq",[smalltalk.send(aHashedCollection,"_associations",[])]);
753
+ return $3;
754
+ }
541
755
  }),
542
756
  smalltalk.HashedCollection);
543
757
 
@@ -547,8 +761,8 @@ smalltalk.method({
547
761
  selector: "add:",
548
762
  fn: function (anAssociation){
549
763
  var self=this;
550
- smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
551
- return self;}
764
+ smalltalk.send(self,"_at_put_",[smalltalk.send(anAssociation,"_key",[]),smalltalk.send(anAssociation,"_value",[])]);
765
+ return self}
552
766
  }),
553
767
  smalltalk.HashedCollection);
554
768
 
@@ -558,9 +772,9 @@ smalltalk.method({
558
772
  selector: "addAll:",
559
773
  fn: function (aHashedCollection){
560
774
  var self=this;
561
- smalltalk.send(self, "_addAll_", [smalltalk.send(aHashedCollection, "_associations", [])], smalltalk.HashedCollection.superclass || nil);
775
+ smalltalk.send(self,"_addAll_",[smalltalk.send(aHashedCollection,"_associations",[])],smalltalk.Collection);
562
776
  return aHashedCollection;
563
- return self;}
777
+ }
564
778
  }),
565
779
  smalltalk.HashedCollection);
566
780
 
@@ -570,8 +784,10 @@ smalltalk.method({
570
784
  selector: "asDictionary",
571
785
  fn: function (){
572
786
  var self=this;
573
- return smalltalk.send((smalltalk.Dictionary || Dictionary), "_fromPairs_", [smalltalk.send(self, "_associations", [])]);
574
- return self;}
787
+ var $1;
788
+ $1=smalltalk.send((smalltalk.Dictionary || Dictionary),"_fromPairs_",[smalltalk.send(self,"_associations",[])]);
789
+ return $1;
790
+ }
575
791
  }),
576
792
  smalltalk.HashedCollection);
577
793
 
@@ -581,11 +797,13 @@ smalltalk.method({
581
797
  selector: "asJSON",
582
798
  fn: function (){
583
799
  var self=this;
584
- var c=nil;
585
- (c=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
586
- smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(c, "_at_put_", [key, smalltalk.send(value, "_asJSON", [])]);})]);
800
+ var c;
801
+ c=smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]);
802
+ smalltalk.send(self,"_keysAndValuesDo_",[(function(key,value){
803
+ return smalltalk.send(c,"_at_put_",[key,smalltalk.send(value,"_asJSON",[])]);
804
+ })]);
587
805
  return c;
588
- return self;}
806
+ }
589
807
  }),
590
808
  smalltalk.HashedCollection);
591
809
 
@@ -595,11 +813,13 @@ smalltalk.method({
595
813
  selector: "associations",
596
814
  fn: function (){
597
815
  var self=this;
598
- var associations=nil;
599
- (associations=[]);
600
- smalltalk.send(smalltalk.send(self, "_keys", []), "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send((smalltalk.Association || Association), "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
816
+ var associations;
817
+ associations=[];
818
+ smalltalk.send(smalltalk.send(self,"_keys",[]),"_do_",[(function(each){
819
+ return smalltalk.send(associations,"_add_",[smalltalk.send((smalltalk.Association || Association),"_key_value_",[each,smalltalk.send(self,"_at_",[each])])]);
820
+ })]);
601
821
  return associations;
602
- return self;}
822
+ }
603
823
  }),
604
824
  smalltalk.HashedCollection);
605
825
 
@@ -609,8 +829,8 @@ smalltalk.method({
609
829
  selector: "associationsDo:",
610
830
  fn: function (aBlock){
611
831
  var self=this;
612
- smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
613
- return self;}
832
+ smalltalk.send(smalltalk.send(self,"_associations",[]),"_do_",[aBlock]);
833
+ return self}
614
834
  }),
615
835
  smalltalk.HashedCollection);
616
836
 
@@ -620,8 +840,12 @@ smalltalk.method({
620
840
  selector: "at:",
621
841
  fn: function (aKey){
622
842
  var self=this;
623
- return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
624
- return self;}
843
+ var $1;
844
+ $1=smalltalk.send(self,"_at_ifAbsent_",[aKey,(function(){
845
+ return smalltalk.send(self,"_errorNotFound",[]);
846
+ })]);
847
+ return $1;
848
+ }
625
849
  }),
626
850
  smalltalk.HashedCollection);
627
851
 
@@ -629,10 +853,15 @@ smalltalk.addMethod(
629
853
  "_at_ifAbsent_",
630
854
  smalltalk.method({
631
855
  selector: "at:ifAbsent:",
632
- fn: function (aKey, aBlock){
856
+ fn: function (aKey,aBlock){
633
857
  var self=this;
634
- return smalltalk.send(smalltalk.send(self, "_includesKey_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
635
- return self;}
858
+ var $2,$1;
859
+ $2=smalltalk.send(self,"_includesKey_",[aKey]);
860
+ $1=smalltalk.send($2,"_ifTrue_ifFalse_",[(function(){
861
+ return smalltalk.send(self,"_basicAt_",[aKey]);
862
+ }),aBlock]);
863
+ return $1;
864
+ }
636
865
  }),
637
866
  smalltalk.HashedCollection);
638
867
 
@@ -640,10 +869,14 @@ smalltalk.addMethod(
640
869
  "_at_ifAbsentPut_",
641
870
  smalltalk.method({
642
871
  selector: "at:ifAbsentPut:",
643
- fn: function (aKey, aBlock){
872
+ fn: function (aKey,aBlock){
644
873
  var self=this;
645
- return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
646
- return self;}
874
+ var $1;
875
+ $1=smalltalk.send(self,"_at_ifAbsent_",[aKey,(function(){
876
+ return smalltalk.send(self,"_at_put_",[aKey,smalltalk.send(aBlock,"_value",[])]);
877
+ })]);
878
+ return $1;
879
+ }
647
880
  }),
648
881
  smalltalk.HashedCollection);
649
882
 
@@ -651,10 +884,17 @@ smalltalk.addMethod(
651
884
  "_at_ifPresent_",
652
885
  smalltalk.method({
653
886
  selector: "at:ifPresent:",
654
- fn: function (aKey, aBlock){
655
- var self=this;
656
- return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
657
- return self;}
887
+ fn: function (aKey,aBlock){
888
+ var self=this;
889
+ var $2,$1;
890
+ $2=smalltalk.send(self,"_includesKey_",[aKey]);
891
+ if(smalltalk.assert($2)){
892
+ $1=smalltalk.send(aBlock,"_value_",[smalltalk.send(self,"_at_",[aKey])]);
893
+ } else {
894
+ $1=nil;
895
+ };
896
+ return $1;
897
+ }
658
898
  }),
659
899
  smalltalk.HashedCollection);
660
900
 
@@ -662,10 +902,15 @@ smalltalk.addMethod(
662
902
  "_at_ifPresent_ifAbsent_",
663
903
  smalltalk.method({
664
904
  selector: "at:ifPresent:ifAbsent:",
665
- fn: function (aKey, aBlock, anotherBlock){
905
+ fn: function (aKey,aBlock,anotherBlock){
666
906
  var self=this;
667
- return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
668
- return self;}
907
+ var $2,$1;
908
+ $2=smalltalk.send(self,"_includesKey_",[aKey]);
909
+ $1=smalltalk.send($2,"_ifTrue_ifFalse_",[(function(){
910
+ return smalltalk.send(aBlock,"_value_",[smalltalk.send(self,"_at_",[aKey])]);
911
+ }),anotherBlock]);
912
+ return $1;
913
+ }
669
914
  }),
670
915
  smalltalk.HashedCollection);
671
916
 
@@ -673,10 +918,12 @@ smalltalk.addMethod(
673
918
  "_at_put_",
674
919
  smalltalk.method({
675
920
  selector: "at:put:",
676
- fn: function (aKey, aValue){
921
+ fn: function (aKey,aValue){
677
922
  var self=this;
678
- return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
679
- return self;}
923
+ var $1;
924
+ $1=smalltalk.send(self,"_basicAt_put_",[aKey,aValue]);
925
+ return $1;
926
+ }
680
927
  }),
681
928
  smalltalk.HashedCollection);
682
929
 
@@ -686,11 +933,13 @@ smalltalk.method({
686
933
  selector: "collect:",
687
934
  fn: function (aBlock){
688
935
  var self=this;
689
- var newDict=nil;
690
- (newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
691
- smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
936
+ var newDict;
937
+ newDict=smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]);
938
+ smalltalk.send(self,"_keysAndValuesDo_",[(function(key,value){
939
+ return smalltalk.send(newDict,"_at_put_",[key,smalltalk.send(aBlock,"_value_",[value])]);
940
+ })]);
692
941
  return newDict;
693
- return self;}
942
+ }
694
943
  }),
695
944
  smalltalk.HashedCollection);
696
945
 
@@ -698,10 +947,10 @@ smalltalk.addMethod(
698
947
  "_copyFrom_to_",
699
948
  smalltalk.method({
700
949
  selector: "copyFrom:to:",
701
- fn: function (anIndex, anotherIndex){
950
+ fn: function (anIndex,anotherIndex){
702
951
  var self=this;
703
- smalltalk.send(self, "_shouldNotImplement", []);
704
- return self;}
952
+ smalltalk.send(self,"_shouldNotImplement",[]);
953
+ return self}
705
954
  }),
706
955
  smalltalk.HashedCollection);
707
956
 
@@ -711,11 +960,13 @@ smalltalk.method({
711
960
  selector: "deepCopy",
712
961
  fn: function (){
713
962
  var self=this;
714
- var copy=nil;
715
- (copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
716
- smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(smalltalk.send(each, "_value", []), "_deepCopy", [])]);})]);
963
+ var copy;
964
+ copy=smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]);
965
+ smalltalk.send(self,"_associationsDo_",[(function(each){
966
+ return smalltalk.send(copy,"_at_put_",[smalltalk.send(each,"_key",[]),smalltalk.send(smalltalk.send(each,"_value",[]),"_deepCopy",[])]);
967
+ })]);
717
968
  return copy;
718
- return self;}
969
+ }
719
970
  }),
720
971
  smalltalk.HashedCollection);
721
972
 
@@ -723,10 +974,12 @@ smalltalk.addMethod(
723
974
  "_detect_ifNone_",
724
975
  smalltalk.method({
725
976
  selector: "detect:ifNone:",
726
- fn: function (aBlock, anotherBlock){
977
+ fn: function (aBlock,anotherBlock){
727
978
  var self=this;
728
- return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
729
- return self;}
979
+ var $1;
980
+ $1=smalltalk.send(smalltalk.send(self,"_values",[]),"_detect_ifNone_",[aBlock,anotherBlock]);
981
+ return $1;
982
+ }
730
983
  }),
731
984
  smalltalk.HashedCollection);
732
985
 
@@ -736,8 +989,8 @@ smalltalk.method({
736
989
  selector: "do:",
737
990
  fn: function (aBlock){
738
991
  var self=this;
739
- smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
740
- return self;}
992
+ smalltalk.send(smalltalk.send(self,"_values",[]),"_do_",[aBlock]);
993
+ return self}
741
994
  }),
742
995
  smalltalk.HashedCollection);
743
996
 
@@ -747,8 +1000,10 @@ smalltalk.method({
747
1000
  selector: "includes:",
748
1001
  fn: function (anObject){
749
1002
  var self=this;
750
- return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
751
- return self;}
1003
+ var $1;
1004
+ $1=smalltalk.send(smalltalk.send(self,"_values",[]),"_includes_",[anObject]);
1005
+ return $1;
1006
+ }
752
1007
  }),
753
1008
  smalltalk.HashedCollection);
754
1009
 
@@ -759,7 +1014,8 @@ selector: "includesKey:",
759
1014
  fn: function (aKey){
760
1015
  var self=this;
761
1016
  return self.hasOwnProperty(aKey);
762
- return self;}
1017
+ ;
1018
+ return self}
763
1019
  }),
764
1020
  smalltalk.HashedCollection);
765
1021
 
@@ -779,7 +1035,8 @@ var self=this;
779
1035
  };
780
1036
  return keys;
781
1037
  ;
782
- return self;}
1038
+ ;
1039
+ return self}
783
1040
  }),
784
1041
  smalltalk.HashedCollection);
785
1042
 
@@ -789,8 +1046,10 @@ smalltalk.method({
789
1046
  selector: "keysAndValuesDo:",
790
1047
  fn: function (aBlock){
791
1048
  var self=this;
792
- smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
793
- return self;}
1049
+ smalltalk.send(self,"_associationsDo_",[(function(each){
1050
+ return smalltalk.send(aBlock,"_value_value_",[smalltalk.send(each,"_key",[]),smalltalk.send(each,"_value",[])]);
1051
+ })]);
1052
+ return self}
794
1053
  }),
795
1054
  smalltalk.HashedCollection);
796
1055
 
@@ -800,8 +1059,18 @@ smalltalk.method({
800
1059
  selector: "printString",
801
1060
  fn: function (){
802
1061
  var self=this;
803
- return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.HashedCollection.superclass || nil)]);return smalltalk.send($rec, "_nextPutAll_", ["("]);})(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_", [" -> "]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [" , "]);})]);return smalltalk.send(aStream, "_nextPutAll_", [")"]);})]);
804
- return self;}
1062
+ var $1;
1063
+ $1=smalltalk.send((smalltalk.String || String),"_streamContents_",[(function(aStream){
1064
+ smalltalk.send(aStream,"_nextPutAll_",[smalltalk.send(smalltalk.send("a ","__comma",[smalltalk.send(smalltalk.send(self,"_class",[]),"_name",[])]),"__comma",["("])]);
1065
+ smalltalk.send(smalltalk.send(self,"_associations",[]),"_do_separatedBy_",[(function(each){
1066
+ return smalltalk.send(each,"_storeOn_",[aStream]);
1067
+ }),(function(){
1068
+ return smalltalk.send(aStream,"_nextPutAll_",[" , "]);
1069
+ })]);
1070
+ return smalltalk.send(aStream,"_nextPutAll_",[")"]);
1071
+ })]);
1072
+ return $1;
1073
+ }
805
1074
  }),
806
1075
  smalltalk.HashedCollection);
807
1076
 
@@ -809,10 +1078,12 @@ smalltalk.addMethod(
809
1078
  "_remove_ifAbsent_",
810
1079
  smalltalk.method({
811
1080
  selector: "remove:ifAbsent:",
812
- fn: function (aKey, aBlock){
1081
+ fn: function (aKey,aBlock){
813
1082
  var self=this;
814
- return smalltalk.send(self, "_removeKey_ifAbsent_", [aKey, aBlock]);
815
- return self;}
1083
+ var $1;
1084
+ $1=smalltalk.send(self,"_removeKey_ifAbsent_",[aKey,aBlock]);
1085
+ return $1;
1086
+ }
816
1087
  }),
817
1088
  smalltalk.HashedCollection);
818
1089
 
@@ -822,8 +1093,10 @@ smalltalk.method({
822
1093
  selector: "removeKey:",
823
1094
  fn: function (aKey){
824
1095
  var self=this;
825
- return smalltalk.send(self, "_remove_", [aKey]);
826
- return self;}
1096
+ var $1;
1097
+ $1=smalltalk.send(self,"_remove_",[aKey]);
1098
+ return $1;
1099
+ }
827
1100
  }),
828
1101
  smalltalk.HashedCollection);
829
1102
 
@@ -831,10 +1104,17 @@ smalltalk.addMethod(
831
1104
  "_removeKey_ifAbsent_",
832
1105
  smalltalk.method({
833
1106
  selector: "removeKey:ifAbsent:",
834
- fn: function (aKey, aBlock){
835
- var self=this;
836
- 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]);})]));
837
- return self;}
1107
+ fn: function (aKey,aBlock){
1108
+ var self=this;
1109
+ var $2,$1;
1110
+ $2=smalltalk.send(self,"_includesKey_",[aKey]);
1111
+ if(smalltalk.assert($2)){
1112
+ $1=smalltalk.send(self,"_basicDelete_",[aKey]);
1113
+ } else {
1114
+ $1=smalltalk.send(aBlock,"_value",[]);
1115
+ };
1116
+ return $1;
1117
+ }
838
1118
  }),
839
1119
  smalltalk.HashedCollection);
840
1120
 
@@ -844,11 +1124,17 @@ smalltalk.method({
844
1124
  selector: "select:",
845
1125
  fn: function (aBlock){
846
1126
  var self=this;
847
- var newDict=nil;
848
- (newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
849
- smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(aBlock, "_value_", [value])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]));})]);
1127
+ var $1;
1128
+ var newDict;
1129
+ newDict=smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]);
1130
+ smalltalk.send(self,"_keysAndValuesDo_",[(function(key,value){
1131
+ $1=smalltalk.send(aBlock,"_value_",[value]);
1132
+ if(smalltalk.assert($1)){
1133
+ return smalltalk.send(newDict,"_at_put_",[key,value]);
1134
+ };
1135
+ })]);
850
1136
  return newDict;
851
- return self;}
1137
+ }
852
1138
  }),
853
1139
  smalltalk.HashedCollection);
854
1140
 
@@ -858,11 +1144,13 @@ smalltalk.method({
858
1144
  selector: "shallowCopy",
859
1145
  fn: function (){
860
1146
  var self=this;
861
- var copy=nil;
862
- (copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
863
- smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
1147
+ var copy;
1148
+ copy=smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]);
1149
+ smalltalk.send(self,"_associationsDo_",[(function(each){
1150
+ return smalltalk.send(copy,"_at_put_",[smalltalk.send(each,"_key",[]),smalltalk.send(each,"_value",[])]);
1151
+ })]);
864
1152
  return copy;
865
- return self;}
1153
+ }
866
1154
  }),
867
1155
  smalltalk.HashedCollection);
868
1156
 
@@ -872,8 +1160,10 @@ smalltalk.method({
872
1160
  selector: "size",
873
1161
  fn: function (){
874
1162
  var self=this;
875
- return smalltalk.send(smalltalk.send(self, "_keys", []), "_size", []);
876
- return self;}
1163
+ var $1;
1164
+ $1=smalltalk.send(smalltalk.send(self,"_keys",[]),"_size",[]);
1165
+ return $1;
1166
+ }
877
1167
  }),
878
1168
  smalltalk.HashedCollection);
879
1169
 
@@ -883,10 +1173,14 @@ smalltalk.method({
883
1173
  selector: "storeOn:",
884
1174
  fn: function (aStream){
885
1175
  var self=this;
886
- smalltalk.send(aStream, "_nextPutAll_", ["#{"]);
887
- smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
888
- smalltalk.send(aStream, "_nextPutAll_", ["}"]);
889
- return self;}
1176
+ smalltalk.send(aStream,"_nextPutAll_",["#{"]);
1177
+ smalltalk.send(smalltalk.send(self,"_associations",[]),"_do_separatedBy_",[(function(each){
1178
+ return smalltalk.send(each,"_storeOn_",[aStream]);
1179
+ }),(function(){
1180
+ return smalltalk.send(aStream,"_nextPutAll_",[". "]);
1181
+ })]);
1182
+ smalltalk.send(aStream,"_nextPutAll_",["}"]);
1183
+ return self}
890
1184
  }),
891
1185
  smalltalk.HashedCollection);
892
1186
 
@@ -896,8 +1190,12 @@ smalltalk.method({
896
1190
  selector: "values",
897
1191
  fn: function (){
898
1192
  var self=this;
899
- return smalltalk.send(smalltalk.send(self, "_keys", []), "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
900
- return self;}
1193
+ var $1;
1194
+ $1=smalltalk.send(smalltalk.send(self,"_keys",[]),"_collect_",[(function(each){
1195
+ return smalltalk.send(self,"_at_",[each]);
1196
+ })]);
1197
+ return $1;
1198
+ }
901
1199
  }),
902
1200
  smalltalk.HashedCollection);
903
1201
 
@@ -908,11 +1206,13 @@ smalltalk.method({
908
1206
  selector: "fromPairs:",
909
1207
  fn: function (aCollection){
910
1208
  var self=this;
911
- var dict=nil;
912
- (dict=smalltalk.send(self, "_new", []));
913
- smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
1209
+ var dict;
1210
+ dict=smalltalk.send(self,"_new",[]);
1211
+ smalltalk.send(aCollection,"_do_",[(function(each){
1212
+ return smalltalk.send(dict,"_add_",[each]);
1213
+ })]);
914
1214
  return dict;
915
- return self;}
1215
+ }
916
1216
  }),
917
1217
  smalltalk.HashedCollection.klass);
918
1218
 
@@ -924,8 +1224,10 @@ smalltalk.method({
924
1224
  selector: "asHashedCollection",
925
1225
  fn: function (){
926
1226
  var self=this;
927
- return smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_fromPairs_", [smalltalk.send(self, "_associations", [])]);
928
- return self;}
1227
+ var $1;
1228
+ $1=smalltalk.send((smalltalk.HashedCollection || HashedCollection),"_fromPairs_",[smalltalk.send(self,"_associations",[])]);
1229
+ return $1;
1230
+ }
929
1231
  }),
930
1232
  smalltalk.Dictionary);
931
1233
 
@@ -935,8 +1237,10 @@ smalltalk.method({
935
1237
  selector: "asJSON",
936
1238
  fn: function (){
937
1239
  var self=this;
938
- return smalltalk.send(smalltalk.send(self, "_asHashedCollection", []), "_asJSON", []);
939
- return self;}
1240
+ var $1;
1241
+ $1=smalltalk.send(smalltalk.send(self,"_asHashedCollection",[]),"_asJSON",[]);
1242
+ return $1;
1243
+ }
940
1244
  }),
941
1245
  smalltalk.Dictionary);
942
1246
 
@@ -944,7 +1248,7 @@ smalltalk.addMethod(
944
1248
  "_at_ifAbsent_",
945
1249
  smalltalk.method({
946
1250
  selector: "at:ifAbsent:",
947
- fn: function (aKey, aBlock){
1251
+ fn: function (aKey,aBlock){
948
1252
  var self=this;
949
1253
 
950
1254
  var index;
@@ -957,7 +1261,8 @@ var self=this;
957
1261
  return self['@values'][index];
958
1262
  }
959
1263
  ;
960
- return self;}
1264
+ ;
1265
+ return self}
961
1266
  }),
962
1267
  smalltalk.Dictionary);
963
1268
 
@@ -965,7 +1270,7 @@ smalltalk.addMethod(
965
1270
  "_at_put_",
966
1271
  smalltalk.method({
967
1272
  selector: "at:put:",
968
- fn: function (aKey, aValue){
1273
+ fn: function (aKey,aValue){
969
1274
  var self=this;
970
1275
 
971
1276
  var index = self['@keys'].indexOf(aKey);
@@ -978,7 +1283,8 @@ var self=this;
978
1283
 
979
1284
  return aValue;
980
1285
  ;
981
- return self;}
1286
+ ;
1287
+ return self}
982
1288
  }),
983
1289
  smalltalk.Dictionary);
984
1290
 
@@ -988,8 +1294,10 @@ smalltalk.method({
988
1294
  selector: "includesKey:",
989
1295
  fn: function (aKey){
990
1296
  var self=this;
991
- return smalltalk.send(self['@keys'], "_includes_", [aKey]);
992
- return self;}
1297
+ var $1;
1298
+ $1=smalltalk.send(self["@keys"],"_includes_",[aKey]);
1299
+ return $1;
1300
+ }
993
1301
  }),
994
1302
  smalltalk.Dictionary);
995
1303
 
@@ -999,10 +1307,27 @@ smalltalk.method({
999
1307
  selector: "initialize",
1000
1308
  fn: function (){
1001
1309
  var self=this;
1002
- smalltalk.send(self, "_initialize", [], smalltalk.Dictionary.superclass || nil);
1003
- (self['@keys']=[]);
1004
- (self['@values']=[]);
1005
- return self;}
1310
+ smalltalk.send(self,"_initialize",[],smalltalk.HashedCollection);
1311
+ self["@keys"]=[];
1312
+ self["@values"]=[];
1313
+ return self}
1314
+ }),
1315
+ smalltalk.Dictionary);
1316
+
1317
+ smalltalk.addMethod(
1318
+ "_keyAtValue_",
1319
+ smalltalk.method({
1320
+ selector: "keyAtValue:",
1321
+ fn: function (anObject){
1322
+ var self=this;
1323
+ var $1;
1324
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_associations",[]),"_detect_ifNone_",[(function(k,v){
1325
+ return smalltalk.send(v,"__eq_eq",[anObject]);
1326
+ }),(function(){
1327
+ return smalltalk.send(self,"_error_",["Not found"]);
1328
+ })]),"_key",[]);
1329
+ return $1;
1330
+ }
1006
1331
  }),
1007
1332
  smalltalk.Dictionary);
1008
1333
 
@@ -1012,8 +1337,10 @@ smalltalk.method({
1012
1337
  selector: "keys",
1013
1338
  fn: function (){
1014
1339
  var self=this;
1015
- return smalltalk.send(self['@keys'], "_copy", []);
1016
- return self;}
1340
+ var $1;
1341
+ $1=smalltalk.send(self["@keys"],"_copy",[]);
1342
+ return $1;
1343
+ }
1017
1344
  }),
1018
1345
  smalltalk.Dictionary);
1019
1346
 
@@ -1021,7 +1348,7 @@ smalltalk.addMethod(
1021
1348
  "_removeKey_ifAbsent_",
1022
1349
  smalltalk.method({
1023
1350
  selector: "removeKey:ifAbsent:",
1024
- fn: function (aKey, aBlock){
1351
+ fn: function (aKey,aBlock){
1025
1352
  var self=this;
1026
1353
 
1027
1354
  var index = self['@keys'].indexOf(aKey);
@@ -1034,7 +1361,21 @@ var self=this;
1034
1361
  return value[0];
1035
1362
  };
1036
1363
  ;
1037
- return self;}
1364
+ ;
1365
+ return self}
1366
+ }),
1367
+ smalltalk.Dictionary);
1368
+
1369
+ smalltalk.addMethod(
1370
+ "_valueAt_",
1371
+ smalltalk.method({
1372
+ selector: "valueAt:",
1373
+ fn: function (anObject){
1374
+ var self=this;
1375
+ var $1;
1376
+ $1=smalltalk.send(self,"_associationsDo_",[(2)]);
1377
+ return $1;
1378
+ }
1038
1379
  }),
1039
1380
  smalltalk.Dictionary);
1040
1381
 
@@ -1044,8 +1385,10 @@ smalltalk.method({
1044
1385
  selector: "values",
1045
1386
  fn: function (){
1046
1387
  var self=this;
1047
- return smalltalk.send(self['@values'], "_copy", []);
1048
- return self;}
1388
+ var $1;
1389
+ $1=smalltalk.send(self["@values"],"_copy",[]);
1390
+ return $1;
1391
+ }
1049
1392
  }),
1050
1393
  smalltalk.Dictionary);
1051
1394
 
@@ -1058,12 +1401,25 @@ smalltalk.method({
1058
1401
  selector: "=",
1059
1402
  fn: function (aCollection){
1060
1403
  var self=this;
1404
+ var $1,$2;
1061
1405
  var $early={};
1062
- 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 $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
1063
- 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 $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));})]);
1406
+ try {
1407
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_class",[]),"__eq",[smalltalk.send(aCollection,"_class",[])]),"_and_",[(function(){
1408
+ return smalltalk.send(smalltalk.send(self,"_size",[]),"__eq",[smalltalk.send(aCollection,"_size",[])]);
1409
+ })]);
1410
+ if(! smalltalk.assert($1)){
1411
+ return false;
1412
+ };
1413
+ smalltalk.send(self,"_withIndexDo_",[(function(each,i){
1414
+ $2=smalltalk.send(smalltalk.send(aCollection,"_at_",[i]),"__eq",[each]);
1415
+ if(! smalltalk.assert($2)){
1416
+ throw $early=[false];
1417
+ };
1418
+ })]);
1064
1419
  return true;
1065
- return self;
1066
- } catch(e) {if(e===$early)return e[0]; throw e}}
1420
+ }
1421
+ catch(e) {if(e===$early)return e[0]; throw e}
1422
+ }
1067
1423
  }),
1068
1424
  smalltalk.SequenceableCollection);
1069
1425
 
@@ -1073,8 +1429,8 @@ smalltalk.method({
1073
1429
  selector: "addLast:",
1074
1430
  fn: function (anObject){
1075
1431
  var self=this;
1076
- smalltalk.send(self, "_add_", [anObject]);
1077
- return self;}
1432
+ smalltalk.send(self,"_add_",[anObject]);
1433
+ return self}
1078
1434
  }),
1079
1435
  smalltalk.SequenceableCollection);
1080
1436
 
@@ -1084,8 +1440,10 @@ smalltalk.method({
1084
1440
  selector: "allButFirst",
1085
1441
  fn: function (){
1086
1442
  var self=this;
1087
- return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
1088
- return self;}
1443
+ var $1;
1444
+ $1=smalltalk.send(self,"_copyFrom_to_",[(2),smalltalk.send(self,"_size",[])]);
1445
+ return $1;
1446
+ }
1089
1447
  }),
1090
1448
  smalltalk.SequenceableCollection);
1091
1449
 
@@ -1095,8 +1453,10 @@ smalltalk.method({
1095
1453
  selector: "allButLast",
1096
1454
  fn: function (){
1097
1455
  var self=this;
1098
- return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
1099
- return self;}
1456
+ var $1;
1457
+ $1=smalltalk.send(self,"_copyFrom_to_",[(1),smalltalk.send(smalltalk.send(self,"_size",[]),"__minus",[(1)])]);
1458
+ return $1;
1459
+ }
1100
1460
  }),
1101
1461
  smalltalk.SequenceableCollection);
1102
1462
 
@@ -1106,8 +1466,12 @@ smalltalk.method({
1106
1466
  selector: "at:",
1107
1467
  fn: function (anIndex){
1108
1468
  var self=this;
1109
- return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
1110
- return self;}
1469
+ var $1;
1470
+ $1=smalltalk.send(self,"_at_ifAbsent_",[anIndex,(function(){
1471
+ return smalltalk.send(self,"_errorNotFound",[]);
1472
+ })]);
1473
+ return $1;
1474
+ }
1111
1475
  }),
1112
1476
  smalltalk.SequenceableCollection);
1113
1477
 
@@ -1115,10 +1479,10 @@ smalltalk.addMethod(
1115
1479
  "_at_ifAbsent_",
1116
1480
  smalltalk.method({
1117
1481
  selector: "at:ifAbsent:",
1118
- fn: function (anIndex, aBlock){
1482
+ fn: function (anIndex,aBlock){
1119
1483
  var self=this;
1120
- smalltalk.send(self, "_subclassResponsibility", []);
1121
- return self;}
1484
+ smalltalk.send(self,"_subclassResponsibility",[]);
1485
+ return self}
1122
1486
  }),
1123
1487
  smalltalk.SequenceableCollection);
1124
1488
 
@@ -1126,10 +1490,10 @@ smalltalk.addMethod(
1126
1490
  "_at_put_",
1127
1491
  smalltalk.method({
1128
1492
  selector: "at:put:",
1129
- fn: function (anIndex, anObject){
1493
+ fn: function (anIndex,anObject){
1130
1494
  var self=this;
1131
- smalltalk.send(self, "_subclassResponsibility", []);
1132
- return self;}
1495
+ smalltalk.send(self,"_subclassResponsibility",[]);
1496
+ return self}
1133
1497
  }),
1134
1498
  smalltalk.SequenceableCollection);
1135
1499
 
@@ -1139,8 +1503,10 @@ smalltalk.method({
1139
1503
  selector: "atRandom",
1140
1504
  fn: function (){
1141
1505
  var self=this;
1142
- return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
1143
- return self;}
1506
+ var $1;
1507
+ $1=smalltalk.send(self,"_at_",[smalltalk.send(smalltalk.send(self,"_size",[]),"_atRandom",[])]);
1508
+ return $1;
1509
+ }
1144
1510
  }),
1145
1511
  smalltalk.SequenceableCollection);
1146
1512
 
@@ -1148,15 +1514,17 @@ smalltalk.addMethod(
1148
1514
  "_copyFrom_to_",
1149
1515
  smalltalk.method({
1150
1516
  selector: "copyFrom:to:",
1151
- fn: function (anIndex, anotherIndex){
1152
- var self=this;
1153
- var range=nil;
1154
- var newCollection=nil;
1155
- (range=smalltalk.send(anIndex, "_to_", [anotherIndex]));
1156
- (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(range, "_size", [])]));
1157
- smalltalk.send(range, "_withIndexDo_", [(function(each, i){return smalltalk.send(newCollection, "_at_put_", [i, smalltalk.send(self, "_at_", [each])]);})]);
1517
+ fn: function (anIndex,anotherIndex){
1518
+ var self=this;
1519
+ var range;
1520
+ var newCollection;
1521
+ range=smalltalk.send(anIndex,"_to_",[anotherIndex]);
1522
+ newCollection=smalltalk.send(smalltalk.send(self,"_class",[]),"_new_",[smalltalk.send(range,"_size",[])]);
1523
+ smalltalk.send(range,"_withIndexDo_",[(function(each,i){
1524
+ return smalltalk.send(newCollection,"_at_put_",[i,smalltalk.send(self,"_at_",[each])]);
1525
+ })]);
1158
1526
  return newCollection;
1159
- return self;}
1527
+ }
1160
1528
  }),
1161
1529
  smalltalk.SequenceableCollection);
1162
1530
 
@@ -1166,11 +1534,13 @@ smalltalk.method({
1166
1534
  selector: "deepCopy",
1167
1535
  fn: function (){
1168
1536
  var self=this;
1169
- var newCollection=nil;
1170
- (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(self, "_size", [])]));
1171
- smalltalk.send(self, "_withIndexDo_", [(function(each, index){return smalltalk.send(newCollection, "_at_put_", [index, smalltalk.send(each, "_deepCopy", [])]);})]);
1537
+ var newCollection;
1538
+ newCollection=smalltalk.send(smalltalk.send(self,"_class",[]),"_new_",[smalltalk.send(self,"_size",[])]);
1539
+ smalltalk.send(self,"_withIndexDo_",[(function(each,index){
1540
+ return smalltalk.send(newCollection,"_at_put_",[index,smalltalk.send(each,"_deepCopy",[])]);
1541
+ })]);
1172
1542
  return newCollection;
1173
- return self;}
1543
+ }
1174
1544
  }),
1175
1545
  smalltalk.SequenceableCollection);
1176
1546
 
@@ -1180,8 +1550,10 @@ smalltalk.method({
1180
1550
  selector: "first",
1181
1551
  fn: function (){
1182
1552
  var self=this;
1183
- return smalltalk.send(self, "_at_", [(1)]);
1184
- return self;}
1553
+ var $1;
1554
+ $1=smalltalk.send(self,"_at_",[(1)]);
1555
+ return $1;
1556
+ }
1185
1557
  }),
1186
1558
  smalltalk.SequenceableCollection);
1187
1559
 
@@ -1191,8 +1563,10 @@ smalltalk.method({
1191
1563
  selector: "first:",
1192
1564
  fn: function (n){
1193
1565
  var self=this;
1194
- return smalltalk.send(self, "_copyFrom_to_", [(1), n]);
1195
- return self;}
1566
+ var $1;
1567
+ $1=smalltalk.send(self,"_copyFrom_to_",[(1),n]);
1568
+ return $1;
1569
+ }
1196
1570
  }),
1197
1571
  smalltalk.SequenceableCollection);
1198
1572
 
@@ -1202,8 +1576,10 @@ smalltalk.method({
1202
1576
  selector: "fourth",
1203
1577
  fn: function (){
1204
1578
  var self=this;
1205
- return smalltalk.send(self, "_at_", [(4)]);
1206
- return self;}
1579
+ var $1;
1580
+ $1=smalltalk.send(self,"_at_",[(4)]);
1581
+ return $1;
1582
+ }
1207
1583
  }),
1208
1584
  smalltalk.SequenceableCollection);
1209
1585
 
@@ -1213,8 +1589,12 @@ smalltalk.method({
1213
1589
  selector: "indexOf:",
1214
1590
  fn: function (anObject){
1215
1591
  var self=this;
1216
- return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
1217
- return self;}
1592
+ var $1;
1593
+ $1=smalltalk.send(self,"_indexOf_ifAbsent_",[anObject,(function(){
1594
+ return smalltalk.send(self,"_errorNotFound",[]);
1595
+ })]);
1596
+ return $1;
1597
+ }
1218
1598
  }),
1219
1599
  smalltalk.SequenceableCollection);
1220
1600
 
@@ -1222,15 +1602,16 @@ smalltalk.addMethod(
1222
1602
  "_indexOf_ifAbsent_",
1223
1603
  smalltalk.method({
1224
1604
  selector: "indexOf:ifAbsent:",
1225
- fn: function (anObject, aBlock){
1605
+ fn: function (anObject,aBlock){
1226
1606
  var self=this;
1227
1607
 
1228
- for(var i=0;i<self.length;i++){
1229
- if(self[i].__eq(anObject)) {return i+1}
1230
- }
1608
+ for(var i=0;i<self.length;i++) {
1609
+ if(smalltalk.send(self[i], '__eq', [anObject])) {return i+1}
1610
+ };
1231
1611
  return aBlock();
1232
1612
  ;
1233
- return self;}
1613
+ ;
1614
+ return self}
1234
1615
  }),
1235
1616
  smalltalk.SequenceableCollection);
1236
1617
 
@@ -1238,10 +1619,14 @@ smalltalk.addMethod(
1238
1619
  "_indexOf_startingAt_",
1239
1620
  smalltalk.method({
1240
1621
  selector: "indexOf:startingAt:",
1241
- fn: function (anObject, start){
1622
+ fn: function (anObject,start){
1242
1623
  var self=this;
1243
- return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
1244
- return self;}
1624
+ var $1;
1625
+ $1=smalltalk.send(self,"_indexOf_startingAt_ifAbsent_",[anObject,start,(function(){
1626
+ return (0);
1627
+ })]);
1628
+ return $1;
1629
+ }
1245
1630
  }),
1246
1631
  smalltalk.SequenceableCollection);
1247
1632
 
@@ -1249,7 +1634,7 @@ smalltalk.addMethod(
1249
1634
  "_indexOf_startingAt_ifAbsent_",
1250
1635
  smalltalk.method({
1251
1636
  selector: "indexOf:startingAt:ifAbsent:",
1252
- fn: function (anObject, start, aBlock){
1637
+ fn: function (anObject,start,aBlock){
1253
1638
  var self=this;
1254
1639
 
1255
1640
  for(var i=start-1;i<self.length;i++){
@@ -1257,7 +1642,8 @@ var self=this;
1257
1642
  }
1258
1643
  return aBlock();
1259
1644
  ;
1260
- return self;}
1645
+ ;
1646
+ return self}
1261
1647
  }),
1262
1648
  smalltalk.SequenceableCollection);
1263
1649
 
@@ -1267,24 +1653,10 @@ smalltalk.method({
1267
1653
  selector: "last",
1268
1654
  fn: function (){
1269
1655
  var self=this;
1270
- return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
1271
- return self;}
1272
- }),
1273
- smalltalk.SequenceableCollection);
1274
-
1275
- smalltalk.addMethod(
1276
- "_printString",
1277
- smalltalk.method({
1278
- selector: "printString",
1279
- fn: function (){
1280
- var self=this;
1281
- var str=nil;
1282
- (str=smalltalk.send("", "_writeStream", []));
1283
- smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection.superclass || nil), "__comma", [" ("])]);
1284
- smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
1285
- smalltalk.send(str, "_nextPutAll_", [")"]);
1286
- return smalltalk.send(str, "_contents", []);
1287
- return self;}
1656
+ var $1;
1657
+ $1=smalltalk.send(self,"_at_",[smalltalk.send(self,"_size",[])]);
1658
+ return $1;
1659
+ }
1288
1660
  }),
1289
1661
  smalltalk.SequenceableCollection);
1290
1662
 
@@ -1294,8 +1666,8 @@ smalltalk.method({
1294
1666
  selector: "removeLast",
1295
1667
  fn: function (){
1296
1668
  var self=this;
1297
- smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
1298
- return self;}
1669
+ smalltalk.send(self,"_remove_",[smalltalk.send(self,"_last",[])]);
1670
+ return self}
1299
1671
  }),
1300
1672
  smalltalk.SequenceableCollection);
1301
1673
 
@@ -1305,8 +1677,8 @@ smalltalk.method({
1305
1677
  selector: "reversed",
1306
1678
  fn: function (){
1307
1679
  var self=this;
1308
- smalltalk.send(self, "_subclassResponsibility", []);
1309
- return self;}
1680
+ smalltalk.send(self,"_subclassResponsibility",[]);
1681
+ return self}
1310
1682
  }),
1311
1683
  smalltalk.SequenceableCollection);
1312
1684
 
@@ -1316,8 +1688,10 @@ smalltalk.method({
1316
1688
  selector: "second",
1317
1689
  fn: function (){
1318
1690
  var self=this;
1319
- return smalltalk.send(self, "_at_", [(2)]);
1320
- return self;}
1691
+ var $1;
1692
+ $1=smalltalk.send(self,"_at_",[(2)]);
1693
+ return $1;
1694
+ }
1321
1695
  }),
1322
1696
  smalltalk.SequenceableCollection);
1323
1697
 
@@ -1327,11 +1701,13 @@ smalltalk.method({
1327
1701
  selector: "shallowCopy",
1328
1702
  fn: function (){
1329
1703
  var self=this;
1330
- var newCollection=nil;
1331
- (newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new_", [smalltalk.send(self, "_size", [])]));
1332
- smalltalk.send(self, "_withIndexDo_", [(function(each, index){return smalltalk.send(newCollection, "_at_put_", [index, each]);})]);
1704
+ var newCollection;
1705
+ newCollection=smalltalk.send(smalltalk.send(self,"_class",[]),"_new_",[smalltalk.send(self,"_size",[])]);
1706
+ smalltalk.send(self,"_withIndexDo_",[(function(each,index){
1707
+ return smalltalk.send(newCollection,"_at_put_",[index,each]);
1708
+ })]);
1333
1709
  return newCollection;
1334
- return self;}
1710
+ }
1335
1711
  }),
1336
1712
  smalltalk.SequenceableCollection);
1337
1713
 
@@ -1341,8 +1717,10 @@ smalltalk.method({
1341
1717
  selector: "third",
1342
1718
  fn: function (){
1343
1719
  var self=this;
1344
- return smalltalk.send(self, "_at_", [(3)]);
1345
- return self;}
1720
+ var $1;
1721
+ $1=smalltalk.send(self,"_at_",[(3)]);
1722
+ return $1;
1723
+ }
1346
1724
  }),
1347
1725
  smalltalk.SequenceableCollection);
1348
1726
 
@@ -1353,7 +1731,8 @@ selector: "withIndexDo:",
1353
1731
  fn: function (aBlock){
1354
1732
  var self=this;
1355
1733
  for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
1356
- return self;}
1734
+ ;
1735
+ return self}
1357
1736
  }),
1358
1737
  smalltalk.SequenceableCollection);
1359
1738
 
@@ -1367,7 +1746,8 @@ selector: "add:",
1367
1746
  fn: function (anObject){
1368
1747
  var self=this;
1369
1748
  self.push(anObject); return anObject;;
1370
- return self;}
1749
+ ;
1750
+ return self}
1371
1751
  }),
1372
1752
  smalltalk.Array);
1373
1753
 
@@ -1377,8 +1757,12 @@ smalltalk.method({
1377
1757
  selector: "asJavascript",
1378
1758
  fn: function (){
1379
1759
  var self=this;
1380
- return smalltalk.send(smalltalk.send("[", "__comma", [smalltalk.send(smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJavascript", []);})]), "_join_", [", "])]), "__comma", ["]"]);
1381
- return self;}
1760
+ var $1;
1761
+ $1=smalltalk.send(smalltalk.send("[","__comma",[smalltalk.send(smalltalk.send(self,"_collect_",[(function(each){
1762
+ return smalltalk.send(each,"_asJavascript",[]);
1763
+ })]),"_join_",[", "])]),"__comma",["]"]);
1764
+ return $1;
1765
+ }
1382
1766
  }),
1383
1767
  smalltalk.Array);
1384
1768
 
@@ -1386,13 +1770,14 @@ smalltalk.addMethod(
1386
1770
  "_at_ifAbsent_",
1387
1771
  smalltalk.method({
1388
1772
  selector: "at:ifAbsent:",
1389
- fn: function (anIndex, aBlock){
1773
+ fn: function (anIndex,aBlock){
1390
1774
  var self=this;
1391
1775
 
1392
1776
  if((anIndex < 1) || (self.length < anIndex)) {return aBlock()};
1393
1777
  return self[anIndex - 1];
1394
1778
  ;
1395
- return self;}
1779
+ ;
1780
+ return self}
1396
1781
  }),
1397
1782
  smalltalk.Array);
1398
1783
 
@@ -1400,10 +1785,11 @@ smalltalk.addMethod(
1400
1785
  "_at_put_",
1401
1786
  smalltalk.method({
1402
1787
  selector: "at:put:",
1403
- fn: function (anIndex, anObject){
1788
+ fn: function (anIndex,anObject){
1404
1789
  var self=this;
1405
1790
  return self[anIndex - 1] = anObject;
1406
- return self;}
1791
+ ;
1792
+ return self}
1407
1793
  }),
1408
1794
  smalltalk.Array);
1409
1795
 
@@ -1414,25 +1800,28 @@ selector: "join:",
1414
1800
  fn: function (aString){
1415
1801
  var self=this;
1416
1802
  return self.join(aString);
1417
- return self;}
1803
+ ;
1804
+ return self}
1418
1805
  }),
1419
1806
  smalltalk.Array);
1420
1807
 
1421
1808
  smalltalk.addMethod(
1422
- "_remove_",
1809
+ "_remove_ifAbsent_",
1423
1810
  smalltalk.method({
1424
- selector: "remove:",
1425
- fn: function (anObject){
1811
+ selector: "remove:ifAbsent:",
1812
+ fn: function (anObject,aBlock){
1426
1813
  var self=this;
1427
1814
 
1428
1815
  for(var i=0;i<self.length;i++) {
1429
1816
  if(self[i] == anObject) {
1430
1817
  self.splice(i,1);
1431
- break;
1818
+ return self;
1432
1819
  }
1433
1820
  }
1434
1821
  ;
1435
- return self;}
1822
+ ;
1823
+ smalltalk.send(aBlock,"_value",[]);
1824
+ return self}
1436
1825
  }),
1437
1826
  smalltalk.Array);
1438
1827
 
@@ -1440,10 +1829,11 @@ smalltalk.addMethod(
1440
1829
  "_removeFrom_to_",
1441
1830
  smalltalk.method({
1442
1831
  selector: "removeFrom:to:",
1443
- fn: function (aNumber, anotherNumber){
1832
+ fn: function (aNumber,anotherNumber){
1444
1833
  var self=this;
1445
1834
  self.splice(aNumber - 1,anotherNumber - 1);
1446
- return self;}
1835
+ ;
1836
+ return self}
1447
1837
  }),
1448
1838
  smalltalk.Array);
1449
1839
 
@@ -1454,7 +1844,8 @@ selector: "reversed",
1454
1844
  fn: function (){
1455
1845
  var self=this;
1456
1846
  return self._copy().reverse();
1457
- return self;}
1847
+ ;
1848
+ return self}
1458
1849
  }),
1459
1850
  smalltalk.Array);
1460
1851
 
@@ -1465,7 +1856,8 @@ selector: "size",
1465
1856
  fn: function (){
1466
1857
  var self=this;
1467
1858
  return self.length;
1468
- return self;}
1859
+ ;
1860
+ return self}
1469
1861
  }),
1470
1862
  smalltalk.Array);
1471
1863
 
@@ -1475,8 +1867,10 @@ smalltalk.method({
1475
1867
  selector: "sort",
1476
1868
  fn: function (){
1477
1869
  var self=this;
1478
- return smalltalk.send(self, "_basicPerform_", ["sort"]);
1479
- return self;}
1870
+ var $1;
1871
+ $1=smalltalk.send(self,"_basicPerform_",["sort"]);
1872
+ return $1;
1873
+ }
1480
1874
  }),
1481
1875
  smalltalk.Array);
1482
1876
 
@@ -1491,7 +1885,8 @@ var self=this;
1491
1885
  if(aBlock(a,b)) {return -1} else {return 1}
1492
1886
  })
1493
1887
  ;
1494
- return self;}
1888
+ ;
1889
+ return self}
1495
1890
  }),
1496
1891
  smalltalk.Array);
1497
1892
 
@@ -1501,8 +1896,10 @@ smalltalk.method({
1501
1896
  selector: "sorted",
1502
1897
  fn: function (){
1503
1898
  var self=this;
1504
- return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
1505
- return self;}
1899
+ var $1;
1900
+ $1=smalltalk.send(smalltalk.send(self,"_copy",[]),"_sort",[]);
1901
+ return $1;
1902
+ }
1506
1903
  }),
1507
1904
  smalltalk.Array);
1508
1905
 
@@ -1512,8 +1909,10 @@ smalltalk.method({
1512
1909
  selector: "sorted:",
1513
1910
  fn: function (aBlock){
1514
1911
  var self=this;
1515
- return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
1516
- return self;}
1912
+ var $1;
1913
+ $1=smalltalk.send(smalltalk.send(self,"_copy",[]),"_sort_",[aBlock]);
1914
+ return $1;
1915
+ }
1517
1916
  }),
1518
1917
  smalltalk.Array);
1519
1918
 
@@ -1525,7 +1924,8 @@ selector: "new:",
1525
1924
  fn: function (anInteger){
1526
1925
  var self=this;
1527
1926
  return new Array(anInteger);
1528
- return self;}
1927
+ ;
1928
+ return self}
1529
1929
  }),
1530
1930
  smalltalk.Array.klass);
1531
1931
 
@@ -1535,8 +1935,13 @@ smalltalk.method({
1535
1935
  selector: "with:",
1536
1936
  fn: function (anObject){
1537
1937
  var self=this;
1538
- return (function($rec){smalltalk.send($rec, "_at_put_", [(1), anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new_", [(1)]));
1539
- return self;}
1938
+ var $2,$3,$1;
1939
+ $2=smalltalk.send(self,"_new_",[(1)]);
1940
+ smalltalk.send($2,"_at_put_",[(1),anObject]);
1941
+ $3=smalltalk.send($2,"_yourself",[]);
1942
+ $1=$3;
1943
+ return $1;
1944
+ }
1540
1945
  }),
1541
1946
  smalltalk.Array.klass);
1542
1947
 
@@ -1544,10 +1949,16 @@ smalltalk.addMethod(
1544
1949
  "_with_with_",
1545
1950
  smalltalk.method({
1546
1951
  selector: "with:with:",
1547
- fn: function (anObject, anObject2){
1952
+ fn: function (anObject,anObject2){
1548
1953
  var self=this;
1549
- 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)]));
1550
- return self;}
1954
+ var $2,$3,$1;
1955
+ $2=smalltalk.send(self,"_new_",[(2)]);
1956
+ smalltalk.send($2,"_at_put_",[(1),anObject]);
1957
+ smalltalk.send($2,"_at_put_",[(2),anObject2]);
1958
+ $3=smalltalk.send($2,"_yourself",[]);
1959
+ $1=$3;
1960
+ return $1;
1961
+ }
1551
1962
  }),
1552
1963
  smalltalk.Array.klass);
1553
1964
 
@@ -1555,10 +1966,17 @@ smalltalk.addMethod(
1555
1966
  "_with_with_with_",
1556
1967
  smalltalk.method({
1557
1968
  selector: "with:with:with:",
1558
- fn: function (anObject, anObject2, anObject3){
1559
- var self=this;
1560
- 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)]));
1561
- return self;}
1969
+ fn: function (anObject,anObject2,anObject3){
1970
+ var self=this;
1971
+ var $2,$3,$1;
1972
+ $2=smalltalk.send(self,"_new_",[(3)]);
1973
+ smalltalk.send($2,"_at_put_",[(1),anObject]);
1974
+ smalltalk.send($2,"_at_put_",[(2),anObject2]);
1975
+ smalltalk.send($2,"_at_put_",[(3),anObject3]);
1976
+ $3=smalltalk.send($2,"_yourself",[]);
1977
+ $1=$3;
1978
+ return $1;
1979
+ }
1562
1980
  }),
1563
1981
  smalltalk.Array.klass);
1564
1982
 
@@ -1568,11 +1986,17 @@ smalltalk.method({
1568
1986
  selector: "withAll:",
1569
1987
  fn: function (aCollection){
1570
1988
  var self=this;
1571
- var instance=nil;
1572
- (instance=smalltalk.send(self, "_new_", [smalltalk.send(aCollection, "_size", [])]));
1573
- smalltalk.send(aCollection, "_withIndexDo_", [(function(each, index){return smalltalk.send(instance, "_at_put_", [index, each]);})]);
1989
+ var instance;
1990
+ var index;
1991
+ index=(1);
1992
+ instance=smalltalk.send(self,"_new_",[smalltalk.send(aCollection,"_size",[])]);
1993
+ smalltalk.send(aCollection,"_do_",[(function(each){
1994
+ smalltalk.send(instance,"_at_put_",[index,each]);
1995
+ index=smalltalk.send(index,"__plus",[(1)]);
1996
+ return index;
1997
+ })]);
1574
1998
  return instance;
1575
- return self;}
1999
+ }
1576
2000
  }),
1577
2001
  smalltalk.Array.klass);
1578
2002
 
@@ -1584,8 +2008,10 @@ smalltalk.method({
1584
2008
  selector: ",",
1585
2009
  fn: function (aString){
1586
2010
  var self=this;
1587
- return smalltalk.send(smalltalk.send(self, "_asString", []), "__comma", [smalltalk.send(aString, "_asString", [])]);
1588
- return self;}
2011
+ var $1;
2012
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"__comma",[smalltalk.send(aString,"_asString",[])]);
2013
+ return $1;
2014
+ }
1589
2015
  }),
1590
2016
  smalltalk.CharacterArray);
1591
2017
 
@@ -1595,8 +2021,8 @@ smalltalk.method({
1595
2021
  selector: "add:",
1596
2022
  fn: function (anObject){
1597
2023
  var self=this;
1598
- smalltalk.send(self, "_errorReadOnly", []);
1599
- return self;}
2024
+ smalltalk.send(self,"_errorReadOnly",[]);
2025
+ return self}
1600
2026
  }),
1601
2027
  smalltalk.CharacterArray);
1602
2028
 
@@ -1606,8 +2032,10 @@ smalltalk.method({
1606
2032
  selector: "asLowercase",
1607
2033
  fn: function (){
1608
2034
  var self=this;
1609
- return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_asLowercase", [])]);
1610
- return self;}
2035
+ var $1;
2036
+ $1=smalltalk.send(smalltalk.send(self,"_class",[]),"_fromString_",[smalltalk.send(smalltalk.send(self,"_asString",[]),"_asLowercase",[])]);
2037
+ return $1;
2038
+ }
1611
2039
  }),
1612
2040
  smalltalk.CharacterArray);
1613
2041
 
@@ -1617,8 +2045,10 @@ smalltalk.method({
1617
2045
  selector: "asNumber",
1618
2046
  fn: function (){
1619
2047
  var self=this;
1620
- return smalltalk.send(smalltalk.send(self, "_asString", []), "_asNumber", []);
1621
- return self;}
2048
+ var $1;
2049
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_asNumber",[]);
2050
+ return $1;
2051
+ }
1622
2052
  }),
1623
2053
  smalltalk.CharacterArray);
1624
2054
 
@@ -1628,8 +2058,10 @@ smalltalk.method({
1628
2058
  selector: "asString",
1629
2059
  fn: function (){
1630
2060
  var self=this;
1631
- return smalltalk.send(self, "_subclassResponsibility", []);
1632
- return self;}
2061
+ var $1;
2062
+ $1=smalltalk.send(self,"_subclassResponsibility",[]);
2063
+ return $1;
2064
+ }
1633
2065
  }),
1634
2066
  smalltalk.CharacterArray);
1635
2067
 
@@ -1639,8 +2071,10 @@ smalltalk.method({
1639
2071
  selector: "asSymbol",
1640
2072
  fn: function (){
1641
2073
  var self=this;
1642
- return smalltalk.send(self, "_subclassResponsibility", []);
1643
- return self;}
2074
+ var $1;
2075
+ $1=smalltalk.send(self,"_subclassResponsibility",[]);
2076
+ return $1;
2077
+ }
1644
2078
  }),
1645
2079
  smalltalk.CharacterArray);
1646
2080
 
@@ -1650,8 +2084,10 @@ smalltalk.method({
1650
2084
  selector: "asUppercase",
1651
2085
  fn: function (){
1652
2086
  var self=this;
1653
- return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_asUppercase", [])]);
1654
- return self;}
2087
+ var $1;
2088
+ $1=smalltalk.send(smalltalk.send(self,"_class",[]),"_fromString_",[smalltalk.send(smalltalk.send(self,"_asString",[]),"_asUppercase",[])]);
2089
+ return $1;
2090
+ }
1655
2091
  }),
1656
2092
  smalltalk.CharacterArray);
1657
2093
 
@@ -1659,10 +2095,10 @@ smalltalk.addMethod(
1659
2095
  "_at_put_",
1660
2096
  smalltalk.method({
1661
2097
  selector: "at:put:",
1662
- fn: function (anIndex, anObject){
2098
+ fn: function (anIndex,anObject){
1663
2099
  var self=this;
1664
- smalltalk.send(self, "_errorReadOnly", []);
1665
- return self;}
2100
+ smalltalk.send(self,"_errorReadOnly",[]);
2101
+ return self}
1666
2102
  }),
1667
2103
  smalltalk.CharacterArray);
1668
2104
 
@@ -1672,8 +2108,8 @@ smalltalk.method({
1672
2108
  selector: "errorReadOnly",
1673
2109
  fn: function (){
1674
2110
  var self=this;
1675
- smalltalk.send(self, "_error_", ["Object is read-only"]);
1676
- return self;}
2111
+ smalltalk.send(self,"_error_",["Object is read-only"]);
2112
+ return self}
1677
2113
  }),
1678
2114
  smalltalk.CharacterArray);
1679
2115
 
@@ -1683,8 +2119,10 @@ smalltalk.method({
1683
2119
  selector: "printString",
1684
2120
  fn: function (){
1685
2121
  var self=this;
1686
- return smalltalk.send(smalltalk.send(self, "_asString", []), "_printString", []);
1687
- return self;}
2122
+ var $1;
2123
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_printString",[]);
2124
+ return $1;
2125
+ }
1688
2126
  }),
1689
2127
  smalltalk.CharacterArray);
1690
2128
 
@@ -1694,8 +2132,8 @@ smalltalk.method({
1694
2132
  selector: "remove:",
1695
2133
  fn: function (anObject){
1696
2134
  var self=this;
1697
- smalltalk.send(self, "_errorReadOnly", []);
1698
- return self;}
2135
+ smalltalk.send(self,"_errorReadOnly",[]);
2136
+ return self}
1699
2137
  }),
1700
2138
  smalltalk.CharacterArray);
1701
2139
 
@@ -1706,8 +2144,8 @@ smalltalk.method({
1706
2144
  selector: "fromString:",
1707
2145
  fn: function (aString){
1708
2146
  var self=this;
1709
- smalltalk.send(self, "_subclassResponsibility", []);
1710
- return self;}
2147
+ smalltalk.send(self,"_subclassResponsibility",[]);
2148
+ return self}
1711
2149
  }),
1712
2150
  smalltalk.CharacterArray.klass);
1713
2151
 
@@ -1720,7 +2158,8 @@ selector: ",",
1720
2158
  fn: function (aString){
1721
2159
  var self=this;
1722
2160
  return self + aString;
1723
- return self;}
2161
+ ;
2162
+ return self}
1724
2163
  }),
1725
2164
  smalltalk.String);
1726
2165
 
@@ -1731,7 +2170,8 @@ selector: "<",
1731
2170
  fn: function (aString){
1732
2171
  var self=this;
1733
2172
  return String(self) < aString._asString();
1734
- return self;}
2173
+ ;
2174
+ return self}
1735
2175
  }),
1736
2176
  smalltalk.String);
1737
2177
 
@@ -1742,7 +2182,8 @@ selector: "<=",
1742
2182
  fn: function (aString){
1743
2183
  var self=this;
1744
2184
  return String(self) <= aString._asString();
1745
- return self;}
2185
+ ;
2186
+ return self}
1746
2187
  }),
1747
2188
  smalltalk.String);
1748
2189
 
@@ -1752,11 +2193,14 @@ smalltalk.method({
1752
2193
  selector: "=",
1753
2194
  fn: function (aString){
1754
2195
  var self=this;
1755
- var $early={};
1756
- try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
2196
+ var $1;
2197
+ $1=smalltalk.send(smalltalk.send(aString,"_class",[]),"__eq",[smalltalk.send(self,"_class",[])]);
2198
+ if(! smalltalk.assert($1)){
2199
+ return false;
2200
+ };
1757
2201
  return String(self) === String(aString);
1758
- return self;
1759
- } catch(e) {if(e===$early)return e[0]; throw e}}
2202
+ ;
2203
+ return self}
1760
2204
  }),
1761
2205
  smalltalk.String);
1762
2206
 
@@ -1766,8 +2210,10 @@ smalltalk.method({
1766
2210
  selector: "==",
1767
2211
  fn: function (aString){
1768
2212
  var self=this;
1769
- return smalltalk.send(self, "__eq", [aString]);
1770
- return self;}
2213
+ var $1;
2214
+ $1=smalltalk.send(self,"__eq",[aString]);
2215
+ return $1;
2216
+ }
1771
2217
  }),
1772
2218
  smalltalk.String);
1773
2219
 
@@ -1778,7 +2224,8 @@ selector: ">",
1778
2224
  fn: function (aString){
1779
2225
  var self=this;
1780
2226
  return String(self) > aString._asString();
1781
- return self;}
2227
+ ;
2228
+ return self}
1782
2229
  }),
1783
2230
  smalltalk.String);
1784
2231
 
@@ -1789,7 +2236,8 @@ selector: ">=",
1789
2236
  fn: function (aString){
1790
2237
  var self=this;
1791
2238
  return String(self) >= aString._asString();
1792
- return self;}
2239
+ ;
2240
+ return self}
1793
2241
  }),
1794
2242
  smalltalk.String);
1795
2243
 
@@ -1800,7 +2248,7 @@ selector: "asJSON",
1800
2248
  fn: function (){
1801
2249
  var self=this;
1802
2250
  return self;
1803
- return self;}
2251
+ }
1804
2252
  }),
1805
2253
  smalltalk.String);
1806
2254
 
@@ -1810,8 +2258,10 @@ smalltalk.method({
1810
2258
  selector: "asJavaScriptSelector",
1811
2259
  fn: function (){
1812
2260
  var self=this;
1813
- return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", ["^_", ""]), "_replace_with_", ["_.*", ""]);
1814
- return self;}
2261
+ var $1;
2262
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_asSelector",[]),"_replace_with_",["^_",""]),"_replace_with_",["_.*",""]);
2263
+ return $1;
2264
+ }
1815
2265
  }),
1816
2266
  smalltalk.String);
1817
2267
 
@@ -1827,7 +2277,8 @@ var self=this;
1827
2277
  else
1828
2278
  return "\"" + self + "\"";
1829
2279
  ;
1830
- return self;}
2280
+ ;
2281
+ return self}
1831
2282
  }),
1832
2283
  smalltalk.String);
1833
2284
 
@@ -1838,7 +2289,8 @@ selector: "asLowercase",
1838
2289
  fn: function (){
1839
2290
  var self=this;
1840
2291
  return self.toLowerCase();
1841
- return self;}
2292
+ ;
2293
+ return self}
1842
2294
  }),
1843
2295
  smalltalk.String);
1844
2296
 
@@ -1849,7 +2301,8 @@ selector: "asNumber",
1849
2301
  fn: function (){
1850
2302
  var self=this;
1851
2303
  return Number(self);
1852
- return self;}
2304
+ ;
2305
+ return self}
1853
2306
  }),
1854
2307
  smalltalk.String);
1855
2308
 
@@ -1859,20 +2312,20 @@ smalltalk.method({
1859
2312
  selector: "asSelector",
1860
2313
  fn: function (){
1861
2314
  var self=this;
1862
- var selector=nil;
1863
- (selector=smalltalk.send("_", "__comma", [self]));
1864
- (selector=smalltalk.send(selector, "_replace_with_", [":", "_"]));
1865
- (selector=smalltalk.send(selector, "_replace_with_", ["[+]", "_plus"]));
1866
- (selector=smalltalk.send(selector, "_replace_with_", ["-", "_minus"]));
1867
- (selector=smalltalk.send(selector, "_replace_with_", ["[*]", "_star"]));
1868
- (selector=smalltalk.send(selector, "_replace_with_", ["[/]", "_slash"]));
1869
- (selector=smalltalk.send(selector, "_replace_with_", [">", "_gt"]));
1870
- (selector=smalltalk.send(selector, "_replace_with_", ["<", "_lt"]));
1871
- (selector=smalltalk.send(selector, "_replace_with_", ["=", "_eq"]));
1872
- (selector=smalltalk.send(selector, "_replace_with_", [",", "_comma"]));
1873
- (selector=smalltalk.send(selector, "_replace_with_", ["[@]", "_at"]));
2315
+ var selector;
2316
+ selector=smalltalk.send("_","__comma",[self]);
2317
+ selector=smalltalk.send(selector,"_replace_with_",[":","_"]);
2318
+ selector=smalltalk.send(selector,"_replace_with_",["[+]","_plus"]);
2319
+ selector=smalltalk.send(selector,"_replace_with_",["-","_minus"]);
2320
+ selector=smalltalk.send(selector,"_replace_with_",["[*]","_star"]);
2321
+ selector=smalltalk.send(selector,"_replace_with_",["[/]","_slash"]);
2322
+ selector=smalltalk.send(selector,"_replace_with_",[">","_gt"]);
2323
+ selector=smalltalk.send(selector,"_replace_with_",["<","_lt"]);
2324
+ selector=smalltalk.send(selector,"_replace_with_",["=","_eq"]);
2325
+ selector=smalltalk.send(selector,"_replace_with_",[",","_comma"]);
2326
+ selector=smalltalk.send(selector,"_replace_with_",["[@]","_at"]);
1874
2327
  return selector;
1875
- return self;}
2328
+ }
1876
2329
  }),
1877
2330
  smalltalk.String);
1878
2331
 
@@ -1883,7 +2336,7 @@ selector: "asString",
1883
2336
  fn: function (){
1884
2337
  var self=this;
1885
2338
  return self;
1886
- return self;}
2339
+ }
1887
2340
  }),
1888
2341
  smalltalk.String);
1889
2342
 
@@ -1893,8 +2346,10 @@ smalltalk.method({
1893
2346
  selector: "asSymbol",
1894
2347
  fn: function (){
1895
2348
  var self=this;
1896
- return smalltalk.send((smalltalk.Symbol || Symbol), "_lookup_", [self]);
1897
- return self;}
2349
+ var $1;
2350
+ $1=smalltalk.send((smalltalk.Symbol || Symbol),"_lookup_",[self]);
2351
+ return $1;
2352
+ }
1898
2353
  }),
1899
2354
  smalltalk.String);
1900
2355
 
@@ -1905,7 +2360,8 @@ selector: "asUppercase",
1905
2360
  fn: function (){
1906
2361
  var self=this;
1907
2362
  return self.toUpperCase();
1908
- return self;}
2363
+ ;
2364
+ return self}
1909
2365
  }),
1910
2366
  smalltalk.String);
1911
2367
 
@@ -1916,7 +2372,8 @@ selector: "asciiValue",
1916
2372
  fn: function (){
1917
2373
  var self=this;
1918
2374
  return self.charCodeAt(0);;
1919
- return self;}
2375
+ ;
2376
+ return self}
1920
2377
  }),
1921
2378
  smalltalk.String);
1922
2379
 
@@ -1924,10 +2381,11 @@ smalltalk.addMethod(
1924
2381
  "_at_ifAbsent_",
1925
2382
  smalltalk.method({
1926
2383
  selector: "at:ifAbsent:",
1927
- fn: function (anIndex, aBlock){
2384
+ fn: function (anIndex,aBlock){
1928
2385
  var self=this;
1929
- return self[anIndex - 1] || aBlock();
1930
- return self;}
2386
+ return String(self).charAt(anIndex - 1) || aBlock();
2387
+ ;
2388
+ return self}
1931
2389
  }),
1932
2390
  smalltalk.String);
1933
2391
 
@@ -1935,10 +2393,11 @@ smalltalk.addMethod(
1935
2393
  "_copyFrom_to_",
1936
2394
  smalltalk.method({
1937
2395
  selector: "copyFrom:to:",
1938
- fn: function (anIndex, anotherIndex){
2396
+ fn: function (anIndex,anotherIndex){
1939
2397
  var self=this;
1940
2398
  return self.substring(anIndex - 1, anotherIndex);
1941
- return self;}
2399
+ ;
2400
+ return self}
1942
2401
  }),
1943
2402
  smalltalk.String);
1944
2403
 
@@ -1948,8 +2407,22 @@ smalltalk.method({
1948
2407
  selector: "deepCopy",
1949
2408
  fn: function (){
1950
2409
  var self=this;
1951
- return smalltalk.send(self, "_shallowCopy", []);
1952
- return self;}
2410
+ var $1;
2411
+ $1=smalltalk.send(self,"_shallowCopy",[]);
2412
+ return $1;
2413
+ }
2414
+ }),
2415
+ smalltalk.String);
2416
+
2417
+ smalltalk.addMethod(
2418
+ "_do_",
2419
+ smalltalk.method({
2420
+ selector: "do:",
2421
+ fn: function (aBlock){
2422
+ var self=this;
2423
+ for(var i=0;i<self.length;i++){aBlock(self.charAt(i));};
2424
+ ;
2425
+ return self}
1953
2426
  }),
1954
2427
  smalltalk.String);
1955
2428
 
@@ -1960,7 +2433,8 @@ selector: "escaped",
1960
2433
  fn: function (){
1961
2434
  var self=this;
1962
2435
  return escape(self);
1963
- return self;}
2436
+ ;
2437
+ return self}
1964
2438
  }),
1965
2439
  smalltalk.String);
1966
2440
 
@@ -1971,7 +2445,8 @@ selector: "includesSubString:",
1971
2445
  fn: function (subString){
1972
2446
  var self=this;
1973
2447
  return self.indexOf(subString) != -1 ;
1974
- return self;}
2448
+ ;
2449
+ return self}
1975
2450
  }),
1976
2451
  smalltalk.String);
1977
2452
 
@@ -1982,7 +2457,7 @@ selector: "isString",
1982
2457
  fn: function (){
1983
2458
  var self=this;
1984
2459
  return true;
1985
- return self;}
2460
+ }
1986
2461
  }),
1987
2462
  smalltalk.String);
1988
2463
 
@@ -1992,8 +2467,16 @@ smalltalk.method({
1992
2467
  selector: "join:",
1993
2468
  fn: function (aCollection){
1994
2469
  var self=this;
1995
- 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]);})]);})]);
1996
- return self;}
2470
+ var $1;
2471
+ $1=smalltalk.send((smalltalk.String || String),"_streamContents_",[(function(stream){
2472
+ return smalltalk.send(aCollection,"_do_separatedBy_",[(function(each){
2473
+ return smalltalk.send(stream,"_nextPutAll_",[smalltalk.send(each,"_asString",[])]);
2474
+ }),(function(){
2475
+ return smalltalk.send(stream,"_nextPutAll_",[self]);
2476
+ })]);
2477
+ })]);
2478
+ return $1;
2479
+ }
1997
2480
  }),
1998
2481
  smalltalk.String);
1999
2482
 
@@ -2003,22 +2486,64 @@ smalltalk.method({
2003
2486
  selector: "lineIndicesDo:",
2004
2487
  fn: function (aBlock){
2005
2488
  var self=this;
2489
+ var $1,$2,$3;
2006
2490
  var $early={};
2007
- try{var cr=nil;
2008
- var lf=nil;
2009
- var start=nil;
2010
- var sz=nil;
2011
- var nextLF=nil;
2012
- var nextCR=nil;
2013
- (start=(1));
2014
- (sz=smalltalk.send(self, "_size", []));
2015
- (cr=smalltalk.send((smalltalk.String || String), "_cr", []));
2016
- (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]));
2017
- (lf=smalltalk.send((smalltalk.String || String), "_lf", []));
2018
- (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]));
2019
- (function(){while((function(){return ((($receiver = start).klass === smalltalk.Number) ? $receiver <=sz : smalltalk.send($receiver, "__lt_eq", [sz]));})()) {(function(){((($receiver = smalltalk.send(smalltalk.send(nextLF, "__eq", [(0)]), "_and_", [(function(){return smalltalk.send(nextCR, "__eq", [(0)]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw $early=[self]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw $early=[self]})();})]));return ((($receiver = smalltalk.send(smalltalk.send(nextCR, "__eq", [(0)]), "_or_", [(function(){return smalltalk.send((0) < nextLF, "_and_", [(function(){return ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver <nextCR : smalltalk.send($receiver, "__lt", [nextCR]));})]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));})() : (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));}), (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);(start=(1) + nextLF);(nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));return (nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]));}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);(start=(1) + nextCR);return (nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]));})]));})]));})()}})();
2020
- return self;
2021
- } catch(e) {if(e===$early)return e[0]; throw e}}
2491
+ try {
2492
+ var cr;
2493
+ var lf;
2494
+ var start;
2495
+ var sz;
2496
+ var nextLF;
2497
+ var nextCR;
2498
+ start=(1);
2499
+ sz=smalltalk.send(self,"_size",[]);
2500
+ cr=smalltalk.send((smalltalk.String || String),"_cr",[]);
2501
+ nextCR=smalltalk.send(self,"_indexOf_startingAt_",[cr,(1)]);
2502
+ lf=smalltalk.send((smalltalk.String || String),"_lf",[]);
2503
+ nextLF=smalltalk.send(self,"_indexOf_startingAt_",[lf,(1)]);
2504
+ smalltalk.send((function(){
2505
+ return smalltalk.send(start,"__lt_eq",[sz]);
2506
+ }),"_whileTrue_",[(function(){
2507
+ $1=smalltalk.send(smalltalk.send(nextLF,"__eq",[(0)]),"_and_",[(function(){
2508
+ return smalltalk.send(nextCR,"__eq",[(0)]);
2509
+ })]);
2510
+ if(smalltalk.assert($1)){
2511
+ smalltalk.send(aBlock,"_value_value_value_",[start,sz,sz]);
2512
+ throw $early=[self];
2513
+ };
2514
+ $2=smalltalk.send(smalltalk.send(nextCR,"__eq",[(0)]),"_or_",[(function(){
2515
+ return smalltalk.send(smalltalk.send((0),"__lt",[nextLF]),"_and_",[(function(){
2516
+ return smalltalk.send(nextLF,"__lt",[nextCR]);
2517
+ })]);
2518
+ })]);
2519
+ if(smalltalk.assert($2)){
2520
+ smalltalk.send(aBlock,"_value_value_value_",[start,smalltalk.send(nextLF,"__minus",[(1)]),nextLF]);
2521
+ start=smalltalk.send((1),"__plus",[nextLF]);
2522
+ start;
2523
+ nextLF=smalltalk.send(self,"_indexOf_startingAt_",[lf,start]);
2524
+ return nextLF;
2525
+ } else {
2526
+ $3=smalltalk.send(smalltalk.send((1),"__plus",[nextCR]),"__eq",[nextLF]);
2527
+ if(smalltalk.assert($3)){
2528
+ smalltalk.send(aBlock,"_value_value_value_",[start,smalltalk.send(nextCR,"__minus",[(1)]),nextLF]);
2529
+ start=smalltalk.send((1),"__plus",[nextLF]);
2530
+ start;
2531
+ nextCR=smalltalk.send(self,"_indexOf_startingAt_",[cr,start]);
2532
+ nextCR;
2533
+ nextLF=smalltalk.send(self,"_indexOf_startingAt_",[lf,start]);
2534
+ return nextLF;
2535
+ } else {
2536
+ smalltalk.send(aBlock,"_value_value_value_",[start,smalltalk.send(nextCR,"__minus",[(1)]),nextCR]);
2537
+ start=smalltalk.send((1),"__plus",[nextCR]);
2538
+ start;
2539
+ nextCR=smalltalk.send(self,"_indexOf_startingAt_",[cr,start]);
2540
+ return nextCR;
2541
+ };
2542
+ };
2543
+ })]);
2544
+ return self}
2545
+ catch(e) {if(e===$early)return e[0]; throw e}
2546
+ }
2022
2547
  }),
2023
2548
  smalltalk.String);
2024
2549
 
@@ -2028,13 +2553,23 @@ smalltalk.method({
2028
2553
  selector: "lineNumber:",
2029
2554
  fn: function (anIndex){
2030
2555
  var self=this;
2556
+ var $1,$2;
2031
2557
  var $early={};
2032
- try{var lineCount=nil;
2033
- (lineCount=(0));
2034
- smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return ((($receiver = smalltalk.send((lineCount=((($receiver = lineCount).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))), "__eq", [anIndex])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw $early=[smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw $early=[smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]})();})]));})]);
2558
+ try {
2559
+ var lineCount;
2560
+ lineCount=(0);
2561
+ smalltalk.send(self,"_lineIndicesDo_",[(function(start,endWithoutDelimiters,end){
2562
+ lineCount=smalltalk.send(lineCount,"__plus",[(1)]);
2563
+ $1=smalltalk.send(lineCount,"__eq",[anIndex]);
2564
+ if(smalltalk.assert($1)){
2565
+ $2=smalltalk.send(self,"_copyFrom_to_",[start,endWithoutDelimiters]);
2566
+ throw $early=[$2];
2567
+ };
2568
+ })]);
2035
2569
  return nil;
2036
- return self;
2037
- } catch(e) {if(e===$early)return e[0]; throw e}}
2570
+ }
2571
+ catch(e) {if(e===$early)return e[0]; throw e}
2572
+ }
2038
2573
  }),
2039
2574
  smalltalk.String);
2040
2575
 
@@ -2044,11 +2579,13 @@ smalltalk.method({
2044
2579
  selector: "lines",
2045
2580
  fn: function (){
2046
2581
  var self=this;
2047
- var lines=nil;
2048
- (lines=smalltalk.send((smalltalk.Array || Array), "_new", []));
2049
- smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
2582
+ var lines;
2583
+ lines=smalltalk.send((smalltalk.Array || Array),"_new",[]);
2584
+ smalltalk.send(self,"_linesDo_",[(function(aLine){
2585
+ return smalltalk.send(lines,"_add_",[aLine]);
2586
+ })]);
2050
2587
  return lines;
2051
- return self;}
2588
+ }
2052
2589
  }),
2053
2590
  smalltalk.String);
2054
2591
 
@@ -2058,8 +2595,10 @@ smalltalk.method({
2058
2595
  selector: "linesDo:",
2059
2596
  fn: function (aBlock){
2060
2597
  var self=this;
2061
- smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
2062
- return self;}
2598
+ smalltalk.send(self,"_lineIndicesDo_",[(function(start,endWithoutDelimiters,end){
2599
+ return smalltalk.send(aBlock,"_value_",[smalltalk.send(self,"_copyFrom_to_",[start,endWithoutDelimiters])]);
2600
+ })]);
2601
+ return self}
2063
2602
  }),
2064
2603
  smalltalk.String);
2065
2604
 
@@ -2070,7 +2609,8 @@ selector: "match:",
2070
2609
  fn: function (aRegexp){
2071
2610
  var self=this;
2072
2611
  return self.search(aRegexp) != -1;
2073
- return self;}
2612
+ ;
2613
+ return self}
2074
2614
  }),
2075
2615
  smalltalk.String);
2076
2616
 
@@ -2081,7 +2621,8 @@ selector: "matchesOf:",
2081
2621
  fn: function (aRegularExpression){
2082
2622
  var self=this;
2083
2623
  return self.match(aRegularExpression);
2084
- return self;}
2624
+ ;
2625
+ return self}
2085
2626
  }),
2086
2627
  smalltalk.String);
2087
2628
 
@@ -2092,7 +2633,8 @@ selector: "printNl",
2092
2633
  fn: function (){
2093
2634
  var self=this;
2094
2635
  console.log(self);
2095
- return self;}
2636
+ ;
2637
+ return self}
2096
2638
  }),
2097
2639
  smalltalk.String);
2098
2640
 
@@ -2102,8 +2644,10 @@ smalltalk.method({
2102
2644
  selector: "printString",
2103
2645
  fn: function (){
2104
2646
  var self=this;
2105
- return smalltalk.send(smalltalk.send("'", "__comma", [self]), "__comma", ["'"]);
2106
- return self;}
2647
+ var $1;
2648
+ $1=smalltalk.send(smalltalk.send("'","__comma",[self]),"__comma",["'"]);
2649
+ return $1;
2650
+ }
2107
2651
  }),
2108
2652
  smalltalk.String);
2109
2653
 
@@ -2111,10 +2655,12 @@ smalltalk.addMethod(
2111
2655
  "_replace_with_",
2112
2656
  smalltalk.method({
2113
2657
  selector: "replace:with:",
2114
- fn: function (aString, anotherString){
2658
+ fn: function (aString,anotherString){
2115
2659
  var self=this;
2116
- return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
2117
- return self;}
2660
+ var $1;
2661
+ $1=smalltalk.send(self,"_replaceRegexp_with_",[smalltalk.send((smalltalk.RegularExpression || RegularExpression),"_fromString_flag_",[aString,"g"]),anotherString]);
2662
+ return $1;
2663
+ }
2118
2664
  }),
2119
2665
  smalltalk.String);
2120
2666
 
@@ -2122,10 +2668,11 @@ smalltalk.addMethod(
2122
2668
  "_replaceRegexp_with_",
2123
2669
  smalltalk.method({
2124
2670
  selector: "replaceRegexp:with:",
2125
- fn: function (aRegexp, aString){
2671
+ fn: function (aRegexp,aString){
2126
2672
  var self=this;
2127
2673
  return self.replace(aRegexp, aString);
2128
- return self;}
2674
+ ;
2675
+ return self}
2129
2676
  }),
2130
2677
  smalltalk.String);
2131
2678
 
@@ -2136,7 +2683,8 @@ selector: "reversed",
2136
2683
  fn: function (){
2137
2684
  var self=this;
2138
2685
  return self.split("").reverse().join("");
2139
- return self;}
2686
+ ;
2687
+ return self}
2140
2688
  }),
2141
2689
  smalltalk.String);
2142
2690
 
@@ -2146,8 +2694,10 @@ smalltalk.method({
2146
2694
  selector: "shallowCopy",
2147
2695
  fn: function (){
2148
2696
  var self=this;
2149
- return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
2150
- return self;}
2697
+ var $1;
2698
+ $1=smalltalk.send(smalltalk.send(self,"_class",[]),"_fromString_",[self]);
2699
+ return $1;
2700
+ }
2151
2701
  }),
2152
2702
  smalltalk.String);
2153
2703
 
@@ -2158,7 +2708,8 @@ selector: "size",
2158
2708
  fn: function (){
2159
2709
  var self=this;
2160
2710
  return self.length;
2161
- return self;}
2711
+ ;
2712
+ return self}
2162
2713
  }),
2163
2714
  smalltalk.String);
2164
2715
 
@@ -2169,7 +2720,8 @@ selector: "tokenize:",
2169
2720
  fn: function (aString){
2170
2721
  var self=this;
2171
2722
  return self.split(aString);
2172
- return self;}
2723
+ ;
2724
+ return self}
2173
2725
  }),
2174
2726
  smalltalk.String);
2175
2727
 
@@ -2179,8 +2731,10 @@ smalltalk.method({
2179
2731
  selector: "trimBoth",
2180
2732
  fn: function (){
2181
2733
  var self=this;
2182
- return smalltalk.send(self, "_trimBoth_", ["\x5cs"]);
2183
- return self;}
2734
+ var $1;
2735
+ $1=smalltalk.send(self,"_trimBoth_",["\x5cs"]);
2736
+ return $1;
2737
+ }
2184
2738
  }),
2185
2739
  smalltalk.String);
2186
2740
 
@@ -2190,8 +2744,10 @@ smalltalk.method({
2190
2744
  selector: "trimBoth:",
2191
2745
  fn: function (separators){
2192
2746
  var self=this;
2193
- return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
2194
- return self;}
2747
+ var $1;
2748
+ $1=smalltalk.send(smalltalk.send(self,"_trimLeft_",[separators]),"_trimRight_",[separators]);
2749
+ return $1;
2750
+ }
2195
2751
  }),
2196
2752
  smalltalk.String);
2197
2753
 
@@ -2201,8 +2757,10 @@ smalltalk.method({
2201
2757
  selector: "trimLeft",
2202
2758
  fn: function (){
2203
2759
  var self=this;
2204
- return smalltalk.send(self, "_trimLeft_", ["\x5cs"]);
2205
- return self;}
2760
+ var $1;
2761
+ $1=smalltalk.send(self,"_trimLeft_",["\x5cs"]);
2762
+ return $1;
2763
+ }
2206
2764
  }),
2207
2765
  smalltalk.String);
2208
2766
 
@@ -2212,8 +2770,10 @@ smalltalk.method({
2212
2770
  selector: "trimLeft:",
2213
2771
  fn: function (separators){
2214
2772
  var self=this;
2215
- return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send("^[", "__comma", [separators]), "__comma", ["]+"]), "g"]), ""]);
2216
- return self;}
2773
+ var $1;
2774
+ $1=smalltalk.send(self,"_replaceRegexp_with_",[smalltalk.send((smalltalk.RegularExpression || RegularExpression),"_fromString_flag_",[smalltalk.send(smalltalk.send("^[","__comma",[separators]),"__comma",["]+"]),"g"]),""]);
2775
+ return $1;
2776
+ }
2217
2777
  }),
2218
2778
  smalltalk.String);
2219
2779
 
@@ -2223,8 +2783,10 @@ smalltalk.method({
2223
2783
  selector: "trimRight",
2224
2784
  fn: function (){
2225
2785
  var self=this;
2226
- return smalltalk.send(self, "_trimRight_", ["\x5cs"]);
2227
- return self;}
2786
+ var $1;
2787
+ $1=smalltalk.send(self,"_trimRight_",["\x5cs"]);
2788
+ return $1;
2789
+ }
2228
2790
  }),
2229
2791
  smalltalk.String);
2230
2792
 
@@ -2234,8 +2796,10 @@ smalltalk.method({
2234
2796
  selector: "trimRight:",
2235
2797
  fn: function (separators){
2236
2798
  var self=this;
2237
- return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send("[", "__comma", [separators]), "__comma", ["]+$"]), "g"]), ""]);
2238
- return self;}
2799
+ var $1;
2800
+ $1=smalltalk.send(self,"_replaceRegexp_with_",[smalltalk.send((smalltalk.RegularExpression || RegularExpression),"_fromString_flag_",[smalltalk.send(smalltalk.send("[","__comma",[separators]),"__comma",["]+$"]),"g"]),""]);
2801
+ return $1;
2802
+ }
2239
2803
  }),
2240
2804
  smalltalk.String);
2241
2805
 
@@ -2246,7 +2810,20 @@ selector: "unescaped",
2246
2810
  fn: function (){
2247
2811
  var self=this;
2248
2812
  return unescape(self);
2249
- return self;}
2813
+ ;
2814
+ return self}
2815
+ }),
2816
+ smalltalk.String);
2817
+
2818
+ smalltalk.addMethod(
2819
+ "_withIndexDo_",
2820
+ smalltalk.method({
2821
+ selector: "withIndexDo:",
2822
+ fn: function (aBlock){
2823
+ var self=this;
2824
+ for(var i=0;i<self.length;i++){aBlock(self.charAt(i), i+1);};
2825
+ ;
2826
+ return self}
2250
2827
  }),
2251
2828
  smalltalk.String);
2252
2829
 
@@ -2258,7 +2835,8 @@ selector: "cr",
2258
2835
  fn: function (){
2259
2836
  var self=this;
2260
2837
  return '\r';
2261
- return self;}
2838
+ ;
2839
+ return self}
2262
2840
  }),
2263
2841
  smalltalk.String.klass);
2264
2842
 
@@ -2269,7 +2847,20 @@ selector: "crlf",
2269
2847
  fn: function (){
2270
2848
  var self=this;
2271
2849
  return '\r\n';
2272
- return self;}
2850
+ ;
2851
+ return self}
2852
+ }),
2853
+ smalltalk.String.klass);
2854
+
2855
+ smalltalk.addMethod(
2856
+ "_fromCharCode_",
2857
+ smalltalk.method({
2858
+ selector: "fromCharCode:",
2859
+ fn: function (anInteger){
2860
+ var self=this;
2861
+ return String.fromCharCode(anInteger);
2862
+ ;
2863
+ return self}
2273
2864
  }),
2274
2865
  smalltalk.String.klass);
2275
2866
 
@@ -2280,7 +2871,8 @@ selector: "fromString:",
2280
2871
  fn: function (aString){
2281
2872
  var self=this;
2282
2873
  return new self.fn(aString);
2283
- return self;}
2874
+ ;
2875
+ return self}
2284
2876
  }),
2285
2877
  smalltalk.String.klass);
2286
2878
 
@@ -2291,7 +2883,8 @@ selector: "lf",
2291
2883
  fn: function (){
2292
2884
  var self=this;
2293
2885
  return '\n';
2294
- return self;}
2886
+ ;
2887
+ return self}
2295
2888
  }),
2296
2889
  smalltalk.String.klass);
2297
2890
 
@@ -2302,7 +2895,8 @@ selector: "space",
2302
2895
  fn: function (){
2303
2896
  var self=this;
2304
2897
  return ' ';
2305
- return self;}
2898
+ ;
2899
+ return self}
2306
2900
  }),
2307
2901
  smalltalk.String.klass);
2308
2902
 
@@ -2313,7 +2907,7 @@ selector: "streamClass",
2313
2907
  fn: function (){
2314
2908
  var self=this;
2315
2909
  return (smalltalk.StringStream || StringStream);
2316
- return self;}
2910
+ }
2317
2911
  }),
2318
2912
  smalltalk.String.klass);
2319
2913
 
@@ -2323,11 +2917,13 @@ smalltalk.method({
2323
2917
  selector: "streamContents:",
2324
2918
  fn: function (blockWithArg){
2325
2919
  var self=this;
2326
- var stream=nil;
2327
- (stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]));
2328
- smalltalk.send(blockWithArg, "_value_", [stream]);
2329
- return smalltalk.send(stream, "_contents", []);
2330
- return self;}
2920
+ var $1;
2921
+ var stream;
2922
+ stream=smalltalk.send(smalltalk.send(self,"_streamClass",[]),"_on_",[smalltalk.send((smalltalk.String || String),"_new",[])]);
2923
+ smalltalk.send(blockWithArg,"_value_",[stream]);
2924
+ $1=smalltalk.send(stream,"_contents",[]);
2925
+ return $1;
2926
+ }
2331
2927
  }),
2332
2928
  smalltalk.String.klass);
2333
2929
 
@@ -2338,7 +2934,8 @@ selector: "tab",
2338
2934
  fn: function (){
2339
2935
  var self=this;
2340
2936
  return '\t';
2341
- return self;}
2937
+ ;
2938
+ return self}
2342
2939
  }),
2343
2940
  smalltalk.String.klass);
2344
2941
 
@@ -2349,7 +2946,8 @@ selector: "value:",
2349
2946
  fn: function (aUTFCharCode){
2350
2947
  var self=this;
2351
2948
  return String.fromCharCode(aUTFCharCode);;
2352
- return self;}
2949
+ ;
2950
+ return self}
2353
2951
  }),
2354
2952
  smalltalk.String.klass);
2355
2953
 
@@ -2361,8 +2959,10 @@ smalltalk.method({
2361
2959
  selector: "<",
2362
2960
  fn: function (aSymbol){
2363
2961
  var self=this;
2364
- return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(aSymbol, "_asString", [])]));
2365
- return self;}
2962
+ var $1;
2963
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"__lt",[smalltalk.send(aSymbol,"_asString",[])]);
2964
+ return $1;
2965
+ }
2366
2966
  }),
2367
2967
  smalltalk.Symbol);
2368
2968
 
@@ -2372,8 +2972,10 @@ smalltalk.method({
2372
2972
  selector: "<=",
2373
2973
  fn: function (aSymbol){
2374
2974
  var self=this;
2375
- return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver <=smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__lt_eq", [smalltalk.send(aSymbol, "_asString", [])]));
2376
- return self;}
2975
+ var $1;
2976
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"__lt_eq",[smalltalk.send(aSymbol,"_asString",[])]);
2977
+ return $1;
2978
+ }
2377
2979
  }),
2378
2980
  smalltalk.Symbol);
2379
2981
 
@@ -2383,11 +2985,14 @@ smalltalk.method({
2383
2985
  selector: "=",
2384
2986
  fn: function (aSymbol){
2385
2987
  var self=this;
2386
- var $early={};
2387
- try{((($receiver = smalltalk.send(smalltalk.send(aSymbol, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw $early=[false]})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw $early=[false]})();})]));
2388
- return smalltalk.send(smalltalk.send(self, "_asString", []), "__eq", [smalltalk.send(aSymbol, "_asString", [])]);
2389
- return self;
2390
- } catch(e) {if(e===$early)return e[0]; throw e}}
2988
+ var $1,$2;
2989
+ $1=smalltalk.send(smalltalk.send(aSymbol,"_class",[]),"__eq",[smalltalk.send(self,"_class",[])]);
2990
+ if(! smalltalk.assert($1)){
2991
+ return false;
2992
+ };
2993
+ $2=smalltalk.send(smalltalk.send(self,"_asString",[]),"__eq",[smalltalk.send(aSymbol,"_asString",[])]);
2994
+ return $2;
2995
+ }
2391
2996
  }),
2392
2997
  smalltalk.Symbol);
2393
2998
 
@@ -2397,8 +3002,10 @@ smalltalk.method({
2397
3002
  selector: ">",
2398
3003
  fn: function (aSymbol){
2399
3004
  var self=this;
2400
- return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver >smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__gt", [smalltalk.send(aSymbol, "_asString", [])]));
2401
- return self;}
3005
+ var $1;
3006
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"__gt",[smalltalk.send(aSymbol,"_asString",[])]);
3007
+ return $1;
3008
+ }
2402
3009
  }),
2403
3010
  smalltalk.Symbol);
2404
3011
 
@@ -2408,8 +3015,10 @@ smalltalk.method({
2408
3015
  selector: ">=",
2409
3016
  fn: function (aSymbol){
2410
3017
  var self=this;
2411
- return ((($receiver = smalltalk.send(self, "_asString", [])).klass === smalltalk.Number) ? $receiver >=smalltalk.send(aSymbol, "_asString", []) : smalltalk.send($receiver, "__gt_eq", [smalltalk.send(aSymbol, "_asString", [])]));
2412
- return self;}
3018
+ var $1;
3019
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"__gt_eq",[smalltalk.send(aSymbol,"_asString",[])]);
3020
+ return $1;
3021
+ }
2413
3022
  }),
2414
3023
  smalltalk.Symbol);
2415
3024
 
@@ -2419,8 +3028,10 @@ smalltalk.method({
2419
3028
  selector: "asJSON",
2420
3029
  fn: function (){
2421
3030
  var self=this;
2422
- return smalltalk.send(smalltalk.send(self, "_asString", []), "_asJSON", []);
2423
- return self;}
3031
+ var $1;
3032
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_asJSON",[]);
3033
+ return $1;
3034
+ }
2424
3035
  }),
2425
3036
  smalltalk.Symbol);
2426
3037
 
@@ -2430,8 +3041,10 @@ smalltalk.method({
2430
3041
  selector: "asJavascript",
2431
3042
  fn: function (){
2432
3043
  var self=this;
2433
- return smalltalk.send(smalltalk.send("smalltalk.symbolFor(\x22", "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", ["\x22)"]);
2434
- return self;}
3044
+ var $1;
3045
+ $1=smalltalk.send(smalltalk.send("smalltalk.symbolFor(\x22","__comma",[smalltalk.send(self,"_asString",[])]),"__comma",["\x22)"]);
3046
+ return $1;
3047
+ }
2435
3048
  }),
2436
3049
  smalltalk.Symbol);
2437
3050
 
@@ -2441,8 +3054,10 @@ smalltalk.method({
2441
3054
  selector: "asSelector",
2442
3055
  fn: function (){
2443
3056
  var self=this;
2444
- return smalltalk.send(smalltalk.send(self, "_asString", []), "_asSelector", []);
2445
- return self;}
3057
+ var $1;
3058
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_asSelector",[]);
3059
+ return $1;
3060
+ }
2446
3061
  }),
2447
3062
  smalltalk.Symbol);
2448
3063
 
@@ -2453,7 +3068,8 @@ selector: "asString",
2453
3068
  fn: function (){
2454
3069
  var self=this;
2455
3070
  return self.value;
2456
- return self;}
3071
+ ;
3072
+ return self}
2457
3073
  }),
2458
3074
  smalltalk.Symbol);
2459
3075
 
@@ -2464,7 +3080,7 @@ selector: "asSymbol",
2464
3080
  fn: function (){
2465
3081
  var self=this;
2466
3082
  return self;
2467
- return self;}
3083
+ }
2468
3084
  }),
2469
3085
  smalltalk.Symbol);
2470
3086
 
@@ -2472,10 +3088,25 @@ smalltalk.addMethod(
2472
3088
  "_at_ifAbsent_",
2473
3089
  smalltalk.method({
2474
3090
  selector: "at:ifAbsent:",
2475
- fn: function (anIndex, aBlock){
3091
+ fn: function (anIndex,aBlock){
3092
+ var self=this;
3093
+ var $1;
3094
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_at_ifAbsent_",[anIndex,aBlock]);
3095
+ return $1;
3096
+ }
3097
+ }),
3098
+ smalltalk.Symbol);
3099
+
3100
+ smalltalk.addMethod(
3101
+ "_collect_",
3102
+ smalltalk.method({
3103
+ selector: "collect:",
3104
+ fn: function (aBlock){
2476
3105
  var self=this;
2477
- return smalltalk.send(smalltalk.send(self, "_asString", []), "_at_ifAbsent_", [anIndex, aBlock]);
2478
- return self;}
3106
+ var $1;
3107
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_asString",[]),"_collect_",[aBlock]),"_asSymbol",[]);
3108
+ return $1;
3109
+ }
2479
3110
  }),
2480
3111
  smalltalk.Symbol);
2481
3112
 
@@ -2483,10 +3114,12 @@ smalltalk.addMethod(
2483
3114
  "_copyFrom_to_",
2484
3115
  smalltalk.method({
2485
3116
  selector: "copyFrom:to:",
2486
- fn: function (anIndex, anotherIndex){
3117
+ fn: function (anIndex,anotherIndex){
2487
3118
  var self=this;
2488
- return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [smalltalk.send(smalltalk.send(self, "_asString", []), "_copyFrom_to_", [anIndex, anotherIndex])]);
2489
- return self;}
3119
+ var $1;
3120
+ $1=smalltalk.send(smalltalk.send(self,"_class",[]),"_fromString_",[smalltalk.send(smalltalk.send(self,"_asString",[]),"_copyFrom_to_",[anIndex,anotherIndex])]);
3121
+ return $1;
3122
+ }
2490
3123
  }),
2491
3124
  smalltalk.Symbol);
2492
3125
 
@@ -2497,7 +3130,31 @@ selector: "deepCopy",
2497
3130
  fn: function (){
2498
3131
  var self=this;
2499
3132
  return self;
2500
- return self;}
3133
+ }
3134
+ }),
3135
+ smalltalk.Symbol);
3136
+
3137
+ smalltalk.addMethod(
3138
+ "_detect_",
3139
+ smalltalk.method({
3140
+ selector: "detect:",
3141
+ fn: function (aBlock){
3142
+ var self=this;
3143
+ var $1;
3144
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_detect_",[aBlock]);
3145
+ return $1;
3146
+ }
3147
+ }),
3148
+ smalltalk.Symbol);
3149
+
3150
+ smalltalk.addMethod(
3151
+ "_do_",
3152
+ smalltalk.method({
3153
+ selector: "do:",
3154
+ fn: function (aBlock){
3155
+ var self=this;
3156
+ smalltalk.send(smalltalk.send(self,"_asString",[]),"_do_",[aBlock]);
3157
+ return self}
2501
3158
  }),
2502
3159
  smalltalk.Symbol);
2503
3160
 
@@ -2508,7 +3165,7 @@ selector: "isSymbol",
2508
3165
  fn: function (){
2509
3166
  var self=this;
2510
3167
  return true;
2511
- return self;}
3168
+ }
2512
3169
  }),
2513
3170
  smalltalk.Symbol);
2514
3171
 
@@ -2518,8 +3175,23 @@ smalltalk.method({
2518
3175
  selector: "printString",
2519
3176
  fn: function (){
2520
3177
  var self=this;
2521
- return smalltalk.send("#", "__comma", [smalltalk.send(self, "_asString", [])]);
2522
- return self;}
3178
+ var $1;
3179
+ $1=smalltalk.send("#","__comma",[smalltalk.send(self,"_asString",[])]);
3180
+ return $1;
3181
+ }
3182
+ }),
3183
+ smalltalk.Symbol);
3184
+
3185
+ smalltalk.addMethod(
3186
+ "_select_",
3187
+ smalltalk.method({
3188
+ selector: "select:",
3189
+ fn: function (aBlock){
3190
+ var self=this;
3191
+ var $1;
3192
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_asString",[]),"_select_",[aBlock]),"_asSymbol",[]);
3193
+ return $1;
3194
+ }
2523
3195
  }),
2524
3196
  smalltalk.Symbol);
2525
3197
 
@@ -2530,7 +3202,7 @@ selector: "shallowCopy",
2530
3202
  fn: function (){
2531
3203
  var self=this;
2532
3204
  return self;
2533
- return self;}
3205
+ }
2534
3206
  }),
2535
3207
  smalltalk.Symbol);
2536
3208
 
@@ -2540,8 +3212,34 @@ smalltalk.method({
2540
3212
  selector: "size",
2541
3213
  fn: function (){
2542
3214
  var self=this;
2543
- return smalltalk.send(smalltalk.send(self, "_asString", []), "_size", []);
2544
- return self;}
3215
+ var $1;
3216
+ $1=smalltalk.send(smalltalk.send(self,"_asString",[]),"_size",[]);
3217
+ return $1;
3218
+ }
3219
+ }),
3220
+ smalltalk.Symbol);
3221
+
3222
+ smalltalk.addMethod(
3223
+ "_value_",
3224
+ smalltalk.method({
3225
+ selector: "value:",
3226
+ fn: function (anObject){
3227
+ var self=this;
3228
+ var $1;
3229
+ $1=smalltalk.send(anObject,"_perform_",[self]);
3230
+ return $1;
3231
+ }
3232
+ }),
3233
+ smalltalk.Symbol);
3234
+
3235
+ smalltalk.addMethod(
3236
+ "_withIndexDo_",
3237
+ smalltalk.method({
3238
+ selector: "withIndexDo:",
3239
+ fn: function (aBlock){
3240
+ var self=this;
3241
+ smalltalk.send(smalltalk.send(self,"_asString",[]),"_withIndexDo_",[aBlock]);
3242
+ return self}
2545
3243
  }),
2546
3244
  smalltalk.Symbol);
2547
3245
 
@@ -2552,8 +3250,8 @@ smalltalk.method({
2552
3250
  selector: "basicNew",
2553
3251
  fn: function (){
2554
3252
  var self=this;
2555
- smalltalk.send(self, "_shouldNotImplement", []);
2556
- return self;}
3253
+ smalltalk.send(self,"_shouldNotImplement",[]);
3254
+ return self}
2557
3255
  }),
2558
3256
  smalltalk.Symbol.klass);
2559
3257
 
@@ -2563,8 +3261,10 @@ smalltalk.method({
2563
3261
  selector: "fromString:",
2564
3262
  fn: function (aString){
2565
3263
  var self=this;
2566
- return smalltalk.send(self, "_lookup_", [aString]);
2567
- return self;}
3264
+ var $1;
3265
+ $1=smalltalk.send(self,"_lookup_",[aString]);
3266
+ return $1;
3267
+ }
2568
3268
  }),
2569
3269
  smalltalk.Symbol.klass);
2570
3270
 
@@ -2575,7 +3275,8 @@ selector: "lookup:",
2575
3275
  fn: function (aString){
2576
3276
  var self=this;
2577
3277
  return smalltalk.symbolFor(aString);;
2578
- return self;}
3278
+ ;
3279
+ return self}
2579
3280
  }),
2580
3281
  smalltalk.Symbol.klass);
2581
3282
 
@@ -2587,8 +3288,12 @@ smalltalk.method({
2587
3288
  selector: "=",
2588
3289
  fn: function (aCollection){
2589
3290
  var self=this;
2590
- 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", [])]);})]);
2591
- return self;}
3291
+ var $1;
3292
+ $1=smalltalk.send(smalltalk.send(smalltalk.send(self,"_class",[]),"__eq",[smalltalk.send(aCollection,"_class",[])]),"_and_",[(function(){
3293
+ return smalltalk.send(self["@elements"],"__eq",[smalltalk.send(aCollection,"_asArray",[])]);
3294
+ })]);
3295
+ return $1;
3296
+ }
2592
3297
  }),
2593
3298
  smalltalk.Set);
2594
3299
 
@@ -2608,7 +3313,8 @@ var self=this;
2608
3313
  }
2609
3314
  if(!found) {self['@elements'].push(anObject)}
2610
3315
  ;
2611
- return self;}
3316
+ ;
3317
+ return self}
2612
3318
  }),
2613
3319
  smalltalk.Set);
2614
3320
 
@@ -2618,8 +3324,10 @@ smalltalk.method({
2618
3324
  selector: "asArray",
2619
3325
  fn: function (){
2620
3326
  var self=this;
2621
- return smalltalk.send(self['@elements'], "_copy", []);
2622
- return self;}
3327
+ var $1;
3328
+ $1=smalltalk.send(self["@elements"],"_copy",[]);
3329
+ return $1;
3330
+ }
2623
3331
  }),
2624
3332
  smalltalk.Set);
2625
3333
 
@@ -2627,10 +3335,12 @@ smalltalk.addMethod(
2627
3335
  "_detect_ifNone_",
2628
3336
  smalltalk.method({
2629
3337
  selector: "detect:ifNone:",
2630
- fn: function (aBlock, anotherBlock){
3338
+ fn: function (aBlock,anotherBlock){
2631
3339
  var self=this;
2632
- return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
2633
- return self;}
3340
+ var $1;
3341
+ $1=smalltalk.send(self["@elements"],"_detect_ifNone_",[aBlock,anotherBlock]);
3342
+ return $1;
3343
+ }
2634
3344
  }),
2635
3345
  smalltalk.Set);
2636
3346
 
@@ -2640,8 +3350,8 @@ smalltalk.method({
2640
3350
  selector: "do:",
2641
3351
  fn: function (aBlock){
2642
3352
  var self=this;
2643
- smalltalk.send(self['@elements'], "_do_", [aBlock]);
2644
- return self;}
3353
+ smalltalk.send(self["@elements"],"_do_",[aBlock]);
3354
+ return self}
2645
3355
  }),
2646
3356
  smalltalk.Set);
2647
3357
 
@@ -2651,8 +3361,10 @@ smalltalk.method({
2651
3361
  selector: "includes:",
2652
3362
  fn: function (anObject){
2653
3363
  var self=this;
2654
- return smalltalk.send(self['@elements'], "_includes_", [anObject]);
2655
- return self;}
3364
+ var $1;
3365
+ $1=smalltalk.send(self["@elements"],"_includes_",[anObject]);
3366
+ return $1;
3367
+ }
2656
3368
  }),
2657
3369
  smalltalk.Set);
2658
3370
 
@@ -2662,9 +3374,9 @@ smalltalk.method({
2662
3374
  selector: "initialize",
2663
3375
  fn: function (){
2664
3376
  var self=this;
2665
- smalltalk.send(self, "_initialize", [], smalltalk.Set.superclass || nil);
2666
- (self['@elements']=[]);
2667
- return self;}
3377
+ smalltalk.send(self,"_initialize",[],smalltalk.Collection);
3378
+ self["@elements"]=[];
3379
+ return self}
2668
3380
  }),
2669
3381
  smalltalk.Set);
2670
3382
 
@@ -2674,8 +3386,8 @@ smalltalk.method({
2674
3386
  selector: "remove:",
2675
3387
  fn: function (anObject){
2676
3388
  var self=this;
2677
- smalltalk.send(self['@elements'], "_remove_", [anObject]);
2678
- return self;}
3389
+ smalltalk.send(self["@elements"],"_remove_",[anObject]);
3390
+ return self}
2679
3391
  }),
2680
3392
  smalltalk.Set);
2681
3393
 
@@ -2685,11 +3397,17 @@ smalltalk.method({
2685
3397
  selector: "select:",
2686
3398
  fn: function (aBlock){
2687
3399
  var self=this;
2688
- var collection=nil;
2689
- (collection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []));
2690
- smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(collection, "_add_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(collection, "_add_", [each]);})]));})]);
3400
+ var $1;
3401
+ var collection;
3402
+ collection=smalltalk.send(smalltalk.send(self,"_class",[]),"_new",[]);
3403
+ smalltalk.send(self,"_do_",[(function(each){
3404
+ $1=smalltalk.send(aBlock,"_value_",[each]);
3405
+ if(smalltalk.assert($1)){
3406
+ return smalltalk.send(collection,"_add_",[each]);
3407
+ };
3408
+ })]);
2691
3409
  return collection;
2692
- return self;}
3410
+ }
2693
3411
  }),
2694
3412
  smalltalk.Set);
2695
3413
 
@@ -2699,8 +3417,10 @@ smalltalk.method({
2699
3417
  selector: "size",
2700
3418
  fn: function (){
2701
3419
  var self=this;
2702
- return smalltalk.send(self['@elements'], "_size", []);
2703
- return self;}
3420
+ var $1;
3421
+ $1=smalltalk.send(self["@elements"],"_size",[]);
3422
+ return $1;
3423
+ }
2704
3424
  }),
2705
3425
  smalltalk.Set);
2706
3426
 
@@ -2714,7 +3434,8 @@ selector: "compile:",
2714
3434
  fn: function (aString){
2715
3435
  var self=this;
2716
3436
  return self.compile(aString);
2717
- return self;}
3437
+ ;
3438
+ return self}
2718
3439
  }),
2719
3440
  smalltalk.RegularExpression);
2720
3441
 
@@ -2725,7 +3446,8 @@ selector: "exec:",
2725
3446
  fn: function (aString){
2726
3447
  var self=this;
2727
3448
  return self.exec(aString) || nil;
2728
- return self;}
3449
+ ;
3450
+ return self}
2729
3451
  }),
2730
3452
  smalltalk.RegularExpression);
2731
3453
 
@@ -2736,7 +3458,8 @@ selector: "test:",
2736
3458
  fn: function (aString){
2737
3459
  var self=this;
2738
3460
  return self.test(aString);
2739
- return self;}
3461
+ ;
3462
+ return self}
2740
3463
  }),
2741
3464
  smalltalk.RegularExpression);
2742
3465
 
@@ -2747,8 +3470,10 @@ smalltalk.method({
2747
3470
  selector: "fromString:",
2748
3471
  fn: function (aString){
2749
3472
  var self=this;
2750
- return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
2751
- return self;}
3473
+ var $1;
3474
+ $1=smalltalk.send(self,"_fromString_flag_",[aString,""]);
3475
+ return $1;
3476
+ }
2752
3477
  }),
2753
3478
  smalltalk.RegularExpression.klass);
2754
3479
 
@@ -2756,10 +3481,11 @@ smalltalk.addMethod(
2756
3481
  "_fromString_flag_",
2757
3482
  smalltalk.method({
2758
3483
  selector: "fromString:flag:",
2759
- fn: function (aString, anotherString){
3484
+ fn: function (aString,anotherString){
2760
3485
  var self=this;
2761
3486
  return new RegExp(aString, anotherString);
2762
- return self;}
3487
+ ;
3488
+ return self}
2763
3489
  }),
2764
3490
  smalltalk.RegularExpression.klass);
2765
3491
 
@@ -2771,8 +3497,10 @@ smalltalk.method({
2771
3497
  selector: "atEnd",
2772
3498
  fn: function (){
2773
3499
  var self=this;
2774
- return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
2775
- return self;}
3500
+ var $1;
3501
+ $1=smalltalk.send(smalltalk.send(self,"_position",[]),"__eq",[smalltalk.send(self,"_size",[])]);
3502
+ return $1;
3503
+ }
2776
3504
  }),
2777
3505
  smalltalk.Stream);
2778
3506
 
@@ -2782,8 +3510,10 @@ smalltalk.method({
2782
3510
  selector: "atStart",
2783
3511
  fn: function (){
2784
3512
  var self=this;
2785
- return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
2786
- return self;}
3513
+ var $1;
3514
+ $1=smalltalk.send(smalltalk.send(self,"_position",[]),"__eq",[(0)]);
3515
+ return $1;
3516
+ }
2787
3517
  }),
2788
3518
  smalltalk.Stream);
2789
3519
 
@@ -2793,8 +3523,7 @@ smalltalk.method({
2793
3523
  selector: "close",
2794
3524
  fn: function (){
2795
3525
  var self=this;
2796
-
2797
- return self;}
3526
+ return self}
2798
3527
  }),
2799
3528
  smalltalk.Stream);
2800
3529
 
@@ -2804,8 +3533,8 @@ smalltalk.method({
2804
3533
  selector: "collection",
2805
3534
  fn: function (){
2806
3535
  var self=this;
2807
- return self['@collection'];
2808
- return self;}
3536
+ return self["@collection"];
3537
+ }
2809
3538
  }),
2810
3539
  smalltalk.Stream);
2811
3540
 
@@ -2815,8 +3544,10 @@ smalltalk.method({
2815
3544
  selector: "contents",
2816
3545
  fn: function (){
2817
3546
  var self=this;
2818
- return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
2819
- return self;}
3547
+ var $1;
3548
+ $1=smalltalk.send(smalltalk.send(self,"_collection",[]),"_copyFrom_to_",[(1),smalltalk.send(self,"_streamSize",[])]);
3549
+ return $1;
3550
+ }
2820
3551
  }),
2821
3552
  smalltalk.Stream);
2822
3553
 
@@ -2826,8 +3557,12 @@ smalltalk.method({
2826
3557
  selector: "do:",
2827
3558
  fn: function (aBlock){
2828
3559
  var self=this;
2829
- (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
2830
- return self;}
3560
+ smalltalk.send((function(){
3561
+ return smalltalk.send(self,"_atEnd",[]);
3562
+ }),"_whileFalse_",[(function(){
3563
+ return smalltalk.send(aBlock,"_value_",[smalltalk.send(self,"_next",[])]);
3564
+ })]);
3565
+ return self}
2831
3566
  }),
2832
3567
  smalltalk.Stream);
2833
3568
 
@@ -2837,8 +3572,7 @@ smalltalk.method({
2837
3572
  selector: "flush",
2838
3573
  fn: function (){
2839
3574
  var self=this;
2840
-
2841
- return self;}
3575
+ return self}
2842
3576
  }),
2843
3577
  smalltalk.Stream);
2844
3578
 
@@ -2848,8 +3582,10 @@ smalltalk.method({
2848
3582
  selector: "isEmpty",
2849
3583
  fn: function (){
2850
3584
  var self=this;
2851
- return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
2852
- return self;}
3585
+ var $1;
3586
+ $1=smalltalk.send(smalltalk.send(self,"_size",[]),"__eq",[(0)]);
3587
+ return $1;
3588
+ }
2853
3589
  }),
2854
3590
  smalltalk.Stream);
2855
3591
 
@@ -2859,8 +3595,16 @@ smalltalk.method({
2859
3595
  selector: "next",
2860
3596
  fn: function (){
2861
3597
  var self=this;
2862
- 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", [])]);})]));
2863
- return self;}
3598
+ var $2,$1;
3599
+ $2=smalltalk.send(self,"_atEnd",[]);
3600
+ if(smalltalk.assert($2)){
3601
+ $1=nil;
3602
+ } else {
3603
+ smalltalk.send(self,"_position_",[smalltalk.send(smalltalk.send(self,"_position",[]),"__plus",[(1)])]);
3604
+ $1=smalltalk.send(self["@collection"],"_at_",[smalltalk.send(self,"_position",[])]);
3605
+ };
3606
+ return $1;
3607
+ }
2864
3608
  }),
2865
3609
  smalltalk.Stream);
2866
3610
 
@@ -2870,11 +3614,17 @@ smalltalk.method({
2870
3614
  selector: "next:",
2871
3615
  fn: function (anInteger){
2872
3616
  var self=this;
2873
- var tempCollection=nil;
2874
- (tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []));
2875
- smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})]));})]);
3617
+ var $1;
3618
+ var tempCollection;
3619
+ tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self,"_collection",[]),"_class",[]),"_new",[]);
3620
+ smalltalk.send(anInteger,"_timesRepeat_",[(function(){
3621
+ $1=smalltalk.send(self,"_atEnd",[]);
3622
+ if(! smalltalk.assert($1)){
3623
+ return smalltalk.send(tempCollection,"_add_",[smalltalk.send(self,"_next",[])]);
3624
+ };
3625
+ })]);
2876
3626
  return tempCollection;
2877
- return self;}
3627
+ }
2878
3628
  }),
2879
3629
  smalltalk.Stream);
2880
3630
 
@@ -2884,10 +3634,10 @@ smalltalk.method({
2884
3634
  selector: "nextPut:",
2885
3635
  fn: function (anObject){
2886
3636
  var self=this;
2887
- smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
2888
- smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
2889
- smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
2890
- return self;}
3637
+ smalltalk.send(self,"_position_",[smalltalk.send(smalltalk.send(self,"_position",[]),"__plus",[(1)])]);
3638
+ smalltalk.send(smalltalk.send(self,"_collection",[]),"_at_put_",[smalltalk.send(self,"_position",[]),anObject]);
3639
+ smalltalk.send(self,"_setStreamSize_",[smalltalk.send(smalltalk.send(self,"_streamSize",[]),"_max_",[smalltalk.send(self,"_position",[])])]);
3640
+ return self}
2891
3641
  }),
2892
3642
  smalltalk.Stream);
2893
3643
 
@@ -2897,8 +3647,10 @@ smalltalk.method({
2897
3647
  selector: "nextPutAll:",
2898
3648
  fn: function (aCollection){
2899
3649
  var self=this;
2900
- smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
2901
- return self;}
3650
+ smalltalk.send(aCollection,"_do_",[(function(each){
3651
+ return smalltalk.send(self,"_nextPut_",[each]);
3652
+ })]);
3653
+ return self}
2902
3654
  }),
2903
3655
  smalltalk.Stream);
2904
3656
 
@@ -2908,8 +3660,13 @@ smalltalk.method({
2908
3660
  selector: "peek",
2909
3661
  fn: function (){
2910
3662
  var self=this;
2911
- 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)]))]);})]));
2912
- return self;}
3663
+ var $2,$1;
3664
+ $2=smalltalk.send(self,"_atEnd",[]);
3665
+ if(! smalltalk.assert($2)){
3666
+ $1=smalltalk.send(smalltalk.send(self,"_collection",[]),"_at_",[smalltalk.send(smalltalk.send(self,"_position",[]),"__plus",[(1)])]);
3667
+ };
3668
+ return $1;
3669
+ }
2913
3670
  }),
2914
3671
  smalltalk.Stream);
2915
3672
 
@@ -2919,8 +3676,15 @@ smalltalk.method({
2919
3676
  selector: "position",
2920
3677
  fn: function (){
2921
3678
  var self=this;
2922
- return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return (self['@position']=(0));})() : $receiver;
2923
- return self;}
3679
+ var $1;
3680
+ if(($receiver = self["@position"]) == nil || $receiver == undefined){
3681
+ self["@position"]=(0);
3682
+ $1=self["@position"];
3683
+ } else {
3684
+ $1=self["@position"];
3685
+ };
3686
+ return $1;
3687
+ }
2924
3688
  }),
2925
3689
  smalltalk.Stream);
2926
3690
 
@@ -2930,8 +3694,8 @@ smalltalk.method({
2930
3694
  selector: "position:",
2931
3695
  fn: function (anInteger){
2932
3696
  var self=this;
2933
- (self['@position']=anInteger);
2934
- return self;}
3697
+ self["@position"]=anInteger;
3698
+ return self}
2935
3699
  }),
2936
3700
  smalltalk.Stream);
2937
3701
 
@@ -2941,8 +3705,8 @@ smalltalk.method({
2941
3705
  selector: "reset",
2942
3706
  fn: function (){
2943
3707
  var self=this;
2944
- smalltalk.send(self, "_position_", [(0)]);
2945
- return self;}
3708
+ smalltalk.send(self,"_position_",[(0)]);
3709
+ return self}
2946
3710
  }),
2947
3711
  smalltalk.Stream);
2948
3712
 
@@ -2952,9 +3716,9 @@ smalltalk.method({
2952
3716
  selector: "resetContents",
2953
3717
  fn: function (){
2954
3718
  var self=this;
2955
- smalltalk.send(self, "_reset", []);
2956
- smalltalk.send(self, "_setStreamSize_", [(0)]);
2957
- return self;}
3719
+ smalltalk.send(self,"_reset",[]);
3720
+ smalltalk.send(self,"_setStreamSize_",[(0)]);
3721
+ return self}
2958
3722
  }),
2959
3723
  smalltalk.Stream);
2960
3724
 
@@ -2964,8 +3728,8 @@ smalltalk.method({
2964
3728
  selector: "setCollection:",
2965
3729
  fn: function (aCollection){
2966
3730
  var self=this;
2967
- (self['@collection']=aCollection);
2968
- return self;}
3731
+ self["@collection"]=aCollection;
3732
+ return self}
2969
3733
  }),
2970
3734
  smalltalk.Stream);
2971
3735
 
@@ -2975,8 +3739,8 @@ smalltalk.method({
2975
3739
  selector: "setStreamSize:",
2976
3740
  fn: function (anInteger){
2977
3741
  var self=this;
2978
- (self['@streamSize']=anInteger);
2979
- return self;}
3742
+ self["@streamSize"]=anInteger;
3743
+ return self}
2980
3744
  }),
2981
3745
  smalltalk.Stream);
2982
3746
 
@@ -2986,8 +3750,8 @@ smalltalk.method({
2986
3750
  selector: "setToEnd",
2987
3751
  fn: function (){
2988
3752
  var self=this;
2989
- smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
2990
- return self;}
3753
+ smalltalk.send(self,"_position_",[smalltalk.send(self,"_size",[])]);
3754
+ return self}
2991
3755
  }),
2992
3756
  smalltalk.Stream);
2993
3757
 
@@ -2997,8 +3761,10 @@ smalltalk.method({
2997
3761
  selector: "size",
2998
3762
  fn: function (){
2999
3763
  var self=this;
3000
- return smalltalk.send(self, "_streamSize", []);
3001
- return self;}
3764
+ var $1;
3765
+ $1=smalltalk.send(self,"_streamSize",[]);
3766
+ return $1;
3767
+ }
3002
3768
  }),
3003
3769
  smalltalk.Stream);
3004
3770
 
@@ -3008,8 +3774,8 @@ smalltalk.method({
3008
3774
  selector: "skip:",
3009
3775
  fn: function (anInteger){
3010
3776
  var self=this;
3011
- 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)])]);
3012
- return self;}
3777
+ smalltalk.send(self,"_position_",[smalltalk.send(smalltalk.send(smalltalk.send(self,"_position",[]),"__plus",[anInteger]),"_min_max_",[smalltalk.send(self,"_size",[]),(0)])]);
3778
+ return self}
3013
3779
  }),
3014
3780
  smalltalk.Stream);
3015
3781
 
@@ -3019,8 +3785,8 @@ smalltalk.method({
3019
3785
  selector: "streamSize",
3020
3786
  fn: function (){
3021
3787
  var self=this;
3022
- return self['@streamSize'];
3023
- return self;}
3788
+ return self["@streamSize"];
3789
+ }
3024
3790
  }),
3025
3791
  smalltalk.Stream);
3026
3792
 
@@ -3031,8 +3797,14 @@ smalltalk.method({
3031
3797
  selector: "on:",
3032
3798
  fn: function (aCollection){
3033
3799
  var self=this;
3034
- 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", []));
3035
- return self;}
3800
+ var $2,$3,$1;
3801
+ $2=smalltalk.send(self,"_new",[]);
3802
+ smalltalk.send($2,"_setCollection_",[aCollection]);
3803
+ smalltalk.send($2,"_setStreamSize_",[smalltalk.send(aCollection,"_size",[])]);
3804
+ $3=smalltalk.send($2,"_yourself",[]);
3805
+ $1=$3;
3806
+ return $1;
3807
+ }
3036
3808
  }),
3037
3809
  smalltalk.Stream.klass);
3038
3810
 
@@ -3044,8 +3816,10 @@ smalltalk.method({
3044
3816
  selector: "cr",
3045
3817
  fn: function (){
3046
3818
  var self=this;
3047
- return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
3048
- return self;}
3819
+ var $1;
3820
+ $1=smalltalk.send(self,"_nextPutAll_",[smalltalk.send((smalltalk.String || String),"_cr",[])]);
3821
+ return $1;
3822
+ }
3049
3823
  }),
3050
3824
  smalltalk.StringStream);
3051
3825
 
@@ -3055,8 +3829,10 @@ smalltalk.method({
3055
3829
  selector: "crlf",
3056
3830
  fn: function (){
3057
3831
  var self=this;
3058
- return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
3059
- return self;}
3832
+ var $1;
3833
+ $1=smalltalk.send(self,"_nextPutAll_",[smalltalk.send((smalltalk.String || String),"_crlf",[])]);
3834
+ return $1;
3835
+ }
3060
3836
  }),
3061
3837
  smalltalk.StringStream);
3062
3838
 
@@ -3066,8 +3842,10 @@ smalltalk.method({
3066
3842
  selector: "lf",
3067
3843
  fn: function (){
3068
3844
  var self=this;
3069
- return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
3070
- return self;}
3845
+ var $1;
3846
+ $1=smalltalk.send(self,"_nextPutAll_",[smalltalk.send((smalltalk.String || String),"_lf",[])]);
3847
+ return $1;
3848
+ }
3071
3849
  }),
3072
3850
  smalltalk.StringStream);
3073
3851
 
@@ -3077,11 +3855,18 @@ smalltalk.method({
3077
3855
  selector: "next:",
3078
3856
  fn: function (anInteger){
3079
3857
  var self=this;
3080
- var tempCollection=nil;
3081
- (tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []));
3082
- smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]));})]));})]);
3858
+ var $1;
3859
+ var tempCollection;
3860
+ tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self,"_collection",[]),"_class",[]),"_new",[]);
3861
+ smalltalk.send(anInteger,"_timesRepeat_",[(function(){
3862
+ $1=smalltalk.send(self,"_atEnd",[]);
3863
+ if(! smalltalk.assert($1)){
3864
+ tempCollection=smalltalk.send(tempCollection,"__comma",[smalltalk.send(self,"_next",[])]);
3865
+ return tempCollection;
3866
+ };
3867
+ })]);
3083
3868
  return tempCollection;
3084
- return self;}
3869
+ }
3085
3870
  }),
3086
3871
  smalltalk.StringStream);
3087
3872
 
@@ -3091,8 +3876,8 @@ smalltalk.method({
3091
3876
  selector: "nextPut:",
3092
3877
  fn: function (aString){
3093
3878
  var self=this;
3094
- smalltalk.send(self, "_nextPutAll_", [aString]);
3095
- return self;}
3879
+ smalltalk.send(self,"_nextPutAll_",[aString]);
3880
+ return self}
3096
3881
  }),
3097
3882
  smalltalk.StringStream);
3098
3883
 
@@ -3102,10 +3887,10 @@ smalltalk.method({
3102
3887
  selector: "nextPutAll:",
3103
3888
  fn: function (aString){
3104
3889
  var self=this;
3105
- 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", [])])])]);
3106
- 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", [])]))]);
3107
- smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
3108
- return self;}
3890
+ 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_",[smalltalk.send(smalltalk.send(smalltalk.send(self,"_position",[]),"__plus",[(1)]),"__plus",[smalltalk.send(aString,"_size",[])]),smalltalk.send(smalltalk.send(self,"_collection",[]),"_size",[])])])]);
3891
+ smalltalk.send(self,"_position_",[smalltalk.send(smalltalk.send(self,"_position",[]),"__plus",[smalltalk.send(aString,"_size",[])])]);
3892
+ smalltalk.send(self,"_setStreamSize_",[smalltalk.send(smalltalk.send(self,"_streamSize",[]),"_max_",[smalltalk.send(self,"_position",[])])]);
3893
+ return self}
3109
3894
  }),
3110
3895
  smalltalk.StringStream);
3111
3896
 
@@ -3115,8 +3900,8 @@ smalltalk.method({
3115
3900
  selector: "space",
3116
3901
  fn: function (){
3117
3902
  var self=this;
3118
- smalltalk.send(self, "_nextPut_", [" "]);
3119
- return self;}
3903
+ smalltalk.send(self,"_nextPut_",[" "]);
3904
+ return self}
3120
3905
  }),
3121
3906
  smalltalk.StringStream);
3122
3907