nashorn/test/script/nosecurity/treeapi/defaultparams.js.EXPECTED
changeset 39662 e2b36a3779b9
equal deleted inserted replaced
39604:8e45018bde9d 39662:e2b36a3779b9
       
     1 [
       
     2   {
       
     3     "endPosition": "46",
       
     4     "kind": "FUNCTION",
       
     5     "name": {
       
     6       "endPosition": "14",
       
     7       "kind": "IDENTIFIER",
       
     8       "name": "func",
       
     9       "startPosition": "10"
       
    10     },
       
    11     "body": {
       
    12       "endPosition": "44",
       
    13       "kind": "BLOCK",
       
    14       "statements": [
       
    15         {
       
    16           "expression": {
       
    17             "leftOperand": {
       
    18               "endPosition": "39",
       
    19               "kind": "IDENTIFIER",
       
    20               "name": "x",
       
    21               "startPosition": "38"
       
    22             },
       
    23             "endPosition": "43",
       
    24             "kind": "PLUS",
       
    25             "rightOperand": {
       
    26               "endPosition": "43",
       
    27               "kind": "IDENTIFIER",
       
    28               "name": "y",
       
    29               "startPosition": "42"
       
    30             },
       
    31             "startPosition": "38"
       
    32           },
       
    33           "endPosition": "44",
       
    34           "kind": "RETURN",
       
    35           "startPosition": "31"
       
    36         }
       
    37       ],
       
    38       "startPosition": "25"
       
    39     },
       
    40     "strict": "false",
       
    41     "startPosition": "1",
       
    42     "parameters": [
       
    43       {
       
    44         "expression": {
       
    45           "endPosition": "20",
       
    46           "kind": "NUMBER_LITERAL",
       
    47           "value": "3",
       
    48           "startPosition": "19"
       
    49         },
       
    50         "endPosition": "20",
       
    51         "kind": "ASSIGNMENT",
       
    52         "variable": {
       
    53           "endPosition": "16",
       
    54           "kind": "IDENTIFIER",
       
    55           "name": "x",
       
    56           "startPosition": "15"
       
    57         },
       
    58         "startPosition": "15"
       
    59       },
       
    60       {
       
    61         "endPosition": "23",
       
    62         "kind": "IDENTIFIER",
       
    63         "name": "y",
       
    64         "startPosition": "22"
       
    65       }
       
    66     ]
       
    67   },
       
    68   {
       
    69     "endPosition": "96",
       
    70     "kind": "VARIABLE",
       
    71     "binding": {
       
    72       "endPosition": "53",
       
    73       "kind": "IDENTIFIER",
       
    74       "name": "f",
       
    75       "startPosition": "52"
       
    76     },
       
    77     "startPosition": "48",
       
    78     "initializer": {
       
    79       "endPosition": "80",
       
    80       "kind": "FUNCTION_EXPRESSION",
       
    81       "name": "null",
       
    82       "body": {
       
    83         "endPosition": "94",
       
    84         "kind": "BLOCK",
       
    85         "statements": [
       
    86           {
       
    87             "expression": {
       
    88               "leftOperand": {
       
    89                 "endPosition": "90",
       
    90                 "kind": "IDENTIFIER",
       
    91                 "name": "x",
       
    92                 "startPosition": "89"
       
    93               },
       
    94               "endPosition": "94",
       
    95               "kind": "MULTIPLY",
       
    96               "rightOperand": {
       
    97                 "endPosition": "94",
       
    98                 "kind": "IDENTIFIER",
       
    99                 "name": "y",
       
   100                 "startPosition": "93"
       
   101               },
       
   102               "startPosition": "89"
       
   103             },
       
   104             "endPosition": "94",
       
   105             "kind": "RETURN",
       
   106             "startPosition": "82"
       
   107           }
       
   108         ],
       
   109         "startPosition": "80"
       
   110       },
       
   111       "strict": "false",
       
   112       "startPosition": "80",
       
   113       "parameters": [
       
   114         {
       
   115           "expression": {
       
   116             "endPosition": "71",
       
   117             "kind": "NUMBER_LITERAL",
       
   118             "value": "4",
       
   119             "startPosition": "70"
       
   120           },
       
   121           "endPosition": "71",
       
   122           "kind": "ASSIGNMENT",
       
   123           "variable": {
       
   124             "endPosition": "67",
       
   125             "kind": "IDENTIFIER",
       
   126             "name": "x",
       
   127             "startPosition": "66"
       
   128           },
       
   129           "startPosition": "66"
       
   130         },
       
   131         {
       
   132           "expression": {
       
   133             "endPosition": "78",
       
   134             "kind": "NUMBER_LITERAL",
       
   135             "value": "5",
       
   136             "startPosition": "77"
       
   137           },
       
   138           "endPosition": "78",
       
   139           "kind": "ASSIGNMENT",
       
   140           "variable": {
       
   141             "endPosition": "74",
       
   142             "kind": "IDENTIFIER",
       
   143             "name": "y",
       
   144             "startPosition": "73"
       
   145           },
       
   146           "startPosition": "73"
       
   147         }
       
   148       ]
       
   149     }
       
   150   }
       
   151 ]