1
0

Kernel-Announcements.deploy.js 17 KB

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