jdk-24/nashorn/test/script/basic/parser/assignmentExpr.js.EXPECTED
Athijegannathan Sundararajan a122ebe169 8024693: Various minor issues with JSONWriter used by script parser API
Reviewed-by: jlaskey, hannesw
2013-09-12 22:16:40 +05:30

241 lines
5.5 KiB
Plaintext

{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "+=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "-=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "*=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "/=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "%=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "<<=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": ">>=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": ">>>=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "&=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "^=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "|=",
"left": {
"type": "Identifier",
"name": "xyz"
},
"right": {
"type": "Literal",
"value": 314
}
}
}
]
}