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/Packer.vala
[gnome.introspection-doc-generator]
/
JSDOC
/
ScopeParser.js
diff --git
a/JSDOC/ScopeParser.js
b/JSDOC/ScopeParser.js
index
8ec788f
..
a35790e
100644
(file)
--- a/
JSDOC/ScopeParser.js
+++ b/
JSDOC/ScopeParser.js
@@
-1,7
+1,7
@@
//<Script type="text/javascript">
//<Script type="text/javascript">
-Scope = imports.Scope.Scope;
-TokenStream = imports.TokenStream.TokenStream;
+
const
Scope = imports.Scope.Scope;
+
const
TokenStream = imports.TokenStream.TokenStream;
/**
* Scope stuff
*
/**
* Scope stuff
*
@@
-11,7
+11,7
@@
TokenStream = imports.TokenStream.TokenStream;
*
*/
*
*/
-ScopeParser = function(ts) {
+
const
ScopeParser = function(ts) {
this.ts = ts; // {TokenStream}
this.warnings = [];
this.indexedg = {};
this.ts = ts; // {TokenStream}
this.warnings = [];
this.indexedg = {};
@@
-226,9
+226,9
@@
ScopeParser.prototype = {
//this.dumpToken(token , this.scopes, this.braceNesting);
//print('SCOPE:' + token.toString());
//this.log(token.data);
//this.dumpToken(token , this.scopes, this.braceNesting);
//print('SCOPE:' + token.toString());
//this.log(token.data);
- if (token.type == 'NAME') {
+
//
if (token.type == 'NAME') {
// print('*' + token.data);
// print('*' + token.data);
- }
+
//
}
switch(token.type + '.' + token.name) {
case "KEYW.VAR":
case "KEYW.CONST": // not really relivant as it's only mozzy that does this.
switch(token.type + '.' + token.name) {
case "KEYW.VAR":
case "KEYW.CONST": // not really relivant as it's only mozzy that does this.
@@
-362,8
+362,10
@@
ScopeParser.prototype = {
// ( ... ) or { .... } not object literals..
var _this = this;
// ( ... ) or { .... } not object literals..
var _this = this;
- token.items.forEach(function(expr) {
- //print(JSON.stringify(expr, null,4));
+ for (var xx =0; xx < token.items.length; xx++) {
+ expr = token.items[xx];
+ //token.items.forEach(function(expr) {
+ //print(expr.toString());
_this.ts = new TokenStream(expr);
//if (curTS.data == '(') {
_this.parseScope(scope)
_this.ts = new TokenStream(expr);
//if (curTS.data == '(') {
_this.parseScope(scope)
@@
-371,7
+373,7
@@
ScopeParser.prototype = {
// _this.parseExpression(scope)
//}
// _this.parseExpression(scope)
//}
- }
);
+ }
this.ts = curTS;
//print("NOT PROPS"); Seed.quit();
this.ts = curTS;
//print("NOT PROPS"); Seed.quit();
@@
-570,7
+572,7
@@
ScopeParser.prototype = {
//print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
//print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
- while (
token = this.ts.nextTok(
)) {
+ while (
(token = this.ts.nextTok()
)) {
@@
-825,7
+827,7
@@
ScopeParser.prototype = {
identifier.refcount++;
}
identifier.refcount++;
}
- token = this.ts.nextTok();
+
//
token = this.ts.nextTok();
//assert token.getType() == Token.RP; // )
},
//assert token.getType() == Token.RP; // )
},
@@
-860,9
+862,7
@@
ScopeParser.prototype = {
while (token.data != "(") {
//print(token.toString());
token = this.ts.nextTok();
while (token.data != "(") {
//print(token.toString());
token = this.ts.nextTok();
-
-
-
+
}
}
@@
-958,4
+958,4
@@
ScopeParser.prototype = {
}
return false;
}
}
return false;
}
-};
\ No newline at end of file
+};