summaryrefslogtreecommitdiff
path: root/MLKRoot.m
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-08-11 11:48:37 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-08-11 11:48:37 +0200
commitab43577a31b56bb451d1abc3eb9da2e8afc12509 (patch)
tree8c2061ed9230db454fd13d24986c0a384b4ea3f7 /MLKRoot.m
parent065ea00d5c861411b5aaa41f29bd69a9f30e3ef3 (diff)
MLKForm class cluster: Implement declaration and docstring handling.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r--MLKRoot.m17
1 files changed, 16 insertions, 1 deletions
diff --git a/MLKRoot.m b/MLKRoot.m
index f295c77..940181c 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -677,7 +677,7 @@ as provided by method %@ of object %@",
id decls, doc, forms;
id bodyAndDecls = denullify ([args objectAtIndex:0]);
- MLKSplitDeclarationsDocAndForms (&decls, &doc, &forms, bodyAndDecls);
+ MLKSplitDeclarationsDocAndForms (&decls, &doc, &forms, bodyAndDecls, YES);
RETURN_VALUE ([MLKCons
cons:decls
@@ -687,4 +687,19 @@ as provided by method %@ of object %@",
cons:forms
with:nil]]]);
}
+
+
++(NSArray *) declarations_and_forms:(NSArray *)args
+{
+ id decls, doc, forms;
+ id bodyAndDecls = denullify ([args objectAtIndex:0]);
+
+ MLKSplitDeclarationsDocAndForms (&decls, &doc, &forms, bodyAndDecls, NO);
+
+ RETURN_VALUE ([MLKCons
+ cons:decls
+ with:[MLKCons
+ cons:forms
+ with:nil]]);
+}
@end