test/script/basic/parser/labelledStat.js.EXPECTED

changeset 0
b1a7da25b547
child 963
e2497b11a021
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/script/basic/parser/labelledStat.js.EXPECTED	Wed Apr 27 01:36:41 2016 +0800
     1.3 @@ -0,0 +1,71 @@
     1.4 +{
     1.5 +    "type": "Program",
     1.6 +    "body": [
     1.7 +        {
     1.8 +            "type": "LabeledStatement",
     1.9 +            "label": {
    1.10 +                "type": "Identifier",
    1.11 +                "name": "begin"
    1.12 +            },
    1.13 +            "body": {
    1.14 +                "type": "BlockStatement",
    1.15 +                "body": [
    1.16 +                    {
    1.17 +                        "type": "ForStatement",
    1.18 +                        "init": null,
    1.19 +                        "test": null,
    1.20 +                        "update": null,
    1.21 +                        "body": {
    1.22 +                            "type": "BlockStatement",
    1.23 +                            "body": [
    1.24 +                                {
    1.25 +                                    "type": "BreakStatement",
    1.26 +                                    "label": {
    1.27 +                                        "type": "Identifier",
    1.28 +                                        "name": "begin"
    1.29 +                                    }
    1.30 +                                }
    1.31 +                            ]
    1.32 +                        }
    1.33 +                    }
    1.34 +                ]
    1.35 +            }
    1.36 +        }
    1.37 +    ]
    1.38 +}
    1.39 +{
    1.40 +    "type": "Program",
    1.41 +    "body": [
    1.42 +        {
    1.43 +            "type": "LabeledStatement",
    1.44 +            "label": {
    1.45 +                "type": "Identifier",
    1.46 +                "name": "begin"
    1.47 +            },
    1.48 +            "body": {
    1.49 +                "type": "BlockStatement",
    1.50 +                "body": [
    1.51 +                    {
    1.52 +                        "type": "WhileStatement",
    1.53 +                        "test": {
    1.54 +                            "type": "Literal",
    1.55 +                            "value": true
    1.56 +                        },
    1.57 +                        "body": {
    1.58 +                            "type": "BlockStatement",
    1.59 +                            "body": [
    1.60 +                                {
    1.61 +                                    "type": "BreakStatement",
    1.62 +                                    "label": {
    1.63 +                                        "type": "Identifier",
    1.64 +                                        "name": "begin"
    1.65 +                                    }
    1.66 +                                }
    1.67 +                            ]
    1.68 +                        }
    1.69 +                    }
    1.70 +                ]
    1.71 +            }
    1.72 +        }
    1.73 +    ]
    1.74 +}

mercurial