435
|
1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
PJStatementNode subclass:#PJReturnStatementNode
|
|
6 |
instanceVariableNames:'expression'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'PetitJava-AST'
|
|
10 |
!
|
|
11 |
|
|
12 |
PJReturnStatementNode comment:'Return statement node.
Ex:
return 5;
return 5+a.foo();
return a;'
|
|
13 |
!
|
|
14 |
|
|
15 |
!PJReturnStatementNode methodsFor:'accessing'!
|
|
16 |
|
|
17 |
expression
|
|
18 |
^ expression
|
|
19 |
!
|
|
20 |
|
|
21 |
expression: anExpression
|
|
22 |
expression := anExpression
|
|
23 |
! !
|
|
24 |
|
|
25 |
!PJReturnStatementNode methodsFor:'visiting'!
|
|
26 |
|
|
27 |
acceptVisitor: aVisitor
|
|
28 |
|
|
29 |
^ aVisitor visitReturnStatementNode: self
|
|
30 |
! !
|
|
31 |
|