author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 06 Jul 2015 07:18:24 +0100 | |
changeset 36 | 4e586238a9f7 |
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 |
CDefinitionNode subclass:#CDefinitionFileNode |
|
6 |
instanceVariableNames:'source definitions' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
!CDefinitionFileNode class methodsFor:'documentation'! |
|
13 |
||
14 |
history |
|
15 |
||
16 |
"Created: / 25-10-2007 / 14:19:43 / haja" |
|
17 |
"Created: #generatedFrom:defBody: / 25-10-2007 / 14:23:00 / haja" |
|
18 |
"Deleted: #generatedFrom: / 25-10-2007 / 14:25:48 / haja" |
|
19 |
"Created: #generatedFrom / 25-10-2007 / 14:25:52 / haja" |
|
20 |
"Created: #generatedFrom: / 25-10-2007 / 14:25:52 / haja" |
|
21 |
"Created: #defBody / 25-10-2007 / 14:25:52 / haja" |
|
22 |
"Created: #defBody: / 25-10-2007 / 14:25:52 / haja" |
|
23 |
"Created: #acceptVisitor: / 02-11-2007 / 10:43:58 / haja" |
|
24 |
! ! |
|
25 |
||
26 |
!CDefinitionFileNode methodsFor:'accessing'! |
|
27 |
||
28 |
definitions |
|
29 |
^ definitions |
|
30 |
||
31 |
"Created: / 10-02-2008 / 19:09:31 / janfrog" |
|
32 |
! |
|
33 |
||
34 |
definitions:aCollection |
|
35 |
definitions := aCollection asSortedCollection: |
|
36 |
[:a :b|a priority > b priority] |
|
37 |
||
38 |
"Created: / 10-02-2008 / 19:09:31 / janfrog" |
|
39 |
"Modified: / 17-02-2008 / 18:01:01 / janfrog" |
|
40 |
! |
|
41 |
||
42 |
source |
|
43 |
^ source |
|
44 |
||
45 |
"Created: / 10-02-2008 / 19:09:31 / janfrog" |
|
46 |
! |
|
47 |
||
48 |
source:something |
|
49 |
source := something. |
|
50 |
||
51 |
"Created: / 10-02-2008 / 19:09:31 / janfrog" |
|
52 |
! ! |
|
53 |
||
54 |
!CDefinitionFileNode methodsFor:'printing'! |
|
55 |
||
56 |
printOn: stream indent: level |
|
57 |
||
58 |
definitions do: |
|
59 |
[:definition| |
|
60 |
definition printOn: stream indent: level. |
|
61 |
stream cr; cr] |
|
62 |
||
63 |
"Created: / 17-02-2008 / 18:47:43 / janfrog" |
|
64 |
! ! |
|
65 |
||
66 |
!CDefinitionFileNode methodsFor:'testing'! |
|
67 |
||
68 |
isCDefinitionFileNode |
|
69 |
^ true |
|
70 |
||
71 |
"Created: / 17-02-2008 / 21:49:53 / janfrog" |
|
72 |
! ! |
|
73 |
||
74 |
!CDefinitionFileNode methodsFor:'visiting'! |
|
75 |
||
76 |
acceptVisitor:aVisitor |
|
77 |
"Double dispatch back to the visitor, passing my type encoded in |
|
78 |
the selector (visitor pattern)" |
|
79 |
"stub code automatically generated - please change if required" |
|
80 |
||
81 |
^ aVisitor visitCDefinitionFileNode:self |
|
82 |
||
83 |
"Created: / 02-11-2007 / 10:43:58 / haja" |
|
84 |
"Modified: / 12-02-2008 / 22:58:57 / janfrog" |
|
85 |
! ! |
|
86 |
||
87 |
!CDefinitionFileNode class methodsFor:'documentation'! |
|
88 |
||
89 |
version |
|
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
90 |
^ '$Id$' |
14 | 91 |
! |
92 |
||
93 |
version_SVN |
|
94 |
^ '$Id$' |
|
1 | 95 |
! ! |