diff --git a/src/wasm-lib/kcl/src/execution/cad_op.rs b/src/wasm-lib/kcl/src/execution/cad_op.rs index 88c3255e63..8692ae7cf9 100644 --- a/src/wasm-lib/kcl/src/execution/cad_op.rs +++ b/src/wasm-lib/kcl/src/execution/cad_op.rs @@ -2,11 +2,12 @@ use indexmap::IndexMap; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; +use super::{kcl_value::NumericType, ArtifactId, KclValue}; use crate::{docs::StdLibFn, std::get_stdlib_fn, SourceRange}; /// A CAD modeling operation for display in the feature tree, AKA operations /// timeline. -#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] #[ts(export)] #[serde(tag = "type")] pub enum Operation { @@ -54,18 +55,21 @@ impl Operation { } /// An argument to a CAD modeling operation. -#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] #[ts(export)] #[serde(rename_all = "camelCase")] pub struct OpArg { + /// The runtime value of the argument. Instead of using [`KclValue`], we + /// refer to scene objects using their [`ArtifactId`]s. + value: OpKclValue, /// The KCL code expression for the argument. This is used in the UI so /// that the user can edit the expression. source_range: SourceRange, } impl OpArg { - pub(crate) fn new(source_range: SourceRange) -> Self { - Self { source_range } + pub(crate) fn new(value: OpKclValue, source_range: SourceRange) -> Self { + Self { value, source_range } } } @@ -132,3 +136,164 @@ where fn is_false(b: &bool) -> bool { !*b } + +/// A KCL value used in Operations. `ArtifactId`s are used to refer to the +/// actual scene objects. Any data not needed in the UI may be omitted. +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(tag = "type")] +pub enum OpKclValue { + Uuid { + value: ::uuid::Uuid, + }, + Bool { + value: bool, + }, + Number { + value: f64, + ty: NumericType, + }, + String { + value: String, + }, + Array { + value: Vec, + }, + Object { + value: OpKclObjectFields, + }, + TagIdentifier { + /// The name of the tag identifier. + value: String, + /// The artifact ID of the object it refers to. + artifact_id: Option, + }, + TagDeclarator { + name: String, + }, + Plane { + artifact_id: ArtifactId, + }, + Face { + artifact_id: ArtifactId, + }, + Sketch { + value: Box, + }, + Sketches { + value: Vec, + }, + Solid { + value: Box, + }, + Solids { + value: Vec, + }, + Helix { + value: Box, + }, + ImportedGeometry { + artifact_id: ArtifactId, + }, + Function {}, + Module {}, + KclNone {}, +} + +pub type OpKclObjectFields = IndexMap; + +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(rename_all = "camelCase")] +pub struct OpSketch { + artifact_id: ArtifactId, +} + +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(rename_all = "camelCase")] +pub struct OpSolid { + artifact_id: ArtifactId, +} + +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[ts(export)] +#[serde(rename_all = "camelCase")] +pub struct OpHelix { + artifact_id: ArtifactId, +} + +impl From<&KclValue> for OpKclValue { + fn from(value: &KclValue) -> Self { + match value { + KclValue::Uuid { value, .. } => Self::Uuid { value: *value }, + KclValue::Bool { value, .. } => Self::Bool { value: *value }, + KclValue::Number { value, ty, .. } => Self::Number { + value: *value, + ty: ty.clone(), + }, + KclValue::String { value, .. } => Self::String { value: value.clone() }, + KclValue::Array { value, .. } => { + let value = value.iter().map(Self::from).collect(); + Self::Array { value } + } + KclValue::Object { value, .. } => { + let value = value.iter().map(|(k, v)| (k.clone(), Self::from(v))).collect(); + Self::Object { value } + } + KclValue::TagIdentifier(tag_identifier) => Self::TagIdentifier { + value: tag_identifier.value.clone(), + artifact_id: tag_identifier.info.as_ref().map(|info| ArtifactId::new(info.id)), + }, + KclValue::TagDeclarator(node) => Self::TagDeclarator { + name: node.name.clone(), + }, + KclValue::Plane { value } => Self::Plane { + artifact_id: value.artifact_id, + }, + KclValue::Face { value } => Self::Face { + artifact_id: value.artifact_id, + }, + KclValue::Sketch { value } => Self::Sketch { + value: Box::new(OpSketch { + artifact_id: value.artifact_id, + }), + }, + KclValue::Sketches { value } => { + let value = value + .iter() + .map(|sketch| OpSketch { + artifact_id: sketch.artifact_id, + }) + .collect(); + Self::Sketches { value } + } + KclValue::Solid { value } => Self::Solid { + value: Box::new(OpSolid { + artifact_id: value.artifact_id, + }), + }, + KclValue::Solids { value } => { + let value = value + .iter() + .map(|solid| OpSolid { + artifact_id: solid.artifact_id, + }) + .collect(); + Self::Solids { value } + } + KclValue::Helix { value } => Self::Helix { + value: Box::new(OpHelix { + artifact_id: value.artifact_id, + }), + }, + KclValue::ImportedGeometry(imported_geometry) => Self::ImportedGeometry { + artifact_id: ArtifactId::new(imported_geometry.id), + }, + KclValue::Function { .. } => Self::Function {}, + KclValue::Module { .. } => Self::Module {}, + KclValue::KclNone { .. } => Self::KclNone {}, + KclValue::Tombstone { .. } => unreachable!("Tombstone OpKclValue"), + } + } +} diff --git a/src/wasm-lib/kcl/src/execution/exec_ast.rs b/src/wasm-lib/kcl/src/execution/exec_ast.rs index a6fe87f934..d105f6c267 100644 --- a/src/wasm-lib/kcl/src/execution/exec_ast.rs +++ b/src/wasm-lib/kcl/src/execution/exec_ast.rs @@ -8,7 +8,7 @@ use crate::{ errors::{KclError, KclErrorDetails}, execution::{ annotations, - cad_op::{OpArg, Operation}, + cad_op::{OpArg, OpKclValue, Operation}, kcl_value::NumericType, memory, state::ModuleState, @@ -925,11 +925,13 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, v)| (k.clone(), OpArg::new(v.source_range))) + .map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range))) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), - unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| OpArg::new(arg.source_range)), + unlabeled_arg: args + .unlabeled_kw_arg_unconverted() + .map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, is_error: false, @@ -970,7 +972,7 @@ impl Node { .kw_args .labeled .iter() - .map(|(k, v)| (k.clone(), OpArg::new(v.source_range))) + .map(|(k, arg)| (k.clone(), OpArg::new(OpKclValue::from(&arg.value), arg.source_range))) .collect(); exec_state .mod_local @@ -978,7 +980,11 @@ impl Node { .push(Operation::UserDefinedFunctionCall { name: Some(fn_name.clone()), function_source_range: func.function_def_source_range().unwrap_or_default(), - unlabeled_arg: args.kw_args.unlabeled.as_ref().map(|arg| OpArg::new(arg.source_range)), + unlabeled_arg: args + .kw_args + .unlabeled + .as_ref() + .map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)), labeled_args: op_labeled_args, source_range: callsite, }); @@ -1043,7 +1049,12 @@ impl Node { .args(false) .iter() .zip(&fn_args) - .map(|(k, v)| (k.name.clone(), OpArg::new(v.source_range))) + .map(|(k, arg)| { + ( + k.name.clone(), + OpArg::new(OpKclValue::from(&arg.value), arg.source_range), + ) + }) .collect(); Some(Operation::StdLibCall { std_lib_fn: (&func).into(), diff --git a/src/wasm-lib/kcl/src/execution/kcl_value.rs b/src/wasm-lib/kcl/src/execution/kcl_value.rs index f8c007dccd..9c51f9c5d8 100644 --- a/src/wasm-lib/kcl/src/execution/kcl_value.rs +++ b/src/wasm-lib/kcl/src/execution/kcl_value.rs @@ -4,6 +4,7 @@ use anyhow::Result; use schemars::JsonSchema; use serde::{Deserialize, Serialize}; +use super::{memory::EnvironmentRef, MetaSettings}; use crate::{ errors::KclErrorDetails, exec::Sketch, @@ -21,8 +22,6 @@ use crate::{ ExecutorContext, KclError, ModuleId, SourceRange, }; -use super::{memory::EnvironmentRef, MetaSettings}; - pub type KclObjectFields = HashMap; /// Any KCL value. diff --git a/src/wasm-lib/kcl/src/simulation_tests.rs b/src/wasm-lib/kcl/src/simulation_tests.rs index 06b5ad8186..e0710bac0f 100644 --- a/src/wasm-lib/kcl/src/simulation_tests.rs +++ b/src/wasm-lib/kcl/src/simulation_tests.rs @@ -171,7 +171,12 @@ fn assert_common_snapshots( artifact_graph: ArtifactGraph, ) { assert_snapshot(test_name, "Operations executed", || { - insta::assert_json_snapshot!("ops", operations); + insta::assert_json_snapshot!("ops", operations, { + "[].unlabeledArg.*.value.**[].from[]" => rounded_redaction(4), + "[].unlabeledArg.*.value.**[].to[]" => rounded_redaction(4), + "[].labeledArgs.*.value.**[].from[]" => rounded_redaction(4), + "[].labeledArgs.*.value.**[].to[]" => rounded_redaction(4), + }); }); assert_snapshot(test_name, "Artifact commands", || { insta::assert_json_snapshot!("artifact_commands", artifact_commands, { diff --git a/src/wasm-lib/kcl/src/std/args.rs b/src/wasm-lib/kcl/src/std/args.rs index d054d5ad97..c90ae5b4ae 100644 --- a/src/wasm-lib/kcl/src/std/args.rs +++ b/src/wasm-lib/kcl/src/std/args.rs @@ -130,17 +130,23 @@ impl Args { }) } - /// Get the unlabeled keyword argument. If not set, returns Err. + /// Get the unlabeled keyword argument. If not set, returns None. + pub(crate) fn unlabeled_kw_arg_unconverted(&self) -> Option<&Arg> { + self.kw_args + .unlabeled + .as_ref() + .or(self.args.first()) + .or(self.pipe_value.as_ref()) + } + + /// Get the unlabeled keyword argument. If not set, returns Err. If it + /// can't be converted to the given type, returns Err. pub(crate) fn get_unlabeled_kw_arg<'a, T>(&'a self, label: &str) -> Result where T: FromKclValue<'a>, { let arg = self - .kw_args - .unlabeled - .as_ref() - .or(self.args.first()) - .or(self.pipe_value.as_ref()) + .unlabeled_kw_arg_unconverted() .ok_or(KclError::Semantic(KclErrorDetails { source_ranges: vec![self.source_range], message: format!("This function requires a value for the special unlabeled first parameter, '{label}'"), diff --git a/src/wasm-lib/kcl/tests/angled_line/ops.snap b/src/wasm-lib/kcl/tests/angled_line/ops.snap index 34a4f551e6..0f28c2d8b1 100644 --- a/src/wasm-lib/kcl/tests/angled_line/ops.snap +++ b/src/wasm-lib/kcl/tests/angled_line/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed angled_line.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 287, 288, @@ -40,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap index 778654a3b5..0a4996246c 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code1/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_example_code1.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 26, 30, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 288, 291, @@ -41,6 +57,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 268, 277, @@ -51,6 +73,34 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 305, 335, @@ -58,6 +108,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 337, 338, @@ -77,6 +133,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 366, 376, @@ -84,6 +146,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, "sourceRange": [ 378, 383, @@ -103,6 +170,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 583, 584, @@ -118,6 +198,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 563, 572, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap index e3a0c8fbd7..c7627c2340 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_no_3d/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_example_code_no_3d.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "YZ" + }, "sourceRange": [ 26, 30, @@ -26,6 +29,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-XZ" + }, "sourceRange": [ 455, 460, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap index 5a22561ecc..363163d09d 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_example_code_offset_planes/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_example_code_offset_planes.kcl -snapshot_kind: text --- [ { "labeledArgs": { "offset": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 44, 46, @@ -22,6 +34,10 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 29, 33, @@ -32,6 +48,19 @@ snapshot_kind: text { "labeledArgs": { "offset": { + "value": { + "type": "Number", + "value": -50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 92, 95, @@ -47,6 +76,10 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 77, 81, @@ -57,6 +90,19 @@ snapshot_kind: text { "labeledArgs": { "offset": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 141, 143, @@ -72,6 +118,10 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "String", + "value": "YZ" + }, "sourceRange": [ 126, 130, @@ -82,6 +132,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, "sourceRange": [ 172, 186, diff --git a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap index 4e9751c0a0..bbce443185 100644 --- a/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/src/wasm-lib/kcl/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed artifact_graph_sketch_on_face_etc.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 26, 30, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 242, 243, @@ -41,6 +57,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 222, 231, @@ -51,6 +73,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 271, 281, @@ -58,6 +86,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + }, "sourceRange": [ 283, 288, @@ -77,6 +110,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 491, 492, @@ -92,6 +138,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 471, 480, @@ -102,6 +154,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 520, 530, @@ -109,6 +167,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "END" + }, "sourceRange": [ 532, 537, @@ -128,6 +190,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 753, 754, @@ -143,6 +218,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 733, 742, @@ -153,6 +234,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 782, 792, @@ -160,6 +247,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, "sourceRange": [ 794, 799, @@ -179,6 +271,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1003, 1004, @@ -194,6 +299,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 983, 992, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap index 9e40b62e64..7666c6a857 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_close_opposite/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_close_opposite.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 214, 216, @@ -40,11 +56,55 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "thing3", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 230, 305, @@ -52,6 +112,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 307, 308, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap index 0530f40d5a..7f4d2e46b6 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_end/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_end.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 202, 204, @@ -40,11 +56,55 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "thing", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 218, 291, @@ -52,6 +112,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 293, 294, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap index 9445cdfd15..5ebfa61483 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_next_adjacent.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 229, 231, @@ -40,11 +56,50 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 245, 316, @@ -52,6 +107,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 318, 319, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap index 79c5f76cb9..1f410c25a7 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_previous_adjacent.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 229, 231, @@ -40,11 +56,50 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 245, 320, @@ -52,6 +107,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 322, 323, diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap index 186c523afa..c802bfaa44 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/artifact_commands.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Artifact commands basic_fillet_cube_start.kcl -snapshot_kind: text --- [ { diff --git a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap index 1c4f31b39d..cd5ab53b40 100644 --- a/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap +++ b/src/wasm-lib/kcl/tests/basic_fillet_cube_start/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed basic_fillet_cube_start.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 202, 204, @@ -40,11 +56,56 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "thing", + "artifact_id": "[uuid]" + }, + { + "type": "TagIdentifier", + "value": "thing2", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 218, 256, @@ -52,6 +113,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 258, 259, diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap index 7ab7d2da49..c575ad8d46 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_x/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed big_number_angle_to_match_length_x.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 200, 202, @@ -40,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap index 1ef755c785..5a490e8fc4 100644 --- a/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap +++ b/src/wasm-lib/kcl/tests/big_number_angle_to_match_length_y/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed big_number_angle_to_match_length_y.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 200, 202, @@ -40,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap b/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap index e82049a3fb..a2a8c6ae3b 100644 --- a/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap +++ b/src/wasm-lib/kcl/tests/boolean_logical_multiple/artifact_commands.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Artifact commands boolean_logical_multiple.kcl -snapshot_kind: text --- [ { diff --git a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap index 1ce97a13f0..7be2e08672 100644 --- a/src/wasm-lib/kcl/tests/circle_three_point/ops.snap +++ b/src/wasm-lib/kcl/tests/circle_three_point/ops.snap @@ -1,13 +1,15 @@ --- source: kcl/src/simulation_tests.rs -assertion_line: 108 description: Operations executed circle_three_point.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 26, 30, @@ -27,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 121, 123, @@ -41,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap index bd4cf3be45..92102854ad 100644 --- a/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/circular_pattern3d_a_pattern/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed circular_pattern3d_a_pattern.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 30, 34, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 176, 177, @@ -40,11 +56,67 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, "sourceRange": [ 232, 241, @@ -52,6 +124,19 @@ snapshot_kind: text ] }, "distance": { + "value": { + "type": "Number", + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 273, 274, @@ -59,6 +144,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 7.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 257, 258, @@ -74,6 +172,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 208, 221, @@ -84,6 +188,19 @@ snapshot_kind: text { "labeledArgs": { "arcDegrees": { + "value": { + "type": "Number", + "value": 360.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 398, 401, @@ -91,6 +208,50 @@ snapshot_kind: text ] }, "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, "sourceRange": [ 326, 335, @@ -98,6 +259,50 @@ snapshot_kind: text ] }, "center": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": -20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": -20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": -20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, "sourceRange": [ 348, 363, @@ -105,6 +310,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 41.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 379, 381, @@ -112,6 +330,10 @@ snapshot_kind: text ] }, "rotateDuplicates": { + "value": { + "type": "Bool", + "value": false + }, "sourceRange": [ 424, 429, @@ -127,6 +349,32 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solids", + "value": [ + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + } + ] + }, "sourceRange": [ 309, 315, diff --git a/src/wasm-lib/kcl/tests/cube/ops.snap b/src/wasm-lib/kcl/tests/cube/ops.snap index 39cb68e2b4..0b745a84ad 100644 --- a/src/wasm-lib/kcl/tests/cube/ops.snap +++ b/src/wasm-lib/kcl/tests/cube/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed cube.kcl -snapshot_kind: text --- [ { @@ -15,6 +14,37 @@ snapshot_kind: text "unlabeledArg": null, "labeledArgs": { "center": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, "sourceRange": [ 417, 423, @@ -22,6 +52,19 @@ snapshot_kind: text ] }, "sideLength": { + "value": { + "type": "Number", + "value": 40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 404, 406, @@ -38,6 +81,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 362, 372, @@ -52,7 +108,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap index b6f4e6c13d..69673da72a 100644 --- a/src/wasm-lib/kcl/tests/cube_with_error/ops.snap +++ b/src/wasm-lib/kcl/tests/cube_with_error/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed cube_with_error.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 354, 360, @@ -37,7 +49,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap index 735d2825eb..37caad497a 100644 --- a/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap +++ b/src/wasm-lib/kcl/tests/fillet-and-shell/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed fillet-and-shell.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 791, 795, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 8.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1047, 1057, @@ -40,11 +56,62 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 1071, 1270, @@ -52,6 +119,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1272, 1273, @@ -87,6 +160,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 1328, 1332, @@ -106,6 +183,12 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -113,6 +196,12 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -132,6 +221,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1505, 1511, @@ -146,7 +248,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -170,6 +284,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 1328, 1332, @@ -189,6 +307,12 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -196,6 +320,12 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -215,6 +345,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1505, 1511, @@ -229,7 +372,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -253,6 +408,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 1328, 1332, @@ -272,6 +431,12 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -279,6 +444,12 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -298,6 +469,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1505, 1511, @@ -312,7 +496,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -336,6 +532,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 1328, 1332, @@ -355,6 +555,12 @@ snapshot_kind: text { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1431, 1476, @@ -362,6 +568,12 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1478, 1479, @@ -381,6 +593,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1505, 1511, @@ -395,7 +620,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" @@ -403,6 +640,15 @@ snapshot_kind: text { "labeledArgs": { "faces": { + "value": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "end" + } + ] + }, "sourceRange": [ 2067, 2074, @@ -410,6 +656,19 @@ snapshot_kind: text ] }, "thickness": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 2088, 2101, @@ -425,6 +684,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 2053, 2057, diff --git a/src/wasm-lib/kcl/tests/function_sketch/ops.snap b/src/wasm-lib/kcl/tests/function_sketch/ops.snap index 329aed84ab..e5b054d048 100644 --- a/src/wasm-lib/kcl/tests/function_sketch/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed function_sketch.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 42, 46, @@ -42,6 +45,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 200, 201, @@ -56,7 +72,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap index 1d702803e2..5ce8975987 100644 --- a/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap +++ b/src/wasm-lib/kcl/tests/function_sketch_with_position/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed function_sketch_with_position.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 45, 49, @@ -42,6 +45,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 198, 199, @@ -56,7 +72,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap index 730acbab24..1b94eb615b 100644 --- a/src/wasm-lib/kcl/tests/helix_ccw/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_ccw/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed helix_ccw.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 101, 103, @@ -40,11 +56,58 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "angleStart": { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "ccw": { + "type": "Bool", + "value": true + }, + "revolutions": { + "type": "Number", + "value": 16.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + } + }, "sourceRange": [ 127, 201, @@ -52,6 +115,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 203, 204, diff --git a/src/wasm-lib/kcl/tests/helix_simple/ops.snap b/src/wasm-lib/kcl/tests/helix_simple/ops.snap index f39cb68a40..f2f38c6f7f 100644 --- a/src/wasm-lib/kcl/tests/helix_simple/ops.snap +++ b/src/wasm-lib/kcl/tests/helix_simple/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed helix_simple.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 60, 64, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "angleStart": { + "value": { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 173, 174, @@ -33,6 +49,11 @@ snapshot_kind: text ] }, "axis": { + "value": { + "type": "TagIdentifier", + "value": "edge001", + "artifact_id": "[uuid]" + }, "sourceRange": [ 247, 254, @@ -40,6 +61,10 @@ snapshot_kind: text ] }, "ccw": { + "value": { + "type": "Bool", + "value": true + }, "sourceRange": [ 184, 188, @@ -47,6 +72,19 @@ snapshot_kind: text ] }, "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 220, 222, @@ -54,6 +92,19 @@ snapshot_kind: text ] }, "radius": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 235, 236, @@ -61,6 +112,19 @@ snapshot_kind: text ] }, "revolutions": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 206, 207, diff --git a/src/wasm-lib/kcl/tests/i_shape/ops.snap b/src/wasm-lib/kcl/tests/i_shape/ops.snap index ec4231ba33..8c9421c453 100644 --- a/src/wasm-lib/kcl/tests/i_shape/ops.snap +++ b/src/wasm-lib/kcl/tests/i_shape/ops.snap @@ -1,12 +1,17 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed i_shape.kcl -snapshot_kind: text --- [ { "labeledArgs": { "hole_sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 2351, 2356, @@ -14,6 +19,12 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 2358, 2359, @@ -33,6 +44,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 3.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 2383, 2386, @@ -47,6 +71,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/import_whole/ops.snap b/src/wasm-lib/kcl/tests/import_whole/ops.snap index 9a894cc159..edd1dce530 100644 --- a/src/wasm-lib/kcl/tests/import_whole/ops.snap +++ b/src/wasm-lib/kcl/tests/import_whole/ops.snap @@ -1,12 +1,20 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed import_whole.kcl -snapshot_kind: text --- [ { "labeledArgs": { "faces": { + "value": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "end" + } + ] + }, "sourceRange": [ 97, 104, @@ -14,6 +22,19 @@ snapshot_kind: text ] }, "thickness": { + "value": { + "type": "Number", + "value": 0.25, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 118, 122, @@ -28,6 +49,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap index 2edd0ee0c1..04cfc2861b 100644 --- a/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap +++ b/src/wasm-lib/kcl/tests/kittycad_svg/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kittycad_svg.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 20, 24, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 18364, 18365, @@ -40,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/kw_fn/ops.snap b/src/wasm-lib/kcl/tests/kw_fn/ops.snap index 1405b73725..97cd87290a 100644 --- a/src/wasm-lib/kcl/tests/kw_fn/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn.kcl -snapshot_kind: text --- [ { @@ -32,6 +31,19 @@ snapshot_kind: text 0 ], "unlabeledArg": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 110, 111, @@ -40,6 +52,19 @@ snapshot_kind: text }, "labeledArgs": { "delta": { + "value": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 121, 122, diff --git a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap index b7af427631..fcee8647b2 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_too_few_args/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn_too_few_args.kcl -snapshot_kind: text --- [ { @@ -15,6 +14,19 @@ snapshot_kind: text "unlabeledArg": null, "labeledArgs": { "x": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 49, 50, diff --git a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap index 8606ca43f3..45ad963381 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_unlabeled_but_has_label/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn_unlabeled_but_has_label.kcl -snapshot_kind: text --- [ { @@ -15,6 +14,19 @@ snapshot_kind: text "unlabeledArg": null, "labeledArgs": { "x": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 45, 46, diff --git a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap index 91c1bda82c..6c2546a09c 100644 --- a/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap +++ b/src/wasm-lib/kcl/tests/kw_fn_with_defaults/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed kw_fn_with_defaults.kcl -snapshot_kind: text --- [ { @@ -32,6 +31,19 @@ snapshot_kind: text 0 ], "unlabeledArg": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 88, 89, @@ -40,6 +52,19 @@ snapshot_kind: text }, "labeledArgs": { "by": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 96, 98, diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap index a7e0460edb..95790b52de 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/artifact_commands.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Artifact commands linear_pattern3d_a_pattern.kcl -snapshot_kind: text --- [ { diff --git a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap index 5f7598f9bf..47c026d9ad 100644 --- a/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/linear_pattern3d_a_pattern/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed linear_pattern3d_a_pattern.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 30, 34, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 176, 177, @@ -40,11 +56,67 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, "sourceRange": [ 232, 241, @@ -52,6 +124,19 @@ snapshot_kind: text ] }, "distance": { + "value": { + "type": "Number", + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 273, 274, @@ -59,6 +144,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 7.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 257, 258, @@ -74,6 +172,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 208, 221, @@ -84,6 +188,50 @@ snapshot_kind: text { "labeledArgs": { "axis": { + "value": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, "sourceRange": [ 324, 333, @@ -91,6 +239,19 @@ snapshot_kind: text ] }, "distance": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 348, 349, @@ -98,6 +259,19 @@ snapshot_kind: text ] }, "instances": { + "value": { + "type": "Number", + "value": 7.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 365, 366, @@ -113,6 +287,32 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Solids", + "value": [ + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + } + ] + }, "sourceRange": [ 307, 313, diff --git a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap index 7020221fd5..53cd909f9f 100644 --- a/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap +++ b/src/wasm-lib/kcl/tests/mike_stress_test/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed mike_stress_test.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 77119, 77120, @@ -40,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap index 8180b3e2ab..fff506e36e 100644 --- a/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/neg_xz_plane/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed neg_xz_plane.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-XZ" + }, "sourceRange": [ 24, 29, @@ -26,6 +29,13 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 12.0, + "ty": { + "type": "Unknown" + } + }, "sourceRange": [ 168, 173, @@ -40,6 +50,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/parametric/ops.snap b/src/wasm-lib/kcl/tests/parametric/ops.snap index 140d7232fd..4db42c8190 100644 --- a/src/wasm-lib/kcl/tests/parametric/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed parametric.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 242, 246, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 9.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 482, 487, @@ -40,6 +56,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap index 617de7b095..573e58a38c 100644 --- a/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/parametric_with_tan_arc/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed parametric_with_tan_arc.kcl -snapshot_kind: text --- [ { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 11.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 612, 617, @@ -21,6 +33,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap index 0cfc3f0ab8..f4aa41b725 100644 --- a/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap +++ b/src/wasm-lib/kcl/tests/pentagon_fillet_sugar/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed pentagon_fillet_sugar.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 152, 156, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 200.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 396, 410, @@ -40,7 +56,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionCall", @@ -61,6 +89,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 456, 457, @@ -68,6 +102,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "c", + "artifact_id": "[uuid]" + }, "sourceRange": [ 459, 463, @@ -90,6 +129,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 629, 639, @@ -104,11 +156,55 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "arc_tag", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 653, 773, @@ -116,6 +212,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 775, 776, @@ -151,6 +253,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 456, 457, @@ -158,6 +266,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "a", + "artifact_id": "[uuid]" + }, "sourceRange": [ 459, 463, @@ -180,6 +293,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 833, 843, @@ -194,11 +320,55 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "arc_tag", + "artifact_id": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 857, 977, @@ -206,6 +376,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 979, 980, diff --git a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap index 0d0accc15a..16fe670a39 100644 --- a/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap +++ b/src/wasm-lib/kcl/tests/pipe_as_arg/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed pipe_as_arg.kcl -snapshot_kind: text --- [ { @@ -42,6 +41,13 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 400.0, + "ty": { + "type": "Unknown" + } + }, "sourceRange": [ 355, 361, @@ -56,7 +62,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionReturn" diff --git a/src/wasm-lib/kcl/tests/poop_chute/ops.snap b/src/wasm-lib/kcl/tests/poop_chute/ops.snap index 339d6f9960..5d38c34669 100644 --- a/src/wasm-lib/kcl/tests/poop_chute/ops.snap +++ b/src/wasm-lib/kcl/tests/poop_chute/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed poop_chute.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-YZ" + }, "sourceRange": [ 196, 201, @@ -26,6 +29,90 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "angle": { + "type": "Number", + "value": 90.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "axis": { + "type": "Object", + "value": { + "custom": { + "type": "Object", + "value": { + "axis": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + } + ] + }, + "origin": { + "type": "Array", + "value": [ + { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + { + "type": "Number", + "value": 5.5000001, + "ty": { + "type": "Unknown" + } + } + ] + } + } + } + } + } + } + }, "sourceRange": [ 822, 940, @@ -33,6 +120,12 @@ snapshot_kind: text ] }, "sketch": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 942, 951, @@ -52,6 +145,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "-YZ" + }, "sourceRange": [ 980, 985, @@ -71,6 +168,13 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.5, + "ty": { + "type": "Unknown" + } + }, "sourceRange": [ 1610, 1630, @@ -85,6 +189,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/riddle_small/ops.snap b/src/wasm-lib/kcl/tests/riddle_small/ops.snap index 0fb7127c08..4b3ee5f066 100644 --- a/src/wasm-lib/kcl/tests/riddle_small/ops.snap +++ b/src/wasm-lib/kcl/tests/riddle_small/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed riddle_small.kcl -snapshot_kind: text --- [ { @@ -45,6 +44,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 155, 159, @@ -64,6 +67,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 304, 305, @@ -78,6 +94,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap index 522e7676df..f88f5c5122 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch-on-chamfer-two-times-different-order.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 26, 30, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 482, 485, @@ -41,6 +57,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 462, 471, @@ -51,6 +73,34 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 499, 530, @@ -58,6 +108,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 532, 533, @@ -77,6 +133,33 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 548, 615, @@ -84,6 +167,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 617, 618, @@ -91,6 +180,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg03" + }, "sourceRange": [ 620, 626, @@ -110,6 +203,34 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 641, 672, @@ -117,6 +238,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 674, 675, @@ -124,6 +251,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg04" + }, "sourceRange": [ 677, 683, @@ -143,6 +274,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 712, 722, @@ -150,6 +287,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg04", + "artifact_id": "[uuid]" + }, "sourceRange": [ 724, 729, @@ -169,6 +311,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1160, 1170, @@ -176,6 +324,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg03", + "artifact_id": "[uuid]" + }, "sourceRange": [ 1172, 1177, @@ -195,6 +348,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1625, 1627, @@ -210,6 +376,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap index dcde7493bc..1a2229da31 100644 --- a/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch-on-chamfer-two-times/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch-on-chamfer-two-times.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 26, 30, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 482, 485, @@ -41,6 +57,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 462, 471, @@ -51,6 +73,34 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 499, 530, @@ -58,6 +108,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 532, 533, @@ -77,6 +133,34 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 548, 579, @@ -84,6 +168,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 581, 582, @@ -91,6 +181,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg04" + }, "sourceRange": [ 584, 590, @@ -110,6 +204,33 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "length": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 605, 672, @@ -117,6 +238,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 674, 675, @@ -124,6 +251,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagDeclarator", + "name": "seg03" + }, "sourceRange": [ 677, 683, @@ -143,6 +274,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 712, 722, @@ -150,6 +287,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg04", + "artifact_id": "[uuid]" + }, "sourceRange": [ 724, 729, @@ -169,6 +311,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1160, 1170, @@ -176,6 +324,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg03", + "artifact_id": "[uuid]" + }, "sourceRange": [ 1172, 1177, @@ -195,6 +348,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1625, 1627, @@ -210,6 +376,12 @@ snapshot_kind: text ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1605, 1614, diff --git a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap index 90127cf6b1..c2c78cf597 100644 --- a/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_in_object/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_in_object.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 35, 39, @@ -45,6 +48,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 442, 445, @@ -59,7 +75,19 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "type": "UserDefinedFunctionCall", @@ -80,6 +108,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 240, 244, @@ -102,6 +134,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 500, 502, @@ -116,6 +161,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap index 9e028415dd..d00d3e95f9 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 217, 218, @@ -40,11 +56,29 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 245, 252, @@ -52,6 +86,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "here", + "artifact_id": "[uuid]" + }, "sourceRange": [ 254, 258, @@ -71,6 +110,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 403, 404, @@ -85,6 +137,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index 2c5ed32c32..a6da0f2adf 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_after_fillets_referencing_face.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 1006, 1010, @@ -26,6 +29,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1322, 1327, @@ -40,11 +56,50 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 0.25, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 1341, 1421, @@ -52,6 +107,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1423, 1424, @@ -71,6 +132,27 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Object", + "value": { + "radius": { + "type": "Number", + "value": 0.5707134902949093, + "ty": { + "type": "Unknown" + } + }, + "tags": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + } + } + }, "sourceRange": [ 1438, 1530, @@ -78,6 +160,12 @@ snapshot_kind: text ] }, "solid": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1532, 1533, @@ -97,6 +185,12 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 1562, 1569, @@ -104,6 +198,11 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + }, "sourceRange": [ 1571, 1576, @@ -123,6 +222,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 1806, 1808, @@ -137,6 +249,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap index 817ca9a956..04ea741a05 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_circle_tagged/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_circle_tagged.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 43, 47, @@ -45,6 +48,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 248, 250, @@ -59,11 +75,29 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 277, 284, @@ -71,6 +105,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "end" + }, "sourceRange": [ 286, 291, @@ -90,6 +128,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 374, 375, @@ -104,6 +155,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap index c3dee6787d..efc1c65cff 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_end.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 43, 47, @@ -45,6 +48,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 248, 250, @@ -59,11 +75,29 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 277, 284, @@ -71,6 +105,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "END" + }, "sourceRange": [ 286, 291, @@ -90,6 +128,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 436, 437, @@ -104,6 +155,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap index 5f4950cdb4..1e4eb37ada 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_end_negative_extrude/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_end_negative_extrude.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 43, 47, @@ -45,6 +48,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 248, 250, @@ -59,11 +75,29 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 277, 284, @@ -71,6 +105,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "END" + }, "sourceRange": [ 286, 291, @@ -90,6 +128,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 436, 438, @@ -104,6 +155,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap index 0a43210930..d719989ce8 100644 --- a/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap +++ b/src/wasm-lib/kcl/tests/sketch_on_face_start/ops.snap @@ -1,7 +1,6 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed sketch_on_face_start.kcl -snapshot_kind: text --- [ { @@ -23,6 +22,10 @@ snapshot_kind: text { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 43, 47, @@ -45,6 +48,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 248, 250, @@ -59,11 +75,29 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } }, { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 284, 287, @@ -71,6 +105,10 @@ snapshot_kind: text ] }, "tag": { + "value": { + "type": "String", + "value": "start" + }, "sourceRange": [ 289, 296, @@ -90,6 +128,19 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 441, 442, @@ -104,6 +155,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap b/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap index b7d8c76c8c..02c29fe2a0 100644 --- a/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap +++ b/src/wasm-lib/kcl/tests/ssi_pattern/ops.snap @@ -6,6 +6,10 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 26, 30, @@ -25,6 +29,19 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 315, 317, @@ -40,6 +57,12 @@ description: Operations executed ssi_pattern.kcl ], "type": "StdLibCall", "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 295, 304, @@ -50,6 +73,12 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "data": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, "sourceRange": [ 346, 356, @@ -57,6 +86,11 @@ description: Operations executed ssi_pattern.kcl ] }, "tag": { + "value": { + "type": "TagIdentifier", + "value": "seg01", + "artifact_id": "[uuid]" + }, "sourceRange": [ 358, 363, @@ -76,6 +110,19 @@ description: Operations executed ssi_pattern.kcl { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": -40.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 628, 631, @@ -90,6 +137,107 @@ description: Operations executed ssi_pattern.kcl 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketches", + "value": [ + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + }, + { + "artifactId": "[uuid]" + } + ] + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap b/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap index f2c805e84c..fb99cfd32e 100644 --- a/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap +++ b/src/wasm-lib/kcl/tests/tan_arc_x_line/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed tan_arc_x_line.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XY" + }, "sourceRange": [ 78, 82, diff --git a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap index edd3c2a97a..160358a37b 100644 --- a/src/wasm-lib/kcl/tests/tangential_arc/ops.snap +++ b/src/wasm-lib/kcl/tests/tangential_arc/ops.snap @@ -1,12 +1,24 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed tangential_arc.kcl -snapshot_kind: text --- [ { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, "sourceRange": [ 158, 160, @@ -21,6 +33,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ] diff --git a/src/wasm-lib/kcl/tests/xz_plane/ops.snap b/src/wasm-lib/kcl/tests/xz_plane/ops.snap index 8574adbc45..04730fb93d 100644 --- a/src/wasm-lib/kcl/tests/xz_plane/ops.snap +++ b/src/wasm-lib/kcl/tests/xz_plane/ops.snap @@ -1,12 +1,15 @@ --- source: kcl/src/simulation_tests.rs description: Operations executed xz_plane.kcl -snapshot_kind: text --- [ { "labeledArgs": { "data": { + "value": { + "type": "String", + "value": "XZ" + }, "sourceRange": [ 24, 28, @@ -26,6 +29,13 @@ snapshot_kind: text { "labeledArgs": { "length": { + "value": { + "type": "Number", + "value": 12.0, + "ty": { + "type": "Unknown" + } + }, "sourceRange": [ 167, 172, @@ -40,6 +50,18 @@ snapshot_kind: text 0 ], "type": "StdLibCall", - "unlabeledArg": null + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [ + 0, + 0, + 0 + ] + } } ]