Lines Matching refs:AST_Node
253 AST_Node.info("pass {pass}: last_count: {min_count}, count: {count}", {
273 OPT(AST_Node, function(self, compressor) {
372 AST_Node.DEFMETHOD("wrap_expression", function() {
381 if (key instanceof AST_Node) return;
523 def(AST_Node, noop);
788 if (!(key instanceof AST_Node) && !RE_POSITIVE_INTEGER.test(key)) return;
790 …(key instanceof AST_Node ? def.scope.argnames : [ def.scope.argnames[key] ]).forEach(function(argn…
813 if (ev instanceof AST_Node) {
870 if (node.key instanceof AST_Node) {
1170 if (prop.key instanceof AST_Node) {
1627 return (fixed instanceof AST_Node ? fixed : fixed()).tail_node();
1631 var value = (fixed instanceof AST_Node ? fixed : fixed()).tail_node();
1644 AST_Node.DEFMETHOD("convert_symbol", noop);
1688 if (node.key instanceof AST_Node) node.key.walk(tw);
1704 AST_Node.DEFMETHOD("match_symbol", function(predicate) {
1717 if (!ignore_side_effects && node.key instanceof AST_Node) return found = true;
1966 if (prop.key instanceof AST_Node) return false;
2152 AST_Node.info("Cascading {this} [{start}]", node);
2209 AST_Node.info("Collapsing {this} [{start}]", node);
2337 AST_Node.info("Replacing {this} [{start}]", node);
2467 if (prop.key instanceof AST_Node) prop.key = prop.key.transform(tt);
2533 if (node instanceof AST_DestructuredKeyVal) return node.key instanceof AST_Node;
2695 if (prop.key instanceof AST_Node && reject(prop.key)) return false;
2877 if (prop.key instanceof AST_Node) extract_candidates(prop.key);
3221 if (!(ev instanceof AST_Node)) return rhs_fuzzy_match(ev, rhs_exact_match);
3245 if (!(ev instanceof AST_Node)) return !ev == !value;
4224 if (prop instanceof AST_Node) {
4228 if (prop instanceof AST_Node) return;
4392 AST_Node.warn("Dropping initialization in unreachable code [{start}]", node);
4419 if (dropped) AST_Node.warn("Dropping unreachable code [{start}]", stat);
4462 def(AST_Node, return_false);
4488 def(AST_Node, return_true);
4543 AST_Node.DEFMETHOD("may_throw_on_access", function(compressor, force) {
4549 def(AST_Node, is_strict);
4628 def(AST_Node, return_false);
4684 def(AST_Node, return_false);
4727 def(AST_Node, return_false);
4820 def(AST_Node, return_false);
4879 if (value instanceof AST_Node) return value.clone(true);
4899 AST_Node.warn("global_defs {this} redefined [{start}]", node);
4921 def(AST_Node, noop);
5093 def(AST_Node, return_false);
5116 AST_Node.DEFMETHOD("evaluate", function(compressor, ignore_side_effects) {
5154 def(AST_Node, return_this);
5233 if (key instanceof AST_Node) {
5456 if (key instanceof AST_Node) {
5552 if (key instanceof AST_Node) {
5575 AST_Node.warn("Error evaluating {this} [{start}]", this);
5641 def(AST_Node, function() {
5729 AST_Node.DEFMETHOD("is_call_pure", return_false);
5759 def(AST_Node, return_false);
5807 def(AST_Node, return_true);
5848 return this.key instanceof AST_Node && this.key.has_side_effects(compressor)
5864 return this.key instanceof AST_Node && this.key.has_side_effects(compressor)
5892 return this.key instanceof AST_Node && this.key.has_side_effects(compressor)
5935 def(AST_Node, return_true);
6031 || this.key instanceof AST_Node && this.key.may_throw(compressor);
6087 def(AST_Node, return_false);
6414 if (prop.key instanceof AST_Node) prop.key.walk(tw);
6722 if (!(node.key instanceof AST_Node)) {
6938 AST_Node.info("Retaining variable {name}", def);
6977 if (prop.key instanceof AST_Node) prop.key.walk(tw);
7154 if (prop.key instanceof AST_Node) {
7411 … if (value) AST_Node.warn("Side effects in definition of variable {name} [{start}]", def.name);
7426 … AST_Node.info("Dropping declaration of variable {name} [{start}]", def.name);
7444 AST_Node.warn("Declaring {name} as function [{start}]", def.name);
7484 … AST_Node.warn("Dropping duplicated declaration of variable {name} [{start}]", def.name);
7494 … AST_Node.warn("Side effects in initialization of unused variable {name} [{start}]", def.name);
7579 … AST_Node.info("Dropping duplicated definition of variable {name} [{start}]", def.name);
7686 AST_Node.warn("Side effects in object of for-in loop [{start}]", value);
7717 … AST_Node[sym.definition().references.length > 0 ? "info" : "warn"](text + " [{start}]", sym);
7724 AST_Node.info(text + " [{start}]", node);
8064 if (key instanceof AST_Node) key = key.evaluate(compressor, true);
8065 if (key instanceof AST_Node) {
8084 if (key instanceof AST_Node) {
8088 if (key instanceof AST_Node) {
8096 if (key instanceof AST_Node) {
8142 if (key instanceof AST_Node) return prop;
8171 if (prop.key instanceof AST_Node) break;
8199 return prop.key instanceof AST_Node && prop.key.has_side_effects(compressor);
8378 } else if (!(ev instanceof AST_Node)) {
8773 def(AST_Node, return_this);
8859 if (self.pure) AST_Node.warn("Dropping __PURE__ call [{start}]", self);
8911 if (prop.key instanceof AST_Node) exprs.push(prop.key);
9037 if (prop.key instanceof AST_Node) exprs.push(prop.key);
9136 AST_Node.warn("Dropping side-effect-free statement [{start}]", self);
9168 if (!(cond instanceof AST_Node)) {
9336 } else if (!(cond instanceof AST_Node)) {
9581 AST_Node.warn("Condition always false [{start}]", self.condition);
9588 } else if (!(cond instanceof AST_Node)) {
9589 AST_Node.warn("Condition always true [{start}]", self.condition);
9910 if (!(equals instanceof AST_Node)) {
10221 if (!(ev instanceof AST_Node)) node.optional = false;
10395 AST_Node.warn("Invalid array length: {length} [{start}]", {
10456 AST_Node.warn("Error converting {this} [{start}]", self);
10484 if (separator instanceof AST_Node) break EXIT; // not a constant
10653 …AST_Node.warn("Error parsing code passed to new Function [{start}]", self.args[self.args.length - …
10654 AST_Node.warn(ex.toString());
10826 … if (!(key instanceof AST_Node)) key = make_node_from_constant(key, prop);
10835 } else if (key instanceof AST_Node) {
11418 AST_Node.warn("Boolean expression always true [{start}]", self);
11693 AST_Node.warn("Expression always defined [{start}]", self);
11774 AST_Node.warn("+ in boolean context always true [{start}]", self);
11776 if (self.left.evaluate(compressor) instanceof AST_Node) exprs.push(self.left);
11777 if (self.right.evaluate(compressor) instanceof AST_Node) exprs.push(self.right);
11870 AST_Node.warn("Condition left of && always false [{start}]", self);
11872 } else if (!(ll instanceof AST_Node)) {
11873 AST_Node.warn("Condition left of && always true [{start}]", self);
11877 if (in_bool && !(self.right.evaluate(compressor) instanceof AST_Node)) {
11878 AST_Node.warn("Boolean && always false [{start}]", self);
11882 && !(self.right.evaluate(compressor) instanceof AST_Node)) {
11883 AST_Node.warn("Dropping side-effect-free && [{start}]", self);
11901 AST_Node.warn("Condition left of {operator} always {value} [{start}]", {
11907 } else if (!(ll instanceof AST_Node)) {
11908 AST_Node.warn("Condition left of {operator} always {value} [{start}]", {
11916 … if (!nullish && (rr = self.right.evaluate(compressor, true)) && !(rr instanceof AST_Node)) {
11917 if (in_bool && !(self.right.evaluate(compressor) instanceof AST_Node)) {
11918 AST_Node.warn("Boolean || always true [{start}]", self);
11923 AST_Node.warn("Dropping side-effect-free {operator} [{start}]", self);
11929 if (lr && !(lr instanceof AST_Node)) return make_node(AST_Conditional, self, {