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
225 lines
4.8 KiB
Plaintext
225 lines
4.8 KiB
Plaintext
[
|
|
{
|
|
"leftOperand": {
|
|
"endPosition": "2",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "1"
|
|
},
|
|
"expression": {
|
|
"endPosition": "2",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "1"
|
|
},
|
|
"endPosition": "19",
|
|
"kind": "INSTANCE_OF",
|
|
"rightOperand": {
|
|
"endPosition": "19",
|
|
"kind": "IDENTIFIER",
|
|
"name": "Array",
|
|
"startPosition": "14"
|
|
},
|
|
"type": {
|
|
"endPosition": "19",
|
|
"kind": "IDENTIFIER",
|
|
"name": "Array",
|
|
"startPosition": "14"
|
|
},
|
|
"startPosition": "1"
|
|
},
|
|
{
|
|
"leftOperand": {
|
|
"endPosition": "23",
|
|
"kind": "FUNCTION_INVOCATION",
|
|
"functionSelect": {
|
|
"endPosition": "21",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "20"
|
|
},
|
|
"arguments": [],
|
|
"startPosition": "20"
|
|
},
|
|
"expression": {
|
|
"endPosition": "23",
|
|
"kind": "FUNCTION_INVOCATION",
|
|
"functionSelect": {
|
|
"endPosition": "21",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "20"
|
|
},
|
|
"arguments": [],
|
|
"startPosition": "20"
|
|
},
|
|
"endPosition": "41",
|
|
"kind": "INSTANCE_OF",
|
|
"rightOperand": {
|
|
"endPosition": "41",
|
|
"kind": "IDENTIFIER",
|
|
"name": "Object",
|
|
"startPosition": "35"
|
|
},
|
|
"type": {
|
|
"endPosition": "41",
|
|
"kind": "IDENTIFIER",
|
|
"name": "Object",
|
|
"startPosition": "35"
|
|
},
|
|
"startPosition": "20"
|
|
},
|
|
{
|
|
"leftOperand": {
|
|
"endPosition": "43",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "1",
|
|
"startPosition": "42"
|
|
},
|
|
"expression": {
|
|
"endPosition": "43",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "1",
|
|
"startPosition": "42"
|
|
},
|
|
"endPosition": "56",
|
|
"kind": "INSTANCE_OF",
|
|
"rightOperand": {
|
|
"endPosition": "56",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "55"
|
|
},
|
|
"type": {
|
|
"endPosition": "56",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "55"
|
|
},
|
|
"startPosition": "42"
|
|
},
|
|
{
|
|
"leftOperand": {
|
|
"endPosition": "58",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "2",
|
|
"startPosition": "57"
|
|
},
|
|
"expression": {
|
|
"endPosition": "58",
|
|
"kind": "NUMBER_LITERAL",
|
|
"value": "2",
|
|
"startPosition": "57"
|
|
},
|
|
"endPosition": "73",
|
|
"kind": "INSTANCE_OF",
|
|
"rightOperand": {
|
|
"endPosition": "73",
|
|
"kind": "FUNCTION_INVOCATION",
|
|
"functionSelect": {
|
|
"endPosition": "71",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "70"
|
|
},
|
|
"arguments": [],
|
|
"startPosition": "70"
|
|
},
|
|
"type": {
|
|
"endPosition": "73",
|
|
"kind": "FUNCTION_INVOCATION",
|
|
"functionSelect": {
|
|
"endPosition": "71",
|
|
"kind": "IDENTIFIER",
|
|
"name": "a",
|
|
"startPosition": "70"
|
|
},
|
|
"arguments": [],
|
|
"startPosition": "70"
|
|
},
|
|
"startPosition": "57"
|
|
},
|
|
{
|
|
"leftOperand": {
|
|
"identifier": "prototype",
|
|
"expression": {
|
|
"endPosition": "75",
|
|
"kind": "IDENTIFIER",
|
|
"name": "C",
|
|
"startPosition": "74"
|
|
},
|
|
"endPosition": "85",
|
|
"kind": "MEMBER_SELECT",
|
|
"startPosition": "74"
|
|
},
|
|
"expression": {
|
|
"identifier": "prototype",
|
|
"expression": {
|
|
"endPosition": "75",
|
|
"kind": "IDENTIFIER",
|
|
"name": "C",
|
|
"startPosition": "74"
|
|
},
|
|
"endPosition": "85",
|
|
"kind": "MEMBER_SELECT",
|
|
"startPosition": "74"
|
|
},
|
|
"endPosition": "103",
|
|
"kind": "INSTANCE_OF",
|
|
"rightOperand": {
|
|
"endPosition": "103",
|
|
"kind": "IDENTIFIER",
|
|
"name": "Object",
|
|
"startPosition": "97"
|
|
},
|
|
"type": {
|
|
"endPosition": "103",
|
|
"kind": "IDENTIFIER",
|
|
"name": "Object",
|
|
"startPosition": "97"
|
|
},
|
|
"startPosition": "74"
|
|
},
|
|
{
|
|
"leftOperand": {
|
|
"endPosition": "108",
|
|
"kind": "STRING_LITERAL",
|
|
"value": "str",
|
|
"startPosition": "105"
|
|
},
|
|
"expression": {
|
|
"endPosition": "108",
|
|
"kind": "STRING_LITERAL",
|
|
"value": "str",
|
|
"startPosition": "105"
|
|
},
|
|
"endPosition": "131",
|
|
"kind": "INSTANCE_OF",
|
|
"rightOperand": {
|
|
"identifier": "member",
|
|
"expression": {
|
|
"endPosition": "124",
|
|
"kind": "IDENTIFIER",
|
|
"name": "obj",
|
|
"startPosition": "121"
|
|
},
|
|
"endPosition": "131",
|
|
"kind": "MEMBER_SELECT",
|
|
"startPosition": "121"
|
|
},
|
|
"type": {
|
|
"identifier": "member",
|
|
"expression": {
|
|
"endPosition": "124",
|
|
"kind": "IDENTIFIER",
|
|
"name": "obj",
|
|
"startPosition": "121"
|
|
},
|
|
"endPosition": "131",
|
|
"kind": "MEMBER_SELECT",
|
|
"startPosition": "121"
|
|
},
|
|
"startPosition": "105"
|
|
}
|
|
]
|