nashorn/test/script/nosecurity/treeapi/while.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

[
  {
    "condition": {
      "endPosition": "11",
      "kind": "BOOLEAN_LITERAL",
      "value": "true",
      "startPosition": "7"
    },
    "endPosition": "13",
    "kind": "WHILE_LOOP",
    "statement": {
      "endPosition": "13",
      "kind": "EMPTY_STATEMENT",
      "startPosition": "12"
    },
    "startPosition": "1"
  },
  {
    "condition": {
      "endPosition": "25",
      "kind": "BOOLEAN_LITERAL",
      "value": "false",
      "startPosition": "20"
    },
    "endPosition": "29",
    "kind": "WHILE_LOOP",
    "statement": {
      "endPosition": "29",
      "kind": "BLOCK",
      "statements": [],
      "startPosition": "27"
    },
    "startPosition": "14"
  },
  {
    "condition": {
      "leftOperand": {
        "endPosition": "37",
        "kind": "NUMBER_LITERAL",
        "value": "2",
        "startPosition": "36"
      },
      "endPosition": "41",
      "kind": "GREATER_THAN",
      "rightOperand": {
        "endPosition": "41",
        "kind": "NUMBER_LITERAL",
        "value": "1",
        "startPosition": "40"
      },
      "startPosition": "36"
    },
    "endPosition": "45",
    "kind": "WHILE_LOOP",
    "statement": {
      "endPosition": "45",
      "kind": "BLOCK",
      "statements": [],
      "startPosition": "43"
    },
    "startPosition": "30"
  },
  {
    "condition": {
      "endPosition": "63",
      "kind": "FUNCTION_INVOCATION",
      "functionSelect": {
        "endPosition": "61",
        "kind": "IDENTIFIER",
        "name": "fun",
        "startPosition": "58"
      },
      "arguments": [],
      "startPosition": "58"
    },
    "endPosition": "79",
    "kind": "WHILE_LOOP",
    "statement": {
      "endPosition": "79",
      "kind": "BLOCK",
      "statements": [
        {
          "endPosition": "78",
          "kind": "BREAK",
          "label": "label",
          "startPosition": "67"
        }
      ],
      "startPosition": "65"
    },
    "startPosition": "52"
  },
  {
    "condition": {
      "expression": {
        "endPosition": "98",
        "kind": "FUNCTION_INVOCATION",
        "functionSelect": {
          "endPosition": "96",
          "kind": "IDENTIFIER",
          "name": "fun",
          "startPosition": "93"
        },
        "arguments": [],
        "startPosition": "93"
      },
      "endPosition": "98",
      "kind": "LOGICAL_COMPLEMENT",
      "startPosition": "92"
    },
    "endPosition": "115",
    "kind": "WHILE_LOOP",
    "statement": {
      "endPosition": "115",
      "kind": "CONTINUE",
      "label": "label",
      "startPosition": "100"
    },
    "startPosition": "86"
  },
  {
    "condition": {
      "endPosition": "126",
      "kind": "BOOLEAN_LITERAL",
      "value": "true",
      "startPosition": "122"
    },
    "endPosition": "136",
    "kind": "WHILE_LOOP",
    "statement": {
      "endPosition": "136",
      "kind": "CONTINUE",
      "label": "null",
      "startPosition": "128"
    },
    "startPosition": "116"
  }
]