-
Notifications
You must be signed in to change notification settings - Fork 0
/
class.dylan
47 lines (41 loc) · 1.29 KB
/
class.dylan
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module: code-browser
Synopsis: Browse Open Dylan environment objects
Author: Andreas Bogk, Bastian Mueller, Hannes Mehnert
define body tag slots in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
do-all-slots(method(x)
dynamic-bind(*environment-object* = x)
do-body()
end
end,
*project*, *environment-object*);
end;
define body tag direct-superclasses in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
for (superclass in class-direct-superclasses(*project*, *environment-object*))
dynamic-bind(*environment-object* = superclass)
do-body()
end;
end for;
end;
define body tag direct-subclasses in code-browser
(page :: <code-browser-page>, do-body :: <function>)
()
for (subclass in class-direct-subclasses(*project*, *environment-object*))
dynamic-bind(*environment-object* = subclass)
do-body()
end;
end for;
end;
define tag slot-name in code-browser
(page :: <code-browser-page>)
()
output("%s", html-name(slot-getter(*project*, *environment-object*)));
end;
define tag slot-type in code-browser
(page :: <code-browser-page>)
()
output("%s", html-name(slot-type(*project*, *environment-object*)));
end;