Skip to content
This repository was archived by the owner on Apr 10, 2023. It is now read-only.

Commit f557d7b

Browse files
committed
fix(parse): 🐛 Fix support for multiple unary operators
1 parent 6a16a59 commit f557d7b

File tree

8 files changed

+171
-67
lines changed

8 files changed

+171
-67
lines changed

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Run test",
11+
"program": "${workspaceFolder}/node_modules/ava/profile.js",
12+
"args": ["${file}"],
13+
"cwd": "${workspaceFolder}",
14+
"skipFiles": ["<node_internals>/**/*.js"]
15+
}
16+
]
17+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"type": "Program",
3+
"body": [
4+
{
5+
"type": "ExpressionStatement",
6+
"expression": {
7+
"type": "UnaryExpression",
8+
"operator": "~",
9+
"argument": {
10+
"type": "UnaryExpression",
11+
"operator": "~",
12+
"argument": {
13+
"type": "UnaryExpression",
14+
"operator": "~",
15+
"argument": {
16+
"type": "UnaryExpression",
17+
"operator": "~",
18+
"argument": {
19+
"type": "UnaryExpression",
20+
"operator": "~",
21+
"argument": {
22+
"type": "Literal",
23+
"value": 0
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
31+
]
32+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* @since 20180731 09:59
3+
* @author vivaxy
4+
*/
5+
6+
module.exports = -1;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
~~0
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"type": "Program",
3+
"body": [
4+
{
5+
"type": "ExpressionStatement",
6+
"expression": {
7+
"type": "UnaryExpression",
8+
"operator": "~",
9+
"argument": {
10+
"type": "UnaryExpression",
11+
"operator": "~",
12+
"argument": {
13+
"type": "Literal",
14+
"value": 0
15+
}
16+
}
17+
}
18+
}
19+
]
20+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
~~~~~0
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"type": "Program",
3+
"body": [
4+
{
5+
"type": "ExpressionStatement",
6+
"expression": {
7+
"type": "UnaryExpression",
8+
"operator": "~",
9+
"argument": {
10+
"type": "UnaryExpression",
11+
"operator": "~",
12+
"argument": {
13+
"type": "UnaryExpression",
14+
"operator": "~",
15+
"argument": {
16+
"type": "UnaryExpression",
17+
"operator": "~",
18+
"argument": {
19+
"type": "UnaryExpression",
20+
"operator": "~",
21+
"argument": {
22+
"type": "Literal",
23+
"value": 0
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)