nashorn/test/script/nosecurity/treeapi/array_access.js.EXPECTED
author hannesw
Wed, 27 Apr 2016 15:50:33 +0200
changeset 37732 3673fec68d16
parent 29543 4d9f8f8b69a4
child 46169 b385216af0ed
permissions -rw-r--r--
8134503: support ES6 parsing in Nashorn Reviewed-by: jlaskey, sundar, mhaupt Contributed-by: andreas.woess@oracle.com

[
  {
    "expression": {
      "endPosition": "9",
      "kind": "IDENTIFIER",
      "name": "array",
      "startPosition": "4"
    },
    "endPosition": "12",
    "kind": "ARRAY_ACCESS",
    "index": {
      "endPosition": "11",
      "kind": "NUMBER_LITERAL",
      "value": "1",
      "startPosition": "10"
    },
    "startPosition": "4"
  },
  {
    "expression": {
      "endPosition": "25",
      "kind": "IDENTIFIER",
      "name": "array",
      "startPosition": "20"
    },
    "endPosition": "33",
    "kind": "ARRAY_ACCESS",
    "index": {
      "endPosition": "32",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "30",
        "kind": "IDENTIFIER",
        "name": "test",
        "startPosition": "26"
      },
      "arguments": [],
      "startPosition": "26"
    },
    "startPosition": "20"
  },
  {
    "expression": {
      "endPosition": "70",
      "kind": "IDENTIFIER",
      "name": "array",
      "startPosition": "65"
    },
    "endPosition": "76",
    "kind": "ARRAY_ACCESS",
    "index": {
      "endPosition": "75",
      "kind": "NULL_LITERAL",
      "value": "null",
      "startPosition": "71"
    },
    "startPosition": "65"
  },
  {
    "expression": {
      "endPosition": "119",
      "kind": "IDENTIFIER",
      "name": "array",
      "startPosition": "114"
    },
    "endPosition": "123",
    "kind": "ARRAY_ACCESS",
    "index": {
      "expression": {
        "endPosition": "122",
        "kind": "NUMBER_LITERAL",
        "value": "1",
        "startPosition": "121"
      },
      "endPosition": "122",
      "kind": "MINUS",
      "startPosition": "120"
    },
    "startPosition": "114"
  },
  {
    "expression": {
      "endPosition": "147",
      "kind": "IDENTIFIER",
      "name": "array",
      "startPosition": "142"
    },
    "endPosition": "159",
    "kind": "ARRAY_ACCESS",
    "index": {
      "expression": {
        "endPosition": "153",
        "kind": "IDENTIFIER",
        "name": "array",
        "startPosition": "148"
      },
      "endPosition": "158",
      "kind": "ARRAY_ACCESS",
      "index": {
        "endPosition": "157",
        "kind": "IDENTIFIER",
        "name": "NaN",
        "startPosition": "154"
      },
      "startPosition": "148"
    },
    "startPosition": "142"
  }
]