8149929: Nashorn Parser API needs to be updated for ES6
Reviewed-by: mhaupt, hannesw
[
{
"endPosition": "23",
"kind": "WITH",
"scope": {
"endPosition": "12",
"kind": "IDENTIFIER",
"name": "scope",
"startPosition": "7"
},
"statement": {
"endPosition": "23",
"kind": "BLOCK",
"statements": [
{
"expression": {
"expression": {
"endPosition": "21",
"kind": "IDENTIFIER",
"name": "y",
"startPosition": "20"
},
"endPosition": "21",
"kind": "ASSIGNMENT",
"variable": {
"endPosition": "17",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "16"
},
"startPosition": "16"
},
"endPosition": "21",
"kind": "EXPRESSION_STATEMENT",
"startPosition": "16"
}
],
"startPosition": "14"
},
"startPosition": "1"
},
{
"endPosition": "51",
"kind": "WITH",
"scope": {
"endPosition": "41",
"kind": "OBJECT_LITERAL",
"startPosition": "31",
"properties": [
{
"getter": "null",
"endPosition": "39",
"kind": "PROPERTY",
"setter": "null",
"value": {
"endPosition": "39",
"kind": "STRING_LITERAL",
"value": "test",
"startPosition": "35"
},
"startPosition": "32",
"key": {
"endPosition": "33",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "32"
}
}
]
},
"statement": {
"expression": {
"endPosition": "51",
"kind": "FUNCTION_INVOCATION",
"functionSelect": {
"endPosition": "48",
"kind": "IDENTIFIER",
"name": "print",
"startPosition": "43"
},
"arguments": [
{
"endPosition": "50",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "49"
}
],
"startPosition": "43"
},
"endPosition": "51",
"kind": "EXPRESSION_STATEMENT",
"startPosition": "43"
},
"startPosition": "25"
},
{
"endPosition": "80",
"kind": "WITH",
"scope": {
"endPosition": "60",
"kind": "OBJECT_LITERAL",
"startPosition": "58",
"properties": []
},
"statement": {
"endPosition": "80",
"kind": "BLOCK",
"statements": [
{
"expression": {
"expression": {
"identifier": "x",
"expression": {
"endPosition": "76",
"kind": "IDENTIFIER",
"this": "true",
"name": "this",
"startPosition": "72"
},
"endPosition": "78",
"kind": "MEMBER_SELECT",
"startPosition": "72"
},
"endPosition": "78",
"kind": "ASSIGNMENT",
"variable": {
"endPosition": "69",
"kind": "IDENTIFIER",
"name": "z",
"startPosition": "68"
},
"startPosition": "68"
},
"endPosition": "78",
"kind": "EXPRESSION_STATEMENT",
"startPosition": "68"
}
],
"startPosition": "62"
},
"startPosition": "52"
}
]