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

changeset 551
917b16e509bd
parent 0
b1a7da25b547
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/script/basic/parser/unaryExpr.js.EXPECTED	Thu Sep 12 22:16:40 2013 +0530
     1.3 @@ -0,0 +1,187 @@
     1.4 +{
     1.5 +    "type": "Program",
     1.6 +    "body": [
     1.7 +        {
     1.8 +            "type": "ExpressionStatement",
     1.9 +            "expression": {
    1.10 +                "type": "UpdateExpression",
    1.11 +                "operator": "++",
    1.12 +                "prefix": false,
    1.13 +                "argument": {
    1.14 +                    "type": "Identifier",
    1.15 +                    "name": "x"
    1.16 +                }
    1.17 +            }
    1.18 +        }
    1.19 +    ]
    1.20 +}
    1.21 +{
    1.22 +    "type": "Program",
    1.23 +    "body": [
    1.24 +        {
    1.25 +            "type": "ExpressionStatement",
    1.26 +            "expression": {
    1.27 +                "type": "UpdateExpression",
    1.28 +                "operator": "--",
    1.29 +                "prefix": false,
    1.30 +                "argument": {
    1.31 +                    "type": "Identifier",
    1.32 +                    "name": "x"
    1.33 +                }
    1.34 +            }
    1.35 +        }
    1.36 +    ]
    1.37 +}
    1.38 +{
    1.39 +    "type": "Program",
    1.40 +    "body": [
    1.41 +        {
    1.42 +            "type": "ExpressionStatement",
    1.43 +            "expression": {
    1.44 +                "type": "UnaryExpression",
    1.45 +                "operator": "delete",
    1.46 +                "prefix": true,
    1.47 +                "argument": {
    1.48 +                    "type": "Identifier",
    1.49 +                    "name": "x"
    1.50 +                }
    1.51 +            }
    1.52 +        }
    1.53 +    ]
    1.54 +}
    1.55 +{
    1.56 +    "type": "Program",
    1.57 +    "body": [
    1.58 +        {
    1.59 +            "type": "ExpressionStatement",
    1.60 +            "expression": {
    1.61 +                "type": "UnaryExpression",
    1.62 +                "operator": "void",
    1.63 +                "prefix": true,
    1.64 +                "argument": {
    1.65 +                    "type": "Identifier",
    1.66 +                    "name": "x"
    1.67 +                }
    1.68 +            }
    1.69 +        }
    1.70 +    ]
    1.71 +}
    1.72 +{
    1.73 +    "type": "Program",
    1.74 +    "body": [
    1.75 +        {
    1.76 +            "type": "ExpressionStatement",
    1.77 +            "expression": {
    1.78 +                "type": "UnaryExpression",
    1.79 +                "operator": "typeof",
    1.80 +                "prefix": true,
    1.81 +                "argument": {
    1.82 +                    "type": "Identifier",
    1.83 +                    "name": "x"
    1.84 +                }
    1.85 +            }
    1.86 +        }
    1.87 +    ]
    1.88 +}
    1.89 +{
    1.90 +    "type": "Program",
    1.91 +    "body": [
    1.92 +        {
    1.93 +            "type": "ExpressionStatement",
    1.94 +            "expression": {
    1.95 +                "type": "UpdateExpression",
    1.96 +                "operator": "++",
    1.97 +                "prefix": true,
    1.98 +                "argument": {
    1.99 +                    "type": "Identifier",
   1.100 +                    "name": "x"
   1.101 +                }
   1.102 +            }
   1.103 +        }
   1.104 +    ]
   1.105 +}
   1.106 +{
   1.107 +    "type": "Program",
   1.108 +    "body": [
   1.109 +        {
   1.110 +            "type": "ExpressionStatement",
   1.111 +            "expression": {
   1.112 +                "type": "UpdateExpression",
   1.113 +                "operator": "--",
   1.114 +                "prefix": true,
   1.115 +                "argument": {
   1.116 +                    "type": "Identifier",
   1.117 +                    "name": "x"
   1.118 +                }
   1.119 +            }
   1.120 +        }
   1.121 +    ]
   1.122 +}
   1.123 +{
   1.124 +    "type": "Program",
   1.125 +    "body": [
   1.126 +        {
   1.127 +            "type": "ExpressionStatement",
   1.128 +            "expression": {
   1.129 +                "type": "UnaryExpression",
   1.130 +                "operator": "+",
   1.131 +                "prefix": true,
   1.132 +                "argument": {
   1.133 +                    "type": "Identifier",
   1.134 +                    "name": "x"
   1.135 +                }
   1.136 +            }
   1.137 +        }
   1.138 +    ]
   1.139 +}
   1.140 +{
   1.141 +    "type": "Program",
   1.142 +    "body": [
   1.143 +        {
   1.144 +            "type": "ExpressionStatement",
   1.145 +            "expression": {
   1.146 +                "type": "UnaryExpression",
   1.147 +                "operator": "-",
   1.148 +                "prefix": true,
   1.149 +                "argument": {
   1.150 +                    "type": "Identifier",
   1.151 +                    "name": "x"
   1.152 +                }
   1.153 +            }
   1.154 +        }
   1.155 +    ]
   1.156 +}
   1.157 +{
   1.158 +    "type": "Program",
   1.159 +    "body": [
   1.160 +        {
   1.161 +            "type": "ExpressionStatement",
   1.162 +            "expression": {
   1.163 +                "type": "UnaryExpression",
   1.164 +                "operator": "~",
   1.165 +                "prefix": true,
   1.166 +                "argument": {
   1.167 +                    "type": "Identifier",
   1.168 +                    "name": "x"
   1.169 +                }
   1.170 +            }
   1.171 +        }
   1.172 +    ]
   1.173 +}
   1.174 +{
   1.175 +    "type": "Program",
   1.176 +    "body": [
   1.177 +        {
   1.178 +            "type": "ExpressionStatement",
   1.179 +            "expression": {
   1.180 +                "type": "UnaryExpression",
   1.181 +                "operator": "!",
   1.182 +                "prefix": true,
   1.183 +                "argument": {
   1.184 +                    "type": "Identifier",
   1.185 +                    "name": "x"
   1.186 +                }
   1.187 +            }
   1.188 +        }
   1.189 +    ]
   1.190 +}

mercurial