jdk-24/nashorn/test/script/basic/parser/unaryExpr.js.EXPECTED

188 lines
4.1 KiB
Plaintext
Raw Normal View History

{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UpdateExpression",
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UpdateExpression",
"operator": "--",
"prefix": false,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "delete",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "void",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "typeof",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UpdateExpression",
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UpdateExpression",
"operator": "--",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "+",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "-",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "~",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "UnaryExpression",
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"name": "x"
}
}
}
]
}