Sha256: d1f060d0dd1275362ab63bdd3ff9fd4eead8957cc7b757dc029e2a8ff53e7e8a
Contents?: true
Size: 1.68 KB
Versions: 1
Compression:
Stored size: 1.68 KB
Contents
System.register("ObjectPattern", [], function() { "use strict"; var __moduleName = "ObjectPattern"; function require(path) { return $traceurRuntime.require("ObjectPattern", path); } "use strict"; (function() { var Node = module.require("../Node").Node; function ObjectPattern(properties) { Node.call(this); this.type = "ObjectPattern"; this.properties = properties; for (var $__0 = this.properties[$traceurRuntime.toProperty(Symbol.iterator)](), $__1; !($__1 = $__0.next()).done; ) { var property = $__1.value; { property.parent = this; } } } ObjectPattern.prototype = Object.create(Node); ObjectPattern.prototype.codegen = function() { if (!Node.prototype.codegen.call(this)) { return; } var context = this.getContext().node; var i = 0; for (var $__0 = this.properties[$traceurRuntime.toProperty(Symbol.iterator)](), $__1; !($__1 = $__0.next()).done; ) { var property = $__1.value; { this.properties[i] = property.codegen(); if (typeof property.value !== "undefined" && property.value !== null) { if (property.value.type === "Identifier") { context.defineIdentifier(property.value); } } else { if (property.key.type === "Identifier") { context.defineIdentifier(property.key); } } i++; } } return this; }; ObjectPattern.prototype.hasCallExpression = function() { return true; }; exports.ObjectPattern = ObjectPattern; }()); return {}; }); System.get("ObjectPattern" + '');
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/expressions/ObjectPattern.js |