fixed bug that would parse only every 2nd function in functionfiles
This commit is contained in:
parent
788c987a2d
commit
9f0699ace7
1 changed files with 3 additions and 2 deletions
|
@ -53,7 +53,6 @@ public class DocFunction extends DocFileElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reads a function file and creates DocFunction objects of type FUNCTION
|
* reads a function file and creates DocFunction objects of type FUNCTION
|
||||||
* connected to another DocElement.
|
* connected to another DocElement.
|
||||||
|
@ -103,8 +102,10 @@ public class DocFunction extends DocFileElement {
|
||||||
func.parseSource (location, beginLine, beginColumn, endLine, endColumn);
|
func.parseSource (location, beginLine, beginColumn, endLine, endColumn);
|
||||||
vec.add (func);
|
vec.add (func);
|
||||||
}
|
}
|
||||||
|
if (tok.kind != EcmaScriptConstants.FUNCTION) {
|
||||||
tok = mgr.getNextToken();
|
tok = mgr.getNextToken();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return (DocFunction[]) vec.toArray (new DocFunction[0]);
|
return (DocFunction[]) vec.toArray (new DocFunction[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue