Warn when calling deprecated functions (#5447)
* Warn when calling deprecated std functions Signed-off-by: Nick Cameron <nrc@ncameron.org> * Refactor function values Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -9,7 +9,7 @@ Apply a function to every element of a list.
|
||||
Given a list like `[a, b, c]`, and a function like `f`, returns `[f(a), f(b), f(c)]`
|
||||
|
||||
```js
|
||||
map(array: [KclValue], map_fn: FunctionParam) -> [KclValue]
|
||||
map(array: [KclValue], map_fn: FunctionSource) -> [KclValue]
|
||||
```
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ map(array: [KclValue], map_fn: FunctionParam) -> [KclValue]
|
||||
| Name | Type | Description | Required |
|
||||
|----------|------|-------------|----------|
|
||||
| `array` | [`[KclValue]`](/docs/kcl/types/KclValue) | | Yes |
|
||||
| `map_fn` | `FunctionParam` | | Yes |
|
||||
| `map_fn` | `FunctionSource` | | Yes |
|
||||
|
||||
### Returns
|
||||
|
||||
|
@ -35,7 +35,7 @@ The transform function returns a transform object. All properties of the object
|
||||
- `rotation.origin` (either "local" i.e. rotate around its own center, "global" i.e. rotate around the scene's center, or a 3D point, defaults to "local")
|
||||
|
||||
```js
|
||||
patternTransform(solid_set: SolidSet, instances: integer, transform: FunctionParam, use_original?: bool) -> [Solid]
|
||||
patternTransform(solid_set: SolidSet, instances: integer, transform: FunctionSource, use_original?: bool) -> [Solid]
|
||||
```
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ patternTransform(solid_set: SolidSet, instances: integer, transform: FunctionPar
|
||||
|----------|------|-------------|----------|
|
||||
| `solid_set` | [`SolidSet`](/docs/kcl/types/SolidSet) | The solid(s) to duplicate | Yes |
|
||||
| `instances` | `integer` | The number of total instances. Must be greater than or equal to 1. This includes the original entity. For example, if instances is 2, there will be two copies -- the original, and one new copy. If instances is 1, this has no effect. | Yes |
|
||||
| `transform` | `FunctionParam` | How each replica should be transformed. The transform function takes a single parameter: an integer representing which number replication the transform is for. E.g. the first replica to be transformed will be passed the argument `1`. This simplifies your math: the transform function can rely on id `0` being the original instance passed into the `patternTransform`. See the examples. | Yes |
|
||||
| `transform` | `FunctionSource` | How each replica should be transformed. The transform function takes a single parameter: an integer representing which number replication the transform is for. E.g. the first replica to be transformed will be passed the argument `1`. This simplifies your math: the transform function can rely on id `0` being the original instance passed into the `patternTransform`. See the examples. | Yes |
|
||||
| `use_original` | `bool` | If the target was sketched on an extrusion, setting this will use the original sketch as the target, not the entire joined solid. Defaults to false. | No |
|
||||
|
||||
### Returns
|
||||
|
@ -9,7 +9,7 @@ Just like patternTransform, but works on 2D sketches not 3D solids.
|
||||
|
||||
|
||||
```js
|
||||
patternTransform2d(sketch_set: SketchSet, instances: integer, transform: FunctionParam, use_original?: bool) -> [Sketch]
|
||||
patternTransform2d(sketch_set: SketchSet, instances: integer, transform: FunctionSource, use_original?: bool) -> [Sketch]
|
||||
```
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ patternTransform2d(sketch_set: SketchSet, instances: integer, transform: Functio
|
||||
|----------|------|-------------|----------|
|
||||
| `sketch_set` | [`SketchSet`](/docs/kcl/types/SketchSet) | The sketch(es) to duplicate | Yes |
|
||||
| `instances` | `integer` | The number of total instances. Must be greater than or equal to 1. This includes the original entity. For example, if instances is 2, there will be two copies -- the original, and one new copy. If instances is 1, this has no effect. | Yes |
|
||||
| `transform` | `FunctionParam` | How each replica should be transformed. The transform function takes a single parameter: an integer representing which number replication the transform is for. E.g. the first replica to be transformed will be passed the argument `1`. This simplifies your math: the transform function can rely on id `0` being the original instance passed into the `patternTransform`. See the examples. | Yes |
|
||||
| `transform` | `FunctionSource` | How each replica should be transformed. The transform function takes a single parameter: an integer representing which number replication the transform is for. E.g. the first replica to be transformed will be passed the argument `1`. This simplifies your math: the transform function can rely on id `0` being the original instance passed into the `patternTransform`. See the examples. | Yes |
|
||||
| `use_original` | `bool` | If the target was sketched on an extrusion, setting this will use the original sketch as the target, not the entire joined solid. Defaults to false. | No |
|
||||
|
||||
### Returns
|
||||
|
@ -9,7 +9,7 @@ Take a starting value. Then, for each element of an array, calculate the next va
|
||||
using the previous value and the element.
|
||||
|
||||
```js
|
||||
reduce(array: [KclValue], start: KclValue, reduce_fn: FunctionParam) -> KclValue
|
||||
reduce(array: [KclValue], start: KclValue, reduce_fn: FunctionSource) -> KclValue
|
||||
```
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ reduce(array: [KclValue], start: KclValue, reduce_fn: FunctionParam) -> KclValue
|
||||
|----------|------|-------------|----------|
|
||||
| `array` | [`[KclValue]`](/docs/kcl/types/KclValue) | | Yes |
|
||||
| `start` | [`KclValue`](/docs/kcl/types/KclValue) | Any KCL value. | Yes |
|
||||
| `reduce_fn` | `FunctionParam` | | Yes |
|
||||
| `reduce_fn` | `FunctionSource` | | Yes |
|
||||
|
||||
### Returns
|
||||
|
||||
|
@ -141138,14 +141138,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -143279,28 +143271,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -143332,10 +143302,10 @@
|
||||
},
|
||||
{
|
||||
"name": "map_fn",
|
||||
"type": "FunctionParam",
|
||||
"type": "FunctionSource",
|
||||
"schema": {
|
||||
"$schema": "https://spec.openapis.org/oas/3.0/schema/2019-04-02#/definitions/Schema",
|
||||
"title": "FunctionParam",
|
||||
"title": "FunctionSource",
|
||||
"type": "null",
|
||||
"definitions": {
|
||||
"KclValue": {
|
||||
@ -143756,14 +143726,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -145897,28 +145859,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -146378,14 +146318,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -148519,28 +148451,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -200824,10 +200734,10 @@
|
||||
},
|
||||
{
|
||||
"name": "transform",
|
||||
"type": "FunctionParam",
|
||||
"type": "FunctionSource",
|
||||
"schema": {
|
||||
"$schema": "https://spec.openapis.org/oas/3.0/schema/2019-04-02#/definitions/Schema",
|
||||
"title": "FunctionParam",
|
||||
"title": "FunctionSource",
|
||||
"type": "null",
|
||||
"definitions": {
|
||||
"ArtifactId": {
|
||||
@ -208949,10 +208859,10 @@
|
||||
},
|
||||
{
|
||||
"name": "transform",
|
||||
"type": "FunctionParam",
|
||||
"type": "FunctionSource",
|
||||
"schema": {
|
||||
"$schema": "https://spec.openapis.org/oas/3.0/schema/2019-04-02#/definitions/Schema",
|
||||
"title": "FunctionParam",
|
||||
"title": "FunctionSource",
|
||||
"type": "null",
|
||||
"definitions": {
|
||||
"Path": {
|
||||
@ -219594,14 +219504,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -221735,28 +221637,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -222211,14 +222091,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -223102,14 +222974,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -224863,28 +224727,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -230504,14 +230346,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -232645,28 +232479,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -233119,14 +232931,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -233630,14 +233434,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -235771,28 +235567,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -236246,14 +236020,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -237137,14 +236903,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -238898,28 +238656,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -239391,14 +239127,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -241532,28 +241260,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -242006,14 +241712,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -242517,14 +242215,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -244658,28 +244348,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -244711,10 +244379,10 @@
|
||||
},
|
||||
{
|
||||
"name": "reduce_fn",
|
||||
"type": "FunctionParam",
|
||||
"type": "FunctionSource",
|
||||
"schema": {
|
||||
"$schema": "https://spec.openapis.org/oas/3.0/schema/2019-04-02#/definitions/Schema",
|
||||
"title": "FunctionParam",
|
||||
"title": "FunctionSource",
|
||||
"type": "null",
|
||||
"definitions": {
|
||||
"KclValue": {
|
||||
@ -245135,14 +244803,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -247276,28 +246936,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
@ -247751,14 +247389,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -248642,14 +248272,6 @@
|
||||
"Function"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/EnvironmentRef"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"__meta": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -250403,28 +250025,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"EnvironmentRef": {
|
||||
"description": "An index pointing to an environment at a point in time (either a snapshot or the current version, see the module docs).",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SnapshotRef"
|
||||
}
|
||||
],
|
||||
"maxItems": 2,
|
||||
"minItems": 2
|
||||
},
|
||||
"SnapshotRef": {
|
||||
"description": "An index pointing to a snapshot within a specific (unspecified) environment.",
|
||||
"type": "integer",
|
||||
"format": "uint",
|
||||
"minimum": 0.0
|
||||
},
|
||||
"ModuleId": {
|
||||
"description": "Identifier of a source file. Uses a u32 to keep the size small.",
|
||||
"type": "integer",
|
||||
|
@ -295,7 +295,6 @@ Data for an imported geometry.
|
||||
| Property | Type | Description | Required |
|
||||
|----------|------|-------------|----------|
|
||||
| `type` |enum: `Function`| | No |
|
||||
| `memory` |[`EnvironmentRef`](/docs/kcl/types/EnvironmentRef)| | No |
|
||||
| `__meta` |`[` [`Metadata`](/docs/kcl/types/Metadata) `]`| | No |
|
||||
|
||||
|
||||
|
@ -33,7 +33,7 @@ describe('processMemory', () => {
|
||||
const output = processMemory(execState.variables)
|
||||
expect(output.myVar).toEqual(5)
|
||||
expect(output.otherVar).toEqual(3)
|
||||
expect(output.myFn).toEqual('__function(a)__')
|
||||
expect(output.myFn).toEqual('__function__')
|
||||
expect(output.theExtrude).toEqual([
|
||||
{
|
||||
type: 'extrudePlane',
|
||||
|
@ -107,9 +107,7 @@ export const processMemory = (variables: VariableMap) => {
|
||||
}
|
||||
//@ts-ignore
|
||||
} else if (val.type === 'Function') {
|
||||
processedMemory[key] = `__function(${(val as any)?.expression?.params
|
||||
?.map?.(({ identifier }: any) => identifier?.name || '')
|
||||
.join(', ')})__`
|
||||
processedMemory[key] = `__function__`
|
||||
}
|
||||
}
|
||||
return processedMemory
|
||||
|
@ -1,7 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use async_recursion::async_recursion;
|
||||
use schemars::JsonSchema;
|
||||
|
||||
use crate::{
|
||||
engine::ExecutionKind,
|
||||
@ -9,7 +8,7 @@ use crate::{
|
||||
execution::{
|
||||
annotations,
|
||||
cad_op::{OpArg, OpKclValue, Operation},
|
||||
kcl_value::NumericType,
|
||||
kcl_value::{FunctionSource, NumericType},
|
||||
memory,
|
||||
state::ModuleState,
|
||||
BodyType, EnvironmentRef, ExecState, ExecutorContext, KclValue, Metadata, TagEngineInfo, TagIdentifier,
|
||||
@ -520,11 +519,10 @@ impl ExecutorContext {
|
||||
|
||||
if rust_impl {
|
||||
if let Some(std_path) = &exec_state.mod_local.settings.std_path {
|
||||
let (func, props) = crate::std::std_fn(std_path, statement_kind.expect_name());
|
||||
KclValue::Function {
|
||||
expression: function_expression.clone(),
|
||||
value: FunctionSource::Std { func, props },
|
||||
meta: vec![metadata.to_owned()],
|
||||
func: Some(crate::std::std_fn(std_path, statement_kind.expect_name())),
|
||||
memory: None,
|
||||
}
|
||||
} else {
|
||||
return Err(KclError::Semantic(KclErrorDetails {
|
||||
@ -534,14 +532,15 @@ impl ExecutorContext {
|
||||
}));
|
||||
}
|
||||
} else {
|
||||
// Cloning memory here is crucial for semantics so that we close
|
||||
// Snapshotting memory here is crucial for semantics so that we close
|
||||
// over variables. Variables defined lexically later shouldn't
|
||||
// be available to the function body.
|
||||
KclValue::Function {
|
||||
expression: function_expression.clone(),
|
||||
value: FunctionSource::User {
|
||||
ast: function_expression.clone(),
|
||||
memory: exec_state.mut_memory().snapshot(),
|
||||
},
|
||||
meta: vec![metadata.to_owned()],
|
||||
func: None,
|
||||
memory: Some(exec_state.mut_memory().snapshot()),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -996,6 +995,12 @@ impl Node<CallExpressionKw> {
|
||||
);
|
||||
match ctx.stdlib.get_either(fn_name) {
|
||||
FunctionKind::Core(func) => {
|
||||
if func.deprecated() {
|
||||
exec_state.warn(CompilationError::err(
|
||||
self.callee.as_source_range(),
|
||||
format!("`{fn_name}` is deprecated, see the docs for a recommended replacement"),
|
||||
));
|
||||
}
|
||||
let op = if func.feature_tree_operation() {
|
||||
let op_labeled_args = args
|
||||
.kw_args
|
||||
@ -1120,6 +1125,12 @@ impl Node<CallExpression> {
|
||||
|
||||
match ctx.stdlib.get_either(fn_name) {
|
||||
FunctionKind::Core(func) => {
|
||||
if func.deprecated() {
|
||||
exec_state.warn(CompilationError::err(
|
||||
self.callee.as_source_range(),
|
||||
format!("`{fn_name}` is deprecated, see the docs for a recommended replacement"),
|
||||
));
|
||||
}
|
||||
let op = if func.feature_tree_operation() {
|
||||
let op_labeled_args = func
|
||||
.args(false)
|
||||
@ -1207,7 +1218,7 @@ impl Node<CallExpression> {
|
||||
source_ranges = meta.iter().map(|m| m.source_range).collect();
|
||||
};
|
||||
KclError::UndefinedValue(KclErrorDetails {
|
||||
message: format!("Result of user-defined function {} is undefined", fn_name),
|
||||
message: format!("Result of function {} is undefined", fn_name),
|
||||
source_ranges,
|
||||
})
|
||||
})?;
|
||||
@ -1782,48 +1793,42 @@ pub(crate) async fn call_user_defined_function_kw(
|
||||
result
|
||||
}
|
||||
|
||||
/// A function being used as a parameter into a stdlib function. This is a
|
||||
/// closure, plus everything needed to execute it.
|
||||
pub struct FunctionParam<'a> {
|
||||
pub inner: Option<&'a crate::std::StdFn>,
|
||||
pub memory: Option<EnvironmentRef>,
|
||||
pub fn_expr: crate::parsing::ast::types::BoxNode<FunctionExpression>,
|
||||
pub ctx: ExecutorContext,
|
||||
}
|
||||
|
||||
impl FunctionParam<'_> {
|
||||
impl FunctionSource {
|
||||
pub async fn call(
|
||||
&self,
|
||||
exec_state: &mut ExecState,
|
||||
ctx: &ExecutorContext,
|
||||
args: Vec<Arg>,
|
||||
source_range: SourceRange,
|
||||
) -> Result<Option<KclValue>, KclError> {
|
||||
if let Some(inner) = self.inner {
|
||||
let args = crate::std::Args::new(
|
||||
args,
|
||||
source_range,
|
||||
self.ctx.clone(),
|
||||
exec_state.mod_local.pipe_value.clone().map(Arg::synthetic),
|
||||
);
|
||||
match self {
|
||||
FunctionSource::Std { func, props } => {
|
||||
if props.deprecated {
|
||||
exec_state.warn(CompilationError::err(
|
||||
source_range,
|
||||
format!(
|
||||
"`{}` is deprecated, see the docs for a recommended replacement",
|
||||
props.name
|
||||
),
|
||||
));
|
||||
}
|
||||
let args = crate::std::Args::new(
|
||||
args,
|
||||
source_range,
|
||||
ctx.clone(),
|
||||
exec_state.mod_local.pipe_value.clone().map(Arg::synthetic),
|
||||
);
|
||||
|
||||
inner(exec_state, args).await.map(Some)
|
||||
} else {
|
||||
call_user_defined_function(args, self.memory.unwrap(), self.fn_expr.as_ref(), exec_state, &self.ctx).await
|
||||
func(exec_state, args).await.map(Some)
|
||||
}
|
||||
FunctionSource::User { ast, memory } => {
|
||||
call_user_defined_function(args, *memory, ast, exec_state, ctx).await
|
||||
}
|
||||
FunctionSource::None => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl JsonSchema for FunctionParam<'_> {
|
||||
fn schema_name() -> String {
|
||||
"FunctionParam".to_owned()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
// TODO: Actually generate a reasonable schema.
|
||||
gen.subschema_for::<()>()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
|
@ -17,8 +17,8 @@ use crate::{
|
||||
},
|
||||
token::NumericSuffix,
|
||||
},
|
||||
std::{args::Arg, FnAsArg},
|
||||
KclError, ModuleId, SourceRange,
|
||||
std::{args::Arg, StdFnProps},
|
||||
CompilationError, KclError, ModuleId, SourceRange,
|
||||
};
|
||||
|
||||
pub type KclObjectFields = HashMap<String, KclValue>;
|
||||
@ -86,11 +86,7 @@ pub enum KclValue {
|
||||
#[ts(skip)]
|
||||
Function {
|
||||
#[serde(skip)]
|
||||
func: Option<crate::std::StdFn>,
|
||||
#[schemars(skip)]
|
||||
expression: crate::parsing::ast::types::BoxNode<FunctionExpression>,
|
||||
// Invariant: Always Some except for std lib functions
|
||||
memory: Option<EnvironmentRef>,
|
||||
value: FunctionSource,
|
||||
#[serde(rename = "__meta")]
|
||||
meta: Vec<Metadata>,
|
||||
},
|
||||
@ -112,6 +108,31 @@ pub enum KclValue {
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Default)]
|
||||
pub enum FunctionSource {
|
||||
#[default]
|
||||
None,
|
||||
Std {
|
||||
func: crate::std::StdFn,
|
||||
props: StdFnProps,
|
||||
},
|
||||
User {
|
||||
ast: crate::parsing::ast::types::BoxNode<FunctionExpression>,
|
||||
memory: EnvironmentRef,
|
||||
},
|
||||
}
|
||||
|
||||
impl JsonSchema for FunctionSource {
|
||||
fn schema_name() -> String {
|
||||
"FunctionSource".to_owned()
|
||||
}
|
||||
|
||||
fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
|
||||
// TODO: Actually generate a reasonable schema.
|
||||
gen.subschema_for::<()>()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<SketchSet> for KclValue {
|
||||
fn from(sg: SketchSet) -> Self {
|
||||
match sg {
|
||||
@ -230,12 +251,16 @@ impl KclValue {
|
||||
}
|
||||
|
||||
pub(crate) fn function_def_source_range(&self) -> Option<SourceRange> {
|
||||
let KclValue::Function { expression, .. } = self else {
|
||||
let KclValue::Function {
|
||||
value: FunctionSource::User { ast, .. },
|
||||
..
|
||||
} = self
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
// TODO: It would be nice if we could extract the source range starting
|
||||
// at the fn, but that's the variable declaration.
|
||||
Some(expression.as_source_range())
|
||||
Some(ast.as_source_range())
|
||||
}
|
||||
|
||||
pub(crate) fn get_solid_set(&self) -> Result<SolidSet> {
|
||||
@ -322,7 +347,7 @@ impl KclValue {
|
||||
pub(crate) fn map_env_ref(&self, env_map: &HashMap<EnvironmentRef, EnvironmentRef>) -> Self {
|
||||
let mut result = self.clone();
|
||||
if let KclValue::Function {
|
||||
memory: Some(ref mut memory),
|
||||
value: FunctionSource::User { ref mut memory, .. },
|
||||
..
|
||||
} = result
|
||||
{
|
||||
@ -486,21 +511,11 @@ impl KclValue {
|
||||
}
|
||||
|
||||
/// If this value is of type function, return it.
|
||||
pub fn get_function(&self) -> Option<FnAsArg<'_>> {
|
||||
let KclValue::Function {
|
||||
func,
|
||||
expression,
|
||||
memory,
|
||||
meta: _,
|
||||
} = &self
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
Some(FnAsArg {
|
||||
func: func.as_ref(),
|
||||
expr: expression.to_owned(),
|
||||
memory: *memory,
|
||||
})
|
||||
pub fn get_function(&self) -> Option<&FunctionSource> {
|
||||
match self {
|
||||
KclValue::Function { value, .. } => Some(value),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
/// Get a tag identifier from a memory item.
|
||||
@ -556,38 +571,39 @@ impl KclValue {
|
||||
ctx: ExecutorContext,
|
||||
source_range: SourceRange,
|
||||
) -> Result<Option<KclValue>, KclError> {
|
||||
let KclValue::Function {
|
||||
func,
|
||||
expression,
|
||||
memory: closure_memory,
|
||||
..
|
||||
} = &self
|
||||
else {
|
||||
return Err(KclError::Semantic(KclErrorDetails {
|
||||
message: "not an in-memory function".to_string(),
|
||||
source_ranges: vec![],
|
||||
}));
|
||||
};
|
||||
if let Some(func) = func {
|
||||
exec_state.mut_memory().push_new_env_for_rust_call();
|
||||
let args = crate::std::Args::new(
|
||||
args,
|
||||
source_range,
|
||||
ctx.clone(),
|
||||
exec_state.mod_local.pipe_value.clone().map(Arg::synthetic),
|
||||
);
|
||||
let result = func(exec_state, args).await.map(Some);
|
||||
exec_state.mut_memory().pop_env();
|
||||
result
|
||||
} else {
|
||||
crate::execution::exec_ast::call_user_defined_function(
|
||||
args,
|
||||
closure_memory.unwrap(),
|
||||
expression.as_ref(),
|
||||
exec_state,
|
||||
&ctx,
|
||||
)
|
||||
.await
|
||||
match self {
|
||||
KclValue::Function {
|
||||
value: FunctionSource::Std { func, props },
|
||||
..
|
||||
} => {
|
||||
if props.deprecated {
|
||||
exec_state.warn(CompilationError::err(
|
||||
source_range,
|
||||
format!(
|
||||
"`{}` is deprecated, see the docs for a recommended replacement",
|
||||
props.name
|
||||
),
|
||||
));
|
||||
}
|
||||
exec_state.mut_memory().push_new_env_for_rust_call();
|
||||
let args = crate::std::Args::new(
|
||||
args,
|
||||
source_range,
|
||||
ctx.clone(),
|
||||
exec_state.mod_local.pipe_value.clone().map(Arg::synthetic),
|
||||
);
|
||||
let result = func(exec_state, args).await.map(Some);
|
||||
exec_state.mut_memory().pop_env();
|
||||
result
|
||||
}
|
||||
KclValue::Function {
|
||||
value: FunctionSource::User { ast, memory },
|
||||
..
|
||||
} => crate::execution::exec_ast::call_user_defined_function(args, *memory, ast, exec_state, &ctx).await,
|
||||
_ => Err(KclError::Semantic(KclErrorDetails {
|
||||
message: "cannot call this because it isn't a function".to_string(),
|
||||
source_ranges: vec![source_range],
|
||||
})),
|
||||
}
|
||||
}
|
||||
|
||||
@ -600,29 +616,33 @@ impl KclValue {
|
||||
ctx: ExecutorContext,
|
||||
callsite: SourceRange,
|
||||
) -> Result<Option<KclValue>, KclError> {
|
||||
let KclValue::Function {
|
||||
func,
|
||||
expression,
|
||||
memory: closure_memory,
|
||||
meta: _,
|
||||
} = &self
|
||||
else {
|
||||
return Err(KclError::Semantic(KclErrorDetails {
|
||||
match self {
|
||||
KclValue::Function {
|
||||
value: FunctionSource::Std { func: _, props },
|
||||
..
|
||||
} => {
|
||||
if props.deprecated {
|
||||
exec_state.warn(CompilationError::err(
|
||||
callsite,
|
||||
format!(
|
||||
"`{}` is deprecated, see the docs for a recommended replacement",
|
||||
props.name
|
||||
),
|
||||
));
|
||||
}
|
||||
todo!("Implement KCL stdlib fns with keyword args");
|
||||
}
|
||||
KclValue::Function {
|
||||
value: FunctionSource::User { ast, memory },
|
||||
..
|
||||
} => {
|
||||
crate::execution::exec_ast::call_user_defined_function_kw(args.kw_args, *memory, ast, exec_state, &ctx)
|
||||
.await
|
||||
}
|
||||
_ => Err(KclError::Semantic(KclErrorDetails {
|
||||
message: "cannot call this because it isn't a function".to_string(),
|
||||
source_ranges: vec![callsite],
|
||||
}));
|
||||
};
|
||||
if let Some(_func) = func {
|
||||
todo!("Implement calling KCL stdlib fns that are aliased. Part of https://github.com/KittyCAD/modeling-app/issues/4600");
|
||||
} else {
|
||||
crate::execution::exec_ast::call_user_defined_function_kw(
|
||||
args.kw_args,
|
||||
closure_memory.unwrap(),
|
||||
expression.as_ref(),
|
||||
exec_state,
|
||||
&ctx,
|
||||
)
|
||||
.await
|
||||
})),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -837,7 +837,7 @@ mod env {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::execution::kcl_value::NumericType;
|
||||
use crate::execution::kcl_value::{FunctionSource, NumericType};
|
||||
|
||||
use super::*;
|
||||
|
||||
@ -1207,9 +1207,10 @@ mod test {
|
||||
mem.add(
|
||||
"f".to_owned(),
|
||||
KclValue::Function {
|
||||
func: None,
|
||||
expression: crate::parsing::ast::types::FunctionExpression::dummy(),
|
||||
memory: Some(sn2),
|
||||
value: FunctionSource::User {
|
||||
ast: crate::parsing::ast::types::FunctionExpression::dummy(),
|
||||
memory: sn2,
|
||||
},
|
||||
meta: Vec::new(),
|
||||
},
|
||||
sr(),
|
||||
@ -1220,7 +1221,10 @@ mod test {
|
||||
assert_get(mem, "a", 1);
|
||||
assert_get(mem, "b", 2);
|
||||
match mem.get("f", SourceRange::default()).unwrap() {
|
||||
KclValue::Function { memory, .. } if memory.unwrap() == sn1 => {}
|
||||
KclValue::Function {
|
||||
value: FunctionSource::User { memory, .. },
|
||||
..
|
||||
} if memory == &sn1 => {}
|
||||
v => panic!("{v:#?}"),
|
||||
}
|
||||
assert_eq!(mem.environments.len(), 1);
|
||||
|
@ -34,7 +34,6 @@ use crate::{
|
||||
pub use artifact::{Artifact, ArtifactCommand, ArtifactGraph, ArtifactId};
|
||||
pub use cache::{bust_cache, clear_mem_cache};
|
||||
pub use cad_op::Operation;
|
||||
pub use exec_ast::FunctionParam;
|
||||
pub use geometry::*;
|
||||
pub(crate) use import::{
|
||||
import_foreign, send_to_engine as send_import_to_engine, PreImportedGeometry, ZOO_COORD_SYSTEM,
|
||||
@ -846,7 +845,25 @@ mod tests {
|
||||
let errs = exec_state.errors();
|
||||
assert_eq!(errs.len(), 1);
|
||||
assert_eq!(errs[0].severity, crate::errors::Severity::Warning);
|
||||
assert!(errs[0].message.contains("Unknown annotation"));
|
||||
assert!(
|
||||
errs[0].message.contains("Unknown annotation"),
|
||||
"unexpected warning message: {}",
|
||||
errs[0].message
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn test_warn_on_deprecated() {
|
||||
let text = "p = pi()";
|
||||
let (_, _, exec_state) = parse_execute(text).await.unwrap();
|
||||
let errs = exec_state.errors();
|
||||
assert_eq!(errs.len(), 1);
|
||||
assert_eq!(errs[0].severity, crate::errors::Severity::Warning);
|
||||
assert!(
|
||||
errs[0].message.contains("`pi` is deprecated"),
|
||||
"unexpected warning message: {}",
|
||||
errs[0].message
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
@ -1556,10 +1573,7 @@ test([0, 0])
|
||||
"#;
|
||||
let result = parse_execute(ast).await;
|
||||
assert!(result.is_err());
|
||||
assert!(result
|
||||
.unwrap_err()
|
||||
.to_string()
|
||||
.contains("Result of user-defined function test is undefined"),);
|
||||
assert!(result.unwrap_err().to_string().contains("undefined"),);
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
|
@ -10,12 +10,13 @@ use super::shapes::PolygonType;
|
||||
use crate::{
|
||||
errors::{KclError, KclErrorDetails},
|
||||
execution::{
|
||||
kcl_value::NumericType, ExecState, ExecutorContext, ExtrudeSurface, Helix, KclObjectFields, KclValue, Metadata,
|
||||
Sketch, SketchSet, SketchSurface, Solid, SolidSet, TagIdentifier,
|
||||
kcl_value::{FunctionSource, NumericType},
|
||||
ExecState, ExecutorContext, ExtrudeSurface, Helix, KclObjectFields, KclValue, Metadata, Sketch, SketchSet,
|
||||
SketchSurface, Solid, SolidSet, TagIdentifier,
|
||||
},
|
||||
parsing::ast::types::TagNode,
|
||||
source_range::SourceRange,
|
||||
std::{shapes::SketchOrSurface, sketch::FaceTag, sweep::SweepPath, FnAsArg},
|
||||
std::{shapes::SketchOrSurface, sketch::FaceTag, sweep::SweepPath},
|
||||
ModuleId,
|
||||
};
|
||||
|
||||
@ -1556,7 +1557,7 @@ impl<'a> FromKclValue<'a> for Box<Solid> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromKclValue<'a> for FnAsArg<'a> {
|
||||
impl<'a> FromKclValue<'a> for &'a FunctionSource {
|
||||
fn from_kcl_val(arg: &'a KclValue) -> Option<Self> {
|
||||
arg.get_function()
|
||||
}
|
||||
|
@ -2,25 +2,23 @@ use derive_docs::stdlib;
|
||||
|
||||
use super::{
|
||||
args::{Arg, FromArgs},
|
||||
Args, FnAsArg,
|
||||
Args,
|
||||
};
|
||||
use crate::{
|
||||
errors::{KclError, KclErrorDetails},
|
||||
execution::{ExecState, FunctionParam, KclValue},
|
||||
execution::{
|
||||
kcl_value::{FunctionSource, KclValue},
|
||||
ExecState,
|
||||
},
|
||||
source_range::SourceRange,
|
||||
ExecutorContext,
|
||||
};
|
||||
|
||||
/// Apply a function to each element of an array.
|
||||
pub async fn map(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
||||
let (array, f): (Vec<KclValue>, FnAsArg<'_>) = FromArgs::from_args(&args, 0)?;
|
||||
let (array, f): (Vec<KclValue>, &FunctionSource) = FromArgs::from_args(&args, 0)?;
|
||||
let meta = vec![args.source_range.into()];
|
||||
let map_fn = FunctionParam {
|
||||
inner: f.func,
|
||||
fn_expr: f.expr,
|
||||
ctx: args.ctx.clone(),
|
||||
memory: f.memory,
|
||||
};
|
||||
let new_array = inner_map(array, map_fn, exec_state, &args).await?;
|
||||
let new_array = inner_map(array, f, exec_state, &args).await?;
|
||||
Ok(KclValue::Array { value: new_array, meta })
|
||||
}
|
||||
|
||||
@ -59,13 +57,13 @@ pub async fn map(exec_state: &mut ExecState, args: Args) -> Result<KclValue, Kcl
|
||||
}]
|
||||
async fn inner_map<'a>(
|
||||
array: Vec<KclValue>,
|
||||
map_fn: FunctionParam<'a>,
|
||||
map_fn: &'a FunctionSource,
|
||||
exec_state: &mut ExecState,
|
||||
args: &'a Args,
|
||||
) -> Result<Vec<KclValue>, KclError> {
|
||||
let mut new_array = Vec::with_capacity(array.len());
|
||||
for elem in array {
|
||||
let new_elem = call_map_closure(elem, &map_fn, args.source_range, exec_state).await?;
|
||||
let new_elem = call_map_closure(elem, map_fn, args.source_range, exec_state, &args.ctx).await?;
|
||||
new_array.push(new_elem);
|
||||
}
|
||||
Ok(new_array)
|
||||
@ -73,12 +71,13 @@ async fn inner_map<'a>(
|
||||
|
||||
async fn call_map_closure(
|
||||
input: KclValue,
|
||||
map_fn: &FunctionParam<'_>,
|
||||
map_fn: &FunctionSource,
|
||||
source_range: SourceRange,
|
||||
exec_state: &mut ExecState,
|
||||
ctxt: &ExecutorContext,
|
||||
) -> Result<KclValue, KclError> {
|
||||
let output = map_fn
|
||||
.call(exec_state, vec![Arg::synthetic(input)], source_range)
|
||||
.call(exec_state, ctxt, vec![Arg::synthetic(input)], source_range)
|
||||
.await?;
|
||||
let source_ranges = vec![source_range];
|
||||
let output = output.ok_or_else(|| {
|
||||
@ -92,14 +91,8 @@ async fn call_map_closure(
|
||||
|
||||
/// For each item in an array, update a value.
|
||||
pub async fn reduce(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
||||
let (array, start, f): (Vec<KclValue>, KclValue, FnAsArg<'_>) = FromArgs::from_args(&args, 0)?;
|
||||
let reduce_fn = FunctionParam {
|
||||
inner: f.func,
|
||||
fn_expr: f.expr,
|
||||
ctx: args.ctx.clone(),
|
||||
memory: f.memory,
|
||||
};
|
||||
inner_reduce(array, start, reduce_fn, exec_state, &args).await
|
||||
let (array, start, f): (Vec<KclValue>, KclValue, &FunctionSource) = FromArgs::from_args(&args, 0)?;
|
||||
inner_reduce(array, start, f, exec_state, &args).await
|
||||
}
|
||||
|
||||
/// Take a starting value. Then, for each element of an array, calculate the next value,
|
||||
@ -187,13 +180,13 @@ pub async fn reduce(exec_state: &mut ExecState, args: Args) -> Result<KclValue,
|
||||
async fn inner_reduce<'a>(
|
||||
array: Vec<KclValue>,
|
||||
start: KclValue,
|
||||
reduce_fn: FunctionParam<'a>,
|
||||
reduce_fn: &'a FunctionSource,
|
||||
exec_state: &mut ExecState,
|
||||
args: &'a Args,
|
||||
) -> Result<KclValue, KclError> {
|
||||
let mut reduced = start;
|
||||
for elem in array {
|
||||
reduced = call_reduce_closure(elem, reduced, &reduce_fn, args.source_range, exec_state).await?;
|
||||
reduced = call_reduce_closure(elem, reduced, reduce_fn, args.source_range, exec_state, &args.ctx).await?;
|
||||
}
|
||||
|
||||
Ok(reduced)
|
||||
@ -202,13 +195,14 @@ async fn inner_reduce<'a>(
|
||||
async fn call_reduce_closure(
|
||||
elem: KclValue,
|
||||
start: KclValue,
|
||||
reduce_fn: &FunctionParam<'_>,
|
||||
reduce_fn: &FunctionSource,
|
||||
source_range: SourceRange,
|
||||
exec_state: &mut ExecState,
|
||||
ctxt: &ExecutorContext,
|
||||
) -> Result<KclValue, KclError> {
|
||||
// Call the reduce fn for this repetition.
|
||||
let reduce_fn_args = vec![Arg::synthetic(elem), Arg::synthetic(start)];
|
||||
let transform_fn_return = reduce_fn.call(exec_state, reduce_fn_args, source_range).await?;
|
||||
let transform_fn_return = reduce_fn.call(exec_state, ctxt, reduce_fn_args, source_range).await?;
|
||||
|
||||
// Unpack the returned transform object.
|
||||
let source_ranges = vec![source_range];
|
||||
|
@ -39,8 +39,7 @@ use serde::{Deserialize, Serialize};
|
||||
use crate::{
|
||||
docs::StdLibFn,
|
||||
errors::KclError,
|
||||
execution::{EnvironmentRef, ExecState, KclValue},
|
||||
parsing::ast::types::FunctionExpression,
|
||||
execution::{ExecState, KclValue},
|
||||
};
|
||||
|
||||
pub type StdFn = fn(
|
||||
@ -168,11 +167,35 @@ pub fn get_stdlib_fn(name: &str) -> Option<Box<dyn StdLibFn>> {
|
||||
CORE_FNS.iter().find(|f| f.name() == name).cloned()
|
||||
}
|
||||
|
||||
pub(crate) fn std_fn(path: &str, fn_name: &str) -> crate::std::StdFn {
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct StdFnProps {
|
||||
pub name: String,
|
||||
pub deprecated: bool,
|
||||
}
|
||||
|
||||
impl StdFnProps {
|
||||
fn default(name: &str) -> Self {
|
||||
Self {
|
||||
name: name.to_owned(),
|
||||
deprecated: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn std_fn(path: &str, fn_name: &str) -> (crate::std::StdFn, StdFnProps) {
|
||||
match (path, fn_name) {
|
||||
("math", "cos") => |e, a| Box::pin(crate::std::math::cos(e, a)),
|
||||
("math", "sin") => |e, a| Box::pin(crate::std::math::sin(e, a)),
|
||||
("math", "tan") => |e, a| Box::pin(crate::std::math::tan(e, a)),
|
||||
("math", "cos") => (
|
||||
|e, a| Box::pin(crate::std::math::cos(e, a)),
|
||||
StdFnProps::default("std::math::cos"),
|
||||
),
|
||||
("math", "sin") => (
|
||||
|e, a| Box::pin(crate::std::math::sin(e, a)),
|
||||
StdFnProps::default("std::math::sin"),
|
||||
),
|
||||
("math", "tan") => (
|
||||
|e, a| Box::pin(crate::std::math::tan(e, a)),
|
||||
StdFnProps::default("std::math::tan"),
|
||||
),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
@ -306,10 +329,3 @@ pub enum Primitive {
|
||||
/// A uuid value.
|
||||
Uuid,
|
||||
}
|
||||
|
||||
/// A closure used as an argument to a stdlib function.
|
||||
pub struct FnAsArg<'a> {
|
||||
pub func: Option<&'a crate::std::StdFn>,
|
||||
pub expr: crate::parsing::ast::types::BoxNode<FunctionExpression>,
|
||||
pub memory: Option<EnvironmentRef>,
|
||||
}
|
||||
|
@ -16,15 +16,16 @@ use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
use super::{args::Arg, FnAsArg};
|
||||
use super::args::Arg;
|
||||
use crate::{
|
||||
errors::{KclError, KclErrorDetails},
|
||||
execution::{
|
||||
kcl_value::NumericType, ExecState, FunctionParam, Geometries, Geometry, KclObjectFields, KclValue, Point2d,
|
||||
Point3d, Sketch, SketchSet, Solid, SolidSet,
|
||||
kcl_value::{FunctionSource, NumericType},
|
||||
ExecState, Geometries, Geometry, KclObjectFields, KclValue, Point2d, Point3d, Sketch, SketchSet, Solid,
|
||||
SolidSet,
|
||||
},
|
||||
std::Args,
|
||||
SourceRange,
|
||||
ExecutorContext, SourceRange,
|
||||
};
|
||||
|
||||
const MUST_HAVE_ONE_INSTANCE: &str = "There must be at least 1 instance of your geometry";
|
||||
@ -49,23 +50,10 @@ pub struct LinearPattern3dData {
|
||||
pub async fn pattern_transform(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
||||
let solid_set = args.get_unlabeled_kw_arg("solidSet")?;
|
||||
let instances: u32 = args.get_kw_arg("instances")?;
|
||||
let transform: FnAsArg<'_> = args.get_kw_arg("transform")?;
|
||||
let transform: &FunctionSource = args.get_kw_arg("transform")?;
|
||||
let use_original: Option<bool> = args.get_kw_arg_opt("useOriginal")?;
|
||||
|
||||
let solids = inner_pattern_transform(
|
||||
solid_set,
|
||||
instances,
|
||||
FunctionParam {
|
||||
inner: transform.func,
|
||||
fn_expr: transform.expr,
|
||||
ctx: args.ctx.clone(),
|
||||
memory: transform.memory,
|
||||
},
|
||||
use_original,
|
||||
exec_state,
|
||||
&args,
|
||||
)
|
||||
.await?;
|
||||
let solids = inner_pattern_transform(solid_set, instances, transform, use_original, exec_state, &args).await?;
|
||||
Ok(KclValue::Solids { value: solids })
|
||||
}
|
||||
|
||||
@ -73,23 +61,11 @@ pub async fn pattern_transform(exec_state: &mut ExecState, args: Args) -> Result
|
||||
pub async fn pattern_transform_2d(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
||||
let sketch_set = args.get_unlabeled_kw_arg("sketchSet")?;
|
||||
let instances: u32 = args.get_kw_arg("instances")?;
|
||||
let transform: FnAsArg<'_> = args.get_kw_arg("transform")?;
|
||||
let transform: &FunctionSource = args.get_kw_arg("transform")?;
|
||||
let use_original: Option<bool> = args.get_kw_arg_opt("useOriginal")?;
|
||||
|
||||
let sketches = inner_pattern_transform_2d(
|
||||
sketch_set,
|
||||
instances,
|
||||
FunctionParam {
|
||||
inner: transform.func,
|
||||
fn_expr: transform.expr,
|
||||
ctx: args.ctx.clone(),
|
||||
memory: transform.memory,
|
||||
},
|
||||
use_original,
|
||||
exec_state,
|
||||
&args,
|
||||
)
|
||||
.await?;
|
||||
let sketches =
|
||||
inner_pattern_transform_2d(sketch_set, instances, transform, use_original, exec_state, &args).await?;
|
||||
Ok(KclValue::Sketches { value: sketches })
|
||||
}
|
||||
|
||||
@ -291,7 +267,7 @@ pub async fn pattern_transform_2d(exec_state: &mut ExecState, args: Args) -> Res
|
||||
async fn inner_pattern_transform<'a>(
|
||||
solid_set: SolidSet,
|
||||
instances: u32,
|
||||
transform: FunctionParam<'a>,
|
||||
transform: &'a FunctionSource,
|
||||
use_original: Option<bool>,
|
||||
exec_state: &mut ExecState,
|
||||
args: &'a Args,
|
||||
@ -305,7 +281,7 @@ async fn inner_pattern_transform<'a>(
|
||||
}));
|
||||
}
|
||||
for i in 1..instances {
|
||||
let t = make_transform::<Box<Solid>>(i, &transform, args.source_range, exec_state).await?;
|
||||
let t = make_transform::<Box<Solid>>(i, transform, args.source_range, exec_state, &args.ctx).await?;
|
||||
transform_vec.push(t);
|
||||
}
|
||||
execute_pattern_transform(
|
||||
@ -344,7 +320,7 @@ async fn inner_pattern_transform<'a>(
|
||||
async fn inner_pattern_transform_2d<'a>(
|
||||
sketch_set: SketchSet,
|
||||
instances: u32,
|
||||
transform: FunctionParam<'a>,
|
||||
transform: &'a FunctionSource,
|
||||
use_original: Option<bool>,
|
||||
exec_state: &mut ExecState,
|
||||
args: &'a Args,
|
||||
@ -358,7 +334,7 @@ async fn inner_pattern_transform_2d<'a>(
|
||||
}));
|
||||
}
|
||||
for i in 1..instances {
|
||||
let t = make_transform::<Box<Sketch>>(i, &transform, args.source_range, exec_state).await?;
|
||||
let t = make_transform::<Box<Sketch>>(i, transform, args.source_range, exec_state, &args.ctx).await?;
|
||||
transform_vec.push(t);
|
||||
}
|
||||
execute_pattern_transform(
|
||||
@ -439,9 +415,10 @@ async fn send_pattern_transform<T: GeometryTrait>(
|
||||
|
||||
async fn make_transform<T: GeometryTrait>(
|
||||
i: u32,
|
||||
transform: &FunctionParam<'_>,
|
||||
transform: &FunctionSource,
|
||||
source_range: SourceRange,
|
||||
exec_state: &mut ExecState,
|
||||
ctxt: &ExecutorContext,
|
||||
) -> Result<Vec<Transform>, KclError> {
|
||||
// Call the transform fn for this repetition.
|
||||
let repetition_num = KclValue::Number {
|
||||
@ -450,7 +427,9 @@ async fn make_transform<T: GeometryTrait>(
|
||||
meta: vec![source_range.into()],
|
||||
};
|
||||
let transform_fn_args = vec![Arg::synthetic(repetition_num)];
|
||||
let transform_fn_return = transform.call(exec_state, transform_fn_args, source_range).await?;
|
||||
let transform_fn_return = transform
|
||||
.call(exec_state, ctxt, transform_fn_args, source_range)
|
||||
.await?;
|
||||
|
||||
// Unpack the returned transform object.
|
||||
let source_ranges = vec![source_range];
|
||||
|
@ -70,11 +70,13 @@ async fn do_execute_and_snapshot(
|
||||
ctx.run_with_ui_outputs(&program, &mut exec_state)
|
||||
.await
|
||||
.map_err(|err| ExecErrorWithState::new(err.into(), exec_state.clone()))?;
|
||||
if !exec_state.errors().is_empty() {
|
||||
return Err(ExecErrorWithState::new(
|
||||
KclErrorWithOutputs::no_outputs(KclError::Semantic(exec_state.errors()[0].clone().into())).into(),
|
||||
exec_state.clone(),
|
||||
));
|
||||
for e in exec_state.errors() {
|
||||
if e.severity.is_err() {
|
||||
return Err(ExecErrorWithState::new(
|
||||
KclErrorWithOutputs::no_outputs(KclError::Semantic(e.clone().into())).into(),
|
||||
exec_state.clone(),
|
||||
));
|
||||
}
|
||||
}
|
||||
let snapshot_png_bytes = ctx
|
||||
.prepare_snapshot()
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing add_lots.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,63 +144,6 @@ description: Variables in memory after executing add_lots.kcl
|
||||
},
|
||||
"f": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 24,
|
||||
"left": {
|
||||
"end": 20,
|
||||
"name": "i",
|
||||
"start": 19,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"end": 24,
|
||||
"raw": "2",
|
||||
"start": 23,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 19,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 24,
|
||||
"start": 12,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 26,
|
||||
"start": 8
|
||||
},
|
||||
"end": 26,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 6,
|
||||
"name": "i",
|
||||
"start": 5,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 4,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -238,31 +156,6 @@ description: Variables in memory after executing add_lots.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -275,31 +168,6 @@ description: Variables in memory after executing add_lots.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing angled_line.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -607,31 +582,6 @@ description: Variables in memory after executing angled_line.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -644,31 +594,6 @@ description: Variables in memory after executing angled_line.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -212,31 +212,6 @@ description: Variables in memory after executing array_elem_pop.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -356,31 +331,6 @@ description: Variables in memory after executing array_elem_pop.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -393,31 +343,6 @@ description: Variables in memory after executing array_elem_pop.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -212,31 +212,6 @@ description: Variables in memory after executing array_elem_push.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -475,31 +450,6 @@ description: Variables in memory after executing array_elem_push.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -512,31 +462,6 @@ description: Variables in memory after executing array_elem_push.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing array_range_expr.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -609,31 +584,6 @@ description: Variables in memory after executing array_range_expr.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -646,31 +596,6 @@ description: Variables in memory after executing array_range_expr.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing array_range_negative_expr.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing array_range_negative_expr.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -206,31 +156,6 @@ description: Variables in memory after executing array_range_negative_expr.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -133,31 +133,6 @@ snapshot_kind: text
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1340,31 +1315,6 @@ snapshot_kind: text
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2281,31 +2231,6 @@ snapshot_kind: text
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing artifact_graph_example_code_no_
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -313,31 +288,6 @@ description: Variables in memory after executing artifact_graph_example_code_no_
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -852,31 +802,6 @@ description: Variables in memory after executing artifact_graph_example_code_no_
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing artifact_graph_example_code_off
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -265,31 +240,6 @@ description: Variables in memory after executing artifact_graph_example_code_off
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -400,31 +350,6 @@ description: Variables in memory after executing artifact_graph_example_code_off
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing artifact_graph_sketch_on_face_e
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2959,31 +2934,6 @@ description: Variables in memory after executing artifact_graph_sketch_on_face_e
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -5430,31 +5380,6 @@ description: Variables in memory after executing artifact_graph_sketch_on_face_e
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing assembly_non_default_units.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -195,31 +170,6 @@ description: Variables in memory after executing assembly_non_default_units.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -232,31 +182,6 @@ description: Variables in memory after executing assembly_non_default_units.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -636,31 +611,6 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -673,31 +623,6 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -564,31 +539,6 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -601,31 +551,6 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -701,31 +676,6 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -738,31 +688,6 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -701,31 +676,6 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -738,31 +688,6 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -564,31 +539,6 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -601,31 +551,6 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing big_number_angle_to_match_lengt
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -505,31 +480,6 @@ description: Variables in memory after executing big_number_angle_to_match_lengt
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -542,31 +492,6 @@ description: Variables in memory after executing big_number_angle_to_match_lengt
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing big_number_angle_to_match_lengt
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -505,31 +480,6 @@ description: Variables in memory after executing big_number_angle_to_match_lengt
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -542,31 +492,6 @@ description: Variables in memory after executing big_number_angle_to_match_lengt
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -258,31 +258,6 @@ description: Variables in memory after executing boolean_logical_and.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -337,31 +312,6 @@ description: Variables in memory after executing boolean_logical_and.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -374,31 +324,6 @@ description: Variables in memory after executing boolean_logical_and.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing boolean_logical_multiple.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -281,31 +256,6 @@ description: Variables in memory after executing boolean_logical_multiple.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -318,31 +268,6 @@ description: Variables in memory after executing boolean_logical_multiple.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -258,31 +258,6 @@ description: Variables in memory after executing boolean_logical_or.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -337,31 +312,6 @@ description: Variables in memory after executing boolean_logical_or.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -374,31 +324,6 @@ description: Variables in memory after executing boolean_logical_or.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing circle_three_point.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing circle_three_point.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -349,31 +299,6 @@ description: Variables in memory after executing circle_three_point.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing circular_pattern3d_a_pattern.kc
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -68032,31 +68007,6 @@ description: Variables in memory after executing circular_pattern3d_a_pattern.kc
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -68069,31 +68019,6 @@ description: Variables in memory after executing circular_pattern3d_a_pattern.kc
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing comparisons.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing comparisons.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -206,31 +156,6 @@ description: Variables in memory after executing comparisons.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -7,9 +7,9 @@ description: Operations executed computed_var.kcl
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "cos",
|
||||
"functionSourceRange": [
|
||||
1446,
|
||||
1478,
|
||||
2
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
|
@ -234,31 +234,6 @@ description: Variables in memory after executing computed_var.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -386,31 +361,6 @@ description: Variables in memory after executing computed_var.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -423,31 +373,6 @@ description: Variables in memory after executing computed_var.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing cube.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,678 +144,6 @@ description: Variables in memory after executing cube.kcl
|
||||
},
|
||||
"cube": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 50,
|
||||
"id": {
|
||||
"end": 33,
|
||||
"name": "l",
|
||||
"start": 32,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"end": 50,
|
||||
"left": {
|
||||
"end": 46,
|
||||
"name": "sideLength",
|
||||
"start": 36,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
"end": 50,
|
||||
"raw": "2",
|
||||
"start": 49,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 36,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 32,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 50,
|
||||
"kind": "const",
|
||||
"start": 32,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 66,
|
||||
"id": {
|
||||
"end": 54,
|
||||
"name": "x",
|
||||
"start": 53,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"computed": false,
|
||||
"end": 66,
|
||||
"object": {
|
||||
"end": 63,
|
||||
"name": "center",
|
||||
"start": 57,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"end": 65,
|
||||
"raw": "0",
|
||||
"start": 64,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 57,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 53,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 66,
|
||||
"kind": "const",
|
||||
"start": 53,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 82,
|
||||
"id": {
|
||||
"end": 70,
|
||||
"name": "y",
|
||||
"start": 69,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"computed": false,
|
||||
"end": 82,
|
||||
"object": {
|
||||
"end": 79,
|
||||
"name": "center",
|
||||
"start": 73,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"end": 81,
|
||||
"raw": "1",
|
||||
"start": 80,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 73,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 69,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 82,
|
||||
"kind": "const",
|
||||
"start": 69,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 106,
|
||||
"id": {
|
||||
"end": 87,
|
||||
"name": "p0",
|
||||
"start": 85,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 97,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 93,
|
||||
"name": "l",
|
||||
"start": 92,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 93,
|
||||
"operator": "-",
|
||||
"start": 91,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 97,
|
||||
"name": "x",
|
||||
"start": 96,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 91,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 105,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 101,
|
||||
"name": "l",
|
||||
"start": 100,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 101,
|
||||
"operator": "-",
|
||||
"start": 99,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 105,
|
||||
"name": "y",
|
||||
"start": 104,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 99,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 106,
|
||||
"start": 90,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 85,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 106,
|
||||
"kind": "const",
|
||||
"start": 85,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 129,
|
||||
"id": {
|
||||
"end": 111,
|
||||
"name": "p1",
|
||||
"start": 109,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 121,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 117,
|
||||
"name": "l",
|
||||
"start": 116,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 117,
|
||||
"operator": "-",
|
||||
"start": 115,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 121,
|
||||
"name": "x",
|
||||
"start": 120,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 115,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 128,
|
||||
"left": {
|
||||
"end": 124,
|
||||
"name": "l",
|
||||
"start": 123,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 128,
|
||||
"name": "y",
|
||||
"start": 127,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 123,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 129,
|
||||
"start": 114,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 109,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 129,
|
||||
"kind": "const",
|
||||
"start": 109,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 151,
|
||||
"id": {
|
||||
"end": 134,
|
||||
"name": "p2",
|
||||
"start": 132,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 143,
|
||||
"left": {
|
||||
"end": 139,
|
||||
"name": "l",
|
||||
"start": 138,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 143,
|
||||
"name": "x",
|
||||
"start": 142,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 138,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 150,
|
||||
"left": {
|
||||
"end": 146,
|
||||
"name": "l",
|
||||
"start": 145,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 150,
|
||||
"name": "y",
|
||||
"start": 149,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 145,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 151,
|
||||
"start": 137,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 132,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 151,
|
||||
"kind": "const",
|
||||
"start": 132,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 174,
|
||||
"id": {
|
||||
"end": 156,
|
||||
"name": "p3",
|
||||
"start": 154,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 165,
|
||||
"left": {
|
||||
"end": 161,
|
||||
"name": "l",
|
||||
"start": 160,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 165,
|
||||
"name": "x",
|
||||
"start": 164,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 160,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 173,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 169,
|
||||
"name": "l",
|
||||
"start": 168,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 169,
|
||||
"operator": "-",
|
||||
"start": 167,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 173,
|
||||
"name": "y",
|
||||
"start": 172,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 167,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 174,
|
||||
"start": 159,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 154,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 174,
|
||||
"kind": "const",
|
||||
"start": 154,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 201,
|
||||
"name": "p0",
|
||||
"start": 199,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 198,
|
||||
"name": "startSketchAt",
|
||||
"start": 185,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 202,
|
||||
"start": 185,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 231,
|
||||
"name": "p1",
|
||||
"start": 229,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 214,
|
||||
"name": "line",
|
||||
"start": 210,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 232,
|
||||
"start": 210,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 261,
|
||||
"name": "p2",
|
||||
"start": 259,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 244,
|
||||
"name": "line",
|
||||
"start": 240,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 262,
|
||||
"start": 240,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 291,
|
||||
"name": "p3",
|
||||
"start": 289,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 274,
|
||||
"name": "line",
|
||||
"start": 270,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 292,
|
||||
"start": 270,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 321,
|
||||
"name": "p0",
|
||||
"start": 319,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 304,
|
||||
"name": "line",
|
||||
"start": 300,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 322,
|
||||
"start": 300,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"end": 335,
|
||||
"name": "close",
|
||||
"start": 330,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 337,
|
||||
"start": 330,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 372,
|
||||
"name": "sideLength",
|
||||
"start": 362,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 352,
|
||||
"name": "extrude",
|
||||
"start": 345,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 373,
|
||||
"start": 345,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 373,
|
||||
"start": 185,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 373,
|
||||
"start": 178,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 375,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"6": [
|
||||
{
|
||||
"end": 178,
|
||||
"start": 174,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 28
|
||||
},
|
||||
"end": 375,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 18,
|
||||
"name": "sideLength",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 26,
|
||||
"name": "center",
|
||||
"start": 20,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1109,31 +412,6 @@ description: Variables in memory after executing cube.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1146,31 +424,6 @@ description: Variables in memory after executing cube.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing double_map_fn.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,63 +144,6 @@ description: Variables in memory after executing double_map_fn.kcl
|
||||
},
|
||||
"increment": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 32,
|
||||
"left": {
|
||||
"end": 28,
|
||||
"name": "i",
|
||||
"start": 27,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 32,
|
||||
"raw": "1",
|
||||
"start": 31,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 27,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 32,
|
||||
"start": 20,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 34,
|
||||
"start": 16
|
||||
},
|
||||
"end": 34,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 14,
|
||||
"name": "i",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 12,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -238,31 +156,6 @@ description: Variables in memory after executing double_map_fn.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -275,31 +168,6 @@ description: Variables in memory after executing double_map_fn.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
description: Variables in memory after executing fillet-and-shell.kcl
|
||||
snapshot_kind: text
|
||||
---
|
||||
{
|
||||
"E": {
|
||||
@ -834,31 +833,6 @@ snapshot_kind: text
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1146,376 +1120,6 @@ snapshot_kind: text
|
||||
},
|
||||
"m25Screw": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 1508,
|
||||
"id": {
|
||||
"end": 1307,
|
||||
"name": "screw",
|
||||
"start": 1302,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 1328,
|
||||
"raw": "\"XY\"",
|
||||
"start": 1324,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 1323,
|
||||
"name": "startSketchOn",
|
||||
"start": 1310,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1329,
|
||||
"start": 1310,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 1354,
|
||||
"raw": "0",
|
||||
"start": 1353,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 1357,
|
||||
"raw": "0",
|
||||
"start": 1356,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 1358,
|
||||
"start": 1352,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 1361,
|
||||
"start": 1360,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 1351,
|
||||
"name": "startProfileAt",
|
||||
"start": 1337,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1362,
|
||||
"start": 1337,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 1410,
|
||||
"properties": [
|
||||
{
|
||||
"end": 1394,
|
||||
"key": {
|
||||
"end": 1385,
|
||||
"name": "center",
|
||||
"start": 1379,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 1379,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 1390,
|
||||
"name": "x",
|
||||
"start": 1389,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 1393,
|
||||
"name": "y",
|
||||
"start": 1392,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 1394,
|
||||
"start": 1388,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 1408,
|
||||
"key": {
|
||||
"end": 1402,
|
||||
"name": "radius",
|
||||
"start": 1396,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 1396,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 1408,
|
||||
"raw": "2.5",
|
||||
"start": 1405,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.5,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1377,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 1413,
|
||||
"start": 1412,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 1376,
|
||||
"name": "circle",
|
||||
"start": 1370,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1414,
|
||||
"start": 1370,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 1468,
|
||||
"properties": [
|
||||
{
|
||||
"end": 1451,
|
||||
"key": {
|
||||
"end": 1442,
|
||||
"name": "center",
|
||||
"start": 1436,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 1436,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 1447,
|
||||
"name": "x",
|
||||
"start": 1446,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 1450,
|
||||
"name": "y",
|
||||
"start": 1449,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 1451,
|
||||
"start": 1445,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 1466,
|
||||
"key": {
|
||||
"end": 1459,
|
||||
"name": "radius",
|
||||
"start": 1453,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 1453,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 1466,
|
||||
"raw": "1.25",
|
||||
"start": 1462,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.25,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1434,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 1471,
|
||||
"start": 1470,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 1433,
|
||||
"name": "circle",
|
||||
"start": 1427,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1472,
|
||||
"start": 1427,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"end": 1475,
|
||||
"start": 1474,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 1426,
|
||||
"name": "hole",
|
||||
"start": 1422,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1476,
|
||||
"start": 1422,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 1507,
|
||||
"name": "height",
|
||||
"start": 1501,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 1491,
|
||||
"name": "extrude",
|
||||
"start": 1484,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1508,
|
||||
"start": 1484,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 1508,
|
||||
"start": 1310,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 1302,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 1508,
|
||||
"kind": "const",
|
||||
"start": 1302,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 1523,
|
||||
"name": "screw",
|
||||
"start": 1518,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 1523,
|
||||
"start": 1511,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 1525,
|
||||
"start": 1298
|
||||
},
|
||||
"end": 1525,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1285,
|
||||
"name": "x",
|
||||
"start": 1284,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1288,
|
||||
"name": "y",
|
||||
"start": 1287,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1296,
|
||||
"name": "height",
|
||||
"start": 1290,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1283,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1871,31 +1475,6 @@ snapshot_kind: text
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1908,31 +1487,6 @@ snapshot_kind: text
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,376 +132,6 @@ description: Variables in memory after executing function_sketch.kcl
|
||||
},
|
||||
"box": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 202,
|
||||
"id": {
|
||||
"end": 25,
|
||||
"name": "myBox",
|
||||
"start": 20,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 46,
|
||||
"raw": "'XY'",
|
||||
"start": 42,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 41,
|
||||
"name": "startSketchOn",
|
||||
"start": 28,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 47,
|
||||
"start": 28,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 72,
|
||||
"raw": "0",
|
||||
"start": 71,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 75,
|
||||
"raw": "0",
|
||||
"start": 74,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 76,
|
||||
"start": 70,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 79,
|
||||
"start": 78,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 69,
|
||||
"name": "startProfileAt",
|
||||
"start": 55,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 80,
|
||||
"start": 55,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 101,
|
||||
"raw": "0",
|
||||
"start": 100,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 104,
|
||||
"name": "l",
|
||||
"start": 103,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 105,
|
||||
"start": 99,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 92,
|
||||
"name": "line",
|
||||
"start": 88,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 106,
|
||||
"start": 88,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 127,
|
||||
"name": "w",
|
||||
"start": 126,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 130,
|
||||
"raw": "0",
|
||||
"start": 129,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 131,
|
||||
"start": 125,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 118,
|
||||
"name": "line",
|
||||
"start": 114,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 132,
|
||||
"start": 114,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 153,
|
||||
"raw": "0",
|
||||
"start": 152,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 157,
|
||||
"name": "l",
|
||||
"start": 156,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 157,
|
||||
"operator": "-",
|
||||
"start": 155,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 158,
|
||||
"start": 151,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 144,
|
||||
"name": "line",
|
||||
"start": 140,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 159,
|
||||
"start": 140,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 174,
|
||||
"start": 173,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 172,
|
||||
"name": "close",
|
||||
"start": 167,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 175,
|
||||
"start": 167,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 201,
|
||||
"name": "h",
|
||||
"start": 200,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 190,
|
||||
"name": "extrude",
|
||||
"start": 183,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 202,
|
||||
"start": 183,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 202,
|
||||
"start": 28,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 20,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 202,
|
||||
"kind": "const",
|
||||
"start": 20,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 218,
|
||||
"name": "myBox",
|
||||
"start": 213,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 218,
|
||||
"start": 206,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 220,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 206,
|
||||
"start": 202,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 16
|
||||
},
|
||||
"end": 220,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 8,
|
||||
"name": "h",
|
||||
"start": 7,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 11,
|
||||
"name": "l",
|
||||
"start": 10,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 14,
|
||||
"name": "w",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 6,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -514,31 +144,6 @@ description: Variables in memory after executing function_sketch.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -784,31 +389,6 @@ description: Variables in memory after executing function_sketch.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -821,31 +401,6 @@ description: Variables in memory after executing function_sketch.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,362 +132,6 @@ description: Variables in memory after executing function_sketch_with_position.k
|
||||
},
|
||||
"box": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 200,
|
||||
"id": {
|
||||
"end": 28,
|
||||
"name": "myBox",
|
||||
"start": 23,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 49,
|
||||
"raw": "'XY'",
|
||||
"start": 45,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 44,
|
||||
"name": "startSketchOn",
|
||||
"start": 31,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 50,
|
||||
"start": 31,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 74,
|
||||
"name": "p",
|
||||
"start": 73,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 77,
|
||||
"start": 76,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 72,
|
||||
"name": "startProfileAt",
|
||||
"start": 58,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 78,
|
||||
"start": 58,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 99,
|
||||
"raw": "0",
|
||||
"start": 98,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 102,
|
||||
"name": "l",
|
||||
"start": 101,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 103,
|
||||
"start": 97,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 90,
|
||||
"name": "line",
|
||||
"start": 86,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 104,
|
||||
"start": 86,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 125,
|
||||
"name": "w",
|
||||
"start": 124,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 128,
|
||||
"raw": "0",
|
||||
"start": 127,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 129,
|
||||
"start": 123,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 116,
|
||||
"name": "line",
|
||||
"start": 112,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 130,
|
||||
"start": 112,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 151,
|
||||
"raw": "0",
|
||||
"start": 150,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 155,
|
||||
"name": "l",
|
||||
"start": 154,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 155,
|
||||
"operator": "-",
|
||||
"start": 153,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 156,
|
||||
"start": 149,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 142,
|
||||
"name": "line",
|
||||
"start": 138,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 157,
|
||||
"start": 138,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 172,
|
||||
"start": 171,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 170,
|
||||
"name": "close",
|
||||
"start": 165,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 173,
|
||||
"start": 165,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 199,
|
||||
"name": "h",
|
||||
"start": 198,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 188,
|
||||
"name": "extrude",
|
||||
"start": 181,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 200,
|
||||
"start": 181,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 200,
|
||||
"start": 31,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 23,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 200,
|
||||
"kind": "const",
|
||||
"start": 23,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 216,
|
||||
"name": "myBox",
|
||||
"start": 211,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 216,
|
||||
"start": 204,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 218,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 204,
|
||||
"start": 200,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 19
|
||||
},
|
||||
"end": 218,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 8,
|
||||
"name": "p",
|
||||
"start": 7,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 11,
|
||||
"name": "h",
|
||||
"start": 10,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 14,
|
||||
"name": "l",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 17,
|
||||
"name": "w",
|
||||
"start": 16,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 6,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -500,31 +144,6 @@ description: Variables in memory after executing function_sketch_with_position.k
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -537,31 +156,6 @@ description: Variables in memory after executing function_sketch_with_position.k
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -574,31 +168,6 @@ description: Variables in memory after executing function_sketch_with_position.k
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing helix_ccw.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -306,31 +281,6 @@ description: Variables in memory after executing helix_ccw.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -343,31 +293,6 @@ description: Variables in memory after executing helix_ccw.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing helix_simple.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -391,31 +366,6 @@ description: Variables in memory after executing helix_simple.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -428,31 +378,6 @@ description: Variables in memory after executing helix_simple.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -864,31 +864,6 @@ description: Variables in memory after executing i_shape.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2345,31 +2320,6 @@ description: Variables in memory after executing i_shape.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2382,31 +2332,6 @@ description: Variables in memory after executing i_shape.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -198,31 +198,6 @@ description: Variables in memory after executing if_else.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -235,31 +210,6 @@ description: Variables in memory after executing if_else.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -272,31 +222,6 @@ description: Variables in memory after executing if_else.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing import_constant.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing import_constant.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -206,31 +156,6 @@ description: Variables in memory after executing import_constant.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing import_export.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing import_export.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -206,31 +156,6 @@ description: Variables in memory after executing import_export.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing import_foreign.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -198,31 +173,6 @@ description: Variables in memory after executing import_foreign.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -235,31 +185,6 @@ description: Variables in memory after executing import_foreign.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing import_function_not_sketch.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,59 +144,6 @@ description: Variables in memory after executing import_function_not_sketch.kcl
|
||||
},
|
||||
"one": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 106,
|
||||
"left": {
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"end": 100,
|
||||
"name": "two",
|
||||
"start": 97,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 102,
|
||||
"start": 97,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"end": 106,
|
||||
"raw": "1",
|
||||
"start": 105,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 97,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 106,
|
||||
"start": 90,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 108,
|
||||
"start": 86
|
||||
},
|
||||
"end": 108,
|
||||
"params": [],
|
||||
"start": 83,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -234,31 +156,6 @@ description: Variables in memory after executing import_function_not_sketch.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -271,31 +168,6 @@ description: Variables in memory after executing import_function_not_sketch.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -308,43 +180,6 @@ description: Variables in memory after executing import_function_not_sketch.kcl
|
||||
},
|
||||
"two": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 388,
|
||||
"moduleId": 3,
|
||||
"raw": "5",
|
||||
"start": 387,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 388,
|
||||
"moduleId": 3,
|
||||
"start": 380,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 390,
|
||||
"moduleId": 3,
|
||||
"start": 378
|
||||
},
|
||||
"end": 390,
|
||||
"moduleId": 3,
|
||||
"params": [],
|
||||
"start": 372,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing import_glob.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,43 +144,6 @@ description: Variables in memory after executing import_glob.kcl
|
||||
},
|
||||
"foo": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 47,
|
||||
"moduleId": 3,
|
||||
"raw": "42",
|
||||
"start": 45,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 42.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 47,
|
||||
"moduleId": 3,
|
||||
"start": 38,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 49,
|
||||
"moduleId": 3,
|
||||
"start": 34
|
||||
},
|
||||
"end": 49,
|
||||
"moduleId": 3,
|
||||
"params": [],
|
||||
"start": 31,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -218,31 +156,6 @@ description: Variables in memory after executing import_glob.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -255,31 +168,6 @@ description: Variables in memory after executing import_glob.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing import_side_effect.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,43 +144,6 @@ description: Variables in memory after executing import_side_effect.kcl
|
||||
},
|
||||
"foo": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 32,
|
||||
"moduleId": 3,
|
||||
"raw": "0",
|
||||
"start": 31,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 32,
|
||||
"moduleId": 3,
|
||||
"start": 24,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 34,
|
||||
"moduleId": 3,
|
||||
"start": 22
|
||||
},
|
||||
"end": 34,
|
||||
"moduleId": 3,
|
||||
"params": [],
|
||||
"start": 16,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -218,31 +156,6 @@ description: Variables in memory after executing import_side_effect.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -255,31 +168,6 @@ description: Variables in memory after executing import_side_effect.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -269,31 +269,6 @@ description: Variables in memory after executing import_whole.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -319,31 +294,6 @@ description: Variables in memory after executing import_whole.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -356,31 +306,6 @@ description: Variables in memory after executing import_whole.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -212,31 +212,6 @@ description: Variables in memory after executing index_of_array.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -315,31 +290,6 @@ description: Variables in memory after executing index_of_array.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -352,31 +302,6 @@ description: Variables in memory after executing index_of_array.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing kittycad_svg.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing kittycad_svg.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -9880,31 +9830,6 @@ description: Variables in memory after executing kittycad_svg.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,69 +132,6 @@ description: Variables in memory after executing kw_fn.kcl
|
||||
},
|
||||
"add": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 75,
|
||||
"left": {
|
||||
"end": 67,
|
||||
"name": "x",
|
||||
"start": 66,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 75,
|
||||
"name": "delta",
|
||||
"start": 70,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 66,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 75,
|
||||
"start": 59,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 77,
|
||||
"start": 55
|
||||
},
|
||||
"end": 77,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 46,
|
||||
"name": "x",
|
||||
"start": 45,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"labeled": false
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 53,
|
||||
"name": "delta",
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 43,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
2
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -207,31 +144,6 @@ description: Variables in memory after executing kw_fn.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -244,64 +156,6 @@ description: Variables in memory after executing kw_fn.kcl
|
||||
},
|
||||
"increment": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 33,
|
||||
"left": {
|
||||
"end": 29,
|
||||
"name": "x",
|
||||
"start": 28,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 33,
|
||||
"raw": "1",
|
||||
"start": 32,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 28,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 33,
|
||||
"start": 21,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 35,
|
||||
"start": 17
|
||||
},
|
||||
"end": 35,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 15,
|
||||
"name": "x",
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"labeled": false
|
||||
}
|
||||
],
|
||||
"start": 12,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -314,31 +168,6 @@ description: Variables in memory after executing kw_fn.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -351,31 +180,6 @@ description: Variables in memory after executing kw_fn.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing kw_fn_with_defaults.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,80 +144,6 @@ description: Variables in memory after executing kw_fn_with_defaults.kcl
|
||||
},
|
||||
"increment": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 43,
|
||||
"left": {
|
||||
"end": 38,
|
||||
"name": "x",
|
||||
"start": 37,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 43,
|
||||
"name": "by",
|
||||
"start": 41,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 37,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 43,
|
||||
"start": 30,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 45,
|
||||
"start": 26
|
||||
},
|
||||
"end": 45,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 15,
|
||||
"name": "x",
|
||||
"start": 14,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"labeled": false
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 19,
|
||||
"name": "by",
|
||||
"start": 17,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"default_value": {
|
||||
"end": 24,
|
||||
"raw": "1",
|
||||
"start": 23,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 12,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -255,31 +156,6 @@ description: Variables in memory after executing kw_fn_with_defaults.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -292,31 +168,6 @@ description: Variables in memory after executing kw_fn_with_defaults.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing linear_pattern3d_a_pattern.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -13292,31 +13267,6 @@ description: Variables in memory after executing linear_pattern3d_a_pattern.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -13329,31 +13279,6 @@ description: Variables in memory after executing linear_pattern3d_a_pattern.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -133,31 +133,6 @@ snapshot_kind: text
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -34301,31 +34276,6 @@ snapshot_kind: text
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -34338,31 +34288,6 @@ snapshot_kind: text
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing neg_xz_plane.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -368,31 +343,6 @@ description: Variables in memory after executing neg_xz_plane.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -405,31 +355,6 @@ description: Variables in memory after executing neg_xz_plane.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -455,31 +455,6 @@ description: Variables in memory after executing parametric.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -602,31 +577,6 @@ description: Variables in memory after executing parametric.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -639,31 +589,6 @@ description: Variables in memory after executing parametric.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -533,31 +533,6 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -681,31 +656,6 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -718,31 +668,6 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -1708,211 +1708,6 @@ description: Variables in memory after executing pentagon_fillet_sugar.kcl
|
||||
},
|
||||
"circl": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 457,
|
||||
"name": "p",
|
||||
"start": 456,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 463,
|
||||
"name": "face",
|
||||
"start": 459,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 455,
|
||||
"name": "startSketchOn",
|
||||
"start": 442,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 464,
|
||||
"start": 442,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 498,
|
||||
"left": {
|
||||
"end": 489,
|
||||
"name": "x",
|
||||
"start": 488,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 498,
|
||||
"name": "radius",
|
||||
"start": 492,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 488,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 518,
|
||||
"left": {
|
||||
"end": 514,
|
||||
"name": "triangleHeight",
|
||||
"start": 500,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
"end": 518,
|
||||
"raw": "2",
|
||||
"start": 517,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 500,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 519,
|
||||
"start": 487,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 522,
|
||||
"start": 521,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 486,
|
||||
"name": "startProfileAt",
|
||||
"start": 472,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 523,
|
||||
"start": 472,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 539,
|
||||
"name": "circ",
|
||||
"start": 535,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 542,
|
||||
"start": 541,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
},
|
||||
{
|
||||
"end": 552,
|
||||
"start": 544,
|
||||
"type": "TagDeclarator",
|
||||
"type": "TagDeclarator",
|
||||
"value": "arc_tag"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 534,
|
||||
"name": "arc",
|
||||
"start": 531,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 553,
|
||||
"start": 531,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 568,
|
||||
"start": 567,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 566,
|
||||
"name": "close",
|
||||
"start": 561,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 569,
|
||||
"start": 561,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 569,
|
||||
"start": 442,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 569,
|
||||
"start": 435,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 571,
|
||||
"start": 431
|
||||
},
|
||||
"end": 571,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 423,
|
||||
"name": "x",
|
||||
"start": 422,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 429,
|
||||
"name": "face",
|
||||
"start": 425,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 421,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1925,31 +1720,6 @@ description: Variables in memory after executing pentagon_fillet_sugar.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -3769,31 +3539,6 @@ description: Variables in memory after executing pentagon_fillet_sugar.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -3806,31 +3551,6 @@ description: Variables in memory after executing pentagon_fillet_sugar.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,685 +144,6 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
},
|
||||
"cube": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 42,
|
||||
"id": {
|
||||
"end": 29,
|
||||
"name": "l",
|
||||
"start": 28,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"end": 42,
|
||||
"left": {
|
||||
"end": 38,
|
||||
"name": "length",
|
||||
"start": 32,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
"end": 42,
|
||||
"raw": "2",
|
||||
"start": 41,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 32,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"start": 28,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 42,
|
||||
"kind": "const",
|
||||
"start": 28,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 58,
|
||||
"id": {
|
||||
"end": 46,
|
||||
"name": "x",
|
||||
"start": 45,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"computed": false,
|
||||
"end": 58,
|
||||
"object": {
|
||||
"end": 55,
|
||||
"name": "center",
|
||||
"start": 49,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"end": 57,
|
||||
"raw": "0",
|
||||
"start": 56,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 49,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 45,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 58,
|
||||
"kind": "const",
|
||||
"start": 45,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 74,
|
||||
"id": {
|
||||
"end": 62,
|
||||
"name": "y",
|
||||
"start": 61,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"computed": false,
|
||||
"end": 74,
|
||||
"object": {
|
||||
"end": 71,
|
||||
"name": "center",
|
||||
"start": 65,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"end": 73,
|
||||
"raw": "1",
|
||||
"start": 72,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 65,
|
||||
"type": "MemberExpression",
|
||||
"type": "MemberExpression"
|
||||
},
|
||||
"start": 61,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 74,
|
||||
"kind": "const",
|
||||
"start": 61,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 98,
|
||||
"id": {
|
||||
"end": 79,
|
||||
"name": "p0",
|
||||
"start": 77,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 89,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 85,
|
||||
"name": "l",
|
||||
"start": 84,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 85,
|
||||
"operator": "-",
|
||||
"start": 83,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 89,
|
||||
"name": "x",
|
||||
"start": 88,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 83,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 97,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 93,
|
||||
"name": "l",
|
||||
"start": 92,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 93,
|
||||
"operator": "-",
|
||||
"start": 91,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 97,
|
||||
"name": "y",
|
||||
"start": 96,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 91,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 98,
|
||||
"start": 82,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 77,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 98,
|
||||
"kind": "const",
|
||||
"start": 77,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 121,
|
||||
"id": {
|
||||
"end": 103,
|
||||
"name": "p1",
|
||||
"start": 101,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 113,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 109,
|
||||
"name": "l",
|
||||
"start": 108,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 109,
|
||||
"operator": "-",
|
||||
"start": 107,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 113,
|
||||
"name": "x",
|
||||
"start": 112,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 107,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 120,
|
||||
"left": {
|
||||
"end": 116,
|
||||
"name": "l",
|
||||
"start": 115,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 120,
|
||||
"name": "y",
|
||||
"start": 119,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 115,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 121,
|
||||
"start": 106,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 101,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 121,
|
||||
"kind": "const",
|
||||
"start": 101,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 143,
|
||||
"id": {
|
||||
"end": 126,
|
||||
"name": "p2",
|
||||
"start": 124,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 135,
|
||||
"left": {
|
||||
"end": 131,
|
||||
"name": "l",
|
||||
"start": 130,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 135,
|
||||
"name": "x",
|
||||
"start": 134,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 130,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 142,
|
||||
"left": {
|
||||
"end": 138,
|
||||
"name": "l",
|
||||
"start": 137,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 142,
|
||||
"name": "y",
|
||||
"start": 141,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 137,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 143,
|
||||
"start": 129,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 124,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 143,
|
||||
"kind": "const",
|
||||
"start": 124,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 166,
|
||||
"id": {
|
||||
"end": 148,
|
||||
"name": "p3",
|
||||
"start": 146,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 157,
|
||||
"left": {
|
||||
"end": 153,
|
||||
"name": "l",
|
||||
"start": 152,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 157,
|
||||
"name": "x",
|
||||
"start": 156,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 152,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 165,
|
||||
"left": {
|
||||
"argument": {
|
||||
"end": 161,
|
||||
"name": "l",
|
||||
"start": 160,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 161,
|
||||
"operator": "-",
|
||||
"start": 159,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 165,
|
||||
"name": "y",
|
||||
"start": 164,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 159,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 166,
|
||||
"start": 151,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"start": 146,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 166,
|
||||
"kind": "const",
|
||||
"start": 146,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 193,
|
||||
"name": "p0",
|
||||
"start": 191,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 190,
|
||||
"name": "startSketchAt",
|
||||
"start": 177,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 194,
|
||||
"start": 177,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 223,
|
||||
"name": "p1",
|
||||
"start": 221,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 206,
|
||||
"name": "line",
|
||||
"start": 202,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 224,
|
||||
"start": 202,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 253,
|
||||
"name": "p2",
|
||||
"start": 251,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 236,
|
||||
"name": "line",
|
||||
"start": 232,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 254,
|
||||
"start": 232,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 283,
|
||||
"name": "p3",
|
||||
"start": 281,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 266,
|
||||
"name": "line",
|
||||
"start": 262,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 284,
|
||||
"start": 262,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 313,
|
||||
"name": "p0",
|
||||
"start": 311,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 296,
|
||||
"name": "line",
|
||||
"start": 292,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 314,
|
||||
"start": 292,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 329,
|
||||
"start": 328,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 327,
|
||||
"name": "close",
|
||||
"start": 322,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 330,
|
||||
"start": 322,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 361,
|
||||
"name": "length",
|
||||
"start": 355,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 345,
|
||||
"name": "extrude",
|
||||
"start": 338,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 362,
|
||||
"start": 338,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 362,
|
||||
"start": 177,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 362,
|
||||
"start": 170,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 364,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"6": [
|
||||
{
|
||||
"end": 170,
|
||||
"start": 166,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 24
|
||||
},
|
||||
"end": 364,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 14,
|
||||
"name": "length",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 22,
|
||||
"name": "center",
|
||||
"start": 16,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -860,63 +156,6 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
},
|
||||
"double": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 395,
|
||||
"left": {
|
||||
"end": 391,
|
||||
"name": "x",
|
||||
"start": 390,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"end": 395,
|
||||
"raw": "2",
|
||||
"start": 394,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 2.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 390,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 395,
|
||||
"start": 383,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 397,
|
||||
"start": 379
|
||||
},
|
||||
"end": 397,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 377,
|
||||
"name": "x",
|
||||
"start": 376,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 375,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
2
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1185,31 +424,6 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1222,31 +436,6 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1259,39 +448,6 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
},
|
||||
"width": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 423,
|
||||
"raw": "200",
|
||||
"start": 420,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 200.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 423,
|
||||
"start": 413,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 425,
|
||||
"start": 409
|
||||
},
|
||||
"end": 425,
|
||||
"params": [],
|
||||
"start": 406,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
3
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -220,31 +220,6 @@ description: Variables in memory after executing poop_chute.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1106,31 +1081,6 @@ description: Variables in memory after executing poop_chute.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2199,31 +2149,6 @@ description: Variables in memory after executing poop_chute.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing property_of_object.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -400,31 +375,6 @@ description: Variables in memory after executing property_of_object.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -437,31 +387,6 @@ description: Variables in memory after executing property_of_object.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -154,31 +154,6 @@ description: Variables in memory after executing riddle_small.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -526,31 +501,6 @@ description: Variables in memory after executing riddle_small.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -563,95 +513,6 @@ description: Variables in memory after executing riddle_small.kcl
|
||||
},
|
||||
"t": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 64,
|
||||
"left": {
|
||||
"end": 54,
|
||||
"left": {
|
||||
"end": 46,
|
||||
"left": {
|
||||
"end": 42,
|
||||
"name": "ANSWER",
|
||||
"start": 36,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"end": 46,
|
||||
"name": "s",
|
||||
"start": 45,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 36,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"end": 54,
|
||||
"raw": "12345",
|
||||
"start": 49,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 12345.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 36,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"operator": "%",
|
||||
"right": {
|
||||
"end": 64,
|
||||
"raw": "214748",
|
||||
"start": 58,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 214748.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 36,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 64,
|
||||
"start": 28,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 66,
|
||||
"start": 24
|
||||
},
|
||||
"end": 66,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 22,
|
||||
"name": "s",
|
||||
"start": 21,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 20,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -664,31 +525,6 @@ description: Variables in memory after executing riddle_small.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -133,31 +133,6 @@ snapshot_kind: text
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2456,31 +2431,6 @@ snapshot_kind: text
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -4915,31 +4865,6 @@ snapshot_kind: text
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -133,31 +133,6 @@ snapshot_kind: text
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -2456,31 +2431,6 @@ snapshot_kind: text
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -4915,31 +4865,6 @@ snapshot_kind: text
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing sketch_in_object.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,31 +144,6 @@ description: Variables in memory after executing sketch_in_object.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -206,31 +156,6 @@ description: Variables in memory after executing sketch_in_object.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -243,291 +168,6 @@ description: Variables in memory after executing sketch_in_object.kcl
|
||||
},
|
||||
"test": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 39,
|
||||
"raw": "'XY'",
|
||||
"start": 35,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 34,
|
||||
"name": "startSketchOn",
|
||||
"start": 21,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 40,
|
||||
"start": 21,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 65,
|
||||
"raw": "0",
|
||||
"start": 64,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 68,
|
||||
"raw": "0",
|
||||
"start": 67,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 69,
|
||||
"start": 63,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 72,
|
||||
"start": 71,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 62,
|
||||
"name": "startProfileAt",
|
||||
"start": 48,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 73,
|
||||
"start": 48,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 94,
|
||||
"raw": "0",
|
||||
"start": 93,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 97,
|
||||
"raw": "1",
|
||||
"start": 96,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 98,
|
||||
"start": 92,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 85,
|
||||
"name": "line",
|
||||
"start": 81,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 99,
|
||||
"start": 81,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 120,
|
||||
"raw": "1",
|
||||
"start": 119,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 123,
|
||||
"raw": "0",
|
||||
"start": 122,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 124,
|
||||
"start": 118,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 111,
|
||||
"name": "line",
|
||||
"start": 107,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 125,
|
||||
"start": 107,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 146,
|
||||
"raw": "0",
|
||||
"start": 145,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 150,
|
||||
"raw": "1",
|
||||
"start": 149,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 150,
|
||||
"operator": "-",
|
||||
"start": 148,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 151,
|
||||
"start": 144,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 137,
|
||||
"name": "line",
|
||||
"start": 133,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 152,
|
||||
"start": 133,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 167,
|
||||
"start": 166,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 165,
|
||||
"name": "close",
|
||||
"start": 160,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 168,
|
||||
"start": 160,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 168,
|
||||
"start": 21,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 168,
|
||||
"start": 14,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 170,
|
||||
"start": 10
|
||||
},
|
||||
"end": 170,
|
||||
"params": [],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -540,329 +180,6 @@ description: Variables in memory after executing sketch_in_object.kcl
|
||||
},
|
||||
"test2": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 403,
|
||||
"properties": [
|
||||
{
|
||||
"end": 399,
|
||||
"key": {
|
||||
"end": 206,
|
||||
"name": "thing1",
|
||||
"start": 200,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 200,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 399,
|
||||
"properties": [
|
||||
{
|
||||
"end": 393,
|
||||
"key": {
|
||||
"end": 223,
|
||||
"name": "thing2",
|
||||
"start": 217,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 217,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 244,
|
||||
"raw": "'XY'",
|
||||
"start": 240,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 239,
|
||||
"name": "startSketchOn",
|
||||
"start": 226,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 245,
|
||||
"start": 226,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 274,
|
||||
"raw": "0",
|
||||
"start": 273,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 277,
|
||||
"raw": "0",
|
||||
"start": 276,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 278,
|
||||
"start": 272,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 281,
|
||||
"start": 280,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 271,
|
||||
"name": "startProfileAt",
|
||||
"start": 257,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 282,
|
||||
"start": 257,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 307,
|
||||
"raw": "0",
|
||||
"start": 306,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 310,
|
||||
"raw": "1",
|
||||
"start": 309,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 311,
|
||||
"start": 305,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 298,
|
||||
"name": "line",
|
||||
"start": 294,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 312,
|
||||
"start": 294,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 337,
|
||||
"raw": "1",
|
||||
"start": 336,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 340,
|
||||
"raw": "0",
|
||||
"start": 339,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 341,
|
||||
"start": 335,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 328,
|
||||
"name": "line",
|
||||
"start": 324,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 342,
|
||||
"start": 324,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 367,
|
||||
"raw": "0",
|
||||
"start": 366,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 371,
|
||||
"raw": "1",
|
||||
"start": 370,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 1.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 371,
|
||||
"operator": "-",
|
||||
"start": 369,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 372,
|
||||
"start": 365,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 358,
|
||||
"name": "line",
|
||||
"start": 354,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 373,
|
||||
"start": 354,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 392,
|
||||
"start": 391,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 390,
|
||||
"name": "close",
|
||||
"start": 385,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 393,
|
||||
"start": 385,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 393,
|
||||
"start": 226,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 209,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 194,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
"end": 403,
|
||||
"start": 187,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 405,
|
||||
"start": 183
|
||||
},
|
||||
"end": 405,
|
||||
"params": [],
|
||||
"start": 180,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
2
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing sketch_on_face.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1079,31 +1054,6 @@ description: Variables in memory after executing sketch_on_face.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1116,31 +1066,6 @@ description: Variables in memory after executing sketch_on_face.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -742,31 +742,6 @@ snapshot_kind: text
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1056,31 +1031,6 @@ snapshot_kind: text
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1884,31 +1834,6 @@ snapshot_kind: text
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing sketch_on_face_circle_tagged.kc
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,295 +144,6 @@ description: Variables in memory after executing sketch_on_face_circle_tagged.kc
|
||||
},
|
||||
"cube": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 169,
|
||||
"id": {
|
||||
"end": 26,
|
||||
"name": "sg",
|
||||
"start": 24,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 47,
|
||||
"raw": "'XY'",
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 42,
|
||||
"name": "startSketchOn",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 48,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 74,
|
||||
"name": "pos",
|
||||
"start": 71,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 77,
|
||||
"start": 76,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 70,
|
||||
"name": "startProfileAt",
|
||||
"start": 56,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 78,
|
||||
"start": 56,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 99,
|
||||
"raw": "0",
|
||||
"start": 98,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 106,
|
||||
"name": "scale",
|
||||
"start": 101,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 107,
|
||||
"start": 97,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 90,
|
||||
"name": "line",
|
||||
"start": 86,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 108,
|
||||
"start": 86,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 133,
|
||||
"name": "scale",
|
||||
"start": 128,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 136,
|
||||
"raw": "0",
|
||||
"start": 135,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 137,
|
||||
"start": 127,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 120,
|
||||
"name": "line",
|
||||
"start": 116,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 138,
|
||||
"start": 116,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 159,
|
||||
"raw": "0",
|
||||
"start": 158,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 167,
|
||||
"name": "scale",
|
||||
"start": 162,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 167,
|
||||
"operator": "-",
|
||||
"start": 161,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 168,
|
||||
"start": 157,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 150,
|
||||
"name": "line",
|
||||
"start": 146,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 169,
|
||||
"start": 146,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 169,
|
||||
"start": 29,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 24,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 169,
|
||||
"kind": "const",
|
||||
"start": 24,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 182,
|
||||
"name": "sg",
|
||||
"start": 180,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 182,
|
||||
"start": 173,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 184,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 173,
|
||||
"start": 169,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 20
|
||||
},
|
||||
"end": 184,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 11,
|
||||
"name": "pos",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 18,
|
||||
"name": "scale",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1222,31 +908,6 @@ description: Variables in memory after executing sketch_on_face_circle_tagged.kc
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1259,31 +920,6 @@ description: Variables in memory after executing sketch_on_face_circle_tagged.kc
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,295 +144,6 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
},
|
||||
"cube": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 169,
|
||||
"id": {
|
||||
"end": 26,
|
||||
"name": "sg",
|
||||
"start": 24,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 47,
|
||||
"raw": "'XY'",
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 42,
|
||||
"name": "startSketchOn",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 48,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 74,
|
||||
"name": "pos",
|
||||
"start": 71,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 77,
|
||||
"start": 76,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 70,
|
||||
"name": "startProfileAt",
|
||||
"start": 56,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 78,
|
||||
"start": 56,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 99,
|
||||
"raw": "0",
|
||||
"start": 98,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 106,
|
||||
"name": "scale",
|
||||
"start": 101,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 107,
|
||||
"start": 97,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 90,
|
||||
"name": "line",
|
||||
"start": 86,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 108,
|
||||
"start": 86,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 133,
|
||||
"name": "scale",
|
||||
"start": 128,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 136,
|
||||
"raw": "0",
|
||||
"start": 135,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 137,
|
||||
"start": 127,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 120,
|
||||
"name": "line",
|
||||
"start": 116,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 138,
|
||||
"start": 116,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 159,
|
||||
"raw": "0",
|
||||
"start": 158,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 167,
|
||||
"name": "scale",
|
||||
"start": 162,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 167,
|
||||
"operator": "-",
|
||||
"start": 161,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 168,
|
||||
"start": 157,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 150,
|
||||
"name": "line",
|
||||
"start": 146,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 169,
|
||||
"start": 146,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 169,
|
||||
"start": 29,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 24,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 169,
|
||||
"kind": "const",
|
||||
"start": 24,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 182,
|
||||
"name": "sg",
|
||||
"start": 180,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 182,
|
||||
"start": 173,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 184,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 173,
|
||||
"start": 169,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 20
|
||||
},
|
||||
"end": 184,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 11,
|
||||
"name": "pos",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 18,
|
||||
"name": "scale",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1169,31 +855,6 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1206,31 +867,6 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing sketch_on_face_end_negative_ext
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,295 +144,6 @@ description: Variables in memory after executing sketch_on_face_end_negative_ext
|
||||
},
|
||||
"cube": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 169,
|
||||
"id": {
|
||||
"end": 26,
|
||||
"name": "sg",
|
||||
"start": 24,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 47,
|
||||
"raw": "'XY'",
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 42,
|
||||
"name": "startSketchOn",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 48,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 74,
|
||||
"name": "pos",
|
||||
"start": 71,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 77,
|
||||
"start": 76,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 70,
|
||||
"name": "startProfileAt",
|
||||
"start": 56,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 78,
|
||||
"start": 56,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 99,
|
||||
"raw": "0",
|
||||
"start": 98,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 106,
|
||||
"name": "scale",
|
||||
"start": 101,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 107,
|
||||
"start": 97,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 90,
|
||||
"name": "line",
|
||||
"start": 86,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 108,
|
||||
"start": 86,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 133,
|
||||
"name": "scale",
|
||||
"start": 128,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 136,
|
||||
"raw": "0",
|
||||
"start": 135,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 137,
|
||||
"start": 127,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 120,
|
||||
"name": "line",
|
||||
"start": 116,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 138,
|
||||
"start": 116,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 159,
|
||||
"raw": "0",
|
||||
"start": 158,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 167,
|
||||
"name": "scale",
|
||||
"start": 162,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 167,
|
||||
"operator": "-",
|
||||
"start": 161,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 168,
|
||||
"start": 157,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 150,
|
||||
"name": "line",
|
||||
"start": 146,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 169,
|
||||
"start": 146,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 169,
|
||||
"start": 29,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 24,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 169,
|
||||
"kind": "const",
|
||||
"start": 24,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 182,
|
||||
"name": "sg",
|
||||
"start": 180,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 182,
|
||||
"start": 173,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 184,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 173,
|
||||
"start": 169,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 20
|
||||
},
|
||||
"end": 184,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 11,
|
||||
"name": "pos",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 18,
|
||||
"name": "scale",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1169,31 +855,6 @@ description: Variables in memory after executing sketch_on_face_end_negative_ext
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1206,31 +867,6 @@ description: Variables in memory after executing sketch_on_face_end_negative_ext
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing sketch_on_face_start.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -169,295 +144,6 @@ description: Variables in memory after executing sketch_on_face_start.kcl
|
||||
},
|
||||
"cube": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 169,
|
||||
"id": {
|
||||
"end": 26,
|
||||
"name": "sg",
|
||||
"start": 24,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 47,
|
||||
"raw": "'XY'",
|
||||
"start": 43,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 42,
|
||||
"name": "startSketchOn",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 48,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 74,
|
||||
"name": "pos",
|
||||
"start": 71,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 77,
|
||||
"start": 76,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 70,
|
||||
"name": "startProfileAt",
|
||||
"start": 56,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 78,
|
||||
"start": 56,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 99,
|
||||
"raw": "0",
|
||||
"start": 98,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 106,
|
||||
"name": "scale",
|
||||
"start": 101,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 107,
|
||||
"start": 97,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 90,
|
||||
"name": "line",
|
||||
"start": 86,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 108,
|
||||
"start": 86,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 133,
|
||||
"name": "scale",
|
||||
"start": 128,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 136,
|
||||
"raw": "0",
|
||||
"start": 135,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 137,
|
||||
"start": 127,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 120,
|
||||
"name": "line",
|
||||
"start": 116,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 138,
|
||||
"start": 116,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 159,
|
||||
"raw": "0",
|
||||
"start": 158,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 167,
|
||||
"name": "scale",
|
||||
"start": 162,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 167,
|
||||
"operator": "-",
|
||||
"start": 161,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 168,
|
||||
"start": 157,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 150,
|
||||
"name": "line",
|
||||
"start": 146,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 169,
|
||||
"start": 146,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 169,
|
||||
"start": 29,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 24,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 169,
|
||||
"kind": "const",
|
||||
"start": 24,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 182,
|
||||
"name": "sg",
|
||||
"start": 180,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 182,
|
||||
"start": 173,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 184,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 173,
|
||||
"start": 169,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 20
|
||||
},
|
||||
"end": 184,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 11,
|
||||
"name": "pos",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 18,
|
||||
"name": "scale",
|
||||
"start": 13,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 7,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1402,31 +1088,6 @@ description: Variables in memory after executing sketch_on_face_start.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -1439,31 +1100,6 @@ description: Variables in memory after executing sketch_on_face_start.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing ssi_pattern.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -601,31 +576,6 @@ description: Variables in memory after executing ssi_pattern.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -16020,31 +15970,6 @@ description: Variables in memory after executing ssi_pattern.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -335,31 +335,6 @@ description: Variables in memory after executing tan_arc_x_line.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -394,31 +369,6 @@ description: Variables in memory after executing tan_arc_x_line.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -475,31 +425,6 @@ description: Variables in memory after executing tan_arc_x_line.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -336,31 +336,6 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -373,31 +348,6 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -410,31 +360,6 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
@ -132,31 +132,6 @@ description: Variables in memory after executing xz_plane.kcl
|
||||
},
|
||||
"cos": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1477,
|
||||
"moduleId": 2,
|
||||
"start": 1477
|
||||
},
|
||||
"end": 1478,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1450,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1447,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1446,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -368,31 +343,6 @@ description: Variables in memory after executing xz_plane.kcl
|
||||
},
|
||||
"sin": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 1875,
|
||||
"moduleId": 2,
|
||||
"start": 1875
|
||||
},
|
||||
"end": 1876,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 1848,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 1845,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 1844,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
@ -405,31 +355,6 @@ description: Variables in memory after executing xz_plane.kcl
|
||||
},
|
||||
"tan": {
|
||||
"type": "Function",
|
||||
"expression": {
|
||||
"body": {
|
||||
"body": [],
|
||||
"end": 2265,
|
||||
"moduleId": 2,
|
||||
"start": 2265
|
||||
},
|
||||
"end": 2266,
|
||||
"moduleId": 2,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 2238,
|
||||
"moduleId": 2,
|
||||
"name": "num",
|
||||
"start": 2235,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 2234,
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"memory": null,
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
|
Reference in New Issue
Block a user