jdk-24/nashorn/test/script/nosecurity/treeapi/property.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

93 lines
1.8 KiB
Plaintext

[
{
"getter": "null",
"endPosition": "17",
"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": "31",
"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": "46",
"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": "69",
"kind": "PROPERTY",
"setter": "null",
"value": {
"endPosition": "72",
"kind": "OBJECT_LITERAL",
"startPosition": "70",
"properties": []
},
"startPosition": "64",
"key": {
"endPosition": "68",
"kind": "IDENTIFIER",
"name": "fo42",
"startPosition": "64"
}
}
]