Skip to content

Instantly share code, notes, and snippets.

@ThierryGoubier
Created September 12, 2015 16:57
Show Gist options
  • Save ThierryGoubier/8e1a9687240cc27f25bf to your computer and use it in GitHub Desktop.
Save ThierryGoubier/8e1a9687240cc27f25bf to your computer and use it in GitHub Desktop.
Refactor: add aMessage to all Character literals
| 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
@ThierryGoubier
Copy link
Author

Invisible back quotes in the previous comment. Github, why are you hiding them?

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