|
@@ -440,27 +440,6 @@ referencedClasses: ["OrderedCollection", "Package", "Smalltalk", "Dictionary", "
|
|
}),
|
|
}),
|
|
smalltalk.ChunkExporter);
|
|
smalltalk.ChunkExporter);
|
|
|
|
|
|
-smalltalk.addMethod(
|
|
|
|
-smalltalk.method({
|
|
|
|
-selector: "methodsOfCategory:",
|
|
|
|
-category: 'accessing',
|
|
|
|
-fn: function (aCategory){
|
|
|
|
-var self=this;
|
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
|
-var $1;
|
|
|
|
-$1=_st(_st(aCategory)._methods())._sorted_((function(a,b){
|
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
|
-return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1,1)})}));
|
|
|
|
-return $1;
|
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"methodsOfCategory:",{aCategory:aCategory},smalltalk.ChunkExporter)})},
|
|
|
|
-args: ["aCategory"],
|
|
|
|
-source: "methodsOfCategory: aCategory\x0a\x09\x22Issue #143: sort methods alphabetically\x22\x0a\x0a\x09^(aCategory methods) sorted: [ :a :b | a selector <= b selector ]",
|
|
|
|
-messageSends: ["sorted:", "methods", "<=", "selector"],
|
|
|
|
-referencedClasses: []
|
|
|
|
-}),
|
|
|
|
-smalltalk.ChunkExporter);
|
|
|
|
-
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
selector: "ownCategoriesOfClass:",
|
|
selector: "ownCategoriesOfClass:",
|
|
@@ -1036,12 +1015,15 @@ fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
|
|
return smalltalk.withContext(function($ctx1) {
|
|
var $1;
|
|
var $1;
|
|
-$1=_st(self._theClass())._methodsInProtocol_(self._name());
|
|
|
|
|
|
+$1=_st(_st(self._theClass())._methodsInProtocol_(self._name()))._sorted_((function(a,b){
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1,1)})}));
|
|
return $1;
|
|
return $1;
|
|
}, function($ctx1) {$ctx1.fill(self,"methods",{},smalltalk.ExportMethodProtocol)})},
|
|
}, function($ctx1) {$ctx1.fill(self,"methods",{},smalltalk.ExportMethodProtocol)})},
|
|
args: [],
|
|
args: [],
|
|
-source: "methods\x0a\x09^ self theClass methodsInProtocol: self name",
|
|
|
|
-messageSends: ["methodsInProtocol:", "theClass", "name"],
|
|
|
|
|
|
+source: "methods\x0a\x09^ (self theClass methodsInProtocol: self name)\x0a\x09\x09sorted: [ :a :b | a selector <= b selector ]",
|
|
|
|
+messageSends: ["sorted:", "methodsInProtocol:", "theClass", "name", "<=", "selector"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.ExportMethodProtocol);
|
|
smalltalk.ExportMethodProtocol);
|
|
@@ -1080,27 +1062,6 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.ExportMethodProtocol);
|
|
smalltalk.ExportMethodProtocol);
|
|
|
|
|
|
-smalltalk.addMethod(
|
|
|
|
-smalltalk.method({
|
|
|
|
-selector: "sortedMethods",
|
|
|
|
-category: 'accessing',
|
|
|
|
-fn: function (){
|
|
|
|
-var self=this;
|
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
|
-var $1;
|
|
|
|
-$1=_st(self._methods())._sorted_((function(a,b){
|
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
|
-return _st(_st(a)._selector()).__lt_eq(_st(b)._selector());
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1,1)})}));
|
|
|
|
-return $1;
|
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"sortedMethods",{},smalltalk.ExportMethodProtocol)})},
|
|
|
|
-args: [],
|
|
|
|
-source: "sortedMethods\x0a\x09^ self methods sorted: [ :a :b | a selector <= b selector ]",
|
|
|
|
-messageSends: ["sorted:", "methods", "<=", "selector"],
|
|
|
|
-referencedClasses: []
|
|
|
|
-}),
|
|
|
|
-smalltalk.ExportMethodProtocol);
|
|
|
|
-
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
selector: "theClass",
|
|
selector: "theClass",
|