Cface__CDoubleNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 06 Jul 2015 07:18:24 +0100
changeset 36 4e586238a9f7
parent 32 d7464405cbda
child 37 1ad7fb72801a
permissions -rw-r--r--
Fix in class generator (MethofDefinitionChange>>classVariableNames: now takes collection, not string)

"{ Package: 'jv:cface' }"

"{ NameSpace: Cface }"

CBuiltinNode subclass:#CDoubleNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Cface-C AST'
!


!CDoubleNode methodsFor:'accessing'!

cByteSize
    "superclass Cface::CTypeNode says that I am responsible to implement this method"

    ^ self shouldImplement
!

ffiTypeSymbol
    "superclass Cface::CTypeNode says that I am responsible to implement this method"

    ^ #double

    "Modified: / 12-07-2011 / 16:29:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

smalltalkName
    "superclass Cface::CBuiltinNode says that I am responsible to implement this method"

    ^ self shouldImplement
!

stxStructFieldGetterSelector
    ^ #doubleAt:

    "Created: / 30-05-2012 / 21:35:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!CDoubleNode methodsFor:'testing'!

isCDoubleNode
    ^ true

    "Created: / 30-05-2012 / 21:38:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!CDoubleNode methodsFor:'visiting'!

acceptVisitor:aVisitor 
    "Double dispatch back to the visitor, passing my type encoded in
     the selector (visitor pattern)"

    "stub code automatically generated - please change if required"

    ^ aVisitor visitCDoubleNode:self
! !

!CDoubleNode class methodsFor:'documentation'!

version_SVN
    ^ '$Id$'
! !