diff --git a/rust/kcl-lib/e2e/executor/cache.rs b/rust/kcl-lib/e2e/executor/cache.rs index 1e757aeea..2afc5faf3 100644 --- a/rust/kcl-lib/e2e/executor/cache.rs +++ b/rust/kcl-lib/e2e/executor/cache.rs @@ -259,18 +259,23 @@ extrude(profile001, length = 100)"# #[tokio::test(flavor = "multi_thread")] async fn kcl_test_cache_add_line_preserves_artifact_commands() { let code = r#"sketch001 = startSketchOn(XY) - |> startProfile(at = [5.5229, 5.25217]) - |> line(end = [10.50433, -1.19122]) - |> line(end = [8.01362, -5.48731]) - |> line(end = [-1.02877, -6.76825]) - |> line(end = [-11.53311, 2.81559]) +profile001 = startProfile(sketch001, at = [5.5, 5.25]) + |> line(end = [10.5, -1.19]) + |> line(end = [8, -5.5]) + |> line(end = [-1.02, -6.76]) + |> line(end = [-11.5, 2.8]) |> close() +plane001 = offsetPlane(XY, offset = 20) "#; // Use a new statement; don't extend the prior pipeline. This allows us to // detect a prefix. let code_with_extrude = code.to_owned() + r#" -extrude(sketch001, length = 4) +profile002 = startProfile(plane001, at = [0, 0]) + |> line(end = [0, 10]) + |> line(end = [10, 0]) + |> close() +extrude001 = extrude(profile001, length = 4) "#; let result = cache_test( @@ -305,6 +310,24 @@ extrude(sketch001, length = 4) first.artifact_graph.len(), second.artifact_graph.len() ); + // Make sure we have NodePaths referring to the old code. + let graph = &second.artifact_graph; + assert!(!graph.is_empty()); + for artifact in graph.values() { + assert!(!artifact.code_ref().map(|c| c.node_path.is_empty()).unwrap_or(false)); + assert!( + !artifact + .face_code_ref() + // TODO: This fails, but it shouldn't. + // .map(|c| c.node_path.is_empty()) + // Allowing the NodePath to be empty if the SourceRange is [0, + // 0] as a more lenient check. + .map(|c| !c.range.is_synthetic() && c.node_path.is_empty()) + .unwrap_or(false), + "artifact={:?}", + artifact + ); + } } #[tokio::test(flavor = "multi_thread")] diff --git a/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_0.png b/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_0.png index d896c3550..604c6ac57 100644 Binary files a/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_0.png and b/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_0.png differ diff --git a/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_1.png b/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_1.png index 3b663a7a6..47f2451fc 100644 Binary files a/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_1.png and b/rust/kcl-lib/e2e/executor/outputs/cache_add_line_preserves_artifact_commands_1.png differ diff --git a/rust/kcl-lib/src/execution/artifact.rs b/rust/kcl-lib/src/execution/artifact.rs index 19198fff7..703e21921 100644 --- a/rust/kcl-lib/src/execution/artifact.rs +++ b/rust/kcl-lib/src/execution/artifact.rs @@ -115,7 +115,7 @@ where seq.end() } -#[derive(Debug, Clone, Serialize, PartialEq, Eq, ts_rs::TS)] +#[derive(Debug, Clone, Default, Serialize, PartialEq, Eq, ts_rs::TS)] #[ts(export_to = "Artifact.ts")] #[serde(rename_all = "camelCase")] pub struct CodeRef { @@ -396,7 +396,6 @@ pub enum Artifact { Cap(Cap), SweepEdge(SweepEdge), EdgeCut(EdgeCut), - #[expect(unused)] EdgeCutEdge(EdgeCutEdge), Helix(Helix), } @@ -550,8 +549,9 @@ impl Artifact { } } - #[expect(dead_code)] - pub(crate) fn code_ref(&self) -> Option<&CodeRef> { + /// The [`CodeRef`] for the artifact itself. See also + /// [`Self::face_code_ref`]. + pub fn code_ref(&self) -> Option<&CodeRef> { match self { Artifact::CompositeSolid(a) => Some(&a.code_ref), Artifact::Plane(a) => Some(&a.code_ref), @@ -570,6 +570,24 @@ impl Artifact { } } + /// The [`CodeRef`] referring to the face artifact that it's on, not the + /// artifact itself. + pub fn face_code_ref(&self) -> Option<&CodeRef> { + match self { + Artifact::CompositeSolid(_) + | Artifact::Plane(_) + | Artifact::Path(_) + | Artifact::Segment(_) + | Artifact::Solid2d(_) + | Artifact::StartSketchOnFace(_) + | Artifact::StartSketchOnPlane(_) + | Artifact::Sweep(_) => None, + Artifact::Wall(a) => Some(&a.face_code_ref), + Artifact::Cap(a) => Some(&a.face_code_ref), + Artifact::SweepEdge(_) | Artifact::EdgeCut(_) | Artifact::EdgeCutEdge(_) | Artifact::Helix(_) => None, + } + } + /// Merge the new artifact into self. If it can't because it's a different /// type, return the new artifact which should be used as a replacement. fn merge(&mut self, new: Artifact) -> Option { @@ -704,6 +722,19 @@ impl ArtifactGraph { self.map.len() } + pub fn is_empty(&self) -> bool { + self.map.is_empty() + } + + pub fn values(&self) -> impl Iterator { + self.map.values() + } + + /// Consume the artifact graph and return the map of artifacts. + fn into_map(self) -> IndexMap { + self.map + } + /// Used to make the mermaid tests deterministic. #[cfg(test)] pub(crate) fn sort(&mut self) { @@ -712,17 +743,29 @@ impl ArtifactGraph { } } +/// Build the artifact graph from the artifact commands and the responses. The +/// initial graph is the graph cached from a previous execution. NodePaths of +/// `exec_artifacts` are filled in from the AST. pub(super) fn build_artifact_graph( artifact_commands: &[ArtifactCommand], responses: &IndexMap, ast: &Node, - exec_artifacts: &IndexMap, + exec_artifacts: &mut IndexMap, + initial_graph: ArtifactGraph, ) -> Result { - let mut map = IndexMap::new(); + let mut map = initial_graph.into_map(); let mut path_to_plane_id_map = FnvHashMap::default(); let mut current_plane_id = None; + // Fill in NodePaths for artifacts that were added directly to the map + // during execution. + for exec_artifact in exec_artifacts.values_mut() { + // Note: We only have access to the new AST. So if these artifacts + // somehow came from cached AST, this won't fill in anything. + fill_in_node_paths(exec_artifact, ast); + } + for artifact_command in artifact_commands { if let ModelingCmd::EnableSketchMode(EnableSketchMode { entity_id, .. }) = artifact_command.command { current_plane_id = Some(entity_id); @@ -762,6 +805,24 @@ pub(super) fn build_artifact_graph( Ok(ArtifactGraph { map }) } +/// These may have been created with placeholder `CodeRef`s because we didn't +/// have the entire AST available. Now we fill them in. +fn fill_in_node_paths(artifact: &mut Artifact, program: &Node) { + match artifact { + Artifact::StartSketchOnFace(face) => { + if face.code_ref.node_path.is_empty() { + face.code_ref.node_path = NodePath::from_range(program, face.code_ref.range).unwrap_or_default(); + } + } + Artifact::StartSketchOnPlane(plane) => { + if plane.code_ref.node_path.is_empty() { + plane.code_ref.node_path = NodePath::from_range(program, plane.code_ref.range).unwrap_or_default(); + } + } + _ => {} + } +} + /// Flatten the responses into a map of command IDs to modeling command /// responses. The raw responses from the engine contain batches. fn flatten_modeling_command_responses( @@ -846,6 +907,12 @@ fn artifacts_to_update( ast: &Node, exec_artifacts: &IndexMap, ) -> Result, KclError> { + let uuid = artifact_command.cmd_id; + let Some(response) = responses.get(&uuid) else { + // Response not found or not successful. + return Ok(Vec::new()); + }; + // TODO: Build path-to-node from artifact_command source range. Right now, // we're serializing an empty array, and the TS wrapper fills it in with the // correct value based on NodePath. @@ -858,14 +925,7 @@ fn artifacts_to_update( path_to_node, }; - let uuid = artifact_command.cmd_id; let id = ArtifactId::new(uuid); - - let Some(response) = responses.get(&uuid) else { - // Response not found or not successful. - return Ok(Vec::new()); - }; - let cmd = &artifact_command.command; match cmd { @@ -1100,16 +1160,19 @@ fn artifacts_to_update( let extra_artifact = exec_artifacts.values().find(|a| { if let Artifact::StartSketchOnFace(s) = a { s.face_id == face_id + } else if let Artifact::StartSketchOnPlane(s) = a { + s.plane_id == face_id } else { false } }); - let sketch_on_face_source_range = extra_artifact + let sketch_on_face_code_ref = extra_artifact .and_then(|a| match a { - Artifact::StartSketchOnFace(s) => Some(s.code_ref.range), - // TODO: If we didn't find it, it's probably a bug. + Artifact::StartSketchOnFace(s) => Some(s.code_ref.clone()), + Artifact::StartSketchOnPlane(s) => Some(s.code_ref.clone()), _ => None, }) + // TODO: If we didn't find it, it's probably a bug. .unwrap_or_default(); return_arr.push(Artifact::Wall(Wall { @@ -1118,11 +1181,7 @@ fn artifacts_to_update( edge_cut_edge_ids: Vec::new(), sweep_id: path_sweep_id, path_ids: Vec::new(), - face_code_ref: CodeRef { - range: sketch_on_face_source_range, - node_path: NodePath::from_range(ast, sketch_on_face_source_range).unwrap_or_default(), - path_to_node: Vec::new(), - }, + face_code_ref: sketch_on_face_code_ref, cmd_id: artifact_command.cmd_id, })); let mut new_seg = seg.clone(); @@ -1155,15 +1214,19 @@ fn artifacts_to_update( let extra_artifact = exec_artifacts.values().find(|a| { if let Artifact::StartSketchOnFace(s) = a { s.face_id == face_id + } else if let Artifact::StartSketchOnPlane(s) = a { + s.plane_id == face_id } else { false } }); - let sketch_on_face_source_range = extra_artifact + let sketch_on_face_code_ref = extra_artifact .and_then(|a| match a { - Artifact::StartSketchOnFace(s) => Some(s.code_ref.range), + Artifact::StartSketchOnFace(s) => Some(s.code_ref.clone()), + Artifact::StartSketchOnPlane(s) => Some(s.code_ref.clone()), _ => None, }) + // TODO: If we didn't find it, it's probably a bug. .unwrap_or_default(); return_arr.push(Artifact::Cap(Cap { id: face_id, @@ -1171,11 +1234,7 @@ fn artifacts_to_update( edge_cut_edge_ids: Vec::new(), sweep_id: path_sweep_id, path_ids: Vec::new(), - face_code_ref: CodeRef { - range: sketch_on_face_source_range, - node_path: NodePath::from_range(ast, sketch_on_face_source_range).unwrap_or_default(), - path_to_node: Vec::new(), - }, + face_code_ref: sketch_on_face_code_ref, cmd_id: artifact_command.cmd_id, })); let Some(Artifact::Sweep(sweep)) = artifacts.get(&path_sweep_id) else { diff --git a/rust/kcl-lib/src/execution/mod.rs b/rust/kcl-lib/src/execution/mod.rs index d49d3ecaa..6ec42972d 100644 --- a/rust/kcl-lib/src/execution/mod.rs +++ b/rust/kcl-lib/src/execution/mod.rs @@ -1155,23 +1155,24 @@ impl ExecutorContext { #[cfg(feature = "artifact-graph")] { - // Move the artifact commands and responses to simplify cache management - // and error creation. - exec_state - .global - .artifact_commands - .extend(self.engine.take_artifact_commands().await); - exec_state - .global - .artifact_responses - .extend(self.engine.take_responses().await); + let new_commands = self.engine.take_artifact_commands().await; + let new_responses = self.engine.take_responses().await; + let initial_graph = exec_state.global.artifact_graph.clone(); + // Build the artifact graph. - match build_artifact_graph( - &exec_state.global.artifact_commands, - &exec_state.global.artifact_responses, + let graph_result = build_artifact_graph( + &new_commands, + &new_responses, program, - &exec_state.global.artifacts, - ) { + &mut exec_state.global.artifacts, + initial_graph, + ); + // Move the artifact commands and responses into ExecState to + // simplify cache management and error creation. + exec_state.global.artifact_commands.extend(new_commands); + exec_state.global.artifact_responses.extend(new_responses); + + match graph_result { Ok(artifact_graph) => { exec_state.global.artifact_graph = artifact_graph; exec_result.map(|(_, env_ref, _)| env_ref) diff --git a/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md index b8da24ade..21ff673dd 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/artifact_graph_example_code1/artifact_graph_flowchart.snap.md @@ -31,7 +31,7 @@ flowchart LR 1["Plane
[12, 29, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[343, 382, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["Sweep Extrusion
[258, 290, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["Sweep Extrusion
[553, 583, 0]"] diff --git a/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md index da11ce3b6..b61d1fa66 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/artifact_graph_flowchart.snap.md @@ -13,7 +13,7 @@ flowchart LR 3["Plane
[110, 138, 0]"] %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 4["StartSketchOnPlane
[152, 181, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 1 <--x 4 1 --- 5 5 --- 6 diff --git a/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/artifact_graph_flowchart.snap.md index c9b767e21..ac5145e21 100644 --- a/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/artifact_graph_flowchart.snap.md @@ -55,11 +55,11 @@ flowchart LR 1["Plane
[12, 29, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[255, 294, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[511, 550, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[780, 819, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 29["Sweep Extrusion
[212, 242, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 30["Sweep Extrusion
[468, 498, 0]"] diff --git a/rust/kcl-lib/tests/crazy_multi_profile/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/crazy_multi_profile/artifact_graph_flowchart.snap.md index b717f2ae6..5224ac1b7 100644 --- a/rust/kcl-lib/tests/crazy_multi_profile/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/crazy_multi_profile/artifact_graph_flowchart.snap.md @@ -130,7 +130,7 @@ flowchart LR 2["Plane
[1424, 1442, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit] 3["StartSketchOnFace
[309, 348, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit] 60["Sweep Extrusion
[264, 296, 0]"] %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 61["Sweep RevolveAboutEdge
[1300, 1366, 0]"] diff --git a/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/artifact_graph_flowchart.snap.md index a6f9555d0..d39bd8aa7 100644 --- a/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/artifact_graph_flowchart.snap.md @@ -29,7 +29,7 @@ flowchart LR 1["Plane
[6, 23, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[203, 241, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["Sweep Extrusion
[169, 189, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 16[Wall] diff --git a/rust/kcl-lib/tests/import_async/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/import_async/artifact_graph_flowchart.snap.md index bd6b40409..6f605aac8 100644 --- a/rust/kcl-lib/tests/import_async/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/import_async/artifact_graph_flowchart.snap.md @@ -63,11 +63,11 @@ flowchart LR 4["Plane
[1594, 1632, 0]"] %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 5["StartSketchOnPlane
[1580, 1633, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[1580, 1633, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnPlane
[1580, 1633, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 33["Sweep Loft
[3201, 3268, 0]"] %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit] 34[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_graph_flowchart.snap.md index c76183f9b..4a04e2b5f 100644 --- a/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/ball-bearing/artifact_graph_flowchart.snap.md @@ -68,9 +68,9 @@ flowchart LR 5["Plane
[2590, 2637, 0]"] %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 6["StartSketchOnPlane
[614, 676, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnPlane
[2576, 2638, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 33["Sweep Extrusion
[866, 918, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit] 34["Sweep Revolve
[1214, 1244, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md index af2ba8b37..83ad135b0 100644 --- a/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/bottle/artifact_graph_flowchart.snap.md @@ -25,7 +25,7 @@ flowchart LR 2["Plane
[756, 806, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 3["StartSketchOnFace
[713, 750, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["Sweep Extrusion
[605, 647, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 14["Sweep Extrusion
[812, 839, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md index 9fb3a05f4..20eb2f3da 100644 --- a/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md @@ -36,9 +36,9 @@ flowchart LR 1["Plane
[2060, 2077, 0]"] %% [ProgramBodyItem { index: 20 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[2555, 2595, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[3179, 3219, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 19["Sweep Extrusion
[2462, 2488, 0]"] %% [ProgramBodyItem { index: 20 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 20["Sweep Extrusion
[3077, 3114, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md index a0ac182aa..006b678ff 100644 --- a/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md @@ -91,9 +91,9 @@ flowchart LR 4["Plane
[2529, 2546, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnPlane
[1458, 1511, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[2110, 2156, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 45["Sweep Extrusion
[1352, 1390, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 18 }] 46["Sweep Sweep
[2362, 2390, 0]"] @@ -163,7 +163,7 @@ flowchart LR 11 --- 42 11 ---- 47 34 --- 48 - 34 x--> 55 + 34 x--> 54 34 --- 57 34 --- 62 36 --- 49 @@ -215,7 +215,7 @@ flowchart LR 52 --- 58 52 --- 63 64 <--x 52 - 57 <--x 54 + 57 <--x 55 58 <--x 56 59 <--x 56 60 <--x 56 diff --git a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_graph_flowchart.snap.md index decf26129..e457fec0f 100644 --- a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/artifact_graph_flowchart.snap.md @@ -144,23 +144,23 @@ flowchart LR 5["Plane
[3337, 3361, 0]"] %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[2779, 2834, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnFace
[1951, 1987, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["StartSketchOnFace
[2115, 2151, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnFace
[1951, 1987, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnFace
[1951, 1987, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnFace
[2115, 2151, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnFace
[1951, 1987, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnFace
[2115, 2151, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnFace
[2115, 2151, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 74["Sweep Extrusion
[1318, 1363, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 75["Sweep Extrusion
[2067, 2103, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md index 86965f92b..4617c1f2e 100644 --- a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/artifact_graph_flowchart.snap.md @@ -47,9 +47,9 @@ flowchart LR 1["Plane
[700, 717, 0]"] %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1606, 1642, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1606, 1642, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ExpressionStatementExpr, PipeBodyItem { index: 0 }] 24["Sweep Extrusion
[1494, 1529, 0]"] %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 12 }] 25["Sweep Extrusion
[1734, 1767, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md index df9211a03..01aefdc0b 100644 --- a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/artifact_graph_flowchart.snap.md @@ -73,11 +73,11 @@ flowchart LR 3["Plane
[619, 652, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 4["StartSketchOnPlane
[605, 653, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnPlane
[605, 653, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[605, 653, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 37["Sweep Loft
[1483, 1572, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 38[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/enclosure/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/enclosure/artifact_graph_flowchart.snap.md index 724bb4f93..54abc0175 100644 --- a/rust/kcl-lib/tests/kcl_samples/enclosure/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/enclosure/artifact_graph_flowchart.snap.md @@ -170,7 +170,7 @@ flowchart LR 6["Plane
[2328, 2345, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnFace
[3930, 3967, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 77["Sweep Extrusion
[739, 774, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 78["Sweep Extrusion
[1800, 1851, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md index 5de6b97d8..36f6fbf72 100644 --- a/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md @@ -40,11 +40,11 @@ flowchart LR 2["Plane
[1180, 1197, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1388, 1425, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[1795, 1834, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[1603, 1642, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 21["Sweep Extrusion
[1286, 1317, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 22["Sweep Extrusion
[1491, 1526, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_graph_flowchart.snap.md index b3e19ef30..548d3088d 100644 --- a/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/food-service-spatula/artifact_graph_flowchart.snap.md @@ -124,9 +124,9 @@ flowchart LR 3["Plane
[3757, 3783, 0]"] %% [ProgramBodyItem { index: 24 }, VariableDeclarationDeclaration, VariableDeclarationInit] 4["StartSketchOnPlane
[2768, 2825, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit] 5["StartSketchOnFace
[4593, 4632, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit] 61["Sweep Extrusion
[2459, 2509, 0]"] %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit] 62["Sweep Extrusion
[3270, 3314, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/french-press/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/french-press/artifact_graph_flowchart.snap.md index 0da6d22ff..e5f53975a 100644 --- a/rust/kcl-lib/tests/kcl_samples/french-press/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/french-press/artifact_graph_flowchart.snap.md @@ -220,17 +220,17 @@ flowchart LR 9["Plane
[5251, 5296, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 10["StartSketchOnPlane
[3570, 3615, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnPlane
[5237, 5297, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnPlane
[2133, 2175, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnFace
[4158, 4195, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnFace
[2303, 2340, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["StartSketchOnFace
[3842, 3879, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 110["Sweep Revolve
[705, 735, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 111["Sweep Extrusion
[1920, 1942, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_graph_flowchart.snap.md index 8b599bcc1..204c05eae 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/artifact_graph_flowchart.snap.md @@ -154,13 +154,13 @@ flowchart LR 6["Plane
[5583, 5618, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] 7["StartSketchOnPlane
[4207, 4227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 20 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["StartSketchOnPlane
[913, 933, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnPlane
[2715, 2735, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[913, 933, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 78["Sweep Extrusion
[1223, 1317, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit] 79["Sweep Revolve
[1717, 1799, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/artifact_graph_flowchart.snap.md index 3b4add0ad..82e9cc57a 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/artifact_graph_flowchart.snap.md @@ -35,9 +35,9 @@ flowchart LR 2["Plane
[1607, 1645, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg, CallKwUnlabeledArg] 3["StartSketchOnPlane
[790, 810, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnPlane
[790, 810, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 19["Sweep Extrusion
[1100, 1194, 0]"] %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit] 20["Sweep Revolve
[1594, 1676, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/artifact_graph_flowchart.snap.md index 04e4461ba..48631e1f0 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/artifact_graph_flowchart.snap.md @@ -168,13 +168,13 @@ flowchart LR 8["Plane
[5318, 5338, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnPlane
[1178, 1198, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 23 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[1178, 1198, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 23 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnPlane
[4557, 4604, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnFace
[3112, 3154, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 30 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 84["Sweep Extrusion
[1547, 1650, 0]"] %% [ProgramBodyItem { index: 24 }, VariableDeclarationDeclaration, VariableDeclarationInit] 85["Sweep Revolve
[2126, 2217, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/artifact_graph_flowchart.snap.md index a2698aeed..6030f3932 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/artifact_graph_flowchart.snap.md @@ -76,13 +76,13 @@ flowchart LR 4["Plane
[4341, 4373, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 5["StartSketchOnPlane
[919, 939, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[919, 939, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnPlane
[4327, 4374, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["StartSketchOnFace
[2853, 2895, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 23 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 40["Sweep Extrusion
[1288, 1391, 0]"] %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit] 41["Sweep Revolve
[1867, 1958, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/hammer/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/hammer/artifact_graph_flowchart.snap.md index 6eab314b5..60b8e0310 100644 --- a/rust/kcl-lib/tests/kcl_samples/hammer/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/hammer/artifact_graph_flowchart.snap.md @@ -160,9 +160,9 @@ flowchart LR 5["Plane
[3791, 3808, 0]"] %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[1135, 1178, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 7["StartSketchOnPlane
[3280, 3325, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 79["Sweep Extrusion
[1034, 1071, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 18 }] 80["Sweep Extrusion
[1724, 1745, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md index 21ca06122..20342c867 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/helical-gear/artifact_graph_flowchart.snap.md @@ -63,11 +63,11 @@ flowchart LR 4["Plane
[1730, 1768, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 5["StartSketchOnPlane
[1716, 1769, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[1716, 1769, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnPlane
[1716, 1769, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 33["Sweep Loft
[3337, 3404, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit] 34[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_graph_flowchart.snap.md index 6b06636b4..921022af1 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/artifact_graph_flowchart.snap.md @@ -201,29 +201,29 @@ flowchart LR 14["Plane
[5530, 5568, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 15["StartSketchOnPlane
[4264, 4317, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnPlane
[1800, 1853, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["StartSketchOnPlane
[1800, 1853, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["StartSketchOnPlane
[4264, 4317, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 19["StartSketchOnPlane
[5516, 5569, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 20["StartSketchOnPlane
[4264, 4317, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 21["StartSketchOnPlane
[1800, 1853, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 22["StartSketchOnPlane
[5516, 5569, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 23["StartSketchOnPlane
[1800, 1853, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 24["StartSketchOnPlane
[1800, 1853, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 25["StartSketchOnPlane
[1800, 1853, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 26["StartSketchOnPlane
[5516, 5569, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 106["Sweep Loft
[3421, 3488, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit] 107["Sweep Loft
[3421, 3488, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_graph_flowchart.snap.md index a80060342..f91c1bb07 100644 --- a/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/helium-tank/artifact_graph_flowchart.snap.md @@ -154,17 +154,17 @@ flowchart LR 8["Plane
[4685, 4728, 0]"] %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 9["StartSketchOnPlane
[2447, 2505, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[3145, 3203, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnPlane
[1713, 1770, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnPlane
[4169, 4229, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnPlane
[3781, 3839, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnPlane
[4671, 4729, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 78["Sweep Revolve
[1608, 1650, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] 79["Sweep Extrusion
[1848, 1890, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md index 7b0544a40..3b97ba2d8 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/artifact_graph_flowchart.snap.md @@ -49,9 +49,9 @@ flowchart LR 2["Plane
[1087, 1125, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 3["StartSketchOnPlane
[1073, 1126, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnPlane
[1073, 1126, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 25["Sweep Loft
[2816, 2917, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit] 26[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_graph_flowchart.snap.md index c3cf1898d..ef6d5fd0e 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/artifact_graph_flowchart.snap.md @@ -149,21 +149,21 @@ flowchart LR 8["Plane
[5046, 5084, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 9["StartSketchOnPlane
[1156, 1209, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[1156, 1209, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnPlane
[3780, 3833, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnPlane
[5032, 5085, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnPlane
[3780, 3833, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnPlane
[1156, 1209, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["StartSketchOnPlane
[1156, 1209, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnPlane
[5032, 5085, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 77["Sweep Loft
[2899, 3000, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit] 78["Sweep Loft
[2899, 3000, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_graph_flowchart.snap.md index a866cdb86..c56c8d74b 100644 --- a/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/keyboard/artifact_graph_flowchart.snap.md @@ -670,7 +670,7 @@ flowchart LR 27["Plane
[7801, 7824, 0]"] %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 28["StartSketchOnFace
[1169, 1207, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit] 321["Sweep Extrusion
[869, 891, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 322["Sweep Extrusion
[1490, 1588, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/kitt/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/kitt/artifact_graph_flowchart.snap.md index 463a7528e..a83827908 100644 --- a/rust/kcl-lib/tests/kcl_samples/kitt/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/kitt/artifact_graph_flowchart.snap.md @@ -684,85 +684,85 @@ flowchart LR 3["Plane
[7839, 7856, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 19["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 20["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 21["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 22["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 23["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 24["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 25["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 26["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 27["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 28["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 29["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 30["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 31["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 32["StartSketchOnFace
[3305, 3341, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 33["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 34["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 35["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 36["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 37["StartSketchOnFace
[1558, 1592, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 38["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 39["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 40["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 41["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 42["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 43["StartSketchOnFace
[183, 227, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 361["Sweep Extrusion
[456, 479, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 362["Sweep Extrusion
[456, 479, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/lego/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/lego/artifact_graph_flowchart.snap.md index 503c61234..66cfc7bcf 100644 --- a/rust/kcl-lib/tests/kcl_samples/lego/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/lego/artifact_graph_flowchart.snap.md @@ -43,11 +43,11 @@ flowchart LR 1["Plane
[1014, 1031, 0]"] %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1413, 1446, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1772, 1803, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[2199, 2240, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 23["Sweep Extrusion
[1211, 1235, 0]"] %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 24["Sweep Extrusion
[1691, 1722, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/makeup-mirror/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/makeup-mirror/artifact_graph_flowchart.snap.md index fce5692d2..f6011f174 100644 --- a/rust/kcl-lib/tests/kcl_samples/makeup-mirror/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/makeup-mirror/artifact_graph_flowchart.snap.md @@ -106,21 +106,21 @@ flowchart LR 10["Plane
[1768, 1818, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] 11["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnPlane
[1754, 1819, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit] 13["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["StartSketchOnPlane
[551, 593, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 56["Sweep Extrusion
[654, 683, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 57["Sweep Extrusion
[654, 683, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md index 1cd210ec1..1fe7c5956 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md @@ -17,7 +17,7 @@ flowchart LR 1["Plane
[236, 253, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[412, 447, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["Sweep Extrusion
[323, 354, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 10["Sweep Extrusion
[514, 546, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_graph_flowchart.snap.md index 1b624052c..72a7b12ff 100644 --- a/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/poopy-shoe/artifact_graph_flowchart.snap.md @@ -169,11 +169,11 @@ flowchart LR 5["Plane
[4286, 4313, 0]"] %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnFace
[3588, 3626, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnFace
[2237, 2273, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["StartSketchOnFace
[3845, 3881, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 84["Sweep Revolve
[993, 1109, 0]"] %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit] 85["Sweep Extrusion
[1755, 1792, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md index 68025e322..ded165f1e 100644 --- a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md @@ -178,7 +178,7 @@ flowchart LR 9["Plane
[4976, 4993, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[767, 810, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 86["Sweep Extrusion
[3616, 3638, 0]"] %% [ProgramBodyItem { index: 30 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 87["Sweep Loft
[3698, 3786, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md index eb0681aa0..e8ac22324 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md @@ -95,11 +95,11 @@ flowchart LR 1["Plane
[535, 552, 0]"] %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[2450, 2489, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[3054, 3091, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[1845, 1884, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 49["Sweep Extrusion
[1773, 1803, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit] 50["Sweep Extrusion
[2378, 2409, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md index a3946cad4..655308efe 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md @@ -64,9 +64,9 @@ flowchart LR 1["Plane
[534, 551, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1399, 1438, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[2030, 2069, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 33["Sweep Extrusion
[1327, 1357, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit] 34["Sweep Extrusion
[1957, 1989, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_graph_flowchart.snap.md index 2606e8c29..b8c5c9593 100644 --- a/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/artifact_graph_flowchart.snap.md @@ -82,13 +82,13 @@ flowchart LR 1["Plane
[1223, 1240, 0]"] %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[3637, 3680, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[3260, 3303, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[2889, 2932, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[4240, 4283, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 43["Sweep Extrusion
[2605, 2638, 0]"] %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 25 }] 44["Sweep Extrusion
[3156, 3184, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_graph_flowchart.snap.md index 7a18ebe9b..cb18cf41b 100644 --- a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/artifact_graph_flowchart.snap.md @@ -34,9 +34,9 @@ flowchart LR 1["Plane
[660, 677, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[943, 980, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1421, 1456, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 8 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["Sweep Extrusion
[759, 792, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 19["Sweep Extrusion
[1369, 1409, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_graph_flowchart.snap.md index be3e039f7..b8a65b3fb 100644 --- a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/artifact_graph_flowchart.snap.md @@ -122,23 +122,23 @@ flowchart LR 7["Plane
[3966, 3994, 0]"] %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 8["StartSketchOnPlane
[3952, 3995, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnPlane
[2599, 2660, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[1778, 1838, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnPlane
[3177, 3220, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnPlane
[1489, 1532, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnFace
[2396, 2429, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnFace
[3370, 3411, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["StartSketchOnFace
[2011, 2050, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnFace
[3753, 3786, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 64["Sweep Extrusion
[1106, 1235, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 11 }] 65["Sweep Extrusion
[1400, 1421, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_graph_flowchart.snap.md index 31134c35a..14fb6188f 100644 --- a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/artifact_graph_flowchart.snap.md @@ -144,41 +144,41 @@ flowchart LR 1["Plane
[574, 591, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 8["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 11["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 13["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 19["StartSketchOnFace
[1217, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 18 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 81["Sweep Extrusion
[1050, 1090, 0]"] %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit] 82["Sweep Extrusion
[1364, 1416, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md index fae52d71b..a21849299 100644 --- a/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md @@ -239,29 +239,29 @@ flowchart LR 12["Plane
[8574, 8591, 0]"] %% [ProgramBodyItem { index: 67 }, VariableDeclarationDeclaration, VariableDeclarationInit] 13["StartSketchOnPlane
[6761, 6825, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 52 }, VariableDeclarationDeclaration, VariableDeclarationInit] 14["StartSketchOnPlane
[2317, 2383, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit] 15["StartSketchOnPlane
[5919, 5975, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 16["StartSketchOnPlane
[6184, 6240, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["StartSketchOnPlane
[2956, 3008, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit] 18["StartSketchOnPlane
[3841, 3893, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit] 19["StartSketchOnPlane
[5674, 5726, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 20["StartSketchOnPlane
[8078, 8144, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 65 }, VariableDeclarationDeclaration, VariableDeclarationInit] 21["StartSketchOnPlane
[1237, 1306, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit] 22["StartSketchOnPlane
[5429, 5481, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 23["StartSketchOnFace
[4405, 4446, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 38 }, VariableDeclarationDeclaration, VariableDeclarationInit] 24["StartSketchOnFace
[4845, 4884, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 40 }, VariableDeclarationDeclaration, VariableDeclarationInit] 123["Sweep Extrusion
[1092, 1119, 0]"] %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 124["Sweep Extrusion
[1092, 1119, 0]"] diff --git a/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_graph_flowchart.snap.md index a1dc31d77..16816ff34 100644 --- a/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/wing-spar/artifact_graph_flowchart.snap.md @@ -183,11 +183,11 @@ flowchart LR 2["Plane
[1889, 1907, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit] 3["StartSketchOnPlane
[690, 746, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 4["StartSketchOnFace
[4027, 4072, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[4788, 4832, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 90["Sweep Extrusion
[1652, 1684, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 14 }] 91["Sweep Extrusion
[2897, 2924, 0]"] diff --git a/rust/kcl-lib/tests/pentagon_fillet_sugar/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/pentagon_fillet_sugar/artifact_graph_flowchart.snap.md index 6fc9ba4e8..3627b4378 100644 --- a/rust/kcl-lib/tests/pentagon_fillet_sugar/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/pentagon_fillet_sugar/artifact_graph_flowchart.snap.md @@ -31,9 +31,9 @@ flowchart LR 1["Plane
[73, 90, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[372, 401, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[372, 401, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, ReturnStatementArg, PipeBodyItem { index: 0 }] 16["Sweep Extrusion
[309, 341, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 17["Sweep Extrusion
[651, 679, 0]"] diff --git a/rust/kcl-lib/tests/rotate_after_fillet/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/rotate_after_fillet/artifact_graph_flowchart.snap.md index 1ab02b1cc..742df2c21 100644 --- a/rust/kcl-lib/tests/rotate_after_fillet/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/rotate_after_fillet/artifact_graph_flowchart.snap.md @@ -34,9 +34,9 @@ flowchart LR 1["Plane
[312, 329, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[605, 644, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1223, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["Sweep Extrusion
[415, 448, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 19["Sweep Extrusion
[1168, 1208, 0]"] diff --git a/rust/kcl-lib/tests/scale_after_fillet/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/scale_after_fillet/artifact_graph_flowchart.snap.md index 1ab02b1cc..742df2c21 100644 --- a/rust/kcl-lib/tests/scale_after_fillet/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/scale_after_fillet/artifact_graph_flowchart.snap.md @@ -34,9 +34,9 @@ flowchart LR 1["Plane
[312, 329, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[605, 644, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1223, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["Sweep Extrusion
[415, 448, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 19["Sweep Extrusion
[1168, 1208, 0]"] diff --git a/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/artifact_graph_flowchart.snap.md index bd25a944e..36c864eca 100644 --- a/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/artifact_graph_flowchart.snap.md @@ -52,9 +52,9 @@ flowchart LR 3["Plane
[1184, 1219, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["StartSketchOnFace
[1139, 1178, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[673, 712, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 27["Sweep Extrusion
[457, 489, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 28["Sweep Extrusion
[1608, 1639, 0]"] diff --git a/rust/kcl-lib/tests/sketch-on-chamfer-two-times/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch-on-chamfer-two-times/artifact_graph_flowchart.snap.md index 3cc9990bf..1918274de 100644 --- a/rust/kcl-lib/tests/sketch-on-chamfer-two-times/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch-on-chamfer-two-times/artifact_graph_flowchart.snap.md @@ -52,9 +52,9 @@ flowchart LR 3["Plane
[1186, 1221, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 4["StartSketchOnFace
[1141, 1180, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnFace
[674, 713, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 27["Sweep Extrusion
[458, 490, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 28["Sweep Extrusion
[1611, 1642, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face/artifact_graph_flowchart.snap.md index fd714b58f..c992b5c88 100644 --- a/rust/kcl-lib/tests/sketch_on_face/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face/artifact_graph_flowchart.snap.md @@ -29,7 +29,7 @@ flowchart LR 1["Plane
[10, 27, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[229, 264, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["Sweep Extrusion
[198, 217, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 16["Sweep Extrusion
[391, 410, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md index 0ee7f81b4..8e53b6bf7 100644 --- a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/artifact_graph_flowchart.snap.md @@ -35,7 +35,7 @@ flowchart LR 1["Plane
[991, 1008, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[1493, 1529, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["Sweep Extrusion
[1302, 1325, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 19["Sweep Extrusion
[1741, 1761, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face_circle_tagged/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_circle_tagged/artifact_graph_flowchart.snap.md index 8eefe29c7..5e3fb2e85 100644 --- a/rust/kcl-lib/tests/sketch_on_face_circle_tagged/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_circle_tagged/artifact_graph_flowchart.snap.md @@ -23,7 +23,7 @@ flowchart LR 1["Plane
[29, 46, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[275, 311, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 12["Sweep Extrusion
[243, 263, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 13["Sweep Extrusion
[375, 394, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face_end/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_end/artifact_graph_flowchart.snap.md index d6629190d..010f10cb3 100644 --- a/rust/kcl-lib/tests/sketch_on_face_end/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_end/artifact_graph_flowchart.snap.md @@ -29,7 +29,7 @@ flowchart LR 1["Plane
[29, 46, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[275, 311, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["Sweep Extrusion
[243, 263, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 16["Sweep Extrusion
[438, 457, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/artifact_graph_flowchart.snap.md index 1e6e4fe4e..ececd66ee 100644 --- a/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/artifact_graph_flowchart.snap.md @@ -29,7 +29,7 @@ flowchart LR 1["Plane
[29, 46, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[275, 311, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["Sweep Extrusion
[243, 263, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 16["Sweep Extrusion
[438, 458, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face_start/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_start/artifact_graph_flowchart.snap.md index 36d852d82..282cf099e 100644 --- a/rust/kcl-lib/tests/sketch_on_face_start/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_start/artifact_graph_flowchart.snap.md @@ -29,7 +29,7 @@ flowchart LR 1["Plane
[29, 46, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[282, 316, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 15["Sweep Extrusion
[243, 263, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, LabeledExpressionExpr] 16["Sweep Extrusion
[443, 462, 0]"] diff --git a/rust/kcl-lib/tests/sketch_on_face_union/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/sketch_on_face_union/artifact_graph_flowchart.snap.md index 59d721075..a7fe7f1cf 100644 --- a/rust/kcl-lib/tests/sketch_on_face_union/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/sketch_on_face_union/artifact_graph_flowchart.snap.md @@ -85,9 +85,9 @@ flowchart LR 2["Plane
[1041, 1069, 0]"] %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] 3["StartSketchOnPlane
[1027, 1070, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 10 }, VariableDeclarationDeclaration, VariableDeclarationInit] 4["StartSketchOnFace
[1639, 1682, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit] 42["Sweep Extrusion
[982, 1013, 0]"] %% [ProgramBodyItem { index: 9 }, VariableDeclarationDeclaration, VariableDeclarationInit] 43["Sweep Extrusion
[1297, 1321, 0]"] diff --git a/rust/kcl-lib/tests/ssi_pattern/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/ssi_pattern/artifact_graph_flowchart.snap.md index fa9ecf4cf..b8e359fdf 100644 --- a/rust/kcl-lib/tests/ssi_pattern/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/ssi_pattern/artifact_graph_flowchart.snap.md @@ -27,7 +27,7 @@ flowchart LR 1["Plane
[12, 29, 0]"] %% [ProgramBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[351, 390, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 14["Sweep Extrusion
[306, 337, 0]"] %% [ProgramBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] 15["Sweep Extrusion
[630, 651, 0]"] diff --git a/rust/kcl-lib/tests/subtract_regression00/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/subtract_regression00/artifact_graph_flowchart.snap.md index 35be22e19..87cd5f711 100644 --- a/rust/kcl-lib/tests/subtract_regression00/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/subtract_regression00/artifact_graph_flowchart.snap.md @@ -27,7 +27,7 @@ flowchart LR 2["Plane
[348, 376, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] 3["StartSketchOnPlane
[334, 377, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit] 14["Sweep Extrusion
[254, 320, 0]"] %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 15["Sweep Extrusion
[476, 518, 0]"] diff --git a/rust/kcl-lib/tests/subtract_regression01/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/subtract_regression01/artifact_graph_flowchart.snap.md index c83cb748f..fd1d19f0d 100644 --- a/rust/kcl-lib/tests/subtract_regression01/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/subtract_regression01/artifact_graph_flowchart.snap.md @@ -31,7 +31,7 @@ flowchart LR 2["Plane
[567, 597, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] 3["StartSketchOnPlane
[553, 598, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit] 16["Sweep Extrusion
[468, 539, 0]"] %% [ProgramBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit] 17["Sweep Extrusion
[704, 748, 0]"] diff --git a/rust/kcl-lib/tests/translate_after_fillet/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/translate_after_fillet/artifact_graph_flowchart.snap.md index 1ab02b1cc..742df2c21 100644 --- a/rust/kcl-lib/tests/translate_after_fillet/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/translate_after_fillet/artifact_graph_flowchart.snap.md @@ -34,9 +34,9 @@ flowchart LR 1["Plane
[312, 329, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["StartSketchOnFace
[605, 644, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 3["StartSketchOnFace
[1223, 1260, 0]"] - %% Missing NodePath + %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 2 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 18["Sweep Extrusion
[415, 448, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 19["Sweep Extrusion
[1168, 1208, 0]"]