parsers/java/PJWhileStatementNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 15 Jun 2015 18:00:44 +0100
changeset 487 602215b19135
parent 435 3bc08fb90133
permissions -rw-r--r--
Fix in codegen: fixed compilation of unknown node: do not hardcode return variable name ...use `self retvalVar` instead

"{ Package: 'stx:goodies/petitparser/parsers/java' }"

"{ NameSpace: Smalltalk }"

PJStatementNode subclass:#PJWhileStatementNode
	instanceVariableNames:'expression statement'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

PJWhileStatementNode comment:'Node representing a while loop'
!

!PJWhileStatementNode methodsFor:'accessing'!

expression
	^ expression
!

expression: anObject
	expression := anObject
!

statement
	^ statement
!

statement: anObject
	statement := anObject
! !

!PJWhileStatementNode methodsFor:'visiting'!

acceptVisitor: aVisitor

	^ aVisitor visitWhileStatementNode: self
! !