Skip to content

Fixing bad use of asPoint. I do not want to pay twice for the same se… - #405

Open
Ducasse wants to merge 1 commit into
pharo-graphics:Pharo14from
Ducasse:Pharo14
Open

Ducasse wants to merge 1 commit into
pharo-graphics:Pharo14from
Ducasse:Pharo14

Conversation

@Ducasse

@Ducasse Ducasse commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

…rvice.

| rewriter methods roassalPackages |

roassalPackages := PackageOrganizer default packages select: [ :e | e name beginsWith: 'Toplo-'].

methods := roassalPackages flatCollect: [:p | p methods].

rewriter := OCParseTreeRewriter new.
rewriter
    replace: '`#value `{ :node | node value isInteger } asPoint'
    with: '`#value @ `#value'.
methods do: [ :mth | 
	| tree |
	tree := mth parseTree.
(rewriter
    executeTree: tree)
ifTrue: [
        mth methodClass compile: tree formattedCode]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant