nashorn/test/script/basic/parser/breakStat.js.EXPECTED
author attila
Tue, 13 May 2014 11:30:40 +0200
changeset 24751 ccbd9cd3f720
parent 19894 195477810711
permissions -rw-r--r--
8042118: Separate types from symbols Reviewed-by: hannesw, lagergren

{
    "type": "Program",
    "body": [
        {
            "type": "WhileStatement",
            "test": {
                "type": "Literal",
                "value": true
            },
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "BreakStatement",
                        "label": null
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "LabeledStatement",
            "label": "loop",
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "WhileStatement",
                        "test": {
                            "type": "Literal",
                            "value": true
                        },
                        "body": {
                            "type": "BlockStatement",
                            "body": [
                                {
                                    "type": "BreakStatement",
                                    "label": "loop"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "LabeledStatement",
            "label": "loop",
            "body": {
                "type": "BlockStatement",
                "body": [
                    {
                        "type": "ForStatement",
                        "init": null,
                        "test": null,
                        "update": null,
                        "body": {
                            "type": "BlockStatement",
                            "body": [
                                {
                                    "type": "BreakStatement",
                                    "label": "loop"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}