extensions.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 24 Mar 2010 07:50:55 +0000
changeset 30 1b7ff9c8c40b
parent 28 2eab5fdb9467
child 35 0bb85506f02a
permissions -rw-r--r--
Fixed bug that caused bad code generation for closures with more than one basic blocks.

"{ Package: 'cvut:stx/goodies/newcompiler' }"

!

!ByteCodeCompiler methodsFor:'accessing'!

literalArray: anArray
    "return the literal array - only valid after parsing"

    litArray := anArray

    "Created: / 03-11-2008 / 14:09:33 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !
!Class methodsFor:'accessing'!

binding

    ^self fullName asSymbol

    "Created: / 11-06-2008 / 11:20:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !
!Class methodsFor:'accessing'!

bindingOf: classVarName

    ^(self fullName , ':' , classVarName) asSymbol

    "Created: / 11-06-2008 / 11:29:19 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !