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
139 lines
2.9 KiB
Plaintext
139 lines
2.9 KiB
Plaintext
[
|
|
{
|
|
"condition": {
|
|
"endPosition": "11",
|
|
"kind": "BOOLEAN_LITERAL",
|
|
"value": "true",
|
|
"startPosition": "7"
|
|
},
|
|
"endPosition": "13",
|
|
"kind": "WHILE_LOOP",
|
|
"statement": {
|
|
"endPosition": "13",
|
|
"kind": "EMPTY_STATEMENT",
|
|
"startPosition": "12"
|
|
},
|
|
"startPosition": "1"
|
|
},
|
|
{
|
|
"condition": {
|
|
"endPosition": "25",
|
|
"kind": "BOOLEAN_LITERAL",
|
|
"value": "false",
|
|
"startPosition": "20"
|
|
},
|
|
"endPosition": "29",
|
|
"kind": "WHILE_LOOP",
|
|
"statement": {
|
|
"endPosition": "29",
|
|
"kind": "BLOCK",
|
|
"statements": [],
|
|
"startPosition": "27"
|
|
},
|
|
"startPosition": "14"
|
|
},
|
|
{
|
|
"condition": {
|
|
"leftOperand": {
|
|
"endPosition": "37",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "2",
|
|
"startPosition": "36"
|
|
},
|
|
"endPosition": "41",
|
|
"kind": "GREATER_THAN",
|
|
"rightOperand": {
|
|
"endPosition": "41",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "1",
|
|
"startPosition": "40"
|
|
},
|
|
"startPosition": "36"
|
|
},
|
|
"endPosition": "45",
|
|
"kind": "WHILE_LOOP",
|
|
"statement": {
|
|
"endPosition": "45",
|
|
"kind": "BLOCK",
|
|
"statements": [],
|
|
"startPosition": "43"
|
|
},
|
|
"startPosition": "30"
|
|
},
|
|
{
|
|
"condition": {
|
|
"endPosition": "63",
|
|
"kind": "FUNCTION_INVOCATION",
|
|
"functionSelect": {
|
|
"endPosition": "61",
|
|
"kind": "IDENTIFIER",
|
|
"name": "fun",
|
|
"startPosition": "58"
|
|
},
|
|
"arguments": [],
|
|
"startPosition": "58"
|
|
},
|
|
"endPosition": "79",
|
|
"kind": "WHILE_LOOP",
|
|
"statement": {
|
|
"endPosition": "79",
|
|
"kind": "BLOCK",
|
|
"statements": [
|
|
{
|
|
"endPosition": "78",
|
|
"kind": "BREAK",
|
|
"label": "label",
|
|
"startPosition": "67"
|
|
}
|
|
],
|
|
"startPosition": "65"
|
|
},
|
|
"startPosition": "52"
|
|
},
|
|
{
|
|
"condition": {
|
|
"expression": {
|
|
"endPosition": "98",
|
|
"kind": "FUNCTION_INVOCATION",
|
|
"functionSelect": {
|
|
"endPosition": "96",
|
|
"kind": "IDENTIFIER",
|
|
"name": "fun",
|
|
"startPosition": "93"
|
|
},
|
|
"arguments": [],
|
|
"startPosition": "93"
|
|
},
|
|
"endPosition": "98",
|
|
"kind": "LOGICAL_COMPLEMENT",
|
|
"startPosition": "92"
|
|
},
|
|
"endPosition": "115",
|
|
"kind": "WHILE_LOOP",
|
|
"statement": {
|
|
"endPosition": "115",
|
|
"kind": "CONTINUE",
|
|
"label": "label",
|
|
"startPosition": "100"
|
|
},
|
|
"startPosition": "86"
|
|
},
|
|
{
|
|
"condition": {
|
|
"endPosition": "126",
|
|
"kind": "BOOLEAN_LITERAL",
|
|
"value": "true",
|
|
"startPosition": "122"
|
|
},
|
|
"endPosition": "136",
|
|
"kind": "WHILE_LOOP",
|
|
"statement": {
|
|
"endPosition": "136",
|
|
"kind": "CONTINUE",
|
|
"label": "null",
|
|
"startPosition": "128"
|
|
},
|
|
"startPosition": "116"
|
|
}
|
|
]
|