|
@@ -2515,6 +2515,45 @@ messageSends: []
|
|
|
}),
|
|
|
$globals.TBehaviorProvider);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "methodOrganizationEnter:andLeave:",
|
|
|
+protocol: "accessing",
|
|
|
+fn: function (aMethod,oldMethod){
|
|
|
+var self=this,$self=this;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+var $1,$2,$receiver;
|
|
|
+if(($receiver = aMethod) == null || $receiver.a$nil){
|
|
|
+aMethod;
|
|
|
+} else {
|
|
|
+$1=$self._organization();
|
|
|
+$2=$recv(aMethod)._protocol();
|
|
|
+
|
|
|
+$ctx1.sendIdx["protocol"]=1;
|
|
|
+
|
|
|
+$recv($1)._addElement_($2);
|
|
|
+}
|
|
|
+if(($receiver = oldMethod) == null || $receiver.a$nil){
|
|
|
+oldMethod;
|
|
|
+} else {
|
|
|
+$self._removeProtocolIfEmpty_($recv(oldMethod)._protocol());
|
|
|
+}
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"methodOrganizationEnter:andLeave:",{aMethod:aMethod,oldMethod:oldMethod},$globals.TBehaviorProvider)});
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: ["aMethod", "oldMethod"],
|
|
|
+source: "methodOrganizationEnter: aMethod andLeave: oldMethod\x0a\x09aMethod ifNotNil: [\x0a\x09\x09self organization addElement: aMethod protocol ].\x0a\x09\x0a\x09oldMethod ifNotNil: [\x0a\x09\x09self removeProtocolIfEmpty: oldMethod protocol ]",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: ["ifNotNil:", "addElement:", "organization", "protocol", "removeProtocolIfEmpty:"]
|
|
|
+}),
|
|
|
+$globals.TBehaviorProvider);
|
|
|
+
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "methodTemplate",
|
|
@@ -3283,6 +3322,43 @@ messageSends: ["basicAt:put:", "announce:", "current", "theClass:", "new", "your
|
|
|
}),
|
|
|
$globals.TMasterBehavior);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "definedMethods",
|
|
|
+protocol: "accessing",
|
|
|
+fn: function (){
|
|
|
+var self=this,$self=this;
|
|
|
+var methods;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+var $1,$receiver;
|
|
|
+methods=$self._methods();
|
|
|
+
|
|
|
+$ctx1.sendIdx["methods"]=1;
|
|
|
+
|
|
|
+$1=$self._theMetaClass();
|
|
|
+if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
+return methods;
|
|
|
+} else {
|
|
|
+var meta;
|
|
|
+meta=$receiver;
|
|
|
+return $recv(methods).__comma($recv(meta)._methods());
|
|
|
+}
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"definedMethods",{methods:methods},$globals.TMasterBehavior)});
|
|
|
+
|
|
|
+},
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "definedMethods\x0a\x09\x22Answers methods of me and derived 'meta' part if present\x22\x0a\x09| methods |\x0a\x09methods := self methods.\x0a\x09self theMetaClass\x0a\x09\x09ifNil: [ ^ methods ]\x0a\x09\x09ifNotNil: [ :meta | ^ methods, meta methods ]",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+messageSends: ["methods", "ifNil:ifNotNil:", "theMetaClass", ","]
|
|
|
+}),
|
|
|
+$globals.TMasterBehavior);
|
|
|
+
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "enterOrganization",
|