jdk-24/nashorn/test/script/nosecurity/treeapi/destructuring_assign.js.EXPECTED
Athijegannathan Sundararajan 4597649209 8149929: Nashorn Parser API needs to be updated for ES6
Reviewed-by: mhaupt, hannesw
2016-07-12 21:18:13 +05:30

165 lines
3.6 KiB
Plaintext

[
{
"endPosition": "6",
"kind": "VARIABLE",
"binding": {
"endPosition": "6",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "5"
},
"startPosition": "1",
"initializer": "null"
},
{
"endPosition": "9",
"kind": "VARIABLE",
"binding": {
"endPosition": "9",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "8"
},
"startPosition": "1",
"initializer": "null"
},
{
"expression": {
"endPosition": "26",
"kind": "ARRAY_LITERAL",
"elements": [
{
"endPosition": "22",
"kind": "NUMBER_LITERAL",
"value": "1",
"startPosition": "21"
},
{
"endPosition": "25",
"kind": "NUMBER_LITERAL",
"value": "2",
"startPosition": "24"
}
],
"startPosition": "20"
},
"endPosition": "26",
"kind": "ASSIGNMENT",
"variable": {
"endPosition": "17",
"kind": "ARRAY_LITERAL",
"elements": [
{
"endPosition": "13",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "12"
},
{
"endPosition": "16",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "15"
}
],
"startPosition": "11"
},
"startPosition": "11"
},
{
"expression": {
"endPosition": "50",
"kind": "OBJECT_LITERAL",
"startPosition": "38",
"properties": [
{
"getter": "null",
"endPosition": "43",
"kind": "PROPERTY",
"setter": "null",
"value": {
"endPosition": "43",
"kind": "NUMBER_LITERAL",
"value": "11",
"startPosition": "41"
},
"startPosition": "39",
"key": {
"endPosition": "40",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "39"
}
},
{
"getter": "null",
"endPosition": "49",
"kind": "PROPERTY",
"setter": "null",
"value": {
"endPosition": "49",
"kind": "NUMBER_LITERAL",
"value": "12",
"startPosition": "47"
},
"startPosition": "45",
"key": {
"endPosition": "46",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "45"
}
}
]
},
"endPosition": "50",
"kind": "ASSIGNMENT",
"variable": {
"endPosition": "35",
"kind": "OBJECT_LITERAL",
"startPosition": "29",
"properties": [
{
"getter": "null",
"endPosition": "31",
"kind": "PROPERTY",
"setter": "null",
"value": {
"endPosition": "31",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "30"
},
"startPosition": "30",
"key": {
"endPosition": "31",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "30"
}
},
{
"getter": "null",
"endPosition": "34",
"kind": "PROPERTY",
"setter": "null",
"value": {
"endPosition": "34",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "33"
},
"startPosition": "33",
"key": {
"endPosition": "34",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "33"
}
}
]
},
"startPosition": "29"
}
]