projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4293c4e
)
JSDOC/Walker2.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:01:17 +0000
(17:01 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:01:17 +0000
(17:01 +0800)
JSDOC/Walker2.js
patch
|
blob
|
history
diff --git
a/JSDOC/Walker2.js
b/JSDOC/Walker2.js
index
e276aa9
..
c5ced61
100644
(file)
--- a/
JSDOC/Walker2.js
+++ b/
JSDOC/Walker2.js
@@
-544,9
+544,9
@@
Walker2 = XObject.define(
//print("checking for : function() {");
//print( [this.ts.lookT(-3).type , this.ts.lookT(-2).type , this.ts.lookT(-1).type ].join(":"));
if (
//print("checking for : function() {");
//print( [this.ts.lookT(-3).type , this.ts.lookT(-2).type , this.ts.lookT(-1).type ].join(":"));
if (
- (this.ts.lookT(-1).
tokN == Script.TOKcolon
) &&
- (this.ts.lookT(-2).
tokN == Script.TOKidentifier
) &&
- (this.ts.lookT(-3).
tokN == Script.TOKlbrace || this.ts.lookT(-3).tokN == Script.TOKcomma
)
+ (this.ts.lookT(-1).
data == ':'
) &&
+ (this.ts.lookT(-2).
name == 'NAME'
) &&
+ (this.ts.lookT(-3).
data == '(' || this.ts.lookT(-3).data== ','
)
) {
//print("got for : function() {");
) {
//print("got for : function() {");
@@
-571,10
+571,10
@@
Walker2 = XObject.define(
//$this$=foo
if (
//$this$=foo
if (
- (this.ts.lookT(1).
tokN == Script.TOKidentifier
)
+ (this.ts.lookT(1).
name == 'NAME'
)
) {
//scopeName = this.ts.look(-3).data;
) {
//scopeName = this.ts.look(-3).data;
- this.ts.balanceN(
Script.TOKlparen
);
+ this.ts.balanceN(
'('
);
token = this.ts.nextT(); // should be {
var fnScope = new Scope(this.braceNesting, scope, token.n, '');
token = this.ts.nextT(); // should be {
var fnScope = new Scope(this.braceNesting, scope, token.n, '');
@@
-595,14
+595,14
@@
Walker2 = XObject.define(
if (
// (this.ts.lookT(-1).tokN == Script.TOKlparen) &&
if (
// (this.ts.lookT(-1).tokN == Script.TOKlparen) &&
- (this.ts.lookT(1).
tokN != Script.TOKidentifier
)
+ (this.ts.lookT(1).
name != 'NAME'
)
// (this.ts.lookT(-2).tokN == Script.TOKnew) &&
// (this.ts.lookT(-3).tokN == Script.TOKassign) &&
// (this.ts.lookT(-4).tokN == Script.TOKidentifier)
) {
//scopeName = this.ts.look(-3).data;
// (this.ts.lookT(-2).tokN == Script.TOKnew) &&
// (this.ts.lookT(-3).tokN == Script.TOKassign) &&
// (this.ts.lookT(-4).tokN == Script.TOKidentifier)
) {
//scopeName = this.ts.look(-3).data;
- this.ts.balanceN(
Script.TOKlparen
);
+ this.ts.balanceN(
'('
);
token = this.ts.nextT(); // should be {
var fnScope = new Scope(this.braceNesting, scope, token.n, '$private$');
this.indexedScopes[this.ts.cursor] = fnScope;
token = this.ts.nextT(); // should be {
var fnScope = new Scope(this.braceNesting, scope, token.n, '$private$');
this.indexedScopes[this.ts.cursor] = fnScope;
@@
-627,7
+627,7
@@
Walker2 = XObject.define(
} // end checking for TOKfunction
} // end checking for TOKfunction
- if (token.
tokN == Script.TOKlbrace
) {
+ if (token.
data == '{'
) {
// foo = { // !var!!!
//$this$=foo|Foo
// foo = { // !var!!!
//$this$=foo|Foo