projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/Scope.js
[gnome.introspection-doc-generator]
/
JSDOC
/
ScopeParser.js
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
900c01d
..
7959206
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-426,7
+426,7
@@
ScopeParser.prototype = {
break;
case "KEYW.CATCH":
break;
case "KEYW.CATCH":
- print('SCOPE-CATCH:' + token.toString());
+
//
print('SCOPE-CATCH:' + token.toString());
//println("<i>"+token.data+"</i>");
this.parseCatch();
break;
//println("<i>"+token.data+"</i>");
this.parseCatch();
break;
@@
-620,7
+620,7
@@
ScopeParser.prototype = {
*/
//this.dumpToken(token, this.scopes, this.braceNesting );
*/
//this.dumpToken(token, this.scopes, this.braceNesting );
- //print('EXP' + token.toString());
+ //print('EXP
R
' + token.toString());
//println("<i>"+token.data+"</i>");
//println("<i>"+token.data+"</i>");
@@
-876,11
+876,17
@@
ScopeParser.prototype = {
}
token = this.ts.nextTok();
}
}
token = this.ts.nextTok();
}
+
+
// return function() {....
// return function() {....
- while (token.name != "FUNCTION") {
+ while (token.data != "(") {
+ print(token.toString());
token = this.ts.nextTok();
token = this.ts.nextTok();
+
+
+
}
}
- token = this.ts.nextTok();
+
//assert token.getType() == Token.LP;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
//assert token.getType() == Token.LP;
if (this.mode == 'BUILDING_SYMBOL_TREE') {
@@
-895,7
+901,7
@@
ScopeParser.prototype = {
fnScope = this.indexedScopes[token.id];
}
//if (this.mode == 'BUILDING_SYMBOL_TREE')
fnScope = this.indexedScopes[token.id];
}
//if (this.mode == 'BUILDING_SYMBOL_TREE')
- print('FUNC-PARSE:' + JSON.stringify(token,null,4));
+
//
print('FUNC-PARSE:' + JSON.stringify(token,null,4));
// Parse function arguments.
var args = token.items;
for (var argpos =0; argpos < args.length; argpos++) {
// Parse function arguments.
var args = token.items;
for (var argpos =0; argpos < args.length; argpos++) {