Manuscript (Case [Issue]22685) Reflectivity - add #value reification support for Literal node

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

Manuscript (Case [Issue]22685) Reflectivity - add #value reification support for Literal node

Pharo Issue Tracker
Manuscript Notification
avatar
Marcus Denker opened Case 22685: add #value reification support for Literal node and assigned it to Marcus Denker:
Bug in Project:  Reflectivity: 1. Pharo Image  •  You are subscribed to this case
testLiteralValueAfter
    | literalNode |
    literalNode := (ReflectivityExamples >> #exampleLiteral) ast statements first value.
    self assert: literalNode isLiteralNode.
    link := MetaLink new
        metaObject: [:value | self assert: value equals: 2];
        selector: #value:;
        arguments: #(value);
        control: #after.
    literalNode link: link.
    self assert: literalNode hasMetalinkAfter.
    self assert: ReflectivityExamples new exampleLiteral == 2.
    
    
    
testLiteralValueBefore
    | literalNode |
    literalNode := (ReflectivityExamples >> #exampleLiteral) ast statements first value.
    self assert: literalNode isLiteralNode.
    link := MetaLink new
        metaObject: [:value | self assert: value equals: 2];
        selector: #value:;
        arguments: #(value);
        control: #before.
    literalNode link: link.
    self assert: literalNode hasMetalinkBefore.
    self assert: ReflectivityExamples new exampleLiteral == 2.    
    
RFValueReification:
    
genForLiteralVariable
    ^RFLiteralVariableNode value: entity value
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Marcus Denker Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker