The Trunk: Kernel-eem.1215.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-eem.1215.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1215.mcz

==================== Summary ====================

Name: Kernel-eem.1215
Author: eem
Time: 16 March 2019, 12:38:28.555296 pm
UUID: 9fa7a504-70d6-45ae-9514-d905578da5af
Ancestors: Kernel-eem.1214

Add CompiledMethod>>pragmasAt: for convenient access to multiple pragmas of the same pragma selector.

=============== Diff against Kernel-eem.1214 ===============

Item was added:
+ ----- Method: CompiledBlock>>pragmasAt: (in category 'accessing-pragmas & properties') -----
+ pragmasAt: aSelector
+ "Answer all pragmas with selector aSelector."
+ ^self homeMethod pragmasAt: aSelector!

Item was added:
+ ----- Method: CompiledMethod>>pragmasAt: (in category 'accessing-pragmas & properties') -----
+ pragmasAt: aSelector
+ | selectorOrProperties |
+ ^(selectorOrProperties := self penultimateLiteral) isMethodProperties
+ ifTrue: [selectorOrProperties pragmas select: [:p| p keyword = aSelector]]
+ ifFalse: [#()]!