From 9f0699ace76033b38c7771e6889fb10032ab5f76 Mon Sep 17 00:00:00 2001 From: stefanp Date: Mon, 2 Dec 2002 10:56:26 +0000 Subject: [PATCH] fixed bug that would parse only every 2nd function in functionfiles --- src/helma/doc/DocFunction.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helma/doc/DocFunction.java b/src/helma/doc/DocFunction.java index cdf82db0..fb18c3e5 100644 --- a/src/helma/doc/DocFunction.java +++ b/src/helma/doc/DocFunction.java @@ -53,7 +53,6 @@ public class DocFunction extends DocFileElement { } - /** * reads a function file and creates DocFunction objects of type FUNCTION * connected to another DocElement. @@ -103,7 +102,9 @@ public class DocFunction extends DocFileElement { func.parseSource (location, beginLine, beginColumn, endLine, endColumn); vec.add (func); } - tok = mgr.getNextToken(); + if (tok.kind != EcmaScriptConstants.FUNCTION) { + tok = mgr.getNextToken(); + } } return (DocFunction[]) vec.toArray (new DocFunction[0]); }