diff options
author | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-08-11 11:48:37 +0200 |
---|---|---|
committer | Matthias Benkard <mulk@minimulk.mst-plus> | 2008-08-11 11:48:37 +0200 |
commit | ab43577a31b56bb451d1abc3eb9da2e8afc12509 (patch) | |
tree | 8c2061ed9230db454fd13d24986c0a384b4ea3f7 /MLKRoot.m | |
parent | 065ea00d5c861411b5aaa41f29bd69a9f30e3ef3 (diff) |
MLKForm class cluster: Implement declaration and docstring handling.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r-- | MLKRoot.m | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |