370 messagesSentToSelf |
376 messagesSentToSelf |
371 ^ #() "/ actually: unknown here in this abstract class |
377 ^ #() "/ actually: unknown here in this abstract class |
372 ! |
378 ! |
373 |
379 |
374 privacy |
380 privacy |
375 "return a symbol describing the methods access rights (privacy); |
381 "return a symbol describing the method's access rights (privacy); |
376 Currently, this is one of #private, #protected, #public or #ignored. |
382 Currently, this is one of #private, #protected, #public or #ignored. |
377 |
383 |
378 Here we unconditionally return #public, to allow alien code objects |
384 Here we unconditionally return #public, to allow alien code objects |
379 to be handled by the browsers." |
385 to be handled by the browsers." |
380 |
386 |
381 ^ #public |
387 ^ #public |
382 |
388 |
383 "Created: 16.4.1996 / 16:35:18 / cg" |
389 "Created: / 16-04-1996 / 16:35:18 / cg" |
|
390 "Modified (comment): / 21-11-2017 / 13:01:32 / cg" |
384 ! |
391 ! |
385 |
392 |
386 referencesGlobal:aGlobalSymbol |
393 referencesGlobal:aGlobalSymbol |
387 "return true, if this method references the global |
394 "return true, if this method references the global |
388 bound to aGlobalSymbol. |
395 bound to aGlobalSymbol. |
442 |
449 |
443 "Created: / 3.11.1997 / 09:09:01 / cg" |
450 "Created: / 3.11.1997 / 09:09:01 / cg" |
444 ! |
451 ! |
445 |
452 |
446 sends:aSelectorSymbol |
453 sends:aSelectorSymbol |
447 "return true, if this code object contains a message-send with aSelectorSymbol as selector. |
454 <resource: #obsolete> |
448 - due to the simple check in the literal array, also simple uses |
455 |
|
456 "return true, if this code object contains a message-send with aSelectorSymbol as selector. |
|
457 - due to the simple check in the literal array, also simple uses |
449 of aSelectorSymbol as symbol will return true. |
458 of aSelectorSymbol as symbol will return true. |
450 Should ask compiler, if there is really a send." |
459 Should ask compiler, if there is really a send." |
451 |
460 |
|
461 self obsoleteFeatureWarning:'please use #sendsSelector:'. |
|
462 ^ self sendsSelector:aSelectorSymbol |
|
463 |
|
464 "Created: / 16-04-1996 / 16:35:53 / cg" |
|
465 "Modified: / 05-02-2017 / 01:21:26 / cg" |
|
466 ! |
|
467 |
|
468 sendsAny:aCollectionOfSelectorSymbols |
|
469 <resource: #obsolete> |
|
470 |
|
471 "return true, if this method contains a message-send |
|
472 to any of aCollectionOfSelectorSymbols." |
|
473 |
|
474 self obsoleteFeatureWarning:'please use #sendsAnySelector:'. |
|
475 ^ self sendsAnySelector:aCollectionOfSelectorSymbols |
|
476 |
|
477 "Created: / 08-08-2011 / 18:53:24 / cg" |
|
478 "Modified: / 05-02-2017 / 01:31:22 / cg" |
|
479 ! |
|
480 |
|
481 sendsAnySelector:aCollectionOfSelectorSymbols |
|
482 "return true, if this method contains a message-send |
|
483 to any of aCollectionOfSelectorSymbols." |
|
484 |
|
485 (aCollectionOfSelectorSymbols contains:[:sym | self referencesLiteral:sym]) ifTrue:[ |
|
486 ^ true. |
|
487 ]. |
|
488 ^ false |
|
489 |
|
490 "Created: / 05-02-2017 / 01:27:11 / cg" |
|
491 ! |
|
492 |
|
493 sendsSelector:aSelectorSymbol |
|
494 "return true, if this code object contains a message-send with aSelectorSymbol as selector. |
|
495 - due to the simple check in the literal array, also simple uses |
|
496 of aSelectorSymbol as symbol will return true. |
|
497 Should ask compiler, if there is really a send." |
|
498 |
452 ^ self referencesLiteral:aSelectorSymbol |
499 ^ self referencesLiteral:aSelectorSymbol |
453 |
500 |
454 "Created: 16.4.1996 / 16:35:53 / cg" |
501 "Created: / 05-02-2017 / 01:19:03 / cg" |
455 ! |
502 ! |
456 |
503 |
457 usedGlobals |
504 usedGlobals |
458 "return a collection with the global names referred to by the receiver. |
505 "return a collection with the global names referred to by the receiver. |
459 Uses Parser to parse methods source and extract them." |
506 Uses Parser to parse methods source and extract them." |