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:
0d3749d
)
JSDOC/ScopeParser.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 6 Nov 2015 08:53:55 +0000
(16:53 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 6 Nov 2015 08:53:55 +0000
(16:53 +0800)
JSDOC/ScopeParser.vala
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.vala
b/JSDOC/ScopeParser.vala
index
8a0bfa6
..
759df16
100644
(file)
--- a/
JSDOC/ScopeParser.vala
+++ b/
JSDOC/ScopeParser.vala
@@
-815,14
+815,10
@@
namespace JSDOC {
void parseCatch(scope) {
void parseCatch(scope) {
- var symbol;
- var token;
-
- var identifier;
//token = getToken(-1);
//assert token.getType() == Token.CATCH;
//token = getToken(-1);
//assert token.getType() == Token.CATCH;
- token = this.ts.nextTok(1);
+
var
token = this.ts.nextTok(1);
token = this.ts.nextTok(1);
token = this.ts.nextTok(1);
@@
-831,7
+827,7
@@
namespace JSDOC {
//token = this.ts.nextTok();
//assert token.getType() == Token.NAME;
//token = this.ts.nextTok();
//assert token.getType() == Token.NAME;
- symbol = token.items[0][0].data;
+
var
symbol = token.items[0][0].data;
if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
@@
-841,13
+837,13
@@
namespace JSDOC {
scope.declareIdentifier(symbol, token.items[0][0]);
} else {
//?? why inc the refcount?? - that should be set when building the tree???
scope.declareIdentifier(symbol, token.items[0][0]);
} else {
//?? why inc the refcount?? - that should be set when building the tree???
- identifier = this.getIdentifier(symbol, scope, token.items[0][0]);
+
var
identifier = this.getIdentifier(symbol, scope, token.items[0][0]);
identifier.refcount++;
}
//token = this.ts.nextTok();
//assert token.getType() == Token.RP; // )
identifier.refcount++;
}
//token = this.ts.nextTok();
//assert token.getType() == Token.RP; // )
- }
,
+ }
parseFunctionDeclaration : function(scope)
{
parseFunctionDeclaration : function(scope)
{