Cface__CDefinitionNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 14 Aug 2015 11:28:29 +0100
changeset 46 cc6b765ad420
parent 43 9327987437ae
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 }"

CNode subclass:#CDefinitionNode
	instanceVariableNames:'cName smalltalkName ignore'
	classVariableNames:''
	poolDictionaries:''
	category:'Cface-C AST'
!

!CDefinitionNode class methodsFor:'documentation'!

history

    "Created: / 29-10-2007 / 20:21:24 / haja"
    "Created: #acceptVisitor: / 02-11-2007 / 10:36:55 / haja"
! !

!CDefinitionNode methodsFor:'accessing'!

cName
    ^ cName

    "Created: / 10-02-2008 / 19:06:12 / janfrog"
!

cName:aString
    cName := aString.

    "Created: / 10-02-2008 / 19:06:12 / janfrog"
!

ignore
    ^ ignore ? false

    "Created: / 22-02-2009 / 14:57:53 / Jan Vrany <vranyj1@fel.cvut.cz>"
!

ignore:aBoolean
    ignore := aBoolean.

    "Created: / 22-02-2009 / 14:57:53 / Jan Vrany <vranyj1@fel.cvut.cz>"
!

smalltalkName
    ^ smalltalkName

    "Created: / 10-02-2008 / 19:06:12 / janfrog"
!

smalltalkName:aStringOrSymbol
    smalltalkName := aStringOrSymbol asSymbol

    "Created: / 10-02-2008 / 19:06:12 / janfrog"
    "Modified: / 12-02-2008 / 22:05:35 / janfrog"
! !

!CDefinitionNode methodsFor:'queries'!

shouldBeIgnored

    ^ignore ? false

    "Created: / 22-02-2009 / 15:00:08 / Jan Vrany <vranyj1@fel.cvut.cz>"
    "Modified: / 22-02-2009 / 21:55:03 / Jan Vrany <vranyj1@fel.cvut.cz>"
! !

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

    ^self subclassResponsibility

    "Created: / 02-11-2007 / 10:36:55 / haja"
! !

!CDefinitionNode class methodsFor:'documentation'!

version
    ^ '$Id$'
!

version_SVN
    ^ '$Id$'
! !