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
150 lines
3.1 KiB
Plaintext
150 lines
3.1 KiB
Plaintext
[
|
|
{
|
|
"expression": {
|
|
"endPosition": "5",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "1",
|
|
"startPosition": "4"
|
|
},
|
|
"endPosition": "5",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "1",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "0"
|
|
},
|
|
"startPosition": "0"
|
|
},
|
|
{
|
|
"expression": {
|
|
"endPosition": "11",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "2",
|
|
"startPosition": "10"
|
|
},
|
|
"endPosition": "11",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "7",
|
|
"kind": "IDENTIFIER",
|
|
"name": "b",
|
|
"startPosition": "6"
|
|
},
|
|
"startPosition": "6"
|
|
},
|
|
{
|
|
"expression": {
|
|
"endPosition": "19",
|
|
"kind": "OBJECT_LITERAL",
|
|
"startPosition": "17",
|
|
"properties": []
|
|
},
|
|
"endPosition": "19",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "14",
|
|
"kind": "IDENTIFIER",
|
|
"name": "c",
|
|
"startPosition": "13"
|
|
},
|
|
"startPosition": "13"
|
|
},
|
|
{
|
|
"expression": {
|
|
"endPosition": "33",
|
|
"kind": "IDENTIFIER",
|
|
"name": "undefined",
|
|
"startPosition": "24"
|
|
},
|
|
"endPosition": "33",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "21",
|
|
"kind": "IDENTIFIER",
|
|
"name": "d",
|
|
"startPosition": "20"
|
|
},
|
|
"startPosition": "20"
|
|
},
|
|
{
|
|
"expression": {
|
|
"endPosition": "41",
|
|
"kind": "IDENTIFIER",
|
|
"name": "NaN",
|
|
"startPosition": "38"
|
|
},
|
|
"endPosition": "41",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "35",
|
|
"kind": "IDENTIFIER",
|
|
"name": "e",
|
|
"startPosition": "34"
|
|
},
|
|
"startPosition": "34"
|
|
},
|
|
{
|
|
"expression": {
|
|
"endPosition": "58",
|
|
"kind": "FUNCTION_EXPRESSION",
|
|
"name": "null",
|
|
"body": {
|
|
"endPosition": "59",
|
|
"kind": "BLOCK",
|
|
"statements": [],
|
|
"startPosition": "58"
|
|
},
|
|
"strict": "false",
|
|
"startPosition": "58",
|
|
"parameters": []
|
|
},
|
|
"endPosition": "58",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "43",
|
|
"kind": "IDENTIFIER",
|
|
"name": "f",
|
|
"startPosition": "42"
|
|
},
|
|
"startPosition": "42"
|
|
},
|
|
{
|
|
"expression": {
|
|
"endPosition": "77",
|
|
"kind": "FUNCTION_EXPRESSION",
|
|
"name": "null",
|
|
"body": {
|
|
"endPosition": "91",
|
|
"kind": "BLOCK",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"endPosition": "89",
|
|
"kind": "STRING_LITERAL",
|
|
"value": "use strict",
|
|
"startPosition": "79"
|
|
},
|
|
"endPosition": "89",
|
|
"kind": "EXPRESSION_STATEMENT",
|
|
"startPosition": "79"
|
|
}
|
|
],
|
|
"startPosition": "77"
|
|
},
|
|
"strict": "true",
|
|
"startPosition": "77",
|
|
"parameters": []
|
|
},
|
|
"endPosition": "77",
|
|
"kind": "ASSIGNMENT",
|
|
"variable": {
|
|
"endPosition": "62",
|
|
"kind": "IDENTIFIER",
|
|
"name": "g",
|
|
"startPosition": "61"
|
|
},
|
|
"startPosition": "61"
|
|
}
|
|
]
|