braceN : -1,
parent : false,
subScopes : false,
- identifiers : false,
+ identifiers : false, // map of identifiers to {Identifier} objects
hints: false,
mungeM : true,
ident: '',
return result;
},
/** - we need to register short vairalbes so they never get munged into.. */
- addToParentScope: function(ident) {
+ addToParentScope: function(ident)
+ {
if (ident.length > 2) {
return;
}
}
},
- isProtectedVar: function(ident) {
+ isProtectedVar: function(ident)
+ {
if (ident.length > 2) {
return false;
}
return false;
},
-
+ /**
+ * set's all the munged values on the identifiers.
+ *
+ *
+ */
- munge :function() {
+ munge :function()
+ {
if (!this.mungeM) {
// Stop right here if this scope was flagged as unsafe for munging.
freeSymbols.push(batch[i]);
}
}
- /*
- var exsymbols = function(n) {
- if (sy.indexOf(n) > -1) {
- return;
- }
- freeSymbols.push(n);
- }
+
*/
addSyms(JSDOC.Scope.ones);
-
- //if (freeSymbols.length == 0) {
- // pickFromSet = 2;
- // JSDOC.Scope.twos.filter(exsymbols);
-
- //}
- //if (freeSymbols.length == 0) {
- // pickFromSet = 3;
- // throw "disabled threes!"
- // JSDOC.Scope.threes.filter(exsymbols);
- //
- //}
- //if (freeSymbols.length == 0) {
- // throw "The Compressor ran out of symbols. Aborting...???? ";
- // }
+
var repsym = '';
//println(freeSymbols.toSource());
- if (this.identifiers[i].constructor != JSDOC.Identifier) {
+ if (this.identifiers[i].constructor != Identifier) {
continue;
}
// println("IDENT:" +i+'</BR>');