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

[
  {
    "endPosition": "13",
    "kind": "FUNCTION_INVOCATION",
    "functionSelect": {
      "endPosition": "4",
      "kind": "IDENTIFIER",
      "name": "foo",
      "startPosition": "1"
    },
    "arguments": [
      {
        "endPosition": "6",
        "kind": "IDENTIFIER",
        "name": "a",
        "startPosition": "5"
      },
      {
        "expression": {
          "endPosition": "12",
          "kind": "IDENTIFIER",
          "name": "b",
          "startPosition": "11"
        },
        "endPosition": "12",
        "kind": "SPREAD",
        "startPosition": "8"
      }
    ],
    "startPosition": "1"
  },
  {
    "endPosition": "38",
    "kind": "FUNCTION_INVOCATION",
    "functionSelect": {
      "endPosition": "19",
      "kind": "IDENTIFIER",
      "name": "bar",
      "startPosition": "16"
    },
    "arguments": [
      {
        "endPosition": "21",
        "kind": "NUMBER_LITERAL",
        "value": "3",
        "startPosition": "20"
      },
      {
        "expression": {
          "endPosition": "37",
          "kind": "ARRAY_LITERAL",
          "elements": [
            {
              "endPosition": "28",
              "kind": "NUMBER_LITERAL",
              "value": "3",
              "startPosition": "27"
            },
            {
              "endPosition": "31",
              "kind": "NUMBER_LITERAL",
              "value": "5",
              "startPosition": "30"
            },
            {
              "endPosition": "36",
              "kind": "NUMBER_LITERAL",
              "value": "546",
              "startPosition": "33"
            }
          ],
          "startPosition": "26"
        },
        "endPosition": "37",
        "kind": "SPREAD",
        "startPosition": "23"
      }
    ],
    "startPosition": "16"
  },
  {
    "endPosition": "63",
    "kind": "VARIABLE",
    "binding": {
      "endPosition": "48",
      "kind": "IDENTIFIER",
      "name": "arr",
      "startPosition": "45"
    },
    "startPosition": "41",
    "initializer": {
      "endPosition": "63",
      "kind": "ARRAY_LITERAL",
      "elements": [
        {
          "endPosition": "53",
          "kind": "NUMBER_LITERAL",
          "value": "3",
          "startPosition": "52"
        },
        {
          "expression": {
            "endPosition": "59",
            "kind": "IDENTIFIER",
            "name": "a",
            "startPosition": "58"
          },
          "endPosition": "59",
          "kind": "SPREAD",
          "startPosition": "55"
        },
        {
          "endPosition": "62",
          "kind": "NUMBER_LITERAL",
          "value": "5",
          "startPosition": "61"
        }
      ],
      "startPosition": "51"
    }
  },
  {
    "endPosition": "94",
    "kind": "VARIABLE",
    "binding": {
      "endPosition": "73",
      "kind": "IDENTIFIER",
      "name": "arr2",
      "startPosition": "69"
    },
    "startPosition": "65",
    "initializer": {
      "endPosition": "94",
      "kind": "ARRAY_LITERAL",
      "elements": [
        {
          "endPosition": "78",
          "kind": "NUMBER_LITERAL",
          "value": "4",
          "startPosition": "77"
        },
        {
          "expression": {
            "endPosition": "89",
            "kind": "ARRAY_LITERAL",
            "elements": [
              {
                "endPosition": "85",
                "kind": "NUMBER_LITERAL",
                "value": "5",
                "startPosition": "84"
              },
              {
                "endPosition": "88",
                "kind": "NUMBER_LITERAL",
                "value": "6",
                "startPosition": "87"
              }
            ],
            "startPosition": "83"
          },
          "endPosition": "89",
          "kind": "SPREAD",
          "startPosition": "80"
        },
        {
          "endPosition": "93",
          "kind": "NUMBER_LITERAL",
          "value": "78",
          "startPosition": "91"
        }
      ],
      "startPosition": "76"
    }
  }
]