nashorn/test/script/nosecurity/treeapi/new.js.EXPECTED
author sundar
Tue, 12 Jul 2016 21:18:13 +0530
changeset 39662 e2b36a3779b9
parent 29543 4d9f8f8b69a4
permissions -rw-r--r--
8149929: Nashorn Parser API needs to be updated for ES6 Reviewed-by: mhaupt, hannesw

[
  {
    "constructorExpression": {
      "endPosition": "13",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "11",
        "kind": "IDENTIFIER",
        "name": "Object",
        "startPosition": "5"
      },
      "arguments": [],
      "startPosition": "5"
    },
    "endPosition": "13",
    "kind": "NEW",
    "startPosition": "1"
  },
  {
    "constructorExpression": {
      "endPosition": "25",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "23",
        "kind": "IDENTIFIER",
        "name": "Array",
        "startPosition": "18"
      },
      "arguments": [],
      "startPosition": "18"
    },
    "endPosition": "25",
    "kind": "NEW",
    "startPosition": "14"
  },
  {
    "constructorExpression": {
      "endPosition": "49",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "47",
        "kind": "FUNCTION_EXPRESSION",
        "name": "null",
        "body": {
          "endPosition": "48",
          "kind": "BLOCK",
          "statements": [],
          "startPosition": "47"
        },
        "strict": "false",
        "startPosition": "47",
        "parameters": [
          {
            "endPosition": "41",
            "kind": "IDENTIFIER",
            "name": "a",
            "startPosition": "40"
          },
          {
            "endPosition": "43",
            "kind": "IDENTIFIER",
            "name": "b",
            "startPosition": "42"
          },
          {
            "endPosition": "45",
            "kind": "IDENTIFIER",
            "name": "c",
            "startPosition": "44"
          }
        ]
      },
      "arguments": [],
      "startPosition": "47"
    },
    "endPosition": "49",
    "kind": "NEW",
    "startPosition": "26"
  },
  {
    "constructorExpression": {
      "endPosition": "58",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "58",
        "kind": "IDENTIFIER",
        "name": "func",
        "startPosition": "54"
      },
      "arguments": [],
      "startPosition": "54"
    },
    "endPosition": "58",
    "kind": "NEW",
    "startPosition": "50"
  },
  {
    "constructorExpression": {
      "endPosition": "71",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "identifier": "init",
        "expression": {
          "endPosition": "66",
          "kind": "IDENTIFIER",
          "name": "obj",
          "startPosition": "63"
        },
        "endPosition": "71",
        "kind": "MEMBER_SELECT",
        "startPosition": "63"
      },
      "arguments": [],
      "startPosition": "66"
    },
    "endPosition": "71",
    "kind": "NEW",
    "startPosition": "59"
  }
]