compiler/PPCAbstractActionNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 15 Jun 2015 18:00:44 +0100
changeset 487 602215b19135
parent 452 9f4558b3be66
child 515 b5316ef15274
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/compiler' }"

"{ NameSpace: Smalltalk }"

PPCDelegateNode subclass:#PPCAbstractActionNode
	instanceVariableNames:'block'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!


!PPCAbstractActionNode methodsFor:'accessing'!

block
    
    ^ block
!

block: anObject
    
    block := anObject
!

prefix
    ^ #action
! !

!PPCAbstractActionNode methodsFor:'comparing'!

= anotherNode
    super = anotherNode ifFalse: [ ^ false ].
    ^ block = anotherNode block.
!

hash
    ^ super hash bitXor: block hash
! !

!PPCAbstractActionNode class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !