Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in DocsExtractor L65 #4

Open
codecop opened this issue Dec 4, 2024 · 1 comment
Open

Syntax error in DocsExtractor L65 #4

codecop opened this issue Dec 4, 2024 · 1 comment

Comments

@codecop
Copy link

codecop commented Dec 4, 2024

recursiveFilesOfTypes(list("docio")), list()))

seems to be an extra ")".

@codecop
Copy link
Author

codecop commented Dec 7, 2024

Seems some logic errors there:

diff --git a/io/Docio/DocsExtractor.io b/io/Docio/DocsExtractor.io
index 6e27fc1..5a01c04 100644
--- a/io/Docio/DocsExtractor.io
+++ b/io/Docio/DocsExtractor.io
@@ -51,18 +51,18 @@ DocsExtractor := Object clone do (
         self cFiles appendSeq(self ioFiles) appendSeq(self docioFiles))

     cFiles := method(
-        if (self dir directoryNamed("source") exists not, return list())
-        self dir directoryNamed("source") recursiveFilesOfTypes(list("c", "m")))
+        if (self dir directoryNamed("source") exists not, return list(),
+        self dir directoryNamed("source") recursiveFilesOfTypes(list("c", "m"))))

        ioFiles := method(
-               if (self dir directoryNamed("io") exists not, return list())
+               if (self dir directoryNamed("io") exists not, return list(),
         self dir directoryNamed("io") \
-            recursiveFilesOfTypes(list("io", "docio")), list())
+            recursiveFilesOfTypes(list("io", "docio")), list()))

     docioFiles := method(
-        if (self dir directoryNamed("docio") exists not, return list())
+        if (self dir directoryNamed("docio") exists not, return list(),
         self dir directoryNamed("docio") \
-            recursiveFilesOfTypes(list("docio")), list())
+            recursiveFilesOfTypes(list("docio")), list()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant