Franknoirot/adhoc/revert-dedupe-commits (#4213)

* Revert "KCL: Fix duplicate 'type' key"

This reverts commit f650281855.

* Revert "Remove duplicate "type" field in the snapshots (#4211)"

This reverts commit 824b4c823e.
This commit is contained in:
Frank Noirot
2024-10-18 02:16:44 -04:00
committed by GitHub
parent 824b4c823e
commit bfebc41a5c
74 changed files with 490 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -494,7 +494,7 @@ impl From<&BodyItem> for SourceRange {
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema, Bake)]
#[databake(path = kcl_lib::ast::types)]
#[ts(export)]
#[serde(untagged)]
#[serde(tag = "type")]
pub enum Expr {
Literal(Box<Literal>),
Identifier(Box<Identifier>),

View File

@ -8,6 +8,7 @@ expression: actual
"end": 5,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,6 +16,7 @@ expression: actual
"raw": "1"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 4,
"end": 5,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 3,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,6 +16,7 @@ expression: actual
"raw": "1"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 2,
"end": 3,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 4,
"operator": "-",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,6 +16,7 @@ expression: actual
"raw": "1"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 3,
"end": 4,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 9,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,11 +16,13 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 4,
"end": 9,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 4,
"end": 5,
@ -27,6 +30,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 8,
"end": 9,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 11,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,11 +16,13 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 6,
"end": 11,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 6,
"end": 7,
@ -27,6 +30,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 10,
"end": 11,

View File

@ -8,11 +8,13 @@ expression: actual
"end": 17,
"operator": "/",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 0,
"end": 11,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -20,11 +22,13 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 6,
"end": 11,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 6,
"end": 7,
@ -32,6 +36,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 10,
"end": 11,
@ -41,6 +46,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 16,
"end": 17,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 17,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,16 +16,19 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 6,
"end": 17,
"operator": "/",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 6,
"end": 11,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 6,
"end": 7,
@ -32,6 +36,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 10,
"end": 11,
@ -40,6 +45,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 16,
"end": 17,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 22,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,21 +16,25 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 7,
"end": 22,
"operator": "+",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 7,
"end": 18,
"operator": "/",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 7,
"end": 12,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 7,
"end": 8,
@ -37,6 +42,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 11,
"end": 12,
@ -45,6 +51,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -53,6 +60,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 21,
"end": 22,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 13,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,11 +16,13 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 8,
"end": 13,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 8,
"end": 9,
@ -27,6 +30,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 12,
"end": 13,

View File

@ -8,27 +8,32 @@ expression: actual
"end": 44,
"operator": "/",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 0,
"end": 22,
"operator": "*",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 0,
"end": 18,
"operator": "*",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 0,
"end": 12,
"operator": "*",
"left": {
"type": "Identifier",
"type": "Identifier",
"start": 0,
"end": 8,
"name": "distance"
},
"right": {
"type": "Identifier",
"type": "Identifier",
"start": 11,
"end": 12,
@ -36,6 +41,7 @@ expression: actual
}
},
"right": {
"type": "Identifier",
"type": "Identifier",
"start": 15,
"end": 18,
@ -43,6 +49,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 21,
"end": 22,
@ -51,17 +58,20 @@ expression: actual
}
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 26,
"end": 44,
"operator": "*",
"left": {
"type": "Identifier",
"type": "Identifier",
"start": 26,
"end": 36,
"name": "sigmaAllow"
},
"right": {
"type": "Identifier",
"type": "Identifier",
"start": 39,
"end": 44,

View File

@ -8,6 +8,7 @@ expression: actual
"end": 8,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -15,6 +16,7 @@ expression: actual
"raw": "2"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 7,
"end": 8,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 144,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 143,
@ -22,11 +23,13 @@ expression: actual
"name": "boxSketch"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 18,
"end": 143,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 18,
"end": 39,
@ -38,11 +41,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 32,
"end": 38,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 33,
"end": 34,
@ -50,6 +55,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 36,
"end": 37,
@ -62,6 +68,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 47,
"end": 63,
@ -73,11 +80,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 52,
"end": 59,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 53,
"end": 54,
@ -85,6 +94,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 56,
"end": 58,
@ -94,6 +104,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 61,
"end": 62
@ -102,6 +113,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 71,
"end": 96,
@ -113,16 +125,19 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 85,
"end": 92,
"elements": [
{
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 86,
"end": 88,
"operator": "-",
"argument": {
"type": "Literal",
"type": "Literal",
"start": 87,
"end": 88,
@ -131,6 +146,7 @@ expression: actual
}
},
{
"type": "Literal",
"type": "Literal",
"start": 90,
"end": 91,
@ -140,6 +156,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 94,
"end": 95
@ -148,6 +165,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 104,
"end": 121,
@ -159,11 +177,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 109,
"end": 117,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 110,
"end": 111,
@ -171,11 +191,13 @@ expression: actual
"raw": "5"
},
{
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 113,
"end": 116,
"operator": "-",
"argument": {
"type": "Literal",
"type": "Literal",
"start": 114,
"end": 116,
@ -186,6 +208,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 119,
"end": 120
@ -194,6 +217,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 129,
"end": 143,
@ -205,6 +229,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 137,
"end": 139,
@ -212,6 +237,7 @@ expression: actual
"raw": "10"
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 141,
"end": 142

View File

@ -7,6 +7,7 @@ expression: actual
"end": 17,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 17,
@ -22,11 +23,13 @@ expression: actual
"name": "sg"
},
"init": {
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 11,
"end": 17,
"operator": "-",
"argument": {
"type": "Identifier",
"type": "Identifier",
"start": 12,
"end": 17,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 23,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 23,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 23,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 7,
"end": 22,
@ -37,11 +40,13 @@ expression: actual
"name": "to"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 13,
"end": 20,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -49,11 +54,13 @@ expression: actual
"raw": "0"
},
{
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 17,
"end": 19,
"operator": "-",
"argument": {
"type": "Literal",
"type": "Literal",
"start": 18,
"end": 19,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 23,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 23,
@ -22,10 +23,12 @@ expression: actual
"name": "myArray"
},
"init": {
"type": "ArrayRangeExpression",
"type": "ArrayRangeExpression",
"start": 16,
"end": 23,
"startElement": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -33,6 +36,7 @@ expression: actual
"raw": "0"
},
"endElement": {
"type": "Literal",
"type": "Literal",
"start": 20,
"end": 22,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 80,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 5,
"end": 57,
@ -22,6 +23,7 @@ expression: actual
"name": "firstPrimeNumber"
},
"init": {
"type": "FunctionExpression",
"type": "FunctionExpression",
"start": 27,
"end": 57,
@ -31,10 +33,12 @@ expression: actual
"end": 57,
"body": [
{
"type": "ReturnStatement",
"type": "ReturnStatement",
"start": 43,
"end": 51,
"argument": {
"type": "Literal",
"type": "Literal",
"start": 50,
"end": 51,
@ -50,10 +54,12 @@ expression: actual
"kind": "fn"
},
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 62,
"end": 80,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 62,
"end": 80,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 66,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 49,
@ -22,6 +23,7 @@ expression: actual
"name": "thing"
},
"init": {
"type": "FunctionExpression",
"type": "FunctionExpression",
"start": 11,
"end": 49,
@ -42,10 +44,12 @@ expression: actual
"end": 49,
"body": [
{
"type": "ReturnStatement",
"type": "ReturnStatement",
"start": 32,
"end": 43,
"argument": {
"type": "Literal",
"type": "Literal",
"start": 39,
"end": 43,
@ -61,10 +65,12 @@ expression: actual
"kind": "fn"
},
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 54,
"end": 66,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 54,
"end": 66,
@ -76,6 +82,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 60,
"end": 65,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 165,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 165,
@ -22,11 +23,13 @@ expression: actual
"name": "mySketch"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 17,
"end": 165,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 17,
"end": 37,
@ -38,11 +41,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 31,
"end": 36,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 32,
"end": 33,
@ -50,6 +55,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 34,
"end": 35,
@ -62,6 +68,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 49,
"end": 75,
@ -73,11 +80,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 56,
"end": 62,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 57,
"end": 58,
@ -85,6 +94,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 60,
"end": 61,
@ -94,11 +104,13 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 64,
"end": 65
},
{
"type": "TagDeclarator",
"type": "TagDeclarator",
"start": 67,
"end": 74,
@ -108,6 +120,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 87,
"end": 104,
@ -119,11 +132,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 94,
"end": 100,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 95,
"end": 96,
@ -131,6 +146,7 @@ expression: actual
"raw": "1"
},
{
"type": "Literal",
"type": "Literal",
"start": 98,
"end": 99,
@ -140,6 +156,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 102,
"end": 103
@ -148,6 +165,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 116,
"end": 145,
@ -159,11 +177,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 123,
"end": 129,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 124,
"end": 125,
@ -171,6 +191,7 @@ expression: actual
"raw": "1"
},
{
"type": "Literal",
"type": "Literal",
"start": 127,
"end": 128,
@ -180,11 +201,13 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 131,
"end": 132
},
{
"type": "TagDeclarator",
"type": "TagDeclarator",
"start": 134,
"end": 144,
@ -194,6 +217,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 157,
"end": 165,
@ -205,6 +229,7 @@ expression: actual
},
"arguments": [
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 163,
"end": 164

View File

@ -7,6 +7,7 @@ expression: actual
"end": 70,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 70,
@ -22,11 +23,13 @@ expression: actual
"name": "mySketch"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 17,
"end": 70,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 17,
"end": 37,
@ -38,11 +41,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 31,
"end": 36,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 32,
"end": 33,
@ -50,6 +55,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 34,
"end": 35,
@ -62,6 +68,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 41,
"end": 58,
@ -73,11 +80,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 48,
"end": 54,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 49,
"end": 50,
@ -85,6 +94,7 @@ expression: actual
"raw": "1"
},
{
"type": "Literal",
"type": "Literal",
"start": 52,
"end": 53,
@ -94,6 +104,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 56,
"end": 57
@ -102,6 +113,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 62,
"end": 70,
@ -113,6 +125,7 @@ expression: actual
},
"arguments": [
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 68,
"end": 69

View File

@ -7,6 +7,7 @@ expression: actual
"end": 30,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 30,
@ -22,6 +23,7 @@ expression: actual
"name": "myBox"
},
"init": {
"type": "CallExpression",
"type": "CallExpression",
"start": 14,
"end": 30,
@ -33,6 +35,7 @@ expression: actual
},
"arguments": [
{
"type": "Identifier",
"type": "Identifier",
"start": 28,
"end": 29,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 29,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 29,
@ -22,11 +23,13 @@ expression: actual
"name": "myBox"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 14,
"end": 29,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 14,
"end": 18,
@ -38,6 +41,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 16,
"end": 17,
@ -48,6 +52,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 22,
"end": 29,
@ -59,6 +64,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 24,
"end": 25,
@ -66,6 +72,7 @@ expression: actual
"raw": "2"
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 27,
"end": 28

View File

@ -7,6 +7,7 @@ expression: actual
"end": 49,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 49,
@ -22,11 +23,13 @@ expression: actual
"name": "myBox"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 14,
"end": 49,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 14,
"end": 30,
@ -38,6 +41,7 @@ expression: actual
},
"arguments": [
{
"type": "Identifier",
"type": "Identifier",
"start": 28,
"end": 29,
@ -47,6 +51,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 34,
"end": 49,
@ -58,11 +63,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 39,
"end": 45,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 40,
"end": 41,
@ -70,6 +77,7 @@ expression: actual
"raw": "0"
},
{
"type": "Identifier",
"type": "Identifier",
"start": 43,
"end": 44,
@ -78,6 +86,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 47,
"end": 48

View File

@ -7,10 +7,12 @@ expression: actual
"end": 22,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 22,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 22,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 7,
"end": 21,
@ -37,11 +40,13 @@ expression: actual
"name": "to"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 13,
"end": 19,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -49,6 +54,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 36,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 36,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 36,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 7,
"end": 35,
@ -37,11 +40,13 @@ expression: actual
"name": "to"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 13,
"end": 19,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -49,6 +54,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -69,11 +75,13 @@ expression: actual
"name": "from"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 27,
"end": 33,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 28,
"end": 29,
@ -81,6 +89,7 @@ expression: actual
"raw": "3"
},
{
"type": "Literal",
"type": "Literal",
"start": 31,
"end": 32,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 19,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 19,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 19,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 7,
"end": 18,
@ -37,11 +40,13 @@ expression: actual
"name": "to"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 11,
"end": 17,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 12,
"end": 13,
@ -49,6 +54,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 15,
"end": 16,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 35,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 35,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 35,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 7,
"end": 34,
@ -37,11 +40,13 @@ expression: actual
"name": "to"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 13,
"end": 19,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -49,6 +54,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -69,11 +75,13 @@ expression: actual
"name": "from"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 27,
"end": 33,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 28,
"end": 29,
@ -81,6 +89,7 @@ expression: actual
"raw": "3"
},
{
"type": "Literal",
"type": "Literal",
"start": 31,
"end": 32,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 35,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 35,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 35,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 7,
"end": 34,
@ -37,11 +40,13 @@ expression: actual
"name": "to"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 13,
"end": 19,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -49,6 +54,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -69,11 +75,13 @@ expression: actual
"name": "from"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 26,
"end": 32,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 27,
"end": 28,
@ -81,6 +89,7 @@ expression: actual
"raw": "3"
},
{
"type": "Literal",
"type": "Literal",
"start": 30,
"end": 31,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 37,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 37,
@ -22,6 +23,7 @@ expression: actual
"name": "mySketch"
},
"init": {
"type": "CallExpression",
"type": "CallExpression",
"start": 17,
"end": 37,
@ -33,11 +35,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 31,
"end": 36,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 32,
"end": 33,
@ -45,6 +49,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 34,
"end": 35,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 28,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 28,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 28,
@ -22,6 +24,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 4,
"end": 5,
@ -29,6 +32,7 @@ expression: actual
"raw": "5"
},
{
"type": "Literal",
"type": "Literal",
"start": 7,
"end": 14,
@ -36,6 +40,7 @@ expression: actual
"raw": "\"hello\""
},
{
"type": "Identifier",
"type": "Identifier",
"start": 16,
"end": 27,

View File

@ -7,15 +7,18 @@ expression: actual
"end": 7,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 7,
"expression": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 0,
"end": 7,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 0,
"end": 1,
@ -23,6 +26,7 @@ expression: actual
"raw": "5"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 4,
"end": 7,

View File

@ -7,10 +7,12 @@ expression: actual
"end": 15,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 0,
"end": 15,
"expression": {
"type": "CallExpression",
"type": "CallExpression",
"start": 0,
"end": 15,
@ -22,11 +24,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 5,
"end": 11,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 6,
"end": 7,
@ -34,6 +38,7 @@ expression: actual
"raw": "0"
},
{
"type": "Identifier",
"type": "Identifier",
"start": 9,
"end": 10,
@ -42,6 +47,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 13,
"end": 14

View File

@ -7,6 +7,7 @@ expression: actual
"end": 108,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 107,
@ -22,11 +23,13 @@ expression: actual
"name": "cylinder"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 17,
"end": 107,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 17,
"end": 36,
@ -38,6 +41,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 31,
"end": 35,
@ -48,6 +52,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 44,
"end": 85,
@ -59,6 +64,7 @@ expression: actual
},
"arguments": [
{
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 51,
"end": 81,
@ -74,11 +80,13 @@ expression: actual
"name": "center"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 61,
"end": 67,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 62,
"end": 63,
@ -86,6 +94,7 @@ expression: actual
"raw": "0"
},
{
"type": "Literal",
"type": "Literal",
"start": 65,
"end": 66,
@ -106,6 +115,7 @@ expression: actual
"name": "radius"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 77,
"end": 79,
@ -116,6 +126,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 83,
"end": 84
@ -124,6 +135,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 93,
"end": 107,
@ -135,6 +147,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 101,
"end": 103,
@ -142,6 +155,7 @@ expression: actual
"raw": "14"
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 105,
"end": 106

View File

@ -7,6 +7,7 @@ expression: actual
"end": 49,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 49,
@ -22,6 +23,7 @@ expression: actual
"name": "f"
},
"init": {
"type": "FunctionExpression",
"type": "FunctionExpression",
"start": 7,
"end": 49,
@ -42,10 +44,12 @@ expression: actual
"end": 49,
"body": [
{
"type": "ReturnStatement",
"type": "ReturnStatement",
"start": 21,
"end": 47,
"argument": {
"type": "CallExpression",
"type": "CallExpression",
"start": 28,
"end": 47,
@ -57,12 +61,14 @@ expression: actual
},
"arguments": [
{
"type": "Identifier",
"type": "Identifier",
"start": 36,
"end": 41,
"name": "angle"
},
{
"type": "Literal",
"type": "Literal",
"start": 43,
"end": 46,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 91,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 91,
@ -22,11 +23,13 @@ expression: actual
"name": "numbers"
},
"init": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 14,
"end": 91,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 28,
"end": 29,
@ -34,6 +37,7 @@ expression: actual
"raw": "1"
},
{
"type": "Literal",
"type": "Literal",
"start": 79,
"end": 80,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 91,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 91,
@ -22,11 +23,13 @@ expression: actual
"name": "numbers"
},
"init": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 14,
"end": 91,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 28,
"end": 29,
@ -34,6 +37,7 @@ expression: actual
"raw": "1"
},
{
"type": "Literal",
"type": "Literal",
"start": 43,
"end": 44,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 80,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 80,
@ -22,6 +23,7 @@ expression: actual
"name": "props"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 80,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 29,
"end": 30,
@ -55,6 +58,7 @@ expression: actual
"name": "c"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 68,
"end": 69,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 79,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 79,
@ -22,6 +23,7 @@ expression: actual
"name": "props"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 79,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 29,
"end": 30,
@ -55,6 +58,7 @@ expression: actual
"name": "c"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 68,
"end": 69,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 36,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 36,
@ -22,6 +23,7 @@ expression: actual
"name": "myVar"
},
"init": {
"type": "CallExpression",
"type": "CallExpression",
"start": 14,
"end": 36,
@ -33,6 +35,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 18,
"end": 19,
@ -40,11 +43,13 @@ expression: actual
"raw": "5"
},
{
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 22,
"end": 35,
"operator": "-",
"argument": {
"type": "CallExpression",
"type": "CallExpression",
"start": 23,
"end": 35,
@ -56,6 +61,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 30,
"end": 31,
@ -63,6 +69,7 @@ expression: actual
"raw": "5"
},
{
"type": "Literal",
"type": "Literal",
"start": 33,
"end": 34,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 133,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 1,
"end": 132,
@ -22,11 +23,13 @@ expression: actual
"name": "sketch001"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 19,
"end": 132,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 19,
"end": 38,
@ -38,6 +41,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 33,
"end": 37,
@ -48,6 +52,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 115,
"end": 132,
@ -59,6 +64,7 @@ expression: actual
},
"arguments": [
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 130,
"end": 131

View File

@ -7,6 +7,7 @@ expression: actual
"end": 32,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 1,
"end": 31,
@ -22,16 +23,19 @@ expression: actual
"name": "my14"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 14,
"end": 31,
"operator": "-",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 14,
"end": 19,
"operator": "^",
"left": {
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -39,6 +43,7 @@ expression: actual
"raw": "4"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 18,
"end": 19,
@ -47,16 +52,19 @@ expression: actual
}
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 22,
"end": 31,
"operator": "*",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 22,
"end": 27,
"operator": "^",
"left": {
"type": "Literal",
"type": "Literal",
"start": 22,
"end": 23,
@ -64,6 +72,7 @@ expression: actual
"raw": "3"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 26,
"end": 27,
@ -72,6 +81,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 30,
"end": 31,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 74,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 74,
@ -22,10 +23,12 @@ expression: actual
"name": "x"
},
"init": {
"type": "IfExpression",
"type": "IfExpression",
"start": 10,
"end": 74,
"cond": {
"type": "Literal",
"type": "Literal",
"start": 13,
"end": 17,
@ -37,10 +40,12 @@ expression: actual
"end": 42,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 32,
"end": 33,
"expression": {
"type": "Literal",
"type": "Literal",
"start": 32,
"end": 33,
@ -56,10 +61,12 @@ expression: actual
"end": 73,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 63,
"end": 64,
"expression": {
"type": "Literal",
"type": "Literal",
"start": 63,
"end": 64,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 121,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 121,
@ -22,10 +23,12 @@ expression: actual
"name": "x"
},
"init": {
"type": "IfExpression",
"type": "IfExpression",
"start": 10,
"end": 121,
"cond": {
"type": "Literal",
"type": "Literal",
"start": 13,
"end": 17,
@ -37,10 +40,12 @@ expression: actual
"end": 42,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 32,
"end": 33,
"expression": {
"type": "Literal",
"type": "Literal",
"start": 32,
"end": 33,
@ -56,6 +61,7 @@ expression: actual
"start": 44,
"end": 90,
"cond": {
"type": "CallExpression",
"type": "CallExpression",
"start": 52,
"end": 64,
@ -67,6 +73,7 @@ expression: actual
},
"arguments": [
{
"type": "Identifier",
"type": "Identifier",
"start": 57,
"end": 63,
@ -80,10 +87,12 @@ expression: actual
"end": 89,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 79,
"end": 80,
"expression": {
"type": "Literal",
"type": "Literal",
"start": 79,
"end": 80,
@ -101,10 +110,12 @@ expression: actual
"end": 120,
"body": [
{
"type": "ExpressionStatement",
"type": "ExpressionStatement",
"start": 110,
"end": 111,
"expression": {
"type": "Literal",
"type": "Literal",
"start": 110,
"end": 111,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 14,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 14,
@ -22,11 +23,13 @@ expression: actual
"name": "x"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 8,
"end": 14,
"operator": "==",
"left": {
"type": "Literal",
"type": "Literal",
"start": 8,
"end": 9,
@ -34,6 +37,7 @@ expression: actual
"raw": "3"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 13,
"end": 14,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 14,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 14,
@ -22,11 +23,13 @@ expression: actual
"name": "x"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 8,
"end": 14,
"operator": "!=",
"left": {
"type": "Literal",
"type": "Literal",
"start": 8,
"end": 9,
@ -34,6 +37,7 @@ expression: actual
"raw": "3"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 13,
"end": 14,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 5,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 5,
@ -22,6 +23,7 @@ expression: actual
"name": "x"
},
"init": {
"type": "Literal",
"type": "Literal",
"start": 4,
"end": 5,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 42,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 42,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 42,
@ -37,11 +39,13 @@ expression: actual
"name": "center"
},
"value": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 22,
"end": 30,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 25,
@ -49,6 +53,7 @@ expression: actual
"raw": "10"
},
{
"type": "Literal",
"type": "Literal",
"start": 27,
"end": 29,
@ -69,6 +74,7 @@ expression: actual
"name": "radius"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 40,
"end": 41,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 35,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 35,
@ -22,6 +23,7 @@ expression: actual
"name": "myVar"
},
"init": {
"type": "CallExpression",
"type": "CallExpression",
"start": 14,
"end": 35,
@ -33,11 +35,13 @@ expression: actual
},
"arguments": [
{
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 18,
"end": 31,
"operator": "-",
"argument": {
"type": "CallExpression",
"type": "CallExpression",
"start": 19,
"end": 31,
@ -49,6 +53,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 26,
"end": 27,
@ -56,6 +61,7 @@ expression: actual
"raw": "5"
},
{
"type": "Literal",
"type": "Literal",
"start": 29,
"end": 30,
@ -67,6 +73,7 @@ expression: actual
}
},
{
"type": "Literal",
"type": "Literal",
"start": 33,
"end": 34,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 36,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 36,
@ -22,16 +23,19 @@ expression: actual
"name": "myVar"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 14,
"end": 36,
"body": [
{
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 14,
"end": 19,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 14,
"end": 15,
@ -39,6 +43,7 @@ expression: actual
"raw": "5"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 18,
"end": 19,
@ -47,6 +52,7 @@ expression: actual
}
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 23,
"end": 36,
@ -58,6 +64,7 @@ expression: actual
},
"arguments": [
{
"type": "Literal",
"type": "Literal",
"start": 30,
"end": 32,
@ -65,6 +72,7 @@ expression: actual
"raw": "45"
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 34,
"end": 35

View File

@ -7,6 +7,7 @@ expression: actual
"end": 27,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 27,
@ -22,16 +23,19 @@ expression: actual
"name": "x"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 10,
"end": 27,
"operator": "+",
"left": {
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 10,
"end": 15,
"operator": "-",
"argument": {
"type": "Identifier",
"type": "Identifier",
"start": 11,
"end": 15,
@ -39,6 +43,7 @@ expression: actual
}
},
"right": {
"type": "Identifier",
"type": "Identifier",
"start": 18,
"end": 27,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 18,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 18,
@ -22,11 +23,13 @@ expression: actual
"name": "x"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 8,
"end": 18,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 8,
"end": 9,
@ -34,11 +37,13 @@ expression: actual
"raw": "1"
},
"right": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 13,
"end": 18,
"operator": "-",
"left": {
"type": "Literal",
"type": "Literal",
"start": 13,
"end": 14,
@ -46,6 +51,7 @@ expression: actual
"raw": "3"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 40,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 11,
@ -22,6 +23,7 @@ expression: actual
"name": "x"
},
"init": {
"type": "Literal",
"type": "Literal",
"start": 10,
"end": 11,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 58,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 58,
@ -22,6 +23,7 @@ expression: actual
"name": "x"
},
"init": {
"type": "FunctionExpression",
"type": "FunctionExpression",
"start": 7,
"end": 58,
@ -31,10 +33,12 @@ expression: actual
"end": 58,
"body": [
{
"type": "ReturnStatement",
"type": "ReturnStatement",
"start": 23,
"end": 32,
"argument": {
"type": "Identifier",
"type": "Identifier",
"start": 30,
"end": 32,
@ -42,10 +46,12 @@ expression: actual
}
},
{
"type": "ReturnStatement",
"type": "ReturnStatement",
"start": 41,
"end": 50,
"argument": {
"type": "Identifier",
"type": "Identifier",
"start": 48,
"end": 50,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 55,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 31,
"end": 55,
@ -84,11 +89,13 @@ expression: actual
"name": "height"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 46,
"end": 55,
"operator": "-",
"left": {
"type": "Literal",
"type": "Literal",
"start": 46,
"end": 47,
@ -96,16 +103,19 @@ expression: actual
"raw": "1"
},
"right": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 50,
"end": 55,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 50,
"end": 53,
"name": "obj"
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 54,
"end": 55,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 59,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 32,
"end": 59,
@ -84,11 +89,13 @@ expression: actual
"name": "height"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 47,
"end": 59,
"operator": "-",
"left": {
"type": "Literal",
"type": "Literal",
"start": 47,
"end": 48,
@ -96,16 +103,19 @@ expression: actual
"raw": "1"
},
"right": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 51,
"end": 59,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 51,
"end": 54,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 55,
"end": 58,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 58,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 31,
"end": 58,
@ -84,21 +89,25 @@ expression: actual
"name": "height"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 46,
"end": 58,
"operator": "-",
"left": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 46,
"end": 54,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 46,
"end": 49,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 50,
"end": 53,
@ -108,6 +117,7 @@ expression: actual
"computed": false
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 57,
"end": 58,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 63,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 31,
"end": 63,
@ -84,16 +89,19 @@ expression: actual
"name": "height"
},
"init": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 46,
"end": 63,
"elements": [
{
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 47,
"end": 59,
"operator": "-",
"left": {
"type": "Literal",
"type": "Literal",
"start": 47,
"end": 48,
@ -101,16 +109,19 @@ expression: actual
"raw": "1"
},
"right": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 51,
"end": 59,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 51,
"end": 54,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 55,
"end": 58,
@ -121,6 +132,7 @@ expression: actual
}
},
{
"type": "Literal",
"type": "Literal",
"start": 61,
"end": 62,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 63,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 31,
"end": 63,
@ -84,26 +89,31 @@ expression: actual
"name": "height"
},
"init": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 46,
"end": 63,
"elements": [
{
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 47,
"end": 59,
"operator": "-",
"left": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 47,
"end": 55,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 47,
"end": 50,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 51,
"end": 54,
@ -113,6 +123,7 @@ expression: actual
"computed": false
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 58,
"end": 59,
@ -121,6 +132,7 @@ expression: actual
}
},
{
"type": "Literal",
"type": "Literal",
"start": 61,
"end": 62,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 62,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 31,
"end": 62,
@ -84,26 +89,31 @@ expression: actual
"name": "height"
},
"init": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 46,
"end": 62,
"elements": [
{
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 47,
"end": 58,
"operator": "-",
"left": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 47,
"end": 55,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 47,
"end": 50,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 51,
"end": 54,
@ -113,6 +123,7 @@ expression: actual
"computed": false
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 57,
"end": 58,
@ -121,6 +132,7 @@ expression: actual
}
},
{
"type": "Literal",
"type": "Literal",
"start": 60,
"end": 61,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 24,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 24,
@ -22,11 +23,13 @@ expression: actual
"name": "height"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 15,
"end": 24,
"operator": "-",
"left": {
"type": "Literal",
"type": "Literal",
"start": 15,
"end": 16,
@ -34,16 +37,19 @@ expression: actual
"raw": "1"
},
"right": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 19,
"end": 24,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 19,
"end": 22,
"name": "obj"
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 23,
"end": 24,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 21,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 21,
@ -22,16 +23,19 @@ expression: actual
"name": "six"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 12,
"end": 21,
"operator": "+",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 12,
"end": 17,
"operator": "+",
"left": {
"type": "Literal",
"type": "Literal",
"start": 12,
"end": 13,
@ -39,6 +43,7 @@ expression: actual
"raw": "1"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 16,
"end": 17,
@ -47,6 +52,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 20,
"end": 21,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 22,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 22,
@ -22,16 +23,19 @@ expression: actual
"name": "five"
},
"init": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 13,
"end": 22,
"operator": "+",
"left": {
"type": "BinaryExpression",
"type": "BinaryExpression",
"start": 13,
"end": 18,
"operator": "*",
"left": {
"type": "Literal",
"type": "Literal",
"start": 13,
"end": 14,
@ -39,6 +43,7 @@ expression: actual
"raw": "3"
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -47,6 +52,7 @@ expression: actual
}
},
"right": {
"type": "Literal",
"type": "Literal",
"start": 21,
"end": 22,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 30,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 30,
@ -22,21 +23,25 @@ expression: actual
"name": "height"
},
"init": {
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 15,
"end": 30,
"elements": [
{
"type": "MemberExpression",
"type": "MemberExpression",
"start": 17,
"end": 25,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 17,
"end": 20,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 21,
"end": 24,
@ -46,6 +51,7 @@ expression: actual
"computed": false
},
{
"type": "Literal",
"type": "Literal",
"start": 27,
"end": 28,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 54,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 26,
@ -22,6 +23,7 @@ expression: actual
"name": "obj"
},
"init": {
"type": "ObjectExpression",
"type": "ObjectExpression",
"start": 12,
"end": 26,
@ -37,6 +39,7 @@ expression: actual
"name": "a"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 17,
"end": 18,
@ -55,6 +58,7 @@ expression: actual
"name": "b"
},
"value": {
"type": "Literal",
"type": "Literal",
"start": 23,
"end": 24,
@ -69,6 +73,7 @@ expression: actual
"kind": "const"
},
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 31,
"end": 54,
@ -84,16 +89,19 @@ expression: actual
"name": "height"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 46,
"end": 54,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 46,
"end": 49,
"name": "obj"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 50,
"end": 53,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 27,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 27,
@ -22,20 +23,24 @@ expression: actual
"name": "prop"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 13,
"end": 27,
"object": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 13,
"end": 22,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 13,
"end": 15,
"name": "yo"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 16,
"end": 21,
@ -45,6 +50,7 @@ expression: actual
"computed": false
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 23,
"end": 26,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 17,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 17,
@ -22,16 +23,19 @@ expression: actual
"name": "pt1"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 12,
"end": 17,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 12,
"end": 14,
"name": "b1"
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 15,
"end": 16,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 34,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 34,
@ -22,28 +23,34 @@ expression: actual
"name": "prop"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 13,
"end": 34,
"object": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 13,
"end": 29,
"object": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 13,
"end": 23,
"object": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 13,
"end": 19,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 13,
"end": 15,
"name": "yo"
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 16,
"end": 19,
@ -52,6 +59,7 @@ expression: actual
"computed": false
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 20,
"end": 23,
@ -60,6 +68,7 @@ expression: actual
"computed": false
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 24,
"end": 29,
@ -68,6 +77,7 @@ expression: actual
"computed": false
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 30,
"end": 34,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 17,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 17,
@ -22,16 +23,19 @@ expression: actual
"name": "pt1"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 12,
"end": 17,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 12,
"end": 14,
"name": "b1"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 15,
"end": 16,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 22,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 22,
@ -22,16 +23,19 @@ expression: actual
"name": "pt1"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 12,
"end": 22,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 12,
"end": 14,
"name": "b1"
},
"property": {
"type": "Literal",
"type": "Literal",
"start": 15,
"end": 21,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 19,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 19,
@ -22,16 +23,19 @@ expression: actual
"name": "pt1"
},
"init": {
"type": "MemberExpression",
"type": "MemberExpression",
"start": 12,
"end": 19,
"object": {
"type": "Identifier",
"type": "Identifier",
"start": 12,
"end": 14,
"name": "b1"
},
"property": {
"type": "Identifier",
"type": "Identifier",
"start": 15,
"end": 19,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 29,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 29,
@ -22,6 +23,7 @@ expression: actual
"name": "sg"
},
"init": {
"type": "CallExpression",
"type": "CallExpression",
"start": 11,
"end": 29,
@ -33,6 +35,7 @@ expression: actual
},
"arguments": [
{
"type": "Identifier",
"type": "Identifier",
"start": 25,
"end": 28,

View File

@ -7,6 +7,7 @@ expression: actual
"end": 53,
"body": [
{
"type": "VariableDeclaration",
"type": "VariableDeclaration",
"start": 0,
"end": 53,
@ -22,11 +23,13 @@ expression: actual
"name": "sg"
},
"init": {
"type": "PipeExpression",
"type": "PipeExpression",
"start": 11,
"end": 53,
"body": [
{
"type": "CallExpression",
"type": "CallExpression",
"start": 11,
"end": 29,
@ -38,6 +41,7 @@ expression: actual
},
"arguments": [
{
"type": "Identifier",
"type": "Identifier",
"start": 25,
"end": 28,
@ -47,6 +51,7 @@ expression: actual
"optional": false
},
{
"type": "CallExpression",
"type": "CallExpression",
"start": 33,
"end": 53,
@ -58,11 +63,13 @@ expression: actual
},
"arguments": [
{
"type": "ArrayExpression",
"type": "ArrayExpression",
"start": 38,
"end": 49,
"elements": [
{
"type": "Literal",
"type": "Literal",
"start": 39,
"end": 40,
@ -70,11 +77,13 @@ expression: actual
"raw": "0"
},
{
"type": "UnaryExpression",
"type": "UnaryExpression",
"start": 42,
"end": 48,
"operator": "-",
"argument": {
"type": "Identifier",
"type": "Identifier",
"start": 43,
"end": 48,
@ -84,6 +93,7 @@ expression: actual
]
},
{
"type": "PipeSubstitution",
"type": "PipeSubstitution",
"start": 51,
"end": 52