Use #deepCopy instead of #copy when copying RB parse tree
...because #copy make a copy if child nodes but does not set their parents properly.
Therefore node replacing does not work because it replaces it in wrong tree (original,
not the copy).
"{ Package: 'stx:goodies/petitparser/parsers/java' }"
"{ NameSpace: Smalltalk }"
PJStatementNode subclass:#PJLocalVariableDeclarationStatementNode
instanceVariableNames:'modifiers type declarators'
classVariableNames:''
poolDictionaries:''
category:'PetitJava-AST'
!
PJLocalVariableDeclarationStatementNode comment:'Node representing a local variable declaration statement.
Eg:
int a;
int a = 5;
int a, b;
int a = 5, b;'
!
!PJLocalVariableDeclarationStatementNode methodsFor:'accessing'!
acceptVisitor: aVisitor
^ aVisitor visitLocalVariableDeclarationStatementNode: self
!
declarators
^ declarators
!
declarators: anObject
declarators := anObject
!
modifiers
^ modifiers
!
modifiers: anObject
modifiers := anObject
!
type
^ type
!
type: anObject
type := anObject
! !