2
0

Kernel-Announcements.deploy.js 17 KB

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