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

index 5d0da20..3ba1366 100644 (file)
@@ -845,7 +845,7 @@ namespace JSDOC {
            //assert token.getType() == Token.RP; // )
        }
        
-       void parseFunctionDeclaration (scope) 
+       void parseFunctionDeclaration (Scope scope) 
        {
            //print("PARSE FUNCTION");
            
@@ -858,7 +858,7 @@ namespace JSDOC {
 
            var token = this.ts.nextTok();
            if (token.type == "NAME") {
-               if (this.mode == copeParserMode.BUILDING_SYMBOL_TREE) {
+               if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
                    // Get the name of the function and declare it in the current scope.
                    symbol = token.data;
                    if (scope.getIdentifier(symbol,token) != false) {
@@ -879,8 +879,8 @@ namespace JSDOC {
            
            
            //assert token.getType() == Token.LP;
-           if (this.mode == 'BUILDING_SYMBOL_TREE') {
-               fnScope = new Scope(1, scope, token.n, '', token);
+           if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
+               var fnScope = new Scope(1, scope, token.n, '', token);
                
                //println("STORING SCOPE" + this.ts.cursor);