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
/
Scope.js
diff --git
a/JSDOC/Scope.js
b/JSDOC/Scope.js
index
2161c97
..
b34d0a0
100644
(file)
--- a/
JSDOC/Scope.js
+++ b/
JSDOC/Scope.js
@@
-6,9
+6,10
@@
* // FIXME - I need this to do next() without doccomments..
*/
* // FIXME - I need this to do next() without doccomments..
*/
-Identifier = imports.Identifier.Identifier
-XObject = imports.XObject.XObject;
+
const
Identifier = imports.Identifier.Identifier
+
const
XObject = imports.XObject.XObject;
+Scope.id = -1;
function Scope(braceN, parent, startTokN, lastIdent, token)
{
function Scope(braceN, parent, startTokN, lastIdent, token)
{
@@
-18,7
+19,7
@@
function Scope(braceN, parent, startTokN, lastIdent, token)
this.braceN = braceN
this.parent = parent;
this.braceN = braceN
this.parent = parent;
- this.id =
startTokN
;
+ this.id =
Scope.id++
;
this.identifiers = { };
this.subScopes = [];
this.hints = { };
this.identifiers = { };
this.subScopes = [];
this.hints = { };
@@
-62,7
+63,7
@@
Scope.prototype = {
{
indent = indent || '';
print(
{
indent = indent || '';
print(
- indent +
"Scope: " + this.id + "\n" +
+ indent + "Scope: " + this.id + "\n" +
indent + "Started: " + ( this.token ? this.token.line : 'TOP' ) + "\n" +
indent + "- " + XObject.keys(this.identifiers).join(", ") + "\n"
);
indent + "Started: " + ( this.token ? this.token.line : 'TOP' ) + "\n" +
indent + "- " + XObject.keys(this.identifiers).join(", ") + "\n"
);