Sha256: ccdc5c27e08f4378db38c13db70d74e462f9140265c0e9e54008826dec519da6

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

$traceurRuntime.ModuleStore.getAnonymousModule(function() {
  "use strict";
  var Node = module.require("../Node").Node;
  function GoStatement(body) {
    Node.call(this);
    this.type = "GoStatement";
    this.body = body;
    this.body.parent = this;
  }
  GoStatement.prototype = Object.create(Node);
  GoStatement.prototype.codegen = function() {
    if (!Node.prototype.codegen.call(this)) {
      return;
    }
    this.body = this.body.codegen();
    this.type = "ExpressionStatement";
    this.expression = {
      "type": "CallExpression",
      "callee": {
        "type": "UnaryExpression",
        "operator": "async",
        "argument": {
          "type": "FunctionExpression",
          "id": null,
          "params": [],
          "defaults": [],
          "body": this.body,
          "rest": null,
          "generator": false,
          "expression": false
        }
      },
      "arguments": []
    };
    return this;
  };
  exports.GoStatement = GoStatement;
  return {};
});

//# sourceMappingURL=GoStatement.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/statements/GoStatement.js
spider-src-0.1.6 lib/spider-src/support/spider/lib/ast/statements/GoStatement.js
spider-src-0.1.5 lib/spider-src/support/spider/lib/ast/statements/GoStatement.js