2
0

Kernel-Announcements.deploy.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. smalltalk.addPackage('Kernel-Announcements');
  2. smalltalk.addClass('AnnouncementSubscription', smalltalk.Object, ['valuable', 'announcementClass'], 'Kernel-Announcements');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "announcementClass",
  6. fn: function (){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. var $1;
  10. $1=self["@announcementClass"];
  11. return $1;
  12. }, function($ctx1) {$ctx1.fill(self,"announcementClass",{},smalltalk.AnnouncementSubscription)})},
  13. messageSends: []}),
  14. smalltalk.AnnouncementSubscription);
  15. smalltalk.addMethod(
  16. smalltalk.method({
  17. selector: "announcementClass:",
  18. fn: function (aClass){
  19. var self=this;
  20. return smalltalk.withContext(function($ctx1) {
  21. self["@announcementClass"]=aClass;
  22. return self}, function($ctx1) {$ctx1.fill(self,"announcementClass:",{aClass:aClass},smalltalk.AnnouncementSubscription)})},
  23. messageSends: []}),
  24. smalltalk.AnnouncementSubscription);
  25. smalltalk.addMethod(
  26. smalltalk.method({
  27. selector: "block",
  28. fn: function (){
  29. var self=this;
  30. return smalltalk.withContext(function($ctx1) {
  31. var $1;
  32. self._deprecatedAPI();
  33. $1=self._valuable();
  34. return $1;
  35. }, function($ctx1) {$ctx1.fill(self,"block",{},smalltalk.AnnouncementSubscription)})},
  36. messageSends: ["deprecatedAPI", "valuable"]}),
  37. smalltalk.AnnouncementSubscription);
  38. smalltalk.addMethod(
  39. smalltalk.method({
  40. selector: "block:",
  41. fn: function (aValuable){
  42. var self=this;
  43. return smalltalk.withContext(function($ctx1) {
  44. self._deprecatedAPI();
  45. self._valuable_(aValuable);
  46. return self}, function($ctx1) {$ctx1.fill(self,"block:",{aValuable:aValuable},smalltalk.AnnouncementSubscription)})},
  47. messageSends: ["deprecatedAPI", "valuable:"]}),
  48. smalltalk.AnnouncementSubscription);
  49. smalltalk.addMethod(
  50. smalltalk.method({
  51. selector: "deliver:",
  52. fn: function (anAnnouncement){
  53. var self=this;
  54. return smalltalk.withContext(function($ctx1) {
  55. var $1;
  56. $1=self._handlesAnnouncement_(anAnnouncement);
  57. if(smalltalk.assert($1)){
  58. _st(self._valuable())._value_(anAnnouncement);
  59. };
  60. return self}, function($ctx1) {$ctx1.fill(self,"deliver:",{anAnnouncement:anAnnouncement},smalltalk.AnnouncementSubscription)})},
  61. messageSends: ["ifTrue:", "value:", "valuable", "handlesAnnouncement:"]}),
  62. smalltalk.AnnouncementSubscription);
  63. smalltalk.addMethod(
  64. smalltalk.method({
  65. selector: "handlesAnnouncement:",
  66. fn: function (anAnnouncement){
  67. var self=this;
  68. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  69. return smalltalk.withContext(function($ctx1) {
  70. var $2,$1;
  71. $2=_st(_st($Smalltalk())._current())._at_(_st(self._announcementClass())._name());
  72. if(($receiver = $2) == nil || $receiver == undefined){
  73. return false;
  74. } else {
  75. var class_;
  76. class_=$receiver;
  77. $1=_st(class_)._includesBehavior_(_st(_st($Smalltalk())._current())._at_(_st(_st(_st(anAnnouncement)._class())._theNonMetaClass())._name()));
  78. };
  79. return $1;
  80. }, function($ctx1) {$ctx1.fill(self,"handlesAnnouncement:",{anAnnouncement:anAnnouncement},smalltalk.AnnouncementSubscription)})},
  81. messageSends: ["ifNil:ifNotNil:", "includesBehavior:", "at:", "name", "theNonMetaClass", "class", "current", "announcementClass"]}),
  82. smalltalk.AnnouncementSubscription);
  83. smalltalk.addMethod(
  84. smalltalk.method({
  85. selector: "receiver",
  86. fn: function (){
  87. var self=this;
  88. return smalltalk.withContext(function($ctx1) {
  89. var $1;
  90. $1=_st(self._valuable())._receiver();
  91. return $1;
  92. }, function($ctx1) {$ctx1.fill(self,"receiver",{},smalltalk.AnnouncementSubscription)})},
  93. messageSends: ["receiver", "valuable"]}),
  94. smalltalk.AnnouncementSubscription);
  95. smalltalk.addMethod(
  96. smalltalk.method({
  97. selector: "valuable",
  98. fn: function (){
  99. var self=this;
  100. return smalltalk.withContext(function($ctx1) {
  101. var $1;
  102. $1=self["@valuable"];
  103. return $1;
  104. }, function($ctx1) {$ctx1.fill(self,"valuable",{},smalltalk.AnnouncementSubscription)})},
  105. messageSends: []}),
  106. smalltalk.AnnouncementSubscription);
  107. smalltalk.addMethod(
  108. smalltalk.method({
  109. selector: "valuable:",
  110. fn: function (aValuable){
  111. var self=this;
  112. return smalltalk.withContext(function($ctx1) {
  113. self["@valuable"]=aValuable;
  114. return self}, function($ctx1) {$ctx1.fill(self,"valuable:",{aValuable:aValuable},smalltalk.AnnouncementSubscription)})},
  115. messageSends: []}),
  116. smalltalk.AnnouncementSubscription);
  117. smalltalk.addClass('Announcer', smalltalk.Object, ['registry', 'subscriptions'], 'Kernel-Announcements');
  118. smalltalk.addMethod(
  119. smalltalk.method({
  120. selector: "announce:",
  121. fn: function (anAnnouncement){
  122. var self=this;
  123. return smalltalk.withContext(function($ctx1) {
  124. _st(self["@subscriptions"])._do_((function(each){
  125. return smalltalk.withContext(function($ctx2) {
  126. return _st(each)._deliver_(anAnnouncement);
  127. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  128. return self}, function($ctx1) {$ctx1.fill(self,"announce:",{anAnnouncement:anAnnouncement},smalltalk.Announcer)})},
  129. messageSends: ["do:", "deliver:"]}),
  130. smalltalk.Announcer);
  131. smalltalk.addMethod(
  132. smalltalk.method({
  133. selector: "initialize",
  134. fn: function (){
  135. var self=this;
  136. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  137. return smalltalk.withContext(function($ctx1) {
  138. smalltalk.Object.fn.prototype._initialize.apply(_st(self), []);
  139. self["@subscriptions"]=_st($OrderedCollection())._new();
  140. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.Announcer)})},
  141. messageSends: ["initialize", "new"]}),
  142. smalltalk.Announcer);
  143. smalltalk.addMethod(
  144. smalltalk.method({
  145. selector: "on:do:",
  146. fn: function (aClass,aBlock){
  147. var self=this;
  148. function $AnnouncementSubscription(){return smalltalk.AnnouncementSubscription||(typeof AnnouncementSubscription=="undefined"?nil:AnnouncementSubscription)}
  149. return smalltalk.withContext(function($ctx1) {
  150. var $1,$2;
  151. $1=_st($AnnouncementSubscription())._new();
  152. _st($1)._valuable_(aBlock);
  153. _st($1)._announcementClass_(aClass);
  154. $2=_st($1)._yourself();
  155. _st(self["@subscriptions"])._add_($2);
  156. return self}, function($ctx1) {$ctx1.fill(self,"on:do:",{aClass:aClass,aBlock:aBlock},smalltalk.Announcer)})},
  157. messageSends: ["add:", "valuable:", "new", "announcementClass:", "yourself"]}),
  158. smalltalk.Announcer);
  159. smalltalk.addMethod(
  160. smalltalk.method({
  161. selector: "on:send:to:",
  162. fn: function (aClass,aSelector,anObject){
  163. var self=this;
  164. function $MessageSend(){return smalltalk.MessageSend||(typeof MessageSend=="undefined"?nil:MessageSend)}
  165. function $AnnouncementSubscription(){return smalltalk.AnnouncementSubscription||(typeof AnnouncementSubscription=="undefined"?nil:AnnouncementSubscription)}
  166. return smalltalk.withContext(function($ctx1) {
  167. var $1,$2,$3,$4;
  168. $1=_st($AnnouncementSubscription())._new();
  169. $2=_st($MessageSend())._new();
  170. _st($2)._receiver_(anObject);
  171. _st($2)._selector_(aSelector);
  172. $3=_st($2)._yourself();
  173. _st($1)._valuable_($3);
  174. _st($1)._announcementClass_(aClass);
  175. $4=_st($1)._yourself();
  176. _st(self["@subscriptions"])._add_($4);
  177. return self}, function($ctx1) {$ctx1.fill(self,"on:send:to:",{aClass:aClass,aSelector:aSelector,anObject:anObject},smalltalk.Announcer)})},
  178. messageSends: ["add:", "valuable:", "receiver:", "new", "selector:", "yourself", "announcementClass:"]}),
  179. smalltalk.Announcer);
  180. smalltalk.addMethod(
  181. smalltalk.method({
  182. selector: "unsubscribe:",
  183. fn: function (anObject){
  184. var self=this;
  185. return smalltalk.withContext(function($ctx1) {
  186. self["@subscriptions"]=_st(self["@subscriptions"])._reject_((function(each){
  187. return smalltalk.withContext(function($ctx2) {
  188. return _st(_st(each)._receiver()).__eq(anObject);
  189. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  190. return self}, function($ctx1) {$ctx1.fill(self,"unsubscribe:",{anObject:anObject},smalltalk.Announcer)})},
  191. messageSends: ["reject:", "=", "receiver"]}),
  192. smalltalk.Announcer);
  193. smalltalk.addClass('SystemAnnouncer', smalltalk.Announcer, [], 'Kernel-Announcements');
  194. smalltalk.SystemAnnouncer.klass.iVarNames = ['current'];
  195. smalltalk.addMethod(
  196. smalltalk.method({
  197. selector: "current",
  198. fn: function (){
  199. var self=this;
  200. return smalltalk.withContext(function($ctx1) {
  201. var $2,$1;
  202. $2=self["@current"];
  203. if(($receiver = $2) == nil || $receiver == undefined){
  204. self["@current"]=smalltalk.Announcer.klass.fn.prototype._new.apply(_st(self), []);
  205. $1=self["@current"];
  206. } else {
  207. $1=$2;
  208. };
  209. return $1;
  210. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.SystemAnnouncer.klass)})},
  211. messageSends: ["ifNil:", "new"]}),
  212. smalltalk.SystemAnnouncer.klass);
  213. smalltalk.addMethod(
  214. smalltalk.method({
  215. selector: "new",
  216. fn: function (){
  217. var self=this;
  218. return smalltalk.withContext(function($ctx1) {
  219. self._shouldNotImplement();
  220. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.SystemAnnouncer.klass)})},
  221. messageSends: ["shouldNotImplement"]}),
  222. smalltalk.SystemAnnouncer.klass);
  223. smalltalk.addClass('SystemAnnouncement', smalltalk.Object, ['theClass'], 'Kernel-Announcements');
  224. smalltalk.addMethod(
  225. smalltalk.method({
  226. selector: "theClass",
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) {
  230. var $1;
  231. $1=self["@theClass"];
  232. return $1;
  233. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.SystemAnnouncement)})},
  234. messageSends: []}),
  235. smalltalk.SystemAnnouncement);
  236. smalltalk.addMethod(
  237. smalltalk.method({
  238. selector: "theClass:",
  239. fn: function (aClass){
  240. var self=this;
  241. return smalltalk.withContext(function($ctx1) {
  242. self["@theClass"]=aClass;
  243. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.SystemAnnouncement)})},
  244. messageSends: []}),
  245. smalltalk.SystemAnnouncement);
  246. smalltalk.addMethod(
  247. smalltalk.method({
  248. selector: "heliosClass",
  249. fn: function (){
  250. var self=this;
  251. return smalltalk.withContext(function($ctx1) {
  252. return "announcement";
  253. }, function($ctx1) {$ctx1.fill(self,"heliosClass",{},smalltalk.SystemAnnouncement.klass)})},
  254. messageSends: []}),
  255. smalltalk.SystemAnnouncement.klass);
  256. smalltalk.addClass('ClassAnnouncement', smalltalk.SystemAnnouncement, ['theClass'], 'Kernel-Announcements');
  257. smalltalk.addMethod(
  258. smalltalk.method({
  259. selector: "theClass",
  260. fn: function (){
  261. var self=this;
  262. return smalltalk.withContext(function($ctx1) {
  263. var $1;
  264. $1=self["@theClass"];
  265. return $1;
  266. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.ClassAnnouncement)})},
  267. messageSends: []}),
  268. smalltalk.ClassAnnouncement);
  269. smalltalk.addMethod(
  270. smalltalk.method({
  271. selector: "theClass:",
  272. fn: function (aClass){
  273. var self=this;
  274. return smalltalk.withContext(function($ctx1) {
  275. self["@theClass"]=aClass;
  276. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.ClassAnnouncement)})},
  277. messageSends: []}),
  278. smalltalk.ClassAnnouncement);
  279. smalltalk.addClass('ClassAdded', smalltalk.ClassAnnouncement, [], 'Kernel-Announcements');
  280. smalltalk.addClass('ClassCommentChanged', smalltalk.ClassAnnouncement, [], 'Kernel-Announcements');
  281. smalltalk.addClass('ClassDefinitionChanged', smalltalk.ClassAnnouncement, [], 'Kernel-Announcements');
  282. smalltalk.addClass('ClassMigrated', smalltalk.ClassAnnouncement, ['oldClass'], 'Kernel-Announcements');
  283. smalltalk.addMethod(
  284. smalltalk.method({
  285. selector: "oldClass",
  286. fn: function (){
  287. var self=this;
  288. return smalltalk.withContext(function($ctx1) {
  289. var $1;
  290. $1=self["@oldClass"];
  291. return $1;
  292. }, function($ctx1) {$ctx1.fill(self,"oldClass",{},smalltalk.ClassMigrated)})},
  293. messageSends: []}),
  294. smalltalk.ClassMigrated);
  295. smalltalk.addMethod(
  296. smalltalk.method({
  297. selector: "oldClass:",
  298. fn: function (aClass){
  299. var self=this;
  300. return smalltalk.withContext(function($ctx1) {
  301. self["@oldClass"]=aClass;
  302. return self}, function($ctx1) {$ctx1.fill(self,"oldClass:",{aClass:aClass},smalltalk.ClassMigrated)})},
  303. messageSends: []}),
  304. smalltalk.ClassMigrated);
  305. smalltalk.addClass('ClassMoved', smalltalk.ClassAnnouncement, ['oldPackage'], 'Kernel-Announcements');
  306. smalltalk.addMethod(
  307. smalltalk.method({
  308. selector: "oldPackage",
  309. fn: function (){
  310. var self=this;
  311. return smalltalk.withContext(function($ctx1) {
  312. var $1;
  313. $1=self["@oldPackage"];
  314. return $1;
  315. }, function($ctx1) {$ctx1.fill(self,"oldPackage",{},smalltalk.ClassMoved)})},
  316. messageSends: []}),
  317. smalltalk.ClassMoved);
  318. smalltalk.addMethod(
  319. smalltalk.method({
  320. selector: "oldPackage:",
  321. fn: function (aPackage){
  322. var self=this;
  323. return smalltalk.withContext(function($ctx1) {
  324. self["@oldPackage"]=aPackage;
  325. return self}, function($ctx1) {$ctx1.fill(self,"oldPackage:",{aPackage:aPackage},smalltalk.ClassMoved)})},
  326. messageSends: []}),
  327. smalltalk.ClassMoved);
  328. smalltalk.addClass('ClassRemoved', smalltalk.ClassAnnouncement, [], 'Kernel-Announcements');
  329. smalltalk.addClass('ClassRenamed', smalltalk.ClassAnnouncement, [], 'Kernel-Announcements');
  330. smalltalk.addClass('MethodAnnouncement', smalltalk.SystemAnnouncement, ['method'], 'Kernel-Announcements');
  331. smalltalk.addMethod(
  332. smalltalk.method({
  333. selector: "method",
  334. fn: function (){
  335. var self=this;
  336. return smalltalk.withContext(function($ctx1) {
  337. var $1;
  338. $1=self["@method"];
  339. return $1;
  340. }, function($ctx1) {$ctx1.fill(self,"method",{},smalltalk.MethodAnnouncement)})},
  341. messageSends: []}),
  342. smalltalk.MethodAnnouncement);
  343. smalltalk.addMethod(
  344. smalltalk.method({
  345. selector: "method:",
  346. fn: function (aCompiledMethod){
  347. var self=this;
  348. return smalltalk.withContext(function($ctx1) {
  349. self["@method"]=aCompiledMethod;
  350. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aCompiledMethod:aCompiledMethod},smalltalk.MethodAnnouncement)})},
  351. messageSends: []}),
  352. smalltalk.MethodAnnouncement);
  353. smalltalk.addClass('MethodAdded', smalltalk.MethodAnnouncement, [], 'Kernel-Announcements');
  354. smalltalk.addClass('MethodModified', smalltalk.MethodAnnouncement, ['oldMethod'], 'Kernel-Announcements');
  355. smalltalk.addMethod(
  356. smalltalk.method({
  357. selector: "oldMethod",
  358. fn: function (){
  359. var self=this;
  360. return smalltalk.withContext(function($ctx1) {
  361. var $1;
  362. $1=self["@oldMethod"];
  363. return $1;
  364. }, function($ctx1) {$ctx1.fill(self,"oldMethod",{},smalltalk.MethodModified)})},
  365. messageSends: []}),
  366. smalltalk.MethodModified);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "oldMethod:",
  370. fn: function (aMethod){
  371. var self=this;
  372. return smalltalk.withContext(function($ctx1) {
  373. self["@oldMethod"]=aMethod;
  374. return self}, function($ctx1) {$ctx1.fill(self,"oldMethod:",{aMethod:aMethod},smalltalk.MethodModified)})},
  375. messageSends: []}),
  376. smalltalk.MethodModified);
  377. smalltalk.addClass('MethodMoved', smalltalk.MethodAnnouncement, ['oldProtocol'], 'Kernel-Announcements');
  378. smalltalk.addMethod(
  379. smalltalk.method({
  380. selector: "oldProtocol",
  381. fn: function (){
  382. var self=this;
  383. return smalltalk.withContext(function($ctx1) {
  384. var $1;
  385. $1=self["@oldProtocol"];
  386. return $1;
  387. }, function($ctx1) {$ctx1.fill(self,"oldProtocol",{},smalltalk.MethodMoved)})},
  388. messageSends: []}),
  389. smalltalk.MethodMoved);
  390. smalltalk.addMethod(
  391. smalltalk.method({
  392. selector: "oldProtocol:",
  393. fn: function (aString){
  394. var self=this;
  395. return smalltalk.withContext(function($ctx1) {
  396. self["@oldProtocol"]=aString;
  397. return self}, function($ctx1) {$ctx1.fill(self,"oldProtocol:",{aString:aString},smalltalk.MethodMoved)})},
  398. messageSends: []}),
  399. smalltalk.MethodMoved);
  400. smalltalk.addClass('MethodRemoved', smalltalk.MethodAnnouncement, [], 'Kernel-Announcements');
  401. smalltalk.addClass('PackageAnnouncement', smalltalk.SystemAnnouncement, ['package'], 'Kernel-Announcements');
  402. smalltalk.addMethod(
  403. smalltalk.method({
  404. selector: "package",
  405. fn: function (){
  406. var self=this;
  407. return smalltalk.withContext(function($ctx1) {
  408. var $1;
  409. $1=self["@package"];
  410. return $1;
  411. }, function($ctx1) {$ctx1.fill(self,"package",{},smalltalk.PackageAnnouncement)})},
  412. messageSends: []}),
  413. smalltalk.PackageAnnouncement);
  414. smalltalk.addMethod(
  415. smalltalk.method({
  416. selector: "package:",
  417. fn: function (aPackage){
  418. var self=this;
  419. return smalltalk.withContext(function($ctx1) {
  420. self["@package"]=aPackage;
  421. return self}, function($ctx1) {$ctx1.fill(self,"package:",{aPackage:aPackage},smalltalk.PackageAnnouncement)})},
  422. messageSends: []}),
  423. smalltalk.PackageAnnouncement);
  424. smalltalk.addClass('PackageAdded', smalltalk.PackageAnnouncement, [], 'Kernel-Announcements');
  425. smalltalk.addClass('PackageRemoved', smalltalk.PackageAnnouncement, [], 'Kernel-Announcements');
  426. smalltalk.addClass('ProtocolAnnouncement', smalltalk.SystemAnnouncement, ['theClass', 'protocol'], 'Kernel-Announcements');
  427. smalltalk.addMethod(
  428. smalltalk.method({
  429. selector: "protocol",
  430. fn: function (){
  431. var self=this;
  432. return smalltalk.withContext(function($ctx1) {
  433. var $1;
  434. $1=self["@protocol"];
  435. return $1;
  436. }, function($ctx1) {$ctx1.fill(self,"protocol",{},smalltalk.ProtocolAnnouncement)})},
  437. messageSends: []}),
  438. smalltalk.ProtocolAnnouncement);
  439. smalltalk.addMethod(
  440. smalltalk.method({
  441. selector: "protocol:",
  442. fn: function (aString){
  443. var self=this;
  444. return smalltalk.withContext(function($ctx1) {
  445. self["@protocol"]=aString;
  446. return self}, function($ctx1) {$ctx1.fill(self,"protocol:",{aString:aString},smalltalk.ProtocolAnnouncement)})},
  447. messageSends: []}),
  448. smalltalk.ProtocolAnnouncement);
  449. smalltalk.addMethod(
  450. smalltalk.method({
  451. selector: "theClass",
  452. fn: function (){
  453. var self=this;
  454. return smalltalk.withContext(function($ctx1) {
  455. var $1;
  456. $1=self["@theClass"];
  457. return $1;
  458. }, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.ProtocolAnnouncement)})},
  459. messageSends: []}),
  460. smalltalk.ProtocolAnnouncement);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "theClass:",
  464. fn: function (aClass){
  465. var self=this;
  466. return smalltalk.withContext(function($ctx1) {
  467. self["@theClass"]=aClass;
  468. return self}, function($ctx1) {$ctx1.fill(self,"theClass:",{aClass:aClass},smalltalk.ProtocolAnnouncement)})},
  469. messageSends: []}),
  470. smalltalk.ProtocolAnnouncement);
  471. smalltalk.addClass('ProtocolAdded', smalltalk.ProtocolAnnouncement, [], 'Kernel-Announcements');
  472. smalltalk.addClass('ProtocolRemoved', smalltalk.ProtocolAnnouncement, [], 'Kernel-Announcements');