Sha256: 4b6bea9d28c31d97158b3541b766e6604cfcbe9dc8cdcd59ab3a9f8cbffb8456

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

System.register("Property", [], function() {
  "use strict";
  var __moduleName = "Property";
  function require(path) {
    return $traceurRuntime.require("Property", path);
  }
  "use strict";
  (function() {
    var Node = module.require("./Node").Node;
    function Property(key, value, shorthand, method) {
      Node.call(this);
      this.type = "Property";
      this.kind = "init";
      this.method = method;
      this.shorthand = shorthand;
      this.computed = false;
      this.key = key;
      this.key.parent = this;
      this.value = value;
      this.value.parent = this;
    }
    Property.prototype = Object.create(Node);
    Property.prototype.codegen = function() {
      if (!Node.prototype.codegen.call(this)) {
        return;
      }
      this.key = this.key.codegen(false);
      this.value = this.value.codegen(this.parent.type !== "ObjectPattern");
      return this;
    };
    Property.prototype.hasCallExpression = function() {
      return this.value.hasCallExpression();
    };
    exports.Property = Property;
  }());
  return {};
});
System.get("Property" + '');

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spider-src-0.1.6 lib/spider-src/support/spider/node_modules/spider-script/lib/ast/Property.js