373 lines
11 KiB
Plaintext
373 lines
11 KiB
Plaintext
![]() |
---
|
||
|
source: kcl-lib/src/simulation_tests.rs
|
||
|
description: Result of parsing revolve-colinear.kcl
|
||
|
---
|
||
|
{
|
||
|
"Ok": {
|
||
|
"body": [
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"declaration": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"id": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "sk0",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"init": {
|
||
|
"body": [
|
||
|
{
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "startSketchOn",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "XZ",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name",
|
||
|
"type": "Name"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"arguments": [
|
||
|
{
|
||
|
"type": "LabeledArg",
|
||
|
"label": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "at",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"arg": {
|
||
|
"commentStart": 0,
|
||
|
"elements": [
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"raw": "0",
|
||
|
"start": 0,
|
||
|
"type": "Literal",
|
||
|
"type": "Literal",
|
||
|
"value": {
|
||
|
"value": 0.0,
|
||
|
"suffix": "None"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"raw": "0",
|
||
|
"start": 0,
|
||
|
"type": "Literal",
|
||
|
"type": "Literal",
|
||
|
"value": {
|
||
|
"value": 0.0,
|
||
|
"suffix": "None"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "ArrayExpression",
|
||
|
"type": "ArrayExpression"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "startProfile",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": null
|
||
|
},
|
||
|
{
|
||
|
"arguments": [
|
||
|
{
|
||
|
"type": "LabeledArg",
|
||
|
"label": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "length",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"arg": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"raw": "2",
|
||
|
"start": 0,
|
||
|
"type": "Literal",
|
||
|
"type": "Literal",
|
||
|
"value": {
|
||
|
"value": 2.0,
|
||
|
"suffix": "None"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "yLine",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": null
|
||
|
},
|
||
|
{
|
||
|
"arguments": [
|
||
|
{
|
||
|
"type": "LabeledArg",
|
||
|
"label": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "length",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"arg": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"raw": "1",
|
||
|
"start": 0,
|
||
|
"type": "Literal",
|
||
|
"type": "Literal",
|
||
|
"value": {
|
||
|
"value": 1.0,
|
||
|
"suffix": "None"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "xLine",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": null
|
||
|
},
|
||
|
{
|
||
|
"arguments": [
|
||
|
{
|
||
|
"type": "LabeledArg",
|
||
|
"label": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "length",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"arg": {
|
||
|
"argument": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"raw": "2",
|
||
|
"start": 0,
|
||
|
"type": "Literal",
|
||
|
"type": "Literal",
|
||
|
"value": {
|
||
|
"value": 2.0,
|
||
|
"suffix": "None"
|
||
|
}
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"operator": "-",
|
||
|
"start": 0,
|
||
|
"type": "UnaryExpression",
|
||
|
"type": "UnaryExpression"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "yLine",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": null
|
||
|
},
|
||
|
{
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "close",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": null
|
||
|
},
|
||
|
{
|
||
|
"arguments": [
|
||
|
{
|
||
|
"type": "LabeledArg",
|
||
|
"label": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "axis",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"arg": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "Y",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name",
|
||
|
"type": "Name"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"callee": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "revolve",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "CallExpressionKw",
|
||
|
"type": "CallExpressionKw",
|
||
|
"unlabeled": null
|
||
|
}
|
||
|
],
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "PipeExpression",
|
||
|
"type": "PipeExpression"
|
||
|
},
|
||
|
"start": 0,
|
||
|
"type": "VariableDeclarator"
|
||
|
},
|
||
|
"end": 0,
|
||
|
"kind": "const",
|
||
|
"start": 0,
|
||
|
"type": "VariableDeclaration",
|
||
|
"type": "VariableDeclaration"
|
||
|
}
|
||
|
],
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0
|
||
|
}
|
||
|
}
|