+
+ /**
+ * dump the scope to StdOut...
+ *
+ */
+ dump : function(indent)
+ {
+ indent = indent || '';
+ print(
+ indent + "Scope: " + this.id + "\n" +
+ indent + "Started: " + ( this.token ? this.token.line : 'TOP' ) + "\n" +
+ indent + "- " + XObject.keys(this.identifiers).join(", ") + "\n"
+ );
+ this.subScopes.forEach(function(s) {
+ s.dump(indent + ' ');
+ });
+
+
+ },
+
+
+ declareIdentifier : function(symbol, token)
+ {