Cface__CDoubleNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 14 Aug 2015 11:28:29 +0100
changeset 46 cc6b765ad420
parent 37 1ad7fb72801a
permissions -rw-r--r--
Fix in LLVM C API and C API Extensions mappings: map LLVMBool to #bool FFI type. Correctly map LLVMModuleRef to LLVMModule.

"{ 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
!

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

    ^ 'double'

    "Modified: / 06-07-2015 / 07:31:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

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$'
! !