nashorn/test/script/nosecurity/treeapi/functionExpr.js.EXPECTED
author slugovoy
Fri, 20 Mar 2015 13:19:47 +0300
changeset 29543 4d9f8f8b69a4
child 39662 e2b36a3779b9
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

[
  {
    "endPosition": "21",
    "kind": "FUNCTION_EXPRESSION",
    "name": "null",
    "body": {
      "endPosition": "22",
      "kind": "BLOCK",
      "statements": [],
      "startPosition": "21"
    },
    "strict": "false",
    "startPosition": "21",
    "parameters": []
  },
  {
    "endPosition": "48",
    "kind": "FUNCTION_EXPRESSION",
    "name": "null",
    "body": {
      "endPosition": "49",
      "kind": "BLOCK",
      "statements": [],
      "startPosition": "48"
    },
    "strict": "false",
    "startPosition": "48",
    "parameters": [
      {
        "endPosition": "43",
        "kind": "IDENTIFIER",
        "name": "x",
        "startPosition": "42"
      },
      {
        "endPosition": "46",
        "kind": "IDENTIFIER",
        "name": "y",
        "startPosition": "45"
      }
    ]
  },
  {
    "endPosition": "75",
    "kind": "FUNCTION_EXPRESSION",
    "name": "null",
    "body": {
      "endPosition": "87",
      "kind": "BLOCK",
      "statements": [
        {
          "expression": {
            "endPosition": "87",
            "kind": "STRING_LITERAL",
            "value": "use strict",
            "startPosition": "77"
          },
          "endPosition": "87",
          "kind": "EXPRESSION_STATEMENT",
          "startPosition": "77"
        }
      ],
      "startPosition": "75"
    },
    "strict": "true",
    "startPosition": "75",
    "parameters": [
      {
        "endPosition": "70",
        "kind": "IDENTIFIER",
        "name": "x",
        "startPosition": "69"
      },
      {
        "endPosition": "73",
        "kind": "IDENTIFIER",
        "name": "y",
        "startPosition": "72"
      }
    ]
  },
  {
    "endPosition": "110",
    "kind": "FUNCTION_EXPRESSION",
    "name": "null",
    "body": {
      "endPosition": "144",
      "kind": "BLOCK",
      "statements": [
        {
          "expression": {
            "endPosition": "130",
            "kind": "FUNCTION_EXPRESSION",
            "name": "null",
            "body": {
              "endPosition": "142",
              "kind": "BLOCK",
              "statements": [
                {
                  "expression": {
                    "endPosition": "142",
                    "kind": "STRING_LITERAL",
                    "value": "use strict",
                    "startPosition": "132"
                  },
                  "endPosition": "142",
                  "kind": "EXPRESSION_STATEMENT",
                  "startPosition": "132"
                }
              ],
              "startPosition": "130"
            },
            "strict": "true",
            "startPosition": "130",
            "parameters": []
          },
          "endPosition": "144",
          "kind": "RETURN",
          "startPosition": "112"
        }
      ],
      "startPosition": "110"
    },
    "strict": "false",
    "startPosition": "110",
    "parameters": []
  }
]