Skip to content

Commit 5ed6e4b

Browse files
committed
Add init-keyword: parent: to <component>
Makes it easier to construct tests correctly.
1 parent 7043517 commit 5ed6e4b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components.dylan

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ define abstract class <component> (<object>)
1717
constant slot component-when = component-when-default,
1818
init-keyword: when:;
1919
// If a component is part of a suite it has a parent.
20-
slot component-parent :: false-or(<suite>) = #f;
20+
slot component-parent :: false-or(<suite>) = #f,
21+
init-keyword: parent:;
2122
end class;
2223

2324
define generic suite-components (suite :: <suite>) => (components :: <sequence> /* of <component> */);

0 commit comments

Comments
 (0)