nashorn/test/script/nosecurity/treeapi/objectLiteral.js.EXPECTED
changeset 29543 4d9f8f8b69a4
child 37732 3673fec68d16
equal deleted inserted replaced
29542:8a8ef9c75d2e 29543:4d9f8f8b69a4
       
     1 [
       
     2   {
       
     3     "endPosition": "14",
       
     4     "kind": "OBJECT_LITERAL",
       
     5     "startPosition": "2",
       
     6     "properties": [
       
     7       {
       
     8         "getter": "null",
       
     9         "endPosition": "8",
       
    10         "kind": "PROPERTY",
       
    11         "setter": "null",
       
    12         "value": {
       
    13           "endPosition": "12",
       
    14           "kind": "NUMBER_LITERAL",
       
    15           "value": "343",
       
    16           "startPosition": "9"
       
    17         },
       
    18         "startPosition": "4",
       
    19         "key": {
       
    20           "endPosition": "7",
       
    21           "kind": "IDENTIFIER",
       
    22           "name": "foo",
       
    23           "startPosition": "4"
       
    24         }
       
    25       }
       
    26     ]
       
    27   },
       
    28   {
       
    29     "endPosition": "24",
       
    30     "kind": "OBJECT_LITERAL",
       
    31     "startPosition": "22",
       
    32     "properties": []
       
    33   },
       
    34   {
       
    35     "endPosition": "45",
       
    36     "kind": "OBJECT_LITERAL",
       
    37     "startPosition": "30",
       
    38     "properties": [
       
    39       {
       
    40         "getter": "null",
       
    41         "endPosition": "34",
       
    42         "kind": "PROPERTY",
       
    43         "setter": "null",
       
    44         "value": {
       
    45           "endPosition": "37",
       
    46           "kind": "NUMBER_LITERAL",
       
    47           "value": "10",
       
    48           "startPosition": "35"
       
    49         },
       
    50         "startPosition": "32",
       
    51         "key": {
       
    52           "endPosition": "33",
       
    53           "kind": "IDENTIFIER",
       
    54           "name": "x",
       
    55           "startPosition": "32"
       
    56         }
       
    57       },
       
    58       {
       
    59         "getter": "null",
       
    60         "endPosition": "41",
       
    61         "kind": "PROPERTY",
       
    62         "setter": "null",
       
    63         "value": {
       
    64           "endPosition": "43",
       
    65           "kind": "NUMBER_LITERAL",
       
    66           "value": "2",
       
    67           "startPosition": "42"
       
    68         },
       
    69         "startPosition": "39",
       
    70         "key": {
       
    71           "endPosition": "40",
       
    72           "kind": "IDENTIFIER",
       
    73           "name": "y",
       
    74           "startPosition": "39"
       
    75         }
       
    76       }
       
    77     ]
       
    78   },
       
    79   {
       
    80     "endPosition": "70",
       
    81     "kind": "OBJECT_LITERAL",
       
    82     "startPosition": "51",
       
    83     "properties": [
       
    84       {
       
    85         "getter": "null",
       
    86         "endPosition": "57",
       
    87         "kind": "PROPERTY",
       
    88         "setter": "null",
       
    89         "value": {
       
    90           "endPosition": "60",
       
    91           "kind": "NUMBER_LITERAL",
       
    92           "value": "10",
       
    93           "startPosition": "58"
       
    94         },
       
    95         "startPosition": "54",
       
    96         "key": {
       
    97           "endPosition": "55",
       
    98           "kind": "STRING_LITERAL",
       
    99           "value": "x",
       
   100           "startPosition": "54"
       
   101         }
       
   102       },
       
   103       {
       
   104         "getter": "null",
       
   105         "endPosition": "66",
       
   106         "kind": "PROPERTY",
       
   107         "setter": "null",
       
   108         "value": {
       
   109           "endPosition": "68",
       
   110           "kind": "NUMBER_LITERAL",
       
   111           "value": "2",
       
   112           "startPosition": "67"
       
   113         },
       
   114         "startPosition": "63",
       
   115         "key": {
       
   116           "endPosition": "64",
       
   117           "kind": "STRING_LITERAL",
       
   118           "value": "y",
       
   119           "startPosition": "63"
       
   120         }
       
   121       }
       
   122     ]
       
   123   },
       
   124   {
       
   125     "endPosition": "132",
       
   126     "kind": "OBJECT_LITERAL",
       
   127     "startPosition": "76",
       
   128     "properties": [
       
   129       {
       
   130         "getter": {
       
   131           "endPosition": "86",
       
   132           "kind": "FUNCTION_EXPRESSION",
       
   133           "name": "null",
       
   134           "body": {
       
   135             "endPosition": "101",
       
   136             "kind": "BLOCK",
       
   137             "statements": [
       
   138               {
       
   139                 "expression": {
       
   140                   "endPosition": "101",
       
   141                   "kind": "IDENTIFIER",
       
   142                   "name": "xValue",
       
   143                   "startPosition": "95"
       
   144                 },
       
   145                 "endPosition": "101",
       
   146                 "kind": "RETURN",
       
   147                 "startPosition": "88"
       
   148               }
       
   149             ],
       
   150             "startPosition": "86"
       
   151           },
       
   152           "strict": "false",
       
   153           "startPosition": "86",
       
   154           "parameters": []
       
   155         },
       
   156         "endPosition": "103",
       
   157         "kind": "PROPERTY",
       
   158         "setter": "null",
       
   159         "value": "null",
       
   160         "startPosition": "78",
       
   161         "key": {
       
   162           "endPosition": "83",
       
   163           "kind": "IDENTIFIER",
       
   164           "name": "x",
       
   165           "startPosition": "82"
       
   166         }
       
   167       },
       
   168       {
       
   169         "getter": {
       
   170           "endPosition": "113",
       
   171           "kind": "FUNCTION_EXPRESSION",
       
   172           "name": "null",
       
   173           "body": {
       
   174             "endPosition": "128",
       
   175             "kind": "BLOCK",
       
   176             "statements": [
       
   177               {
       
   178                 "expression": {
       
   179                   "endPosition": "128",
       
   180                   "kind": "IDENTIFIER",
       
   181                   "name": "yValue",
       
   182                   "startPosition": "122"
       
   183                 },
       
   184                 "endPosition": "128",
       
   185                 "kind": "RETURN",
       
   186                 "startPosition": "115"
       
   187               }
       
   188             ],
       
   189             "startPosition": "113"
       
   190           },
       
   191           "strict": "false",
       
   192           "startPosition": "113",
       
   193           "parameters": []
       
   194         },
       
   195         "endPosition": "130",
       
   196         "kind": "PROPERTY",
       
   197         "setter": "null",
       
   198         "value": "null",
       
   199         "startPosition": "105",
       
   200         "key": {
       
   201           "endPosition": "110",
       
   202           "kind": "IDENTIFIER",
       
   203           "name": "y",
       
   204           "startPosition": "109"
       
   205         }
       
   206       }
       
   207     ]
       
   208   },
       
   209   {
       
   210     "endPosition": "206",
       
   211     "kind": "OBJECT_LITERAL",
       
   212     "startPosition": "138",
       
   213     "properties": [
       
   214       {
       
   215         "getter": {
       
   216           "endPosition": "150",
       
   217           "kind": "FUNCTION_EXPRESSION",
       
   218           "name": "null",
       
   219           "body": {
       
   220             "endPosition": "168",
       
   221             "kind": "BLOCK",
       
   222             "statements": [
       
   223               {
       
   224                 "expression": {
       
   225                   "identifier": "_foo",
       
   226                   "expression": {
       
   227                     "endPosition": "163",
       
   228                     "kind": "IDENTIFIER",
       
   229                     "name": "this",
       
   230                     "startPosition": "159"
       
   231                   },
       
   232                   "endPosition": "168",
       
   233                   "kind": "MEMBER_SELECT",
       
   234                   "startPosition": "159"
       
   235                 },
       
   236                 "endPosition": "168",
       
   237                 "kind": "RETURN",
       
   238                 "startPosition": "152"
       
   239               }
       
   240             ],
       
   241             "startPosition": "150"
       
   242           },
       
   243           "strict": "false",
       
   244           "startPosition": "150",
       
   245           "parameters": []
       
   246         },
       
   247         "endPosition": "170",
       
   248         "kind": "PROPERTY",
       
   249         "setter": {
       
   250           "endPosition": "185",
       
   251           "kind": "FUNCTION_EXPRESSION",
       
   252           "name": "null",
       
   253           "body": {
       
   254             "endPosition": "202",
       
   255             "kind": "BLOCK",
       
   256             "statements": [
       
   257               {
       
   258                 "expression": {
       
   259                   "expression": {
       
   260                     "endPosition": "202",
       
   261                     "kind": "IDENTIFIER",
       
   262                     "name": "val",
       
   263                     "startPosition": "199"
       
   264                   },
       
   265                   "endPosition": "202",
       
   266                   "kind": "ASSIGNMENT",
       
   267                   "variable": {
       
   268                     "identifier": "_foo",
       
   269                     "expression": {
       
   270                       "endPosition": "191",
       
   271                       "kind": "IDENTIFIER",
       
   272                       "name": "this",
       
   273                       "startPosition": "187"
       
   274                     },
       
   275                     "endPosition": "196",
       
   276                     "kind": "MEMBER_SELECT",
       
   277                     "startPosition": "187"
       
   278                   },
       
   279                   "startPosition": "187"
       
   280                 },
       
   281                 "endPosition": "202",
       
   282                 "kind": "EXPRESSION_STATEMENT",
       
   283                 "startPosition": "187"
       
   284               }
       
   285             ],
       
   286             "startPosition": "185"
       
   287           },
       
   288           "strict": "false",
       
   289           "startPosition": "185",
       
   290           "parameters": [
       
   291             {
       
   292               "endPosition": "183",
       
   293               "kind": "IDENTIFIER",
       
   294               "name": "val",
       
   295               "startPosition": "180"
       
   296             }
       
   297           ]
       
   298         },
       
   299         "value": "null",
       
   300         "startPosition": "140",
       
   301         "key": {
       
   302           "endPosition": "147",
       
   303           "kind": "IDENTIFIER",
       
   304           "name": "foo",
       
   305           "startPosition": "144"
       
   306         }
       
   307       }
       
   308     ]
       
   309   }
       
   310 ]