nashorn/test/script/nosecurity/treeapi/dowhile.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": "18",
      "kind": "BOOLEAN_LITERAL",
      "value": "false",
      "startPosition": "13"
    },
    "endPosition": "19",
    "kind": "DO_WHILE_LOOP",
    "statement": {
      "endPosition": "6",
      "kind": "BLOCK",
      "statements": [],
      "startPosition": "4"
    },
    "startPosition": "1"
  },
  {
    "condition": {
      "endPosition": "42",
      "kind": "BOOLEAN_LITERAL",
      "value": "true",
      "startPosition": "38"
    },
    "endPosition": "43",
    "kind": "DO_WHILE_LOOP",
    "statement": {
      "endPosition": "31",
      "kind": "BLOCK",
      "statements": [
        {
          "endPosition": "30",
          "kind": "BREAK",
          "label": "null",
          "startPosition": "24"
        }
      ],
      "startPosition": "23"
    },
    "startPosition": "20"
  },
  {
    "condition": {
      "leftOperand": {
        "endPosition": "76",
        "kind": "IDENTIFIER",
        "name": "a",
        "startPosition": "75"
      },
      "endPosition": "81",
      "kind": "EQUAL_TO",
      "rightOperand": {
        "endPosition": "81",
        "kind": "NUMBER_LITERAL",
        "value": "2",
        "startPosition": "80"
      },
      "startPosition": "75"
    },
    "endPosition": "82",
    "kind": "DO_WHILE_LOOP",
    "statement": {
      "endPosition": "68",
      "kind": "BLOCK",
      "statements": [
        {
          "endPosition": "67",
          "kind": "BREAK",
          "label": "label",
          "startPosition": "55"
        }
      ],
      "startPosition": "54"
    },
    "startPosition": "51"
  },
  {
    "condition": {
      "leftOperand": {
        "leftOperand": {
          "endPosition": "112",
          "kind": "IDENTIFIER",
          "name": "a",
          "startPosition": "111"
        },
        "endPosition": "116",
        "kind": "PLUS",
        "rightOperand": {
          "endPosition": "116",
          "kind": "IDENTIFIER",
          "name": "b",
          "startPosition": "115"
        },
        "startPosition": "111"
      },
      "endPosition": "121",
      "kind": "GREATER_THAN",
      "rightOperand": {
        "endPosition": "121",
        "kind": "NUMBER_LITERAL",
        "value": "20",
        "startPosition": "119"
      },
      "startPosition": "111"
    },
    "endPosition": "122",
    "kind": "DO_WHILE_LOOP",
    "statement": {
      "endPosition": "105",
      "kind": "BLOCK",
      "statements": [
        {
          "condition": {
            "endPosition": "103",
            "kind": "FUNCTION_INVOCATION",
            "functionSelect": {
              "endPosition": "101",
              "kind": "IDENTIFIER",
              "name": "func1",
              "startPosition": "96"
            },
            "arguments": [],
            "startPosition": "96"
          },
          "endPosition": "104",
          "kind": "DO_WHILE_LOOP",
          "statement": {
            "endPosition": "90",
            "kind": "BLOCK",
            "statements": [],
            "startPosition": "88"
          },
          "startPosition": "86"
        }
      ],
      "startPosition": "85"
    },
    "startPosition": "83"
  },
  {
    "condition": {
      "endPosition": "143",
      "kind": "IDENTIFIER",
      "name": "NaN",
      "startPosition": "140"
    },
    "endPosition": "144",
    "kind": "DO_WHILE_LOOP",
    "statement": {
      "expression": {
        "endPosition": "133",
        "kind": "FUNCTION_INVOCATION",
        "functionSelect": {
          "endPosition": "131",
          "kind": "IDENTIFIER",
          "name": "call",
          "startPosition": "127"
        },
        "arguments": [],
        "startPosition": "127"
      },
      "endPosition": "133",
      "kind": "EXPRESSION_STATEMENT",
      "startPosition": "127"
    },
    "startPosition": "124"
  }
]