* Bump ts-rs from 10.1.0 to 11.0.1 * Fix breaking changes * Fix tsc errors * Update output * Upgrade to kittycad-modeling-cmds 0.2.124 for ts-rs update * Update parser snaps * Update output of gridfinity_bins_stacking_lip sample * Fix missing field in TS unit tests * Fix tsc type error with fixed_size_grid project setting
1100 lines
29 KiB
Plaintext
1100 lines
29 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing boolean_logical_and.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "aa",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"left": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "true",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
},
|
|
"moduleId": 0,
|
|
"operator": "&",
|
|
"right": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "false",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": false
|
|
},
|
|
"start": 0,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "a",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"cond": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "aa",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
},
|
|
"digest": null,
|
|
"else_ifs": [],
|
|
"end": 0,
|
|
"final_else": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"then_val": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "1",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"type": "IfExpression",
|
|
"type": "IfExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "isEqualTo",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "error",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "\"right branch of and is false makes the whole expression false\"",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "right branch of and is false makes the whole expression false"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "assert",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name"
|
|
},
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "a",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "bb",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"left": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "false",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": false
|
|
},
|
|
"moduleId": 0,
|
|
"operator": "&",
|
|
"right": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "true",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
},
|
|
"start": 0,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "b",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"cond": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "bb",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
},
|
|
"digest": null,
|
|
"else_ifs": [],
|
|
"end": 0,
|
|
"final_else": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"then_val": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "1",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"type": "IfExpression",
|
|
"type": "IfExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "isEqualTo",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "error",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "\"left branch of and is false makes the whole expression false\"",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "left branch of and is false makes the whole expression false"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "assert",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name"
|
|
},
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "b",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "cc",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"left": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "true",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
},
|
|
"moduleId": 0,
|
|
"operator": "&",
|
|
"right": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "true",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": true
|
|
},
|
|
"start": 0,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "c",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"cond": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "cc",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
},
|
|
"digest": null,
|
|
"else_ifs": [],
|
|
"end": 0,
|
|
"final_else": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"then_val": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "1",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"type": "IfExpression",
|
|
"type": "IfExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "isEqualTo",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "1",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "error",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "\"both branches of and are true makes the whole expression true\"",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "both branches of and are true makes the whole expression true"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "assert",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name"
|
|
},
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "c",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "dd",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"left": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "false",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": false
|
|
},
|
|
"moduleId": 0,
|
|
"operator": "&",
|
|
"right": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "false",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": false
|
|
},
|
|
"start": 0,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"declaration": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"id": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "d",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"commentStart": 0,
|
|
"cond": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "dd",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
},
|
|
"digest": null,
|
|
"else_ifs": [],
|
|
"end": 0,
|
|
"final_else": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"then_val": {
|
|
"body": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "1",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0
|
|
},
|
|
"type": "IfExpression",
|
|
"type": "IfExpression"
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 0,
|
|
"kind": "const",
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "isEqualTo",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "2",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "error",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"raw": "\"both branches of and are false makes the whole expression false\"",
|
|
"start": 0,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "both branches of and are false makes the whole expression false"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "assert",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name"
|
|
},
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"abs_path": false,
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": {
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"name": "d",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"path": [],
|
|
"start": 0,
|
|
"type": "Name",
|
|
"type": "Name"
|
|
}
|
|
},
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
}
|
|
],
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"2": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"5": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"8": [
|
|
{
|
|
"commentStart": 0,
|
|
"end": 0,
|
|
"moduleId": 0,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|