author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 06 Jul 2015 22:28:52 +0100 | |
changeset 40 | 7d1e77b6115e |
parent 32 | d7464405cbda |
child 43 | 9327987437ae |
permissions | -rw-r--r-- |
32
d7464405cbda
Package renamed from cvut:fel/cface to jv:cface
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
1 |
"{ Package: 'jv:cface' }" |
1 | 2 |
|
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
CTypeNode subclass:#CArrayNode |
|
6 |
instanceVariableNames:'type size' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
!CArrayNode class methodsFor:'documentation'! |
|
13 |
||
14 |
history |
|
15 |
||
16 |
"Created: / 25-10-2007 / 16:50:37 / haja" |
|
17 |
"Created: #id / 25-10-2007 / 16:50:42 / haja" |
|
18 |
"Created: #id: / 25-10-2007 / 16:50:42 / haja" |
|
19 |
"Created: #size / 25-10-2007 / 16:50:42 / haja" |
|
20 |
"Created: #size: / 25-10-2007 / 16:50:42 / haja" |
|
21 |
"Created: #id:size: / 25-10-2007 / 16:53:04 / haja" |
|
22 |
"Deleted: #acceptVisitor: / 02-11-2007 / 10:39:35 / haja" |
|
23 |
"Created: #acceptVisitor: / 02-11-2007 / 10:39:47 / haja" |
|
24 |
"Created: #buildTypeCheckFor:on: / 19-12-2007 / 15:55:50 / haja" |
|
25 |
"Created: #buildObjectCreationOn: / 19-12-2007 / 16:40:09 / haja" |
|
26 |
"Created: #buildValueExtractionFor:on: / 19-12-2007 / 17:30:51 / haja" |
|
27 |
"Created: #buildObjectCreationFor:on: / 19-12-2007 / 17:39:17 / haja" |
|
28 |
"Deleted: #buildObjectCreationOn: / 19-12-2007 / 17:39:20 / haja" |
|
29 |
"Created: #buildTypeDescriptionOn: / 20-12-2007 / 12:13:36 / haja" |
|
30 |
! ! |
|
31 |
||
16 | 32 |
!CArrayNode methodsFor:'accessing'! |
33 |
||
34 |
cByteSize |
|
35 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
36 |
||
37 |
^ self shouldImplement |
|
38 |
! |
|
39 |
||
40 |
ffiTypeSymbol |
|
41 |
"superclass Cface::CTypeNode says that I am responsible to implement this method" |
|
42 |
||
43 |
^ self shouldImplement |
|
44 |
! |
|
45 |
||
46 |
size |
|
47 |
^ size |
|
48 |
! |
|
49 |
||
50 |
size:anInteger |
|
51 |
size := anInteger. |
|
52 |
! |
|
53 |
||
54 |
type |
|
55 |
^ type |
|
56 |
! |
|
57 |
||
58 |
type:aCTypeNode |
|
59 |
type := aCTypeNode. |
|
60 |
! ! |
|
61 |
||
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
62 |
!CArrayNode methodsFor:'testing'! |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
63 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
64 |
isCArrayNode |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
65 |
^ true |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
66 |
|
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
67 |
"Created: / 30-05-2012 / 21:38:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
68 |
! ! |
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
69 |
|
16 | 70 |
!CArrayNode methodsFor:'visiting'! |
71 |
||
72 |
acceptVisitor:aVisitor |
|
73 |
"Double dispatch back to the visitor, passing my type encoded in |
|
74 |
the selector (visitor pattern)" |
|
75 |
||
76 |
"stub code automatically generated - please change if required" |
|
77 |
||
78 |
^ aVisitor visitCArrayNode:self |
|
79 |
! ! |
|
80 |
||
1 | 81 |
!CArrayNode class methodsFor:'documentation'! |
82 |
||
14 | 83 |
version_SVN |
84 |
^ '$Id$' |
|
1 | 85 |
! ! |