KCL: Skip serializing default values for AST nodes (#4193)

This will make our snapshots and JSON representations easier to read (making our tests less verbose).
This commit is contained in:
Adam Chalmers
2024-10-17 16:22:40 -07:00
committed by GitHub
parent 057ee479c3
commit a010743abb
80 changed files with 971 additions and 2292 deletions

View File

@ -82652,7 +82652,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -83209,7 +83208,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],
@ -86410,7 +86408,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -86967,7 +86964,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],
@ -90172,7 +90168,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -90729,7 +90724,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],
@ -114786,7 +114780,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -115343,7 +115336,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],
@ -118937,7 +118929,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -119494,7 +119485,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],
@ -122695,7 +122685,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -123252,7 +123241,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],
@ -126451,7 +126439,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start" "start"
], ],
"properties": { "properties": {
@ -127008,7 +126995,6 @@
"required": [ "required": [
"body", "body",
"end", "end",
"nonCodeMeta",
"start", "start",
"type" "type"
], ],

View File

@ -40,9 +40,7 @@ export class KclManager {
nonCodeMeta: { nonCodeMeta: {
nonCodeNodes: {}, nonCodeNodes: {},
start: [], start: [],
digest: null,
}, },
digest: null,
} }
private _execState: ExecState = emptyExecState() private _execState: ExecState = emptyExecState()
private _programMemory: ProgramMemory = ProgramMemory.empty() private _programMemory: ProgramMemory = ProgramMemory.empty()
@ -208,9 +206,7 @@ export class KclManager {
nonCodeMeta: { nonCodeMeta: {
nonCodeNodes: {}, nonCodeNodes: {},
start: [], start: [],
digest: null,
}, },
digest: null,
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -172,7 +172,6 @@ const sk2 = startSketchOn('XY')
start: 114, start: 114,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'p', value: 'p',
digest: null,
}, },
id: expect.any(String), id: expect.any(String),
sourceRange: [95, 117], sourceRange: [95, 117],
@ -223,7 +222,6 @@ const sk2 = startSketchOn('XY')
start: 114, start: 114,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'p', value: 'p',
digest: null,
}, },
__geoMeta: { __geoMeta: {
id: expect.any(String), id: expect.any(String),
@ -266,7 +264,6 @@ const sk2 = startSketchOn('XY')
start: 417, start: 417,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'o', value: 'o',
digest: null,
}, },
id: expect.any(String), id: expect.any(String),
sourceRange: [399, 420], sourceRange: [399, 420],
@ -317,7 +314,6 @@ const sk2 = startSketchOn('XY')
start: 417, start: 417,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'o', value: 'o',
digest: null,
}, },
__geoMeta: { __geoMeta: {
id: expect.any(String), id: expect.any(String),

View File

@ -73,7 +73,6 @@ const newVar = myVar + 1`
start: 89, start: 89,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'myPath', value: 'myPath',
digest: null,
}, },
}, },
{ {
@ -99,7 +98,6 @@ const newVar = myVar + 1`
start: 143, start: 143,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'rightPath', value: 'rightPath',
digest: null,
}, },
}, },
]) ])
@ -201,7 +199,6 @@ const newVar = myVar + 1`
start: 109, start: 109,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'myPath', value: 'myPath',
digest: null,
}, },
}, },
{ {

View File

@ -100,15 +100,15 @@ describe('Testing findUniqueName', () => {
it('should find a unique name', () => { it('should find a unique name', () => {
const result = findUniqueName( const result = findUniqueName(
JSON.stringify([ JSON.stringify([
{ type: 'Identifier', name: 'yo01', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo01', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo02', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo02', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo03', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo03', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo04', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo04', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo05', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo05', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo06', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo06', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo07', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo07', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo08', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo08', start: 0, end: 0 },
{ type: 'Identifier', name: 'yo09', start: 0, end: 0, digest: null }, { type: 'Identifier', name: 'yo09', start: 0, end: 0 },
] satisfies Identifier[]), ] satisfies Identifier[]),
'yo', 'yo',
2 2
@ -123,8 +123,7 @@ describe('Testing addSketchTo', () => {
body: [], body: [],
start: 0, start: 0,
end: 0, end: 0,
nonCodeMeta: { nonCodeNodes: {}, start: [], digest: null }, nonCodeMeta: { nonCodeNodes: {}, start: [] },
digest: null,
}, },
'yz' 'yz'
) )

View File

@ -241,7 +241,6 @@ export function mutateObjExpProp(
value: updateWith, value: updateWith,
start: 0, start: 0,
end: 0, end: 0,
digest: null,
}) })
} }
} }
@ -579,7 +578,6 @@ export function createLiteral(value: string | number): Literal {
end: 0, end: 0,
value, value,
raw: `${value}`, raw: `${value}`,
digest: null,
} }
} }
@ -588,7 +586,7 @@ export function createTagDeclarator(value: string): TagDeclarator {
type: 'TagDeclarator', type: 'TagDeclarator',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
value, value,
} }
} }
@ -598,7 +596,7 @@ export function createIdentifier(name: string): Identifier {
type: 'Identifier', type: 'Identifier',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
name, name,
} }
} }
@ -608,7 +606,6 @@ export function createPipeSubstitution(): PipeSubstitution {
type: 'PipeSubstitution', type: 'PipeSubstitution',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
} }
} }
@ -624,12 +621,11 @@ export function createCallExpressionStdLib(
type: 'Identifier', type: 'Identifier',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
name, name,
}, },
optional: false, optional: false,
arguments: args, arguments: args,
digest: null,
} }
} }
@ -645,12 +641,11 @@ export function createCallExpression(
type: 'Identifier', type: 'Identifier',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
name, name,
}, },
optional: false, optional: false,
arguments: args, arguments: args,
digest: null,
} }
} }
@ -661,7 +656,7 @@ export function createArrayExpression(
type: 'ArrayExpression', type: 'ArrayExpression',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
nonCodeMeta: nonCodeMetaEmpty(), nonCodeMeta: nonCodeMetaEmpty(),
elements, elements,
} }
@ -674,7 +669,7 @@ export function createPipeExpression(
type: 'PipeExpression', type: 'PipeExpression',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
body, body,
nonCodeMeta: nonCodeMetaEmpty(), nonCodeMeta: nonCodeMetaEmpty(),
} }
@ -690,13 +685,13 @@ export function createVariableDeclaration(
type: 'VariableDeclaration', type: 'VariableDeclaration',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
declarations: [ declarations: [
{ {
type: 'VariableDeclarator', type: 'VariableDeclarator',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
id: createIdentifier(varName), id: createIdentifier(varName),
init, init,
}, },
@ -713,14 +708,14 @@ export function createObjectExpression(properties: {
type: 'ObjectExpression', type: 'ObjectExpression',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
nonCodeMeta: nonCodeMetaEmpty(), nonCodeMeta: nonCodeMetaEmpty(),
properties: Object.entries(properties).map(([key, value]) => ({ properties: Object.entries(properties).map(([key, value]) => ({
type: 'ObjectProperty', type: 'ObjectProperty',
start: 0, start: 0,
end: 0, end: 0,
key: createIdentifier(key), key: createIdentifier(key),
digest: null,
value, value,
})), })),
} }
@ -734,7 +729,7 @@ export function createUnaryExpression(
type: 'UnaryExpression', type: 'UnaryExpression',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
operator, operator,
argument, argument,
} }
@ -749,7 +744,7 @@ export function createBinaryExpression([left, operator, right]: [
type: 'BinaryExpression', type: 'BinaryExpression',
start: 0, start: 0,
end: 0, end: 0,
digest: null,
operator, operator,
left, left,
right, right,
@ -1139,5 +1134,5 @@ export async function deleteFromSelection(
} }
const nonCodeMetaEmpty = () => { const nonCodeMetaEmpty = () => {
return { nonCodeNodes: {}, start: [], digest: null } return { nonCodeNodes: {}, start: [] }
} }

View File

@ -1823,11 +1823,10 @@ export const updateStartProfileAtArgs: SketchLineHelper['updateArgs'] = ({
start: 0, start: 0,
end: 0, end: 0,
body: [], body: [],
digest: null,
nonCodeMeta: { nonCodeMeta: {
start: [], start: [],
nonCodeNodes: [], nonCodeNodes: [],
digest: null,
}, },
}, },
pathToNode, pathToNode,

View File

@ -53,8 +53,10 @@ pub struct Program {
pub start: usize, pub start: usize,
pub end: usize, pub end: usize,
pub body: Vec<BodyItem>, pub body: Vec<BodyItem>,
#[serde(default, skip_serializing_if = "NonCodeMeta::is_empty")]
pub non_code_meta: NonCodeMeta, pub non_code_meta: NonCodeMeta,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -837,6 +839,7 @@ pub struct NonCodeNode {
pub end: usize, pub end: usize,
pub value: NonCodeValue, pub value: NonCodeValue,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -981,6 +984,7 @@ pub struct NonCodeMeta {
pub non_code_nodes: HashMap<usize, Vec<NonCodeNode>>, pub non_code_nodes: HashMap<usize, Vec<NonCodeNode>>,
pub start: Vec<NonCodeNode>, pub start: Vec<NonCodeNode>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1053,6 +1057,7 @@ pub struct ImportItem {
pub start: usize, pub start: usize,
pub end: usize, pub end: usize,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1105,6 +1110,7 @@ pub struct ImportStatement {
pub path: String, pub path: String,
pub raw_path: String, pub raw_path: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1146,6 +1152,7 @@ pub struct ExpressionStatement {
pub end: usize, pub end: usize,
pub expression: Expr, pub expression: Expr,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1162,6 +1169,7 @@ pub struct CallExpression {
pub arguments: Vec<Expr>, pub arguments: Vec<Expr>,
pub optional: bool, pub optional: bool,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1321,6 +1329,7 @@ pub struct VariableDeclaration {
pub visibility: ItemVisibility, pub visibility: ItemVisibility,
pub kind: VariableKind, // Change to enum if there are specific values pub kind: VariableKind, // Change to enum if there are specific values
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1575,6 +1584,7 @@ pub struct VariableDeclarator {
/// The value of the variable. /// The value of the variable.
pub init: Expr, pub init: Expr,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1606,6 +1616,7 @@ pub struct Literal {
pub value: LiteralValue, pub value: LiteralValue,
pub raw: String, pub raw: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1662,6 +1673,7 @@ pub struct Identifier {
pub end: usize, pub end: usize,
pub name: String, pub name: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1703,6 +1715,7 @@ pub struct TagDeclarator {
#[serde(rename = "value")] #[serde(rename = "value")]
pub name: String, pub name: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1821,6 +1834,7 @@ pub struct PipeSubstitution {
pub start: usize, pub start: usize,
pub end: usize, pub end: usize,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1859,6 +1873,7 @@ pub struct ArrayExpression {
#[serde(default, skip_serializing_if = "NonCodeMeta::is_empty")] #[serde(default, skip_serializing_if = "NonCodeMeta::is_empty")]
pub non_code_meta: NonCodeMeta, pub non_code_meta: NonCodeMeta,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -1934,6 +1949,7 @@ pub struct ArrayRangeExpression {
/// Is the `end_element` included in the range? /// Is the `end_element` included in the range?
pub end_inclusive: bool, pub end_inclusive: bool,
// TODO (maybe) comments on range components? // TODO (maybe) comments on range components?
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2000,6 +2016,7 @@ pub struct ObjectExpression {
#[serde(default, skip_serializing_if = "NonCodeMeta::is_empty")] #[serde(default, skip_serializing_if = "NonCodeMeta::is_empty")]
pub non_code_meta: NonCodeMeta, pub non_code_meta: NonCodeMeta,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2067,6 +2084,7 @@ pub struct ObjectProperty {
pub key: Identifier, pub key: Identifier,
pub value: Expr, pub value: Expr,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2197,6 +2215,7 @@ pub struct MemberExpression {
pub property: LiteralIdentifier, pub property: LiteralIdentifier,
pub computed: bool, pub computed: bool,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2256,6 +2275,7 @@ pub struct BinaryExpression {
pub left: BinaryPart, pub left: BinaryPart,
pub right: BinaryPart, pub right: BinaryPart,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2438,6 +2458,7 @@ pub struct UnaryExpression {
pub operator: UnaryOperator, pub operator: UnaryOperator,
pub argument: BinaryPart, pub argument: BinaryPart,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2513,8 +2534,10 @@ pub struct PipeExpression {
// TODO: Only the first body expression can be any Value. // TODO: Only the first body expression can be any Value.
// The rest will be CallExpression, and the AST type should reflect this. // The rest will be CallExpression, and the AST type should reflect this.
pub body: Vec<Expr>, pub body: Vec<Expr>,
#[serde(default, skip_serializing_if = "NonCodeMeta::is_empty")]
pub non_code_meta: NonCodeMeta, pub non_code_meta: NonCodeMeta,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2650,6 +2673,7 @@ pub struct Parameter {
/// Is the parameter optional? /// Is the parameter optional?
pub optional: bool, pub optional: bool,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2665,6 +2689,7 @@ pub struct FunctionExpression {
#[serde(skip)] #[serde(skip)]
pub return_type: Option<FnArgType>, pub return_type: Option<FnArgType>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }
@ -2751,6 +2776,7 @@ pub struct ReturnStatement {
pub end: usize, pub end: usize,
pub argument: Expr, pub argument: Expr,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub digest: Option<Digest>, pub digest: Option<Digest>,
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -22,8 +21,6 @@ expression: actual
"start": 4, "start": 4,
"end": 5, "end": 5,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -22,8 +21,6 @@ expression: actual
"start": 2, "start": 2,
"end": 3, "end": 3,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -22,8 +21,6 @@ expression: actual
"start": 3, "start": 3,
"end": 4, "end": 4,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -28,8 +27,7 @@ expression: actual
"start": 4, "start": 4,
"end": 5, "end": 5,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -37,10 +35,7 @@ expression: actual
"start": 8, "start": 8,
"end": 9, "end": 9,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -28,8 +27,7 @@ expression: actual
"start": 6, "start": 6,
"end": 7, "end": 7,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -37,10 +35,7 @@ expression: actual
"start": 10, "start": 10,
"end": 11, "end": 11,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
} }

View File

@ -19,8 +19,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -34,8 +33,7 @@ expression: actual
"start": 6, "start": 6,
"end": 7, "end": 7,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -43,12 +41,9 @@ expression: actual
"start": 10, "start": 10,
"end": 11, "end": 11,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -56,8 +51,6 @@ expression: actual
"start": 16, "start": 16,
"end": 17, "end": 17,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null }
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -34,8 +33,7 @@ expression: actual
"start": 6, "start": 6,
"end": 7, "end": 7,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -43,10 +41,8 @@ expression: actual
"start": 10, "start": 10,
"end": 11, "end": 11,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -54,10 +50,7 @@ expression: actual
"start": 16, "start": 16,
"end": 17, "end": 17,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null }
}, }
"digest": null
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -40,8 +39,7 @@ expression: actual
"start": 7, "start": 7,
"end": 8, "end": 8,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -49,10 +47,8 @@ expression: actual
"start": 11, "start": 11,
"end": 12, "end": 12,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -60,10 +56,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -71,10 +65,7 @@ expression: actual
"start": 21, "start": 21,
"end": 22, "end": 22,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null }
}, }
"digest": null
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -28,8 +27,7 @@ expression: actual
"start": 8, "start": 8,
"end": 9, "end": 9,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -37,10 +35,7 @@ expression: actual
"start": 12, "start": 12,
"end": 13, "end": 13,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
} }

View File

@ -30,28 +30,23 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 8, "end": 8,
"name": "distance", "name": "distance"
"digest": null
}, },
"right": { "right": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 11, "start": 11,
"end": 12, "end": 12,
"name": "p", "name": "p"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 15, "start": 15,
"end": 18, "end": 18,
"name": "FOS", "name": "FOS"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -59,10 +54,8 @@ expression: actual
"start": 21, "start": 21,
"end": 22, "end": 22,
"value": 6, "value": 6,
"raw": "6", "raw": "6"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -75,18 +68,14 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 26, "start": 26,
"end": 36, "end": 36,
"name": "sigmaAllow", "name": "sigmaAllow"
"digest": null
}, },
"right": { "right": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 39, "start": 39,
"end": 44, "end": 44,
"name": "width", "name": "width"
"digest": null }
}, }
"digest": null
},
"digest": null
} }

View File

@ -13,8 +13,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -22,8 +21,6 @@ expression: actual
"start": 7, "start": 7,
"end": 8, "end": 8,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 15, "end": 15,
"name": "boxSketch", "name": "boxSketch"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 18, "start": 18,
"end": 31, "end": 31,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -54,8 +52,7 @@ expression: actual
"start": 33, "start": 33,
"end": 34, "end": 34,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -63,15 +60,12 @@ expression: actual
"start": 36, "start": 36,
"end": 37, "end": 37,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
} }
], ],
"digest": null "optional": false
}
],
"optional": false,
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -82,8 +76,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 47, "start": 47,
"end": 51, "end": 51,
"name": "line", "name": "line"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -98,8 +91,7 @@ expression: actual
"start": 53, "start": 53,
"end": 54, "end": 54,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -107,22 +99,18 @@ expression: actual
"start": 56, "start": 56,
"end": 58, "end": 58,
"value": 10, "value": 10,
"raw": "10", "raw": "10"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 61, "start": 61,
"end": 62, "end": 62
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -133,8 +121,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 71, "start": 71,
"end": 84, "end": 84,
"name": "tangentialArc", "name": "tangentialArc"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -155,10 +142,8 @@ expression: actual
"start": 87, "start": 87,
"end": 88, "end": 88,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null }
},
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -166,22 +151,18 @@ expression: actual
"start": 90, "start": 90,
"end": 91, "end": 91,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 94, "start": 94,
"end": 95, "end": 95
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -192,8 +173,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 104, "start": 104,
"end": 108, "end": 108,
"name": "line", "name": "line"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -208,8 +188,7 @@ expression: actual
"start": 110, "start": 110,
"end": 111, "end": 111,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
{ {
"type": "UnaryExpression", "type": "UnaryExpression",
@ -223,24 +202,19 @@ expression: actual
"start": 114, "start": 114,
"end": 116, "end": 116,
"value": 15, "value": 15,
"raw": "15", "raw": "15"
"digest": null
},
"digest": null
} }
], }
"digest": null ]
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 119, "start": 119,
"end": 120, "end": 120
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -251,8 +225,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 129, "start": 129,
"end": 136, "end": 136,
"name": "extrude", "name": "extrude"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -261,39 +234,22 @@ expression: actual
"start": 137, "start": 137,
"end": 139, "end": 139,
"value": 10, "value": 10,
"raw": "10", "raw": "10"
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 141, "start": 141,
"end": 142, "end": 142
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 8, "end": 8,
"name": "sg", "name": "sg"
"digest": null
}, },
"init": { "init": {
"type": "UnaryExpression", "type": "UnaryExpression",
@ -34,22 +33,12 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 12, "start": 12,
"end": 17, "end": 17,
"name": "scale", "name": "scale"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 6, "end": 6,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 9, "start": 9,
"end": 11, "end": 11,
"name": "to", "name": "to"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +51,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "UnaryExpression", "type": "UnaryExpression",
@ -68,30 +65,17 @@ expression: actual
"start": 18, "start": 18,
"end": 19, "end": 19,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
}, }
"digest": null ]
}
}
]
} }
], ],
"digest": null "optional": false
},
"digest": null
} }
],
"digest": null
} }
], ]
"optional": false,
"digest": null
},
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 13, "end": 13,
"name": "myArray", "name": "myArray"
"digest": null
}, },
"init": { "init": {
"type": "ArrayRangeExpression", "type": "ArrayRangeExpression",
@ -34,8 +33,7 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
"endElement": { "endElement": {
"type": "Literal", "type": "Literal",
@ -43,23 +41,13 @@ expression: actual
"start": 20, "start": 20,
"end": 22, "end": 22,
"value": 10, "value": 10,
"raw": "10", "raw": "10"
"digest": null
}, },
"endInclusive": true, "endInclusive": true
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 8, "start": 8,
"end": 24, "end": 24,
"name": "firstPrimeNumber", "name": "firstPrimeNumber"
"digest": null
}, },
"init": { "init": {
"type": "FunctionExpression", "type": "FunctionExpression",
@ -44,26 +43,15 @@ expression: actual
"start": 50, "start": 50,
"end": 51, "end": 51,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
}
} }
], ],
"nonCodeMeta": { "kind": "fn"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
},
"digest": null
}
],
"kind": "fn",
"digest": null
}, },
{ {
"type": "ExpressionStatement", "type": "ExpressionStatement",
@ -79,20 +67,11 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 62, "start": 62,
"end": 78, "end": 78,
"name": "firstPrimeNumber", "name": "firstPrimeNumber"
"digest": null
}, },
"arguments": [], "arguments": [],
"optional": false, "optional": false
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 3, "start": 3,
"end": 8, "end": 8,
"name": "thing", "name": "thing"
"digest": null
}, },
"init": { "init": {
"type": "FunctionExpression", "type": "FunctionExpression",
@ -35,11 +34,9 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 12, "start": 12,
"end": 17, "end": 17,
"name": "param", "name": "param"
"digest": null
}, },
"optional": false, "optional": false
"digest": null
} }
], ],
"body": { "body": {
@ -57,26 +54,15 @@ expression: actual
"start": 39, "start": 39,
"end": 43, "end": 43,
"value": true, "value": true,
"raw": "true", "raw": "true"
"digest": null }
}, }
"digest": null ]
}
}
} }
], ],
"nonCodeMeta": { "kind": "fn"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
},
"digest": null
}
],
"kind": "fn",
"digest": null
}, },
{ {
"type": "ExpressionStatement", "type": "ExpressionStatement",
@ -92,8 +78,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 54, "start": 54,
"end": 59, "end": 59,
"name": "thing", "name": "thing"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -102,20 +87,11 @@ expression: actual
"start": 60, "start": 60,
"end": 65, "end": 65,
"value": false, "value": false,
"raw": "false", "raw": "false"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 14, "end": 14,
"name": "mySketch", "name": "mySketch"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 17, "start": 17,
"end": 30, "end": 30,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -54,8 +52,7 @@ expression: actual
"start": 32, "start": 32,
"end": 33, "end": 33,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -63,15 +60,12 @@ expression: actual
"start": 34, "start": 34,
"end": 35, "end": 35,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
} }
], ],
"digest": null "optional": false
}
],
"optional": false,
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -82,8 +76,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 49, "start": 49,
"end": 55, "end": 55,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -98,8 +91,7 @@ expression: actual
"start": 57, "start": 57,
"end": 58, "end": 58,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -107,30 +99,25 @@ expression: actual
"start": 60, "start": 60,
"end": 61, "end": 61,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 64, "start": 64,
"end": 65, "end": 65
"digest": null
}, },
{ {
"type": "TagDeclarator", "type": "TagDeclarator",
"type": "TagDeclarator", "type": "TagDeclarator",
"start": 67, "start": 67,
"end": 74, "end": 74,
"value": "myPath", "value": "myPath"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -141,8 +128,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 87, "start": 87,
"end": 93, "end": 93,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -157,8 +143,7 @@ expression: actual
"start": 95, "start": 95,
"end": 96, "end": 96,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -166,22 +151,18 @@ expression: actual
"start": 98, "start": 98,
"end": 99, "end": 99,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 102, "start": 102,
"end": 103, "end": 103
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -192,8 +173,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 116, "start": 116,
"end": 122, "end": 122,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -208,8 +188,7 @@ expression: actual
"start": 124, "start": 124,
"end": 125, "end": 125,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -217,30 +196,25 @@ expression: actual
"start": 127, "start": 127,
"end": 128, "end": 128,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 131, "start": 131,
"end": 132, "end": 132
"digest": null
}, },
{ {
"type": "TagDeclarator", "type": "TagDeclarator",
"type": "TagDeclarator", "type": "TagDeclarator",
"start": 134, "start": 134,
"end": 144, "end": 144,
"value": "rightPath", "value": "rightPath"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -251,40 +225,23 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 157, "start": 157,
"end": 162, "end": 162,
"name": "close", "name": "close"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 163, "start": 163,
"end": 164, "end": 164
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 14, "end": 14,
"name": "mySketch", "name": "mySketch"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 17, "start": 17,
"end": 30, "end": 30,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -54,8 +52,7 @@ expression: actual
"start": 32, "start": 32,
"end": 33, "end": 33,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -63,15 +60,12 @@ expression: actual
"start": 34, "start": 34,
"end": 35, "end": 35,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
} }
], ],
"digest": null "optional": false
}
],
"optional": false,
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -82,8 +76,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 41, "start": 41,
"end": 47, "end": 47,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -98,8 +91,7 @@ expression: actual
"start": 49, "start": 49,
"end": 50, "end": 50,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -107,22 +99,18 @@ expression: actual
"start": 52, "start": 52,
"end": 53, "end": 53,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 56, "start": 56,
"end": 57, "end": 57
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -133,40 +121,23 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 62, "start": 62,
"end": 67, "end": 67,
"name": "close", "name": "close"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 68, "start": 68,
"end": 69, "end": 69
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 11, "end": 11,
"name": "myBox", "name": "myBox"
"digest": null
}, },
"init": { "init": {
"type": "CallExpression", "type": "CallExpression",
@ -32,8 +31,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 27, "end": 27,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -41,24 +39,14 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 28, "start": 28,
"end": 29, "end": 29,
"name": "p", "name": "p"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 11, "end": 11,
"name": "myBox", "name": "myBox"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "f", "name": "f"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -48,12 +46,10 @@ expression: actual
"start": 16, "start": 16,
"end": 17, "end": 17,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -64,8 +60,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 22, "start": 22,
"end": 23, "end": 23,
"name": "g", "name": "g"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -74,39 +69,22 @@ expression: actual
"start": 24, "start": 24,
"end": 25, "end": 25,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 27, "start": 27,
"end": 28, "end": 28
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 11, "end": 11,
"name": "myBox", "name": "myBox"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 27, "end": 27,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -47,12 +45,10 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 28, "start": 28,
"end": 29, "end": 29,
"name": "p", "name": "p"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -63,8 +59,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 34, "start": 34,
"end": 38, "end": 38,
"name": "line", "name": "line"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -79,50 +74,31 @@ expression: actual
"start": 40, "start": 40,
"end": 41, "end": 41,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 43, "start": 43,
"end": 44, "end": 44,
"name": "l", "name": "l"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 47, "start": 47,
"end": 48, "end": 48
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 6, "end": 6,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 9, "start": 9,
"end": 11, "end": 11,
"name": "to", "name": "to"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +51,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -62,28 +59,16 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
]
}
}
]
} }
], ],
"digest": null "optional": false
},
"digest": null
} }
],
"digest": null
} }
], ]
"optional": false,
"digest": null
},
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 6, "end": 6,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 9, "start": 9,
"end": 11, "end": 11,
"name": "to", "name": "to"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +51,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -62,13 +59,10 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
]
} }
],
"digest": null
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -78,8 +72,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 21, "start": 21,
"end": 25, "end": 25,
"name": "from", "name": "from"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -93,8 +86,7 @@ expression: actual
"start": 28, "start": 28,
"end": 29, "end": 29,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -102,28 +94,16 @@ expression: actual
"start": 31, "start": 31,
"end": 32, "end": 32,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
]
}
}
]
} }
], ],
"digest": null "optional": false
},
"digest": null
} }
],
"digest": null
} }
], ]
"optional": false,
"digest": null
},
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 6, "end": 6,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 8, "start": 8,
"end": 10, "end": 10,
"name": "to", "name": "to"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +51,7 @@ expression: actual
"start": 12, "start": 12,
"end": 13, "end": 13,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -62,28 +59,16 @@ expression: actual
"start": 15, "start": 15,
"end": 16, "end": 16,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
]
}
}
]
} }
], ],
"digest": null "optional": false
},
"digest": null
} }
],
"digest": null
} }
], ]
"optional": false,
"digest": null
},
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 6, "end": 6,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 9, "start": 9,
"end": 11, "end": 11,
"name": "to", "name": "to"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +51,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -62,13 +59,10 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
]
} }
],
"digest": null
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -78,8 +72,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 21, "start": 21,
"end": 25, "end": 25,
"name": "from", "name": "from"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -93,8 +86,7 @@ expression: actual
"start": 28, "start": 28,
"end": 29, "end": 29,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -102,28 +94,16 @@ expression: actual
"start": 31, "start": 31,
"end": 32, "end": 32,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
]
}
}
]
} }
], ],
"digest": null "optional": false
},
"digest": null
} }
],
"digest": null
} }
], ]
"optional": false,
"digest": null
},
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 6, "end": 6,
"name": "lineTo", "name": "lineTo"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 9, "start": 9,
"end": 11, "end": 11,
"name": "to", "name": "to"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +51,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -62,13 +59,10 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
]
} }
],
"digest": null
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -78,8 +72,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 24, "end": 24,
"name": "from", "name": "from"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -93,8 +86,7 @@ expression: actual
"start": 27, "start": 27,
"end": 28, "end": 28,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -102,28 +94,16 @@ expression: actual
"start": 30, "start": 30,
"end": 31, "end": 31,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
]
}
}
]
} }
], ],
"digest": null "optional": false
},
"digest": null
} }
],
"digest": null
} }
], ]
"optional": false,
"digest": null
},
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 14, "end": 14,
"name": "mySketch", "name": "mySketch"
"digest": null
}, },
"init": { "init": {
"type": "CallExpression", "type": "CallExpression",
@ -32,8 +31,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 17, "start": 17,
"end": 30, "end": 30,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -48,8 +46,7 @@ expression: actual
"start": 32, "start": 32,
"end": 33, "end": 33,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -57,27 +54,16 @@ expression: actual
"start": 34, "start": 34,
"end": 35, "end": 35,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
} }
], ],
"digest": null "optional": false
}
} }
], ],
"optional": false, "kind": "const"
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 3, "end": 3,
"name": "log", "name": "log"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -30,8 +29,7 @@ expression: actual
"start": 4, "start": 4,
"end": 5, "end": 5,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -39,28 +37,18 @@ expression: actual
"start": 7, "start": 7,
"end": 14, "end": 14,
"value": "hello", "value": "hello",
"raw": "\"hello\"", "raw": "\"hello\""
"digest": null
}, },
{ {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 16, "start": 16,
"end": 27, "end": 27,
"name": "aIdentifier", "name": "aIdentifier"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -23,8 +23,7 @@ expression: actual
"start": 0, "start": 0,
"end": 1, "end": 1,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -32,18 +31,9 @@ expression: actual
"start": 4, "start": 4,
"end": 7, "end": 7,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
},
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { }
"nonCodeNodes": {}, ]
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 4, "end": 4,
"name": "line", "name": "line"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -36,38 +35,26 @@ expression: actual
"start": 6, "start": 6,
"end": 7, "end": 7,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 9, "start": 9,
"end": 10, "end": 10,
"name": "l", "name": "l"
"digest": null
} }
], ]
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 13, "start": 13,
"end": 14, "end": 14
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 14, "end": 14,
"name": "cylinder", "name": "cylinder"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 17, "start": 17,
"end": 30, "end": 30,
"name": "startSketchOn", "name": "startSketchOn"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -48,12 +46,10 @@ expression: actual
"start": 31, "start": 31,
"end": 35, "end": 35,
"value": "XY", "value": "XY",
"raw": "'XY'", "raw": "'XY'"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -64,8 +60,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 44, "start": 44,
"end": 50, "end": 50,
"name": "circle", "name": "circle"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -82,8 +77,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 53, "start": 53,
"end": 59, "end": 59,
"name": "center", "name": "center"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -97,8 +91,7 @@ expression: actual
"start": 62, "start": 62,
"end": 63, "end": 63,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -106,13 +99,10 @@ expression: actual
"start": 65, "start": 65,
"end": 66, "end": 66,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
} }
],
"digest": null
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -122,8 +112,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 69, "start": 69,
"end": 75, "end": 75,
"name": "radius", "name": "radius"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -131,24 +120,19 @@ expression: actual
"start": 77, "start": 77,
"end": 79, "end": 79,
"value": 22, "value": 22,
"raw": "22", "raw": "22"
"digest": null
},
"digest": null
} }
], }
"digest": null ]
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 83, "start": 83,
"end": 84, "end": 84
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -159,8 +143,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 93, "start": 93,
"end": 100, "end": 100,
"name": "extrude", "name": "extrude"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -169,39 +152,22 @@ expression: actual
"start": 101, "start": 101,
"end": 103, "end": 103,
"value": 14, "value": 14,
"raw": "14", "raw": "14"
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 105, "start": 105,
"end": 106, "end": 106
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 3, "start": 3,
"end": 4, "end": 4,
"name": "f", "name": "f"
"digest": null
}, },
"init": { "init": {
"type": "FunctionExpression", "type": "FunctionExpression",
@ -35,11 +34,9 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 8, "start": 8,
"end": 13, "end": 13,
"name": "angle", "name": "angle"
"digest": null
}, },
"optional": true, "optional": true
"digest": null
} }
], ],
"body": { "body": {
@ -60,8 +57,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 28, "start": 28,
"end": 35, "end": 35,
"name": "default", "name": "default"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -69,8 +65,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 36, "start": 36,
"end": 41, "end": 41,
"name": "angle", "name": "angle"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -78,36 +73,18 @@ expression: actual
"start": 43, "start": 43,
"end": 46, "end": 46,
"value": 360, "value": 360,
"raw": "360", "raw": "360"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
}, }
"digest": null ]
}
}
} }
], ],
"nonCodeMeta": { "kind": "fn"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "fn",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 11, "end": 11,
"name": "numbers", "name": "numbers"
"digest": null
}, },
"init": { "init": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -35,8 +34,7 @@ expression: actual
"start": 28, "start": 28,
"end": 29, "end": 29,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -44,8 +42,7 @@ expression: actual
"start": 79, "start": 79,
"end": 80, "end": 80,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
} }
], ],
"nonCodeMeta": { "nonCodeMeta": {
@ -59,8 +56,7 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "A,", "value": "A,",
"style": "line" "style": "line"
}, }
"digest": null
} }
], ],
"2": [ "2": [
@ -72,27 +68,16 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "B,", "value": "B,",
"style": "line" "style": "line"
}, }
"digest": null
} }
] ]
}, },
"start": [], "start": []
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 11, "end": 11,
"name": "numbers", "name": "numbers"
"digest": null
}, },
"init": { "init": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -35,8 +34,7 @@ expression: actual
"start": 28, "start": 28,
"end": 29, "end": 29,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -44,8 +42,7 @@ expression: actual
"start": 43, "start": 43,
"end": 44, "end": 44,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null
} }
], ],
"nonCodeMeta": { "nonCodeMeta": {
@ -59,8 +56,7 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "A,", "value": "A,",
"style": "line" "style": "line"
}, }
"digest": null
} }
], ],
"3": [ "3": [
@ -72,27 +68,16 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "B,", "value": "B,",
"style": "line" "style": "line"
}, }
"digest": null
} }
] ]
}, },
"start": [], "start": []
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 9, "end": 9,
"name": "props", "name": "props"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 26, "start": 26,
"end": 27, "end": 27,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 29, "start": 29,
"end": 30, "end": 30,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 65, "start": 65,
"end": 66, "end": 66,
"name": "c", "name": "c"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,10 +63,8 @@ expression: actual
"start": 68, "start": 68,
"end": 69, "end": 69,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
},
"digest": null
} }
], ],
"nonCodeMeta": { "nonCodeMeta": {
@ -85,27 +78,16 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "b: 2,", "value": "b: 2,",
"style": "line" "style": "line"
}, }
"digest": null
} }
] ]
}, },
"start": [], "start": []
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 9, "end": 9,
"name": "props", "name": "props"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 26, "start": 26,
"end": 27, "end": 27,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 29, "start": 29,
"end": 30, "end": 30,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 65, "start": 65,
"end": 66, "end": 66,
"name": "c", "name": "c"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,10 +63,8 @@ expression: actual
"start": 68, "start": 68,
"end": 69, "end": 69,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
},
"digest": null
} }
], ],
"nonCodeMeta": { "nonCodeMeta": {
@ -85,27 +78,16 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "b: 2,", "value": "b: 2,",
"style": "line" "style": "line"
}, }
"digest": null
} }
] ]
}, },
"start": [], "start": []
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 11, "end": 11,
"name": "myVar", "name": "myVar"
"digest": null
}, },
"init": { "init": {
"type": "CallExpression", "type": "CallExpression",
@ -32,8 +31,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 17, "end": 17,
"name": "min", "name": "min"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -42,8 +40,7 @@ expression: actual
"start": 18, "start": 18,
"end": 19, "end": 19,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
{ {
"type": "UnaryExpression", "type": "UnaryExpression",
@ -60,8 +57,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 23, "start": 23,
"end": 29, "end": 29,
"name": "legLen", "name": "legLen"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -70,8 +66,7 @@ expression: actual
"start": 30, "start": 30,
"end": 31, "end": 31,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -79,30 +74,18 @@ expression: actual
"start": 33, "start": 33,
"end": 34, "end": 34,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
},
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 16, "end": 16,
"name": "sketch001", "name": "sketch001"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 19, "start": 19,
"end": 32, "end": 32,
"name": "startSketchOn", "name": "startSketchOn"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -48,12 +46,10 @@ expression: actual
"start": 33, "start": 33,
"end": 37, "end": 37,
"value": "XY", "value": "XY",
"raw": "'XY'", "raw": "'XY'"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -64,20 +60,17 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 115, "start": 115,
"end": 129, "end": 129,
"name": "startProfileAt", "name": "startProfileAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 130, "start": 130,
"end": 131, "end": 131
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
} }
], ],
"nonCodeMeta": { "nonCodeMeta": {
@ -91,8 +84,7 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "|> arc({", "value": "|> arc({",
"style": "line" "style": "line"
}, }
"digest": null
}, },
{ {
"type": "NonCodeNode", "type": "NonCodeNode",
@ -102,8 +94,7 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "angleEnd: 270,", "value": "angleEnd: 270,",
"style": "line" "style": "line"
}, }
"digest": null
}, },
{ {
"type": "NonCodeNode", "type": "NonCodeNode",
@ -113,8 +104,7 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "angleStart: 450,", "value": "angleStart: 450,",
"style": "line" "style": "line"
}, }
"digest": null
}, },
{ {
"type": "NonCodeNode", "type": "NonCodeNode",
@ -124,27 +114,16 @@ expression: actual
"type": "blockComment", "type": "blockComment",
"value": "}, %)", "value": "}, %)",
"style": "line" "style": "line"
}, }
"digest": null
} }
] ]
}, },
"start": [], "start": []
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 11, "end": 11,
"name": "my14", "name": "my14"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -41,8 +40,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -50,10 +48,8 @@ expression: actual
"start": 18, "start": 18,
"end": 19, "end": 19,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -73,8 +69,7 @@ expression: actual
"start": 22, "start": 22,
"end": 23, "end": 23,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -82,10 +77,8 @@ expression: actual
"start": 26, "start": 26,
"end": 27, "end": 27,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -93,24 +86,13 @@ expression: actual
"start": 30, "start": 30,
"end": 31, "end": 31,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null }
},
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 7, "end": 7,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "IfExpression", "type": "IfExpression",
@ -34,8 +33,7 @@ expression: actual
"start": 13, "start": 13,
"end": 17, "end": 17,
"value": true, "value": true,
"raw": "true", "raw": "true"
"digest": null
}, },
"then_val": { "then_val": {
"start": 32, "start": 32,
@ -52,18 +50,10 @@ expression: actual
"start": 32, "start": 32,
"end": 33, "end": 33,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
}, },
"else_ifs": [], "else_ifs": [],
"final_else": { "final_else": {
@ -81,32 +71,16 @@ expression: actual
"start": 63, "start": 63,
"end": 64, "end": 64,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null }
}
]
}, },
"digest": null "digest": null
} }
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 7, "end": 7,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "IfExpression", "type": "IfExpression",
@ -34,8 +33,7 @@ expression: actual
"start": 13, "start": 13,
"end": 17, "end": 17,
"value": true, "value": true,
"raw": "true", "raw": "true"
"digest": null
}, },
"then_val": { "then_val": {
"start": 32, "start": 32,
@ -52,18 +50,10 @@ expression: actual
"start": 32, "start": 32,
"end": 33, "end": 33,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
}, },
"else_ifs": [ "else_ifs": [
{ {
@ -79,8 +69,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 52, "start": 52,
"end": 56, "end": 56,
"name": "func", "name": "func"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -88,12 +77,10 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 57, "start": 57,
"end": 63, "end": 63,
"name": "radius", "name": "radius"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
"then_val": { "then_val": {
"start": 65, "start": 65,
@ -110,18 +97,10 @@ expression: actual
"start": 79, "start": 79,
"end": 80, "end": 80,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null
},
"digest": null
} }
], }
"nonCodeMeta": { ]
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
}, },
"digest": null "digest": null
} }
@ -141,32 +120,16 @@ expression: actual
"start": 110, "start": 110,
"end": 111, "end": 111,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null }
}
]
}, },
"digest": null "digest": null
} }
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 5, "end": 5,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -35,8 +34,7 @@ expression: actual
"start": 8, "start": 8,
"end": 9, "end": 9,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -44,22 +42,12 @@ expression: actual
"start": 13, "start": 13,
"end": 14, "end": 14,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 5, "end": 5,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -35,8 +34,7 @@ expression: actual
"start": 8, "start": 8,
"end": 9, "end": 9,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -44,22 +42,12 @@ expression: actual
"start": 13, "start": 13,
"end": 14, "end": 14,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 0, "start": 0,
"end": 1, "end": 1,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "Literal", "type": "Literal",
@ -29,20 +28,11 @@ expression: actual
"start": 4, "start": 4,
"end": 5, "end": 5,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -1,6 +1,5 @@
--- ---
source: kcl/src/parser/parser_impl.rs source: kcl/src/parser/parser_impl.rs
assertion_line: 3718
expression: actual expression: actual
--- ---
{ {
@ -21,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -38,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 13, "start": 13,
"end": 19, "end": 19,
"name": "center", "name": "center"
"digest": null
}, },
"value": { "value": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -53,8 +50,7 @@ expression: actual
"start": 23, "start": 23,
"end": 25, "end": 25,
"value": 10, "value": 10,
"raw": "10", "raw": "10"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -62,13 +58,10 @@ expression: actual
"start": 27, "start": 27,
"end": 29, "end": 29,
"value": 10, "value": 10,
"raw": "10", "raw": "10"
"digest": null }
]
} }
],
"digest": null
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -78,8 +71,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 32, "start": 32,
"end": 38, "end": 38,
"name": "radius", "name": "radius"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -87,25 +79,14 @@ expression: actual
"start": 40, "start": 40,
"end": 41, "end": 41,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 11, "end": 11,
"name": "myVar", "name": "myVar"
"digest": null
}, },
"init": { "init": {
"type": "CallExpression", "type": "CallExpression",
@ -32,8 +31,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 17, "end": 17,
"name": "min", "name": "min"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -51,8 +49,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 19, "start": 19,
"end": 25, "end": 25,
"name": "legLen", "name": "legLen"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -61,8 +58,7 @@ expression: actual
"start": 26, "start": 26,
"end": 27, "end": 27,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -70,14 +66,11 @@ expression: actual
"start": 29, "start": 29,
"end": 30, "end": 30,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
},
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -85,24 +78,14 @@ expression: actual
"start": 33, "start": 33,
"end": 34, "end": 34,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 11, "end": 11,
"name": "myVar", "name": "myVar"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -41,8 +40,7 @@ expression: actual
"start": 14, "start": 14,
"end": 15, "end": 15,
"value": 5, "value": 5,
"raw": "5", "raw": "5"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -50,10 +48,8 @@ expression: actual
"start": 18, "start": 18,
"end": 19, "end": 19,
"value": 6, "value": 6,
"raw": "6", "raw": "6"
"digest": null }
},
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -64,8 +60,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 23, "start": 23,
"end": 29, "end": 29,
"name": "myFunc", "name": "myFunc"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -74,39 +69,22 @@ expression: actual
"start": 30, "start": 30,
"end": 32, "end": 32,
"value": 45, "value": 45,
"raw": "45", "raw": "45"
"digest": null
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 34, "start": 34,
"end": 35, "end": 35
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 7, "end": 7,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -40,32 +39,20 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 11, "start": 11,
"end": 15, "end": 15,
"name": "leg2", "name": "leg2"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 18, "start": 18,
"end": 27, "end": 27,
"name": "thickness", "name": "thickness"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 4, "start": 4,
"end": 5, "end": 5,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -35,8 +34,7 @@ expression: actual
"start": 8, "start": 8,
"end": 9, "end": 9,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -50,8 +48,7 @@ expression: actual
"start": 13, "start": 13,
"end": 14, "end": 14,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -59,24 +56,13 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 4, "value": 4,
"raw": "4", "raw": "4"
"digest": null }
}, }
"digest": null }
},
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 7, "end": 7,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "Literal", "type": "Literal",
@ -29,14 +28,11 @@ expression: actual
"start": 10, "start": 10,
"end": 11, "end": 11,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ],
"nonCodeMeta": { "nonCodeMeta": {
@ -50,13 +46,10 @@ expression: actual
"type": "inlineComment", "type": "inlineComment",
"value": "this is an inline comment", "value": "this is an inline comment",
"style": "line" "style": "line"
}, }
"digest": null
} }
] ]
}, },
"start": [], "start": []
"digest": null }
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 3, "start": 3,
"end": 4, "end": 4,
"name": "x", "name": "x"
"digest": null
}, },
"init": { "init": {
"type": "FunctionExpression", "type": "FunctionExpression",
@ -43,10 +42,8 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 30, "start": 30,
"end": 32, "end": 32,
"name": "sg", "name": "sg"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ReturnStatement", "type": "ReturnStatement",
@ -58,32 +55,15 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 48, "start": 48,
"end": 50, "end": 50,
"name": "sg", "name": "sg"
"digest": null }
}, }
"digest": null ]
}
}
} }
], ],
"nonCodeMeta": { "kind": "fn"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "fn",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 43, "end": 43,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -111,8 +100,7 @@ expression: actual
"start": 46, "start": 46,
"end": 47, "end": 47,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "MemberExpression", "type": "MemberExpression",
@ -124,33 +112,21 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 50, "start": 50,
"end": 53, "end": 53,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 54, "start": 54,
"end": 55, "end": 55,
"name": "a", "name": "a"
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 38, "start": 38,
"end": 44, "end": 44,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -111,8 +100,7 @@ expression: actual
"start": 47, "start": 47,
"end": 48, "end": 48,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "MemberExpression", "type": "MemberExpression",
@ -124,8 +112,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 51, "start": 51,
"end": 54, "end": 54,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -133,25 +120,14 @@ expression: actual
"start": 55, "start": 55,
"end": 58, "end": 58,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 43, "end": 43,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -115,8 +104,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 46, "start": 46,
"end": 49, "end": 49,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -124,11 +112,9 @@ expression: actual
"start": 50, "start": 50,
"end": 53, "end": 53,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -136,22 +122,12 @@ expression: actual
"start": 57, "start": 57,
"end": 58, "end": 58,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 43, "end": 43,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -117,8 +106,7 @@ expression: actual
"start": 47, "start": 47,
"end": 48, "end": 48,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "MemberExpression", "type": "MemberExpression",
@ -130,8 +118,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 51, "start": 51,
"end": 54, "end": 54,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -139,13 +126,10 @@ expression: actual
"start": 55, "start": 55,
"end": 58, "end": 58,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
},
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -153,23 +137,13 @@ expression: actual
"start": 61, "start": 61,
"end": 62, "end": 62,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 43, "end": 43,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -121,8 +110,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 47, "start": 47,
"end": 50, "end": 50,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -130,11 +118,9 @@ expression: actual
"start": 51, "start": 51,
"end": 54, "end": 54,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -142,10 +128,8 @@ expression: actual
"start": 58, "start": 58,
"end": 59, "end": 59,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -153,23 +137,13 @@ expression: actual
"start": 61, "start": 61,
"end": 62, "end": 62,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 43, "end": 43,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -121,8 +110,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 47, "start": 47,
"end": 50, "end": 50,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -130,11 +118,9 @@ expression: actual
"start": 51, "start": 51,
"end": 54, "end": 54,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -142,10 +128,8 @@ expression: actual
"start": 57, "start": 57,
"end": 58, "end": 58,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -153,23 +137,13 @@ expression: actual
"start": 60, "start": 60,
"end": 61, "end": 61,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 12, "end": 12,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -35,8 +34,7 @@ expression: actual
"start": 15, "start": 15,
"end": 16, "end": 16,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "MemberExpression", "type": "MemberExpression",
@ -48,33 +46,21 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 19, "start": 19,
"end": 22, "end": 22,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 23, "start": 23,
"end": 24, "end": 24,
"name": "a", "name": "a"
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "six", "name": "six"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -41,8 +40,7 @@ expression: actual
"start": 12, "start": 12,
"end": 13, "end": 13,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -50,10 +48,8 @@ expression: actual
"start": 16, "start": 16,
"end": 17, "end": 17,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -61,22 +57,12 @@ expression: actual
"start": 20, "start": 20,
"end": 21, "end": 21,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 10, "end": 10,
"name": "five", "name": "five"
"digest": null
}, },
"init": { "init": {
"type": "BinaryExpression", "type": "BinaryExpression",
@ -41,8 +40,7 @@ expression: actual
"start": 13, "start": 13,
"end": 14, "end": 14,
"value": 3, "value": 3,
"raw": "3", "raw": "3"
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -50,10 +48,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
"right": { "right": {
"type": "Literal", "type": "Literal",
@ -61,22 +57,12 @@ expression: actual
"start": 21, "start": 21,
"end": 22, "end": 22,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 12, "end": 12,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "ArrayExpression", "type": "ArrayExpression",
@ -39,8 +38,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 17, "start": 17,
"end": 20, "end": 20,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -48,11 +46,9 @@ expression: actual
"start": 21, "start": 21,
"end": 24, "end": 24,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
{ {
"type": "Literal", "type": "Literal",
@ -60,23 +56,13 @@ expression: actual
"start": 27, "start": 27,
"end": 28, "end": 28,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null }
]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "obj", "name": "obj"
"digest": null
}, },
"init": { "init": {
"type": "ObjectExpression", "type": "ObjectExpression",
@ -37,8 +36,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 15, "end": 15,
"name": "a", "name": "a"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -46,10 +44,8 @@ expression: actual
"start": 17, "start": 17,
"end": 18, "end": 18,
"value": 1, "value": 1,
"raw": "1", "raw": "1"
"digest": null }
},
"digest": null
}, },
{ {
"type": "ObjectProperty", "type": "ObjectProperty",
@ -59,8 +55,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 21, "end": 21,
"name": "b", "name": "b"
"digest": null
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
@ -68,19 +63,14 @@ expression: actual
"start": 23, "start": 23,
"end": 24, "end": 24,
"value": 2, "value": 2,
"raw": "2", "raw": "2"
"digest": null }
}, }
"digest": null ]
}
} }
], ],
"digest": null "kind": "const"
},
"digest": null
}
],
"kind": "const",
"digest": null
}, },
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
@ -96,8 +86,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 43, "end": 43,
"name": "height", "name": "height"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -109,8 +98,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 46, "start": 46,
"end": 49, "end": 49,
"name": "obj", "name": "obj"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -118,23 +106,13 @@ expression: actual
"start": 50, "start": 50,
"end": 53, "end": 53,
"value": "a", "value": "a",
"raw": "\"a\"", "raw": "\"a\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 10, "end": 10,
"name": "prop", "name": "prop"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 13, "start": 13,
"end": 15, "end": 15,
"name": "yo", "name": "yo"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -47,34 +45,22 @@ expression: actual
"start": 16, "start": 16,
"end": 21, "end": 21,
"value": "one", "value": "one",
"raw": "\"one\"", "raw": "\"one\""
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 23, "start": 23,
"end": 26, "end": 26,
"name": "two", "name": "two"
"digest": null
}, },
"computed": true, "computed": true
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "pt1", "name": "pt1"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -33,31 +32,20 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 12, "start": 12,
"end": 14, "end": 14,
"name": "b1", "name": "b1"
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 15, "start": 15,
"end": 16, "end": 16,
"name": "x", "name": "x"
"digest": null
}, },
"computed": true, "computed": true
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 10, "end": 10,
"name": "prop", "name": "prop"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -48,64 +47,47 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 13, "start": 13,
"end": 15, "end": 15,
"name": "yo", "name": "yo"
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 16, "start": 16,
"end": 19, "end": 19,
"name": "one", "name": "one"
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 20, "start": 20,
"end": 23, "end": 23,
"name": "two", "name": "two"
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 24, "start": 24,
"end": 29, "end": 29,
"name": "three", "name": "three"
"digest": null
}, },
"computed": false, "computed": false
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 30, "start": 30,
"end": 34, "end": 34,
"name": "four", "name": "four"
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "pt1", "name": "pt1"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -33,8 +32,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 12, "start": 12,
"end": 14, "end": 14,
"name": "b1", "name": "b1"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -42,23 +40,13 @@ expression: actual
"start": 15, "start": 15,
"end": 16, "end": 16,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "pt1", "name": "pt1"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -33,8 +32,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 12, "start": 12,
"end": 14, "end": 14,
"name": "b1", "name": "b1"
"digest": null
}, },
"property": { "property": {
"type": "Literal", "type": "Literal",
@ -42,23 +40,13 @@ expression: actual
"start": 15, "start": 15,
"end": 21, "end": 21,
"value": "zero", "value": "zero",
"raw": "'zero'", "raw": "'zero'"
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 9, "end": 9,
"name": "pt1", "name": "pt1"
"digest": null
}, },
"init": { "init": {
"type": "MemberExpression", "type": "MemberExpression",
@ -33,31 +32,20 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 12, "start": 12,
"end": 14, "end": 14,
"name": "b1", "name": "b1"
"digest": null
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"type": "Identifier", "type": "Identifier",
"start": 15, "start": 15,
"end": 19, "end": 19,
"name": "zero", "name": "zero"
"digest": null
}, },
"computed": false, "computed": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 8, "end": 8,
"name": "sg", "name": "sg"
"digest": null
}, },
"init": { "init": {
"type": "CallExpression", "type": "CallExpression",
@ -32,8 +31,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 11, "start": 11,
"end": 24, "end": 24,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -41,24 +39,14 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 25, "start": 25,
"end": 28, "end": 28,
"name": "pos", "name": "pos"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
},
"digest": null
} }
], ],
"kind": "const", "kind": "const"
"digest": null
} }
], ]
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }

View File

@ -20,8 +20,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 6, "start": 6,
"end": 8, "end": 8,
"name": "sg", "name": "sg"
"digest": null
}, },
"init": { "init": {
"type": "PipeExpression", "type": "PipeExpression",
@ -38,8 +37,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 11, "start": 11,
"end": 24, "end": 24,
"name": "startSketchAt", "name": "startSketchAt"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -47,12 +45,10 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 25, "start": 25,
"end": 28, "end": 28,
"name": "pos", "name": "pos"
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null
}, },
{ {
"type": "CallExpression", "type": "CallExpression",
@ -63,8 +59,7 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 33, "start": 33,
"end": 37, "end": 37,
"name": "line", "name": "line"
"digest": null
}, },
"arguments": [ "arguments": [
{ {
@ -79,8 +74,7 @@ expression: actual
"start": 39, "start": 39,
"end": 40, "end": 40,
"value": 0, "value": 0,
"raw": "0", "raw": "0"
"digest": null
}, },
{ {
"type": "UnaryExpression", "type": "UnaryExpression",
@ -93,44 +87,25 @@ expression: actual
"type": "Identifier", "type": "Identifier",
"start": 43, "start": 43,
"end": 48, "end": 48,
"name": "scale", "name": "scale"
"digest": null
},
"digest": null
} }
], }
"digest": null ]
}, },
{ {
"type": "PipeSubstitution", "type": "PipeSubstitution",
"type": "PipeSubstitution", "type": "PipeSubstitution",
"start": 51, "start": 51,
"end": 52, "end": 52
"digest": null
} }
], ],
"optional": false, "optional": false
"digest": null }
]
}
} }
], ],
"nonCodeMeta": { "kind": "const"
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
},
"digest": null
} }
], ]
"kind": "const",
"digest": null
}
],
"nonCodeMeta": {
"nonCodeNodes": {},
"start": [],
"digest": null
},
"digest": null
} }