|
@@ -1103,6 +1103,35 @@ return $1;
|
|
messageSends: ["detect:ifNone:", "=", "at:", "keys"]}),
|
|
messageSends: ["detect:ifNone:", "=", "at:", "keys"]}),
|
|
smalltalk.HashedCollection);
|
|
smalltalk.HashedCollection);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "keyAtValue:",
|
|
|
|
+fn: function (anObject){
|
|
|
|
+var self=this;
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
|
|
+$1=self._keyAtValue_ifAbsent_(anObject,(function(){
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return self._errorNotFound();
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
|
|
+return $1;
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"keyAtValue:",{anObject:anObject},smalltalk.HashedCollection)})},
|
|
|
|
+messageSends: ["keyAtValue:ifAbsent:", "errorNotFound"]}),
|
|
|
|
+smalltalk.HashedCollection);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "keyAtValue:ifAbsent:",
|
|
|
|
+fn: function (anObject,aBlock){
|
|
|
|
+var self=this;
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
|
+var $1;
|
|
|
|
+$1=self._indexOf_ifAbsent_(anObject,aBlock);
|
|
|
|
+return $1;
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"keyAtValue:ifAbsent:",{anObject:anObject,aBlock:aBlock},smalltalk.HashedCollection)})},
|
|
|
|
+messageSends: ["indexOf:ifAbsent:"]}),
|
|
|
|
+smalltalk.HashedCollection);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
selector: "keys",
|
|
selector: "keys",
|