Sha256: 118a52c7d9511ee5113d72f9cf2c74ad973c31a23a5aec7ee0da8dc8ea12b694

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

System.register("VariableDeclarationStatement", [], function() {
  "use strict";
  var __moduleName = "VariableDeclarationStatement";
  function require(path) {
    return $traceurRuntime.require("VariableDeclarationStatement", path);
  }
  "use strict";
  (function() {
    var Node = module.require("../Node").Node;
    function VariableDeclarationStatement(declarations) {
      Node.call(this);
      this.type = "VariableDeclaration";
      this.declarations = declarations;
      this.kind = "let";
      for (var $__0 = declarations[$traceurRuntime.toProperty(Symbol.iterator)](),
          $__1; !($__1 = $__0.next()).done; ) {
        var decl = $__1.value;
        {
          decl.parent = this;
        }
      }
    }
    VariableDeclarationStatement.prototype = Object.create(Node);
    VariableDeclarationStatement.prototype.codegen = function() {
      if (!Node.prototype.codegen.call(this)) {
        return;
      }
      var i = 0;
      while (i < this.declarations.length) {
        var statement = this.declarations[i].codegen();
        if (typeof statement !== "undefined" && statement !== null) {
          this.declarations[this.declarations.indexOf(statement)] = statement;
        }
        i++;
      }
      return this;
    };
    exports.VariableDeclarationStatement = VariableDeclarationStatement;
  }());
  return {};
});
System.get("VariableDeclarationStatement" + '');

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/statements/VariableDeclarationStatement.js