Lines Matching refs:top_retain
100 top_retain : null,
101 toplevel : !!(options && (options["module"] || options["top_retain"])),
163 var top_retain = this.options["top_retain"];
164 if (top_retain instanceof RegExp) {
165 this.top_retain = function(def) {
166 return top_retain.test(def.name);
168 } else if (typeof top_retain == "function") {
169 this.top_retain = top_retain;
170 } else if (top_retain) {
171 if (typeof top_retain == "string") {
172 top_retain = top_retain.split(/,/);
174 this.top_retain = function(def) {
175 return member(def.name, top_retain);
6935 if (self instanceof AST_Toplevel && compressor.top_retain) {
6937 if (compressor.top_retain(def) && !(def.id in in_use_ids)) {
8503 var top_retain = self instanceof AST_Toplevel && compressor.top_retain || return_false;
8601 if (top_retain(def)) return;