nashorn/test/script/nosecurity/treeapi/array_access.js.EXPECTED
author hannesw
Thu, 10 Aug 2017 15:19:17 +0200
changeset 46169 b385216af0ed
parent 29543 4d9f8f8b69a4
permissions -rw-r--r--
8185252: Unary minus and plus use wrong node Kind Reviewed-by: sundar, hannesw Contributed-by: priya.lakshmi.muthuswamy@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": "UNARY_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"
  }
]