nashorn/test/script/basic/parser/switchStat.js.EXPECTED
author sundar
Thu, 12 Sep 2013 22:16:40 +0530
changeset 19894 195477810711
permissions -rw-r--r--
8024693: Various minor issues with JSONWriter used by script parser API Reviewed-by: jlaskey, hannesw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19894
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     1
{
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     2
    "type": "Program",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     3
    "body": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     4
        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     5
            "type": "SwitchStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     6
            "discriminant": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     7
                "type": "Identifier",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     8
                "name": "key"
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
     9
            },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    10
            "cases": []
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    11
        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    12
    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    13
}
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    14
{
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    15
    "type": "Program",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    16
    "body": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    17
        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    18
            "type": "SwitchStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    19
            "discriminant": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    20
                "type": "Identifier",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    21
                "name": "key"
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    22
            },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    23
            "cases": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    24
                {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    25
                    "type": "SwitchCase",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    26
                    "test": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    27
                        "type": "Literal",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    28
                        "value": 2
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    29
                    },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    30
                    "consequent": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    31
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    32
                            "type": "ExpressionStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    33
                            "expression": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    34
                                "type": "CallExpression",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    35
                                "callee": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    36
                                    "type": "Identifier",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    37
                                    "name": "hello"
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    38
                                },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    39
                                "arguments": []
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    40
                            }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    41
                        },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    42
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    43
                            "type": "BreakStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    44
                            "label": null
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    45
                        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    46
                    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    47
                }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    48
            ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    49
        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    50
    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    51
}
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    52
{
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    53
    "type": "Program",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    54
    "body": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    55
        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    56
            "type": "SwitchStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    57
            "discriminant": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    58
                "type": "Identifier",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    59
                "name": "key"
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    60
            },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    61
            "cases": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    62
                {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    63
                    "type": "SwitchCase",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    64
                    "test": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    65
                        "type": "Literal",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    66
                        "value": 4
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    67
                    },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    68
                    "consequent": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    69
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    70
                            "type": "ExpressionStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    71
                            "expression": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    72
                                "type": "CallExpression",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    73
                                "callee": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    74
                                    "type": "Identifier",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    75
                                    "name": "hello"
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    76
                                },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    77
                                "arguments": []
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    78
                            }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    79
                        },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    80
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    81
                            "type": "BreakStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    82
                            "label": null
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    83
                        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    84
                    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    85
                },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    86
                {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    87
                    "type": "SwitchCase",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    88
                    "test": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    89
                        "type": "Literal",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    90
                        "value": 2
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    91
                    },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    92
                    "consequent": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    93
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    94
                            "type": "ExpressionStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    95
                            "expression": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    96
                                "type": "CallExpression",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    97
                                "callee": {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    98
                                    "type": "Identifier",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
    99
                                    "name": "world"
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   100
                                },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   101
                                "arguments": []
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   102
                            }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   103
                        },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   104
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   105
                            "type": "BreakStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   106
                            "label": null
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   107
                        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   108
                    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   109
                },
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   110
                {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   111
                    "type": "SwitchCase",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   112
                    "test": null,
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   113
                    "consequent": [
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   114
                        {
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   115
                            "type": "BreakStatement",
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   116
                            "label": null
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   117
                        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   118
                    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   119
                }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   120
            ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   121
        }
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   122
    ]
195477810711 8024693: Various minor issues with JSONWriter used by script parser API
sundar
parents:
diff changeset
   123
}