author | Claus Gittinger <cg@exept.de> |
Thu, 21 Dec 2017 09:03:53 +0100 | |
changeset 17859 | ace8a3af80b0 |
parent 17634 | 3e58f7cc4db5 |
permissions | -rw-r--r-- |
17859 | 1 |
"{ Encoding: utf8 }" |
2 |
||
13829 | 3 |
" |
4 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
10485 | 14 |
"{ Package: 'stx:libtool' }" |
15 |
||
16 |
"{ NameSpace: Tools }" |
|
17 |
||
18 |
Object subclass:#LintHighlighter |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
19 |
instanceVariableNames:'rules rulesToIntervalsMap sequenceNumber formattingMethod |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
20 |
emphasisError emphasisInformation emphasisWarning' |
10485 | 21 |
classVariableNames:'' |
22 |
poolDictionaries:'' |
|
23 |
category:'Interface-Lint' |
|
24 |
! |
|
25 |
||
13829 | 26 |
!LintHighlighter class methodsFor:'documentation'! |
27 |
||
28 |
copyright |
|
29 |
" |
|
30 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
31 |
All Rights Reserved |
|
32 |
||
33 |
This software is furnished under a license and may be used |
|
34 |
only in accordance with the terms of that license and with the |
|
35 |
inclusion of the above copyright notice. This software may not |
|
36 |
be provided or otherwise made available to, or used by, any |
|
37 |
other person. No title to or ownership of the software is |
|
38 |
hereby transferred. |
|
39 |
" |
|
40 |
! ! |
|
10485 | 41 |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
42 |
!LintHighlighter class methodsFor:'instance creation'! |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
43 |
|
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
44 |
new |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
45 |
"return an initialized instance" |
10485 | 46 |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
47 |
^ self basicNew initialize. |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
48 |
! ! |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
49 |
|
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
50 |
!LintHighlighter methodsFor:'accessing'! |
13829 | 51 |
|
10485 | 52 |
rules |
53 |
^ rules |
|
54 |
! |
|
55 |
||
11380 | 56 |
rules:aCollectionOfRules |
57 |
rules := aCollectionOfRules. |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
58 |
rulesToIntervalsMap := nil. |
11380 | 59 |
|
60 |
"Modified (format): / 07-03-2012 / 17:24:02 / cg" |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
61 |
"Modified: / 15-12-2014 / 20:25:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
62 |
! |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
63 |
|
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
64 |
rulesToIntervalsMap |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
65 |
^ rulesToIntervalsMap |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
66 |
|
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
67 |
"Created: / 15-12-2014 / 15:20:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
68 |
! |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
69 |
|
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
70 |
sequenceNumber |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
71 |
^ sequenceNumber |
10485 | 72 |
! ! |
73 |
||
74 |
!LintHighlighter methodsFor:'accessing-emphasis'! |
|
75 |
||
76 |
emphasisForError |
|
11394 | 77 |
|warnColor| |
10485 | 78 |
|
79 |
emphasisError isNil ifTrue:[ |
|
11394 | 80 |
warnColor := Color red. |
15038 | 81 |
emphasisError := Array |
82 |
"/with: #backgroundColor -> warnColor lightened lightened |
|
83 |
with: #underwave |
|
84 |
with: #underlineColor -> warnColor |
|
10485 | 85 |
]. |
86 |
^emphasisError |
|
87 |
||
88 |
"Created: / 05-08-2011 / 09:31:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11394 | 89 |
"Modified: / 08-03-2012 / 03:00:51 / cg" |
13829 | 90 |
"Modified: / 20-04-2012 / 18:29:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 91 |
! |
92 |
||
93 |
emphasisForInformation |
|
11394 | 94 |
|warnColor| |
10485 | 95 |
|
96 |
emphasisInformation isNil ifTrue:[ |
|
11394 | 97 |
warnColor := Color blue lighter. |
15038 | 98 |
emphasisInformation := Array |
13829 | 99 |
"/with: #backgroundColor -> warnColor lightened lightened |
15038 | 100 |
with: #underwave |
101 |
with: #underlineColor -> warnColor |
|
10485 | 102 |
]. |
103 |
^emphasisInformation |
|
104 |
||
105 |
"Created: / 05-08-2011 / 09:31:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11394 | 106 |
"Modified: / 08-03-2012 / 03:01:22 / cg" |
13829 | 107 |
"Modified: / 20-04-2012 / 18:29:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 108 |
! |
109 |
||
110 |
emphasisForSeverity: severity |
|
111 |
||
112 |
severity == #error ifTrue:[^self emphasisForError]. |
|
113 |
severity == #information ifTrue:[^self emphasisForInformation]. |
|
114 |
||
115 |
^self emphasisForWarning |
|
116 |
||
117 |
"Created: / 05-08-2011 / 09:31:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
118 |
! |
|
119 |
||
120 |
emphasisForWarning |
|
11394 | 121 |
|warnColor| |
10485 | 122 |
|
123 |
emphasisWarning isNil ifTrue:[ |
|
15696
0f6aaa582319
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
15125
diff
changeset
|
124 |
warnColor := Color yellow slightlyDarkened. "/ (Color redByte: 224 greenByte: 200 blueByte: 45). |
15038 | 125 |
emphasisWarning := Array |
13829 | 126 |
"/with: #backgroundColor -> warnColor lightened lightened |
15038 | 127 |
with: #underwave |
128 |
with: #underlineColor -> warnColor |
|
10485 | 129 |
]. |
130 |
^emphasisWarning |
|
131 |
||
132 |
"Created: / 05-08-2011 / 09:31:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
11394 | 133 |
"Modified: / 08-03-2012 / 03:00:19 / cg" |
13829 | 134 |
"Modified: / 20-04-2012 / 18:29:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 135 |
! ! |
136 |
||
137 |
!LintHighlighter methodsFor:'formatting'! |
|
138 |
||
139 |
formatClassDefinition:source in:class |
|
140 |
||
141 |
formattingMethod := false. |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
142 |
^ self format: source in: class |
10485 | 143 |
|
144 |
"Created: / 04-08-2011 / 23:44:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
145 |
"Modified: / 02-12-2014 / 11:29:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 146 |
! |
147 |
||
148 |
formatClassDefinition:source in:class elementsInto: elements |
|
149 |
||
150 |
formattingMethod := false. |
|
15823
682d7a61504c
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
15811
diff
changeset
|
151 |
^ self format: source asString asText in: class |
10485 | 152 |
|
153 |
"Created: / 04-08-2011 / 23:44:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
154 |
"Modified: / 02-12-2014 / 11:29:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 155 |
! |
156 |
||
157 |
formatExpression:source in:class |
|
158 |
||
159 |
formattingMethod := false. |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
160 |
^ self format: source in: class |
10485 | 161 |
|
162 |
"Created: / 04-08-2011 / 23:45:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
163 |
"Modified: / 02-12-2014 / 11:29:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 164 |
! |
165 |
||
166 |
formatExpression:source in:class elementsInto: elements |
|
167 |
||
168 |
formattingMethod := false. |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
169 |
^ self format: source in: class |
10485 | 170 |
|
171 |
"Created: / 04-08-2011 / 23:43:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
172 |
"Modified: / 02-12-2014 / 11:29:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 173 |
! |
174 |
||
17859 | 175 |
formatFileContents:aString elementsInto:elementsCollection |
176 |
"format (recolor) a file's contents. |
|
177 |
Return the text containing font changes and color information. |
|
178 |
Here, nothing is done ,just for protocol completeness" |
|
179 |
||
180 |
^ aString |
|
181 |
! |
|
182 |
||
10485 | 183 |
formatMethod:mth source:source in:class using: preferences |
184 |
||
185 |
formattingMethod := true. |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
186 |
^ self format: source in: class |
10485 | 187 |
|
188 |
"Created: / 04-08-2011 / 23:45:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
189 |
"Modified: / 02-12-2014 / 11:29:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 190 |
! |
191 |
||
16606 | 192 |
formatMethod:mth source:sourceString in:class using: preferences elementsInto: elements |
10485 | 193 |
|
194 |
formattingMethod := true. |
|
16606 | 195 |
^ self format: sourceString in: class |
10485 | 196 |
|
197 |
"Created: / 04-08-2011 / 23:42:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
198 |
"Modified: / 02-12-2014 / 11:30:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 199 |
! ! |
200 |
||
201 |
!LintHighlighter methodsFor:'formatting-private'! |
|
202 |
||
16606 | 203 |
format: sourceString in: class |
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
204 |
| tree t | |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
205 |
|
17050 | 206 |
tree := RBParser |
207 |
parseMethod: sourceString string |
|
208 |
onError:[:error :pos| ^ sourceString ]. |
|
16606 | 209 |
t := sourceString asText. |
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
210 |
self format: t tree: tree in: class. |
14096
3d2f347c2cbc
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
14068
diff
changeset
|
211 |
^t |
10485 | 212 |
|
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
213 |
"Created: / 02-12-2014 / 11:27:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
214 |
"Modified: / 15-12-2014 / 18:42:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 215 |
! |
216 |
||
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
217 |
format: text tree: tree in: class |
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
218 |
rulesToIntervalsMap := Dictionary new. |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
219 |
sequenceNumber := sequenceNumber + 1. |
17634 | 220 |
rules ? #() do:[:eachRule| |
221 |
eachRule notEmpty ifTrue:[ |
|
222 |
self format: text tree: tree in: class rule: eachRule |
|
17050 | 223 |
]. |
13829 | 224 |
]. |
225 |
^text |
|
226 |
||
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
227 |
"Created: / 02-12-2014 / 11:28:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
228 |
"Modified: / 15-12-2014 / 18:43:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17634 | 229 |
"Modified: / 25-08-2017 / 09:10:09 / cg" |
13829 | 230 |
! |
231 |
||
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
232 |
format: text tree: tree in: class rule: rule |
17091 | 233 |
| string | |
13829 | 234 |
|
235 |
string := text string. |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
236 |
"rule result isParseTreeEnvironment"true ifTrue:[ |
13829 | 237 |
formattingMethod ifTrue:[ |
17091 | 238 |
rule |
239 |
resultSelectionIntervalsForSource: string tree: tree in: class |
|
240 |
do: [:interval| |
|
241 |
interval notEmptyOrNil ifTrue:[ |
|
17301 | 242 |
((interval first == 1 and:[interval last == text size]) or:[interval last > text size]) ifTrue:[ |
17091 | 243 |
self debuggingCodeFor:#jv is:[ |
244 |
Transcript showCR:'>> no meaningful selection interval for ' , rule printString. |
|
245 |
]. |
|
246 |
] ifFalse:[ |
|
247 |
self mark: text from: interval first to: interval last for: rule. |
|
248 |
] |
|
13829 | 249 |
] |
17091 | 250 |
]. |
13829 | 251 |
]. |
252 |
] ifFalse: [ |
|
253 |
| searches | |
|
254 |
||
255 |
searches := rule result searchStrings asSet. |
|
256 |
||
257 |
searches do:[:search| |
|
258 |
| i | |
|
259 |
i := 1. |
|
15038 | 260 |
[ |
13829 | 261 |
i := string findString: search startingAt: i. |
262 |
i ~~ 0 |
|
263 |
] whileTrue:[ |
|
264 |
self mark: text from: i to: (i + search size - 1) for: rule. |
|
265 |
i := i + search size + 1. |
|
266 |
] |
|
15038 | 267 |
|
13829 | 268 |
|
269 |
] |
|
270 |
] |
|
271 |
||
14965
02bfa1f4aa9a
When highlighing rules, pass a class to selectionIntervals so the highlighter/searcher
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14096
diff
changeset
|
272 |
"Created: / 02-12-2014 / 11:28:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
273 |
"Modified (format): / 15-12-2014 / 18:58:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17091 | 274 |
"Modified (format): / 19-11-2016 / 13:35:25 / cg" |
17301 | 275 |
"Modified: / 30-01-2017 / 14:51:18 / stefan" |
13829 | 276 |
! ! |
277 |
||
278 |
!LintHighlighter methodsFor:'initialization'! |
|
279 |
||
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
280 |
initialize |
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
281 |
sequenceNumber := 0. |
13829 | 282 |
! ! |
283 |
||
284 |
!LintHighlighter methodsFor:'markup'! |
|
285 |
||
286 |
mark: text from: start to: end for: rule |
|
15811
e6f8c138b759
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
15696
diff
changeset
|
287 |
"this underwaves the rule's complaint" |
e6f8c138b759
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
15696
diff
changeset
|
288 |
|
13829 | 289 |
| emphasis | |
290 |
||
291 |
emphasis := self emphasisForSeverity: rule severity. |
|
15038 | 292 |
text emphasisFrom: start to: end add: emphasis. |
293 |
(rulesToIntervalsMap at: rule ifAbsentPut: [ Set new ]) |
|
294 |
add: (start to: end) |
|
13829 | 295 |
|
296 |
"Created: / 30-01-2012 / 15:30:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
15031
fd2c24c7f230
LintHighlighter/.LintService refactored to show multiple rules at line...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14965
diff
changeset
|
297 |
"Modified: / 15-12-2014 / 15:52:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10485 | 298 |
! ! |
299 |
||
300 |
!LintHighlighter class methodsFor:'documentation'! |
|
301 |
||
302 |
version |
|
15696
0f6aaa582319
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
15125
diff
changeset
|
303 |
^ '$Header$' |
10485 | 304 |
! |
305 |
||
306 |
version_CVS |
|
15696
0f6aaa582319
class: Tools::LintHighlighter
Claus Gittinger <cg@exept.de>
parents:
15125
diff
changeset
|
307 |
^ '$Header$' |
10485 | 308 |
! ! |
13829 | 309 |