simpleFunction.js 207 B

123456789101112
  1. define(["esprima"], function (esprima) {
  2. return esprima.parse(
  3. "function foo(x, y) {\n" +
  4. " var z = x + y;\n" +
  5. " z++;\n" +
  6. " return z;\n" +
  7. "}\n"
  8. );
  9. });