nashorn/test/script/nosecurity/treeapi/while.js.EXPECTED
author slugovoy
Fri, 20 Mar 2015 13:19:47 +0300
changeset 29543 4d9f8f8b69a4
permissions -rw-r--r--
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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29543
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     1
[
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     2
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     3
    "condition": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     4
      "endPosition": "11",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     5
      "kind": "BOOLEAN_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     6
      "value": "true",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     7
      "startPosition": "7"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     8
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     9
    "endPosition": "13",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    10
    "kind": "WHILE_LOOP",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    11
    "statement": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    12
      "endPosition": "13",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    13
      "kind": "EMPTY_STATEMENT",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    14
      "startPosition": "12"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    15
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    16
    "startPosition": "1"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    17
  },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    18
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    19
    "condition": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    20
      "endPosition": "25",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    21
      "kind": "BOOLEAN_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    22
      "value": "false",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    23
      "startPosition": "20"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    24
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    25
    "endPosition": "29",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    26
    "kind": "WHILE_LOOP",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    27
    "statement": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    28
      "endPosition": "29",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    29
      "kind": "BLOCK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    30
      "statements": [],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    31
      "startPosition": "27"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    32
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    33
    "startPosition": "14"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    34
  },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    35
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    36
    "condition": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    37
      "leftOperand": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    38
        "endPosition": "37",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    39
        "kind": "NUMBER_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    40
        "value": "2",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    41
        "startPosition": "36"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    42
      },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    43
      "endPosition": "41",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    44
      "kind": "GREATER_THAN",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    45
      "rightOperand": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    46
        "endPosition": "41",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    47
        "kind": "NUMBER_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    48
        "value": "1",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    49
        "startPosition": "40"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    50
      },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    51
      "startPosition": "36"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    52
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    53
    "endPosition": "45",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    54
    "kind": "WHILE_LOOP",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    55
    "statement": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    56
      "endPosition": "45",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    57
      "kind": "BLOCK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    58
      "statements": [],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    59
      "startPosition": "43"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    60
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    61
    "startPosition": "30"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    62
  },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    63
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    64
    "condition": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    65
      "endPosition": "63",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    66
      "kind": "FUNCTION_INVOCATION",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    67
      "functionSelect": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    68
        "endPosition": "61",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    69
        "kind": "IDENTIFIER",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    70
        "name": "fun",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    71
        "startPosition": "58"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    72
      },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    73
      "arguments": [],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    74
      "startPosition": "58"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    75
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    76
    "endPosition": "79",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    77
    "kind": "WHILE_LOOP",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    78
    "statement": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    79
      "endPosition": "79",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    80
      "kind": "BLOCK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    81
      "statements": [
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    82
        {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    83
          "endPosition": "78",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    84
          "kind": "BREAK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    85
          "label": "label",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    86
          "startPosition": "67"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    87
        }
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    88
      ],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    89
      "startPosition": "65"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    90
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    91
    "startPosition": "52"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    92
  },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    93
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    94
    "condition": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    95
      "expression": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    96
        "endPosition": "98",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    97
        "kind": "FUNCTION_INVOCATION",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    98
        "functionSelect": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    99
          "endPosition": "96",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   100
          "kind": "IDENTIFIER",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   101
          "name": "fun",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   102
          "startPosition": "93"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   103
        },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   104
        "arguments": [],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   105
        "startPosition": "93"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   106
      },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   107
      "endPosition": "98",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   108
      "kind": "LOGICAL_COMPLEMENT",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   109
      "startPosition": "92"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   110
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   111
    "endPosition": "115",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   112
    "kind": "WHILE_LOOP",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   113
    "statement": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   114
      "endPosition": "115",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   115
      "kind": "CONTINUE",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   116
      "label": "label",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   117
      "startPosition": "100"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   118
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   119
    "startPosition": "86"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   120
  },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   121
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   122
    "condition": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   123
      "endPosition": "126",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   124
      "kind": "BOOLEAN_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   125
      "value": "true",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   126
      "startPosition": "122"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   127
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   128
    "endPosition": "136",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   129
    "kind": "WHILE_LOOP",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   130
    "statement": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   131
      "endPosition": "136",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   132
      "kind": "CONTINUE",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   133
      "label": "null",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   134
      "startPosition": "128"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   135
    },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   136
    "startPosition": "116"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   137
  }
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
   138
]