jdk-24/nashorn/test/script/nosecurity/treeapi/array_access.js.EXPECTED
Sergey Lugovoy b7d77b1297 8068306: Tests for AST presentation Nashorn Parser API
8068304: Tests for Diagnostic listener for Nashorn Parser API
8068303: Create tests for Nashorn Parser API for create Tree from some different source and parameters

Reviewed-by: sundar, lagergren
2015-03-20 13:19:47 +03:00

110 lines
2.2 KiB
Plaintext

[
{
"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"
}
]