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:
430645d
)
JSDOC/ScopeParser.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 9 Nov 2015 10:03:36 +0000
(18:03 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 9 Nov 2015 10:03:36 +0000
(18:03 +0800)
JSDOC/ScopeParser.vala
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeParser.vala
b/JSDOC/ScopeParser.vala
index
28e95ba
..
4f46dbd
100644
(file)
--- a/
JSDOC/ScopeParser.vala
+++ b/
JSDOC/ScopeParser.vala
@@
-959,18
+959,18
@@
namespace JSDOC {
scope.preventMunging();
}
scope.preventMunging();
}
- Token getIdentifier(string symbol, Scope in_scope, Token token)
+ Token
?
getIdentifier(string symbol, Scope in_scope, Token token)
{
{
-
string
identifier;
+
Token
identifier;
var scope = in_scope;
while (scope != null) {
identifier = scope.getIdentifier(symbol, token);
//println("ScopeParser.getIdentgetUsedSymbols("+symbol+")=" + scope.getUsedSymbols().join(','));
var scope = in_scope;
while (scope != null) {
identifier = scope.getIdentifier(symbol, token);
//println("ScopeParser.getIdentgetUsedSymbols("+symbol+")=" + scope.getUsedSymbols().join(','));
- if (identifier
.length
) {
+ if (identifier
!= null
) {
return identifier;
}
scope = scope.parent;
}
return identifier;
}
scope = scope.parent;
}
- return
""
;
+ return
null
;
}
}
}
}