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/Walker2.js
[gnome.introspection-doc-generator]
/
JSDOC
/
Walker2.js
diff --git
a/JSDOC/Walker2.js
b/JSDOC/Walker2.js
index
b1368d7
..
5411d6e
100644
(file)
--- a/
JSDOC/Walker2.js
+++ b/
JSDOC/Walker2.js
@@
-156,14
+156,14
@@
Walker2 = XObject.define(
//print(JSON.stringify(this.ts, null, 4)); Seed.quit();
while (null != (token = this.ts.next())) {
//print(JSON.stringify(this.ts, null, 4)); Seed.quit();
while (null != (token = this.ts.next())) {
- print("TOK"+ token.toString());
+
//
print("TOK"+ token.toString());
// this.timerPrint("parseScope AFTER lookT: " + token.toString());
// this.timerPrint("parseScope AFTER lookT: " + token.toString());
- if (token.is('
WHIT
')) {
+ if (token.is('
COMM
')) {
if (token.name != 'JSDOC') {
if (token.name != 'JSDOC') {
- print("Walker2 : spce is not JSDOC");
+
//
print("Walker2 : spce is not JSDOC");
continue; //skip.
}
if (this.currentDoc) {
continue; //skip.
}
if (this.currentDoc) {
@@
-179,7
+179,7
@@
Walker2 = XObject.define(
// it's a scope changer..
if (newDoc.getTag("scope").length) {
// it's a scope changer..
if (newDoc.getTag("scope").length) {
- print("Walker2 : doctag changes scope");
+
//
print("Walker2 : doctag changes scope");
//throw "done";
scope.ident = '$private$|' + newDoc.getTag("scope")[0].desc;
continue;
//throw "done";
scope.ident = '$private$|' + newDoc.getTag("scope")[0].desc;
continue;
@@
-189,7
+189,7
@@
Walker2 = XObject.define(
if (newDoc.getTag("scopeAlias").length) {
//print(newDoc.getTag("scopeAlias").toSource());
// @scopeAlias a=b
if (newDoc.getTag("scopeAlias").length) {
//print(newDoc.getTag("scopeAlias").toSource());
// @scopeAlias a=b
- print("Walker2 : doctag changes scope (alias)");
+
//
print("Walker2 : doctag changes scope (alias)");
var sal = newDoc.getTag("scopeAlias")[0].desc.split("=");
aliases[sal[0]] = sal[1];
var sal = newDoc.getTag("scopeAlias")[0].desc.split("=");
aliases[sal[0]] = sal[1];
@@
-199,7
+199,7
@@
Walker2 = XObject.define(
/// got a doc comment..
//token.data might be this.??? (not sure though)
/// got a doc comment..
//token.data might be this.??? (not sure though)
- print("Walker2 : setting currentDoc");
+
//
print("Walker2 : setting currentDoc");
this.currentDoc = newDoc;
continue;
}
this.currentDoc = newDoc;
continue;
}
@@
-211,8
+211,8
@@
Walker2 = XObject.define(
// things that stop comments carrying on...??
if (this.currentDoc && (
// things that stop comments carrying on...??
if (this.currentDoc && (
- token.
tokN.
data == ';' ||
- token.
tokN.
data == '}')) {
+ token.data == ';' ||
+ token.data == '}')) {
this.addSymbol('', true);
//throw "Unconsumed Doc ("+ token.toString() +"): " + this.currentDoc.toSource();
}
this.addSymbol('', true);
//throw "Unconsumed Doc ("+ token.toString() +"): " + this.currentDoc.toSource();
}
@@
-460,7
+460,7
@@
Walker2 = XObject.define(
//print("ADD SYM:" + atype + ":" + token.toString() + this.ts.lookTok(1).toString() + this.ts.lookTok(2).toString());
this.addSymbol(
//print("ADD SYM:" + atype + ":" + token.toString() + this.ts.lookTok(1).toString() + this.ts.lookTok(2).toString());
this.addSymbol(
- this.ts.lookTok(-1).
tokN == Script.TOKdot
? token.data : fixAlias(token.data),
+ this.ts.lookTok(-1).
data == '.'
? token.data : fixAlias(token.data),
false,
atype);
false,
atype);
@@
-740,7
+740,7
@@
Walker2 = XObject.define(
addSymbol: function(lastIdent, appendIt, atype )
{
addSymbol: function(lastIdent, appendIt, atype )
{
- print("addSymbol : " + lastI
n
dent);
+ print("addSymbol : " + lastIdent);
/*if (!this.currentDoc.tags.length) {
/*if (!this.currentDoc.tags.length) {