|
@@ -1467,6 +1467,45 @@ referencedClasses: []
|
|
|
}),
|
|
|
smalltalk.HashedCollection);
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "keyAtValue:",
|
|
|
+category: 'accessing',
|
|
|
+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)})},
|
|
|
+args: ["anObject"],
|
|
|
+source: "keyAtValue: anObject\x0a\x09^ self keyAtValue: anObject ifAbsent: [ self errorNotFound ]",
|
|
|
+messageSends: ["keyAtValue:ifAbsent:", "errorNotFound"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.HashedCollection);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "keyAtValue:ifAbsent:",
|
|
|
+category: 'accessing',
|
|
|
+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)})},
|
|
|
+args: ["anObject", "aBlock"],
|
|
|
+source: "keyAtValue: anObject ifAbsent: aBlock\x0a\x09^ self indexOf: anObject ifAbsent: aBlock",
|
|
|
+messageSends: ["indexOf:ifAbsent:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.HashedCollection);
|
|
|
+
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "keys",
|