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

[
  {
    "getter": "null",
    "endPosition": "22",
    "kind": "PROPERTY",
    "setter": "null",
    "value": {
      "endPosition": "22",
      "kind": "STRING_LITERAL",
      "value": "test",
      "startPosition": "18"
    },
    "startPosition": "12",
    "key": {
      "endPosition": "15",
      "kind": "IDENTIFIER",
      "name": "foo",
      "startPosition": "12"
    }
  },
  {
    "getter": "null",
    "endPosition": "38",
    "kind": "PROPERTY",
    "setter": "null",
    "value": {
      "endPosition": "38",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "36",
        "kind": "IDENTIFIER",
        "name": "call",
        "startPosition": "32"
      },
      "arguments": [],
      "startPosition": "32"
    },
    "startPosition": "26",
    "key": {
      "endPosition": "30",
      "kind": "IDENTIFIER",
      "name": "_foo",
      "startPosition": "26"
    }
  },
  {
    "getter": "null",
    "endPosition": "61",
    "kind": "PROPERTY",
    "setter": "null",
    "value": {
      "endPosition": "59",
      "kind": "FUNCTION_EXPRESSION",
      "name": "null",
      "body": {
        "endPosition": "60",
        "kind": "BLOCK",
        "statements": [],
        "startPosition": "59"
      },
      "strict": "false",
      "startPosition": "59",
      "parameters": []
    },
    "startPosition": "41",
    "key": {
      "endPosition": "45",
      "kind": "IDENTIFIER",
      "name": "$foo",
      "startPosition": "41"
    }
  },
  {
    "getter": "null",
    "endPosition": "72",
    "kind": "PROPERTY",
    "setter": "null",
    "value": {
      "endPosition": "72",
      "kind": "OBJECT_LITERAL",
      "startPosition": "70",
      "properties": []
    },
    "startPosition": "64",
    "key": {
      "endPosition": "68",
      "kind": "IDENTIFIER",
      "name": "fo42",
      "startPosition": "64"
    }
  }
]