Created
September 12, 2015 16:57
-
-
Save ThierryGoubier/8e1a9687240cc27f25bf to your computer and use it in GitHub Desktop.
Refactor: add aMessage to all Character literals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rewriter | | |
rewriter := RBParseTreeRewriter new | |
replace: ' `#aLiteral `{:node | node value isCharacter}' | |
with: '`#aLiteral aMessage'; yourself. | |
rewriter executeTree: (RBParser parseExpression: 'Array with: $a asciiValue with: $b with: #c with: d'). | |
rewriter tree formattedCode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Invisible back quotes in the previous comment. Github, why are you hiding them?