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

162 lines
3.7 KiB
Plaintext

[
{
"endPosition": "17",
"kind": "FUNCTION",
"name": "a",
"body": {
"endPosition": "16",
"kind": "BLOCK",
"statements": [],
"startPosition": "15"
},
"strict": "false",
"startPosition": "1",
"parameters": []
},
{
"endPosition": "62",
"kind": "FUNCTION",
"name": "d",
"body": {
"endPosition": "60",
"kind": "BLOCK",
"statements": [
{
"endPosition": "60",
"kind": "FUNCTION",
"name": "e",
"body": {
"endPosition": "59",
"kind": "BLOCK",
"statements": [
{
"expression": {
"endPosition": "59",
"kind": "FUNCTION_INVOCATION",
"functionSelect": {
"endPosition": "56",
"kind": "IDENTIFIER",
"name": "print",
"startPosition": "51"
},
"arguments": [
{
"endPosition": "58",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "57"
}
],
"startPosition": "51"
},
"endPosition": "59",
"kind": "EXPRESSION_STATEMENT",
"startPosition": "51"
}
],
"startPosition": "50"
},
"strict": "false",
"startPosition": "36",
"parameters": []
}
],
"startPosition": "30"
},
"strict": "false",
"startPosition": "18",
"parameters": []
},
{
"endPosition": "89",
"kind": "FUNCTION",
"name": "f",
"body": {
"endPosition": "88",
"kind": "BLOCK",
"statements": [
{
"expression": {
"endPosition": "88",
"kind": "FUNCTION_INVOCATION",
"functionSelect": {
"endPosition": "85",
"kind": "IDENTIFIER",
"name": "print",
"startPosition": "80"
},
"arguments": [
{
"endPosition": "87",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "86"
}
],
"startPosition": "80"
},
"endPosition": "88",
"kind": "EXPRESSION_STATEMENT",
"startPosition": "80"
}
],
"startPosition": "79"
},
"strict": "false",
"startPosition": "63",
"parameters": [
{
"endPosition": "75",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "74"
},
{
"endPosition": "78",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "77"
}
]
},
{
"endPosition": "121",
"kind": "FUNCTION",
"name": "j",
"body": {
"endPosition": "120",
"kind": "BLOCK",
"statements": [
{
"expression": {
"endPosition": "118",
"kind": "STRING_LITERAL",
"value": "use strict",
"startPosition": "108"
},
"endPosition": "118",
"kind": "EXPRESSION_STATEMENT",
"startPosition": "108"
}
],
"startPosition": "106"
},
"strict": "true",
"startPosition": "90",
"parameters": [
{
"endPosition": "102",
"kind": "IDENTIFIER",
"name": "a",
"startPosition": "101"
},
{
"endPosition": "105",
"kind": "IDENTIFIER",
"name": "b",
"startPosition": "104"
}
]
}
]