b7d77b1297
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
144 lines
3.4 KiB
Plaintext
144 lines
3.4 KiB
Plaintext
[
|
|
{
|
|
"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": "34",
|
|
"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",
|
|
"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"
|
|
}
|
|
]
|