nashorn/test/script/nosecurity/treeapi/block.js.EXPECTED
author hannesw
Wed, 27 Apr 2016 15:50:33 +0200
changeset 37732 3673fec68d16
parent 29543 4d9f8f8b69a4
permissions -rw-r--r--
8134503: support ES6 parsing in Nashorn Reviewed-by: jlaskey, sundar, mhaupt Contributed-by: andreas.woess@oracle.com
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
    "endPosition": "2",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     4
    "kind": "BLOCK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     5
    "statements": [],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     6
    "startPosition": "0"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
     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": "22",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    10
    "kind": "BLOCK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    11
    "statements": [
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    12
      {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    13
        "expression": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    14
          "endPosition": "19",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    15
          "kind": "FUNCTION_INVOCATION",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    16
          "functionSelect": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    17
            "endPosition": "10",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    18
            "kind": "IDENTIFIER",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    19
            "name": "print",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    20
            "startPosition": "5"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    21
          },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    22
          "arguments": [
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    23
            {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    24
              "endPosition": "17",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    25
              "kind": "STRING_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    26
              "value": "hello",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    27
              "startPosition": "12"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    28
            }
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    29
          ],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    30
          "startPosition": "5"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    31
        },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    32
        "endPosition": "19",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    33
        "kind": "EXPRESSION_STATEMENT",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    34
        "startPosition": "5"
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
    ],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    37
    "startPosition": "3"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    38
  },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    39
  {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    40
    "endPosition": "56",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    41
    "kind": "BLOCK",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    42
    "statements": [
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    43
      {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    44
        "expression": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    45
          "leftOperand": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    46
            "endPosition": "51",
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": "2",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    49
            "startPosition": "50"
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
          "endPosition": "55",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    52
          "kind": "PLUS",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    53
          "rightOperand": {
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    54
            "endPosition": "55",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    55
            "kind": "NUMBER_LITERAL",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    56
            "value": "1",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    57
            "startPosition": "54"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    58
          },
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    59
          "startPosition": "50"
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
        "endPosition": "56",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    62
        "kind": "RETURN",
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    63
        "startPosition": "43"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    64
      }
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    65
    ],
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    66
    "startPosition": "37"
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    67
  }
4d9f8f8b69a4 8068306: Tests for AST presentation Nashorn Parser API
slugovoy
parents:
diff changeset
    68
]