#REFACTORING by cg
class: Tools::LintHighlighter
comment/format in:
#format:in:
#formatMethod:source:in:using:elementsInto:
--- a/Tools__LintHighlighter.st Mon May 16 09:51:24 2016 +0200
+++ b/Tools__LintHighlighter.st Mon May 16 09:52:31 2016 +0200
@@ -179,10 +179,10 @@
"Modified: / 02-12-2014 / 11:29:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
-formatMethod:mth source:source in:class using: preferences elementsInto: elements
+formatMethod:mth source:sourceString in:class using: preferences elementsInto: elements
formattingMethod := true.
- ^ self format: source in: class
+ ^ self format: sourceString in: class
"Created: / 04-08-2011 / 23:42:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
"Modified: / 02-12-2014 / 11:30:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
@@ -190,12 +190,12 @@
!LintHighlighter methodsFor:'formatting-private'!
-format: text in: class
+format: sourceString in: class
| tree t |
- tree := RBParser parseMethod: text string onError:[:error :pos| ^ text ].
- t := text asText.
+ tree := RBParser parseMethod: sourceString string onError:[:error :pos| ^ sourceString ].
+ t := sourceString asText.
self format: t tree: tree in: class.
^t