author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 16 Apr 2013 09:22:02 +0200 | |
changeset 3122 | 986f567aafd8 |
parent 3044 | ea354a9e548c |
child 3273 | e637f0ae001c |
permissions | -rw-r--r-- |
0 | 1 |
" |
4 | 2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
52 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
1080 | 12 |
"{ Package: 'stx:libcomp' }" |
13 |
||
0 | 14 |
ParseNode subclass:#StatementNode |
2503 | 15 |
instanceVariableNames:'expression nextStatement lineNr' |
261 | 16 |
classVariableNames:'' |
17 |
poolDictionaries:'' |
|
18 |
category:'System-Compiler-Support' |
|
0 | 19 |
! |
20 |
||
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
21 |
!StatementNode class methodsFor:'documentation'! |
20 | 22 |
|
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
52 | 26 |
All Rights Reserved |
20 | 27 |
|
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
node for parse-trees, representing statements |
|
261 | 40 |
This is a helper class for the compiler. |
263 | 41 |
|
42 |
[author:] |
|
43 |
Claus Gittinger |
|
20 | 44 |
" |
45 |
! ! |
|
0 | 46 |
|
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
47 |
!StatementNode class methodsFor:'instance creation'! |
0 | 48 |
|
49 |
expression:e |
|
50 |
^ (self basicNew) expression:e |
|
51 |
! ! |
|
52 |
||
2695
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
53 |
|
140 | 54 |
!StatementNode methodsFor:'accessing'! |
0 | 55 |
|
140 | 56 |
expression |
57 |
^ expression |
|
0 | 58 |
! |
59 |
||
2598 | 60 |
expression:something |
61 |
||
62 |
expression notNil ifTrue:[expression parent: nil]. |
|
63 |
expression := something. |
|
2667 | 64 |
expression notNil ifTrue:[ |
65 |
expression parent: self. |
|
66 |
startPosition := expression startPosition. |
|
67 |
endPosition := expression endPosition. |
|
68 |
]. |
|
2613
4e1f7de0d215
More fixes to keep node position in the source. Not yet fully implemented
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2598
diff
changeset
|
69 |
|
4e1f7de0d215
More fixes to keep node position in the source. Not yet fully implemented
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2598
diff
changeset
|
70 |
"Modified: / 27-07-2011 / 13:51:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2667 | 71 |
"Modified: / 20-08-2011 / 20:00:56 / cg" |
0 | 72 |
! |
73 |
||
2503 | 74 |
isStatement |
75 |
^true. |
|
76 |
||
77 |
"Created: / 22-02-2011 / 15:04:36 / Jakub <zelenja7@fel.cvut.cz>" |
|
78 |
! |
|
79 |
||
0 | 80 |
last |
81 |
"return the last statement in a list" |
|
82 |
||
83 |
|last this| |
|
84 |
||
85 |
"this could be done more elegant - but with lots of recursion" |
|
86 |
last := self. |
|
87 |
this := self. |
|
88 |
[this notNil] whileTrue:[ |
|
52 | 89 |
last := this. |
90 |
this := this nextStatement |
|
0 | 91 |
]. |
92 |
^ last |
|
93 |
! |
|
94 |
||
711 | 95 |
lineNumber |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
96 |
"return lineNr" |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
97 |
|
1504 | 98 |
lineNr notNil ifTrue:[^ lineNr]. |
99 |
expression notNil ifTrue:[ ^ expression lineNumber ]. |
|
100 |
nextStatement notNil ifTrue:[^ nextStatement lineNumber]. |
|
101 |
^ nil |
|
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
102 |
|
711 | 103 |
"Created: / 14.5.1998 / 19:31:06 / cg" |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
104 |
! |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
105 |
|
711 | 106 |
lineNumber:something |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
107 |
"set lineNr" |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
108 |
|
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
109 |
lineNr := something. |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
110 |
|
711 | 111 |
"Created: / 14.5.1998 / 19:31:11 / cg" |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
112 |
! |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
113 |
|
1504 | 114 |
lineNumberOfFirstMessage |
115 |
|lno| |
|
116 |
||
117 |
lno := self lineNumber. |
|
118 |
self messagesDo:[:m | lno := lno min:(m lineNumber)]. |
|
119 |
^ lno |
|
120 |
! |
|
121 |
||
0 | 122 |
nextStatement |
123 |
^ nextStatement |
|
124 |
! |
|
125 |
||
140 | 126 |
nextStatement:s |
2598 | 127 |
|
128 |
nextStatement notNil ifTrue:[nextStatement parent: nil]. |
|
129 |
nextStatement := s. |
|
130 |
nextStatement notNil ifTrue:[nextStatement parent: parent]. |
|
131 |
||
132 |
"Modified: / 20-07-2011 / 21:42:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
133 |
! |
|
134 |
||
135 |
parent: aParseNode |
|
136 |
||
137 |
super parent: aParseNode. |
|
138 |
nextStatement notNil ifTrue:[nextStatement parent: aParseNode]. |
|
139 |
||
140 |
"Created: / 20-07-2011 / 19:52:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
140 | 141 |
! ! |
142 |
||
143 |
!StatementNode methodsFor:'code generation'! |
|
144 |
||
1379 | 145 |
codeAllForSideEffectOn:aStream inBlock:b for:aCompiler |
146 |
|thisStatement| |
|
147 |
||
148 |
thisStatement := self. |
|
149 |
[thisStatement notNil] whileTrue:[ |
|
150 |
thisStatement codeForSideEffectOn:aStream inBlock:b for:aCompiler. |
|
151 |
thisStatement := thisStatement nextStatement |
|
152 |
]. |
|
153 |
! |
|
154 |
||
140 | 155 |
codeForSideEffectOn:aStream inBlock:b for:aCompiler |
156 |
"generate code for this statement - value not needed" |
|
157 |
||
985 | 158 |
expression notNil ifTrue:[ |
159 |
expression codeForSideEffectOn:aStream inBlock:b for:aCompiler |
|
160 |
] |
|
0 | 161 |
! |
162 |
||
140 | 163 |
codeOn:aStream inBlock:b for:aCompiler |
164 |
"generate code for this statement" |
|
165 |
||
1313 | 166 |
expression notNil ifTrue:[ |
167 |
expression codeOn:aStream inBlock:b for:aCompiler |
|
168 |
] |
|
0 | 169 |
! ! |
170 |
||
1209 | 171 |
!StatementNode methodsFor:'converting'! |
172 |
||
173 |
asCollectionOfStatements |
|
174 |
"returns a orderedCollection of statements, |
|
175 |
representing the list of which the receiver is the head" |
|
176 |
||
177 |
|coll stat| |
|
178 |
||
179 |
coll := OrderedCollection new. |
|
180 |
stat := self. |
|
181 |
[stat notNil] whileTrue:[ |
|
2695
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
182 |
stat expression isNil ifTrue:[ |
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
183 |
] ifFalse:[ |
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
184 |
coll add:stat. |
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
185 |
]. |
1209 | 186 |
stat := stat nextStatement. |
187 |
]. |
|
188 |
^ coll |
|
2695
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
189 |
|
28c485e5738e
changed: #asCollectionOfStatements
Claus Gittinger <cg@exept.de>
parents:
2667
diff
changeset
|
190 |
"Modified: / 12-09-2011 / 10:02:47 / cg" |
1209 | 191 |
! ! |
192 |
||
1035 | 193 |
!StatementNode methodsFor:'enumerating'! |
539
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
194 |
|
3044 | 195 |
do:aBlock |
196 |
"in st/x, statements is a linked list (not an ordered collection), |
|
197 |
this provides some dialect compatibility (for st2js)" |
|
198 |
||
199 |
| this | |
|
200 |
||
201 |
"/ too stupid: ST/X statements are linked as a list ... |
|
202 |
||
203 |
this := self. |
|
204 |
[this notNil] whileTrue:[ |
|
205 |
aBlock value:this. |
|
206 |
this := this nextStatement |
|
207 |
]. |
|
208 |
! |
|
209 |
||
1504 | 210 |
messagesDo:aBlock |
211 |
|s e| |
|
212 |
||
213 |
s := self. |
|
214 |
[s notNil] whileTrue:[ |
|
215 |
e := s expression. |
|
216 |
e notNil ifTrue:[e messagesDo:aBlock]. |
|
217 |
s := s nextStatement |
|
218 |
]. |
|
219 |
! |
|
220 |
||
539
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
221 |
nodeDo:anEnumerator |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
222 |
"helper for parse tree walking" |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
223 |
|
1585 | 224 |
|stats this expr| |
539
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
225 |
|
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
226 |
"/ too stupid: ST/X statements are linked as a list ... |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
227 |
|
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
228 |
stats := OrderedCollection new. |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
229 |
this := self. |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
230 |
[this notNil] whileTrue:[ |
1592 | 231 |
this isReturnNode ifTrue:[ |
232 |
stats add:this |
|
233 |
] ifFalse:[ |
|
234 |
expr := this expression. |
|
235 |
stats add:(expr ? this). |
|
236 |
]. |
|
539
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
237 |
this := this nextStatement |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
238 |
]. |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
239 |
^ anEnumerator doSequence:self temporaries:#() statements:stats |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
240 |
|
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
241 |
"Created: 19.6.1997 / 16:45:34 / cg" |
542 | 242 |
"Modified: 19.6.1997 / 17:06:47 / cg" |
539
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
243 |
! ! |
69a1cd05c7d6
added node-walk facility (ST80 compatibility)
Claus Gittinger <cg@exept.de>
parents:
511
diff
changeset
|
244 |
|
1035 | 245 |
!StatementNode methodsFor:'evaluation'! |
140 | 246 |
|
1384 | 247 |
evaluateAllIn:anEnvironment |
140 | 248 |
|lastValue thisStatement| |
52 | 249 |
|
140 | 250 |
"this could be done more elegant - but with lots of recursion" |
251 |
thisStatement := self. |
|
252 |
[thisStatement notNil] whileTrue:[ |
|
1384 | 253 |
lastValue := thisStatement evaluateExpressionIn:anEnvironment. |
254 |
thisStatement := thisStatement nextStatement |
|
140 | 255 |
]. |
256 |
^ lastValue |
|
257 |
! |
|
258 |
||
1384 | 259 |
evaluateExpressionIn:anEnvironment |
260 |
^ expression evaluateIn:anEnvironment |
|
261 |
! |
|
262 |
||
263 |
evaluateIn:anEnvironment |
|
264 |
^ self evaluateAllIn:anEnvironment. |
|
52 | 265 |
! ! |
266 |
||
1080 | 267 |
!StatementNode methodsFor:'printing & storing'! |
0 | 268 |
|
269 |
printAllOn:aStream |
|
270 |
self printAllOn:aStream indent:4 |
|
271 |
! |
|
272 |
||
273 |
printAllOn:aStream indent:i |
|
274 |
|thisStatement| |
|
275 |
||
276 |
thisStatement := self. |
|
277 |
[thisStatement notNil] whileTrue:[ |
|
1379 | 278 |
aStream spaces:i. |
279 |
thisStatement printOn:aStream indent:i. |
|
280 |
thisStatement nextStatement notNil ifTrue:[ |
|
1633 | 281 |
aStream nextPut:$.. |
1379 | 282 |
aStream cr. |
283 |
]. |
|
284 |
thisStatement := thisStatement nextStatement |
|
0 | 285 |
] |
140 | 286 |
! |
287 |
||
288 |
printOn:aStream indent:i |
|
2168
be3e52955e96
care for nil expression when printing
Claus Gittinger <cg@exept.de>
parents:
2103
diff
changeset
|
289 |
expression notNil ifTrue:[ expression printOn:aStream indent:i ]. |
0 | 290 |
! ! |
140 | 291 |
|
292 |
!StatementNode methodsFor:'queries'! |
|
293 |
||
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
294 |
collectBlocksInto:aCollection |
511
c144804051db
handle corrupt expression (nil) in statement
Claus Gittinger <cg@exept.de>
parents:
392
diff
changeset
|
295 |
|this ex| |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
296 |
|
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
297 |
this := self. |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
298 |
[this notNil] whileTrue:[ |
511
c144804051db
handle corrupt expression (nil) in statement
Claus Gittinger <cg@exept.de>
parents:
392
diff
changeset
|
299 |
ex := this expression. |
c144804051db
handle corrupt expression (nil) in statement
Claus Gittinger <cg@exept.de>
parents:
392
diff
changeset
|
300 |
ex notNil ifTrue:[ |
c144804051db
handle corrupt expression (nil) in statement
Claus Gittinger <cg@exept.de>
parents:
392
diff
changeset
|
301 |
ex collectBlocksInto:aCollection. |
c144804051db
handle corrupt expression (nil) in statement
Claus Gittinger <cg@exept.de>
parents:
392
diff
changeset
|
302 |
]. |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
303 |
this := this nextStatement |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
304 |
]. |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
305 |
|
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
306 |
"Created: 23.10.1996 / 15:44:13 / cg" |
511
c144804051db
handle corrupt expression (nil) in statement
Claus Gittinger <cg@exept.de>
parents:
392
diff
changeset
|
307 |
"Modified: 20.4.1997 / 12:10:18 / cg" |
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
308 |
! |
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
309 |
|
2385 | 310 |
containsReturn |
311 |
^ self expression containsReturn |
|
312 |
! |
|
313 |
||
314 |
containsReturnInAnyStatement |
|
315 |
|s| |
|
316 |
||
317 |
s := self. |
|
318 |
[s notNil] whileTrue:[ |
|
2387 | 319 |
s isReturnNode ifTrue:[^ true]. |
2385 | 320 |
s containsReturn ifTrue:[^ true]. |
321 |
s := s nextStatement. |
|
322 |
]. |
|
323 |
^ false |
|
324 |
! |
|
325 |
||
2065 | 326 |
isSimpleConstant |
140 | 327 |
nextStatement notNil ifTrue:[^ false]. |
328 |
^ expression isConstant |
|
332
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
329 |
! |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
330 |
|
2103 | 331 |
isSimpleExpression |
332 |
nextStatement notNil ifTrue:[^ false]. |
|
333 |
^ expression notNil |
|
334 |
! |
|
335 |
||
2065 | 336 |
isSimpleVariable |
337 |
nextStatement notNil ifTrue:[^ false]. |
|
338 |
^ expression isVariable |
|
339 |
! |
|
340 |
||
332
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
341 |
listEndsWithReturn |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
342 |
|thisStatement lastStatement| |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
343 |
|
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
344 |
thisStatement := self. |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
345 |
[thisStatement notNil] whileTrue:[ |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
346 |
lastStatement := thisStatement. |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
347 |
thisStatement := thisStatement nextStatement |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
348 |
]. |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
349 |
|
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
350 |
^ lastStatement isReturnNode |
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
351 |
|
7ffd2016cf73
added query if statementList ends in a return
Claus Gittinger <cg@exept.de>
parents:
263
diff
changeset
|
352 |
"Created: 19.8.1996 / 14:32:47 / cg" |
140 | 353 |
! ! |
354 |
||
2503 | 355 |
!StatementNode methodsFor:'testing'! |
356 |
||
357 |
isStatementNode |
|
358 |
||
359 |
^ true |
|
360 |
||
361 |
"Created: / 13-06-2011 / 11:26:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
362 |
"Modified: / 13-06-2011 / 14:05:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
363 |
! ! |
|
364 |
||
2598 | 365 |
!StatementNode methodsFor:'visiting'! |
366 |
||
367 |
acceptVisitor:aVisitor |
|
368 |
"Double dispatch back to the visitor, passing my type encoded in |
|
369 |
the selector (visitor pattern)" |
|
370 |
||
371 |
"stub code automatically generated - please change if required" |
|
372 |
||
373 |
^ aVisitor visitStatementNode:self |
|
374 |
! ! |
|
375 |
||
392
cce48e2f0778
moved lineNr instVar up to here
Claus Gittinger <cg@exept.de>
parents:
332
diff
changeset
|
376 |
!StatementNode class methodsFor:'documentation'! |
148 | 377 |
|
2503 | 378 |
version_CVS |
3044 | 379 |
^ '$Header: /cvs/stx/stx/libcomp/StatementNode.st,v 1.44 2013-03-15 20:44:27 cg Exp $' |
2385 | 380 |
! |
381 |
||
2503 | 382 |
version_SVN |
2598 | 383 |
^ '§ Id §' |
148 | 384 |
! ! |
3044 | 385 |