Sha256: 4664227bc65bdfacba8e3179d01f6aaac16421979d99374b509b03e6aab5cf16

Contents?: true

Size: 913 Bytes

Versions: 3

Compression:

Stored size: 913 Bytes

Contents

$traceurRuntime.ModuleStore.getAnonymousModule(function() {
  "use strict";
  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 {};
});

//# sourceMappingURL=Property.map

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spider-src-0.1.7 lib/spider-src/support/spider/lib/ast/Property.js
spider-src-0.1.6 lib/spider-src/support/spider/lib/ast/Property.js
spider-src-0.1.5 lib/spider-src/support/spider/lib/ast/Property.js