JSDOC/ScopeParser.vala
authorAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:58:09 +0000 (16:58 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:58:09 +0000 (16:58 +0800)
JSDOC/ScopeParser.vala

index 05d7be7..471cfad 100644 (file)
@@ -956,12 +956,13 @@ namespace JSDOC {
            scope.preventMunging();
        },
        
-       string getIdentifier(symbol, scope, token) {
-           var identifier;
+       string getIdentifier(string symbol, Scope scope, Token token) 
+       {
+           string identifier;
            while (scope != null) {
                identifier = scope.getIdentifier(symbol, token);
                //println("ScopeParser.getIdentgetUsedSymbols("+symbol+")=" + scope.getUsedSymbols().join(','));
-               if (identifier) {
+               if (identifier.length) {
                    return identifier;
                }
                scope = scope.parent;