diff --git a/rust/kcl-lib/src/execution/artifact.rs b/rust/kcl-lib/src/execution/artifact.rs index 0189fe0dd..5d0ff07c5 100644 --- a/rust/kcl-lib/src/execution/artifact.rs +++ b/rust/kcl-lib/src/execution/artifact.rs @@ -676,7 +676,7 @@ impl EdgeCut { #[serde(rename_all = "camelCase")] pub struct ArtifactGraph { map: IndexMap, - item_count: usize, + pub(super) item_count: usize, } impl ArtifactGraph { diff --git a/rust/kcl-lib/src/execution/cad_op.rs b/rust/kcl-lib/src/execution/cad_op.rs index e0db94b3f..326338c5b 100644 --- a/rust/kcl-lib/src/execution/cad_op.rs +++ b/rust/kcl-lib/src/execution/cad_op.rs @@ -1,13 +1,12 @@ use indexmap::IndexMap; -use schemars::JsonSchema; use serde::Serialize; use super::{types::NumericType, ArtifactId, KclValue}; -use crate::{ModuleId, SourceRange}; +use crate::{ModuleId, NodePath, SourceRange}; /// A CAD modeling operation for display in the feature tree, AKA operations /// timeline. -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(tag = "type")] pub enum Operation { @@ -18,6 +17,8 @@ pub enum Operation { unlabeled_arg: Option, /// The labeled keyword arguments to the function. labeled_args: IndexMap, + /// The node path of the operation in the source code. + node_path: NodePath, /// The source range of the operation in the source code. source_range: SourceRange, /// True if the operation resulted in an error. @@ -28,6 +29,8 @@ pub enum Operation { GroupBegin { /// The details of the group. group: Group, + /// The node path of the operation in the source code. + node_path: NodePath, /// The source range of the operation in the source code. source_range: SourceRange, }, @@ -64,7 +67,7 @@ impl Operation { } } -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(tag = "type")] #[expect(clippy::large_enum_variant)] @@ -95,7 +98,7 @@ pub enum Group { } /// An argument to a CAD modeling operation. -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(rename_all = "camelCase")] pub struct OpArg { @@ -119,7 +122,7 @@ fn is_false(b: &bool) -> bool { /// A KCL value used in Operations. `ArtifactId`s are used to refer to the /// actual scene objects. Any data not needed in the UI may be omitted. -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(tag = "type")] pub enum OpKclValue { @@ -177,21 +180,21 @@ pub enum OpKclValue { pub type OpKclObjectFields = IndexMap; -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(rename_all = "camelCase")] pub struct OpSketch { artifact_id: ArtifactId, } -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(rename_all = "camelCase")] pub struct OpSolid { artifact_id: ArtifactId, } -#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)] +#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS)] #[ts(export_to = "Operation.ts")] #[serde(rename_all = "camelCase")] pub struct OpHelix { diff --git a/rust/kcl-lib/src/execution/fn_call.rs b/rust/kcl-lib/src/execution/fn_call.rs index 64b4b2a63..62c370ca8 100644 --- a/rust/kcl-lib/src/execution/fn_call.rs +++ b/rust/kcl-lib/src/execution/fn_call.rs @@ -14,7 +14,7 @@ use crate::{ parsing::ast::types::{CallExpressionKw, DefaultParamVal, FunctionExpression, Node, Program, Type}, source_range::SourceRange, std::StdFn, - CompilationError, + CompilationError, NodePath, }; #[derive(Debug, Clone)] @@ -322,6 +322,7 @@ impl FunctionDefinition<'_> { .unlabeled_kw_arg_unconverted() .map(|arg| OpArg::new(OpKclValue::from(&arg.value), arg.source_range)), labeled_args: op_labeled_args, + node_path: NodePath::placeholder(), source_range: callsite, is_error: false, }) @@ -337,6 +338,7 @@ impl FunctionDefinition<'_> { .map(|arg| OpArg::new(OpKclValue::from(&arg.1.value), arg.1.source_range)), labeled_args: op_labeled_args, }, + node_path: NodePath::placeholder(), source_range: callsite, }); diff --git a/rust/kcl-lib/src/execution/mod.rs b/rust/kcl-lib/src/execution/mod.rs index ac89a6bf1..3e67d5574 100644 --- a/rust/kcl-lib/src/execution/mod.rs +++ b/rust/kcl-lib/src/execution/mod.rs @@ -7,6 +7,7 @@ use anyhow::Result; pub use artifact::{Artifact, ArtifactCommand, ArtifactGraph, CodeRef, StartSketchOnFace, StartSketchOnPlane}; use cache::GlobalState; pub use cache::{bust_cache, clear_mem_cache}; +#[cfg(feature = "artifact-graph")] pub use cad_op::{Group, Operation}; pub use geometry::*; pub use id_generator::IdGenerator; @@ -842,31 +843,14 @@ impl ExecutorContext { let module_path = module_path.clone(); let source_range = SourceRange::from(import_stmt); - match &module_path { - ModulePath::Main => { - // This should never happen. - } - ModulePath::Local { value, .. } => { - // We only want to display the top-level module imports in - // the Feature Tree, not transitive imports. - if universe_map.contains_key(value) { - exec_state.push_op(Operation::GroupBegin { - group: Group::ModuleInstance { - name: value.file_name().unwrap_or_default(), - module_id, - }, - source_range, - }); - // Due to concurrent execution, we cannot easily - // group operations by module. So we leave the - // group empty and close it immediately. - exec_state.push_op(Operation::GroupEnd); - } - } - ModulePath::Std { .. } => { - // We don't want to display stdlib in the Feature Tree. - } - } + self.add_import_module_ops( + exec_state, + program, + module_id, + &module_path, + source_range, + &universe_map, + ); let repr = repr.clone(); let exec_state = exec_state.clone(); @@ -1009,6 +993,67 @@ impl ExecutorContext { Ok((universe, root_imports)) } + #[cfg(feature = "artifact-graph")] + fn add_import_module_ops( + &self, + exec_state: &mut ExecState, + program: &crate::Program, + module_id: ModuleId, + module_path: &ModulePath, + source_range: SourceRange, + universe_map: &UniverseMap, + ) { + match module_path { + ModulePath::Main => { + // This should never happen. + } + ModulePath::Local { value, .. } => { + // We only want to display the top-level module imports in + // the Feature Tree, not transitive imports. + if universe_map.contains_key(value) { + use crate::NodePath; + + let node_path = if source_range.is_top_level_module() { + let cached_body_items = exec_state.global.artifacts.cached_body_items(); + NodePath::from_range(&program.ast, cached_body_items, source_range).unwrap_or_default() + } else { + // The frontend doesn't care about paths in + // files other than the top-level module. + NodePath::placeholder() + }; + + exec_state.push_op(Operation::GroupBegin { + group: Group::ModuleInstance { + name: value.file_name().unwrap_or_default(), + module_id, + }, + node_path, + source_range, + }); + // Due to concurrent execution, we cannot easily + // group operations by module. So we leave the + // group empty and close it immediately. + exec_state.push_op(Operation::GroupEnd); + } + } + ModulePath::Std { .. } => { + // We don't want to display stdlib in the Feature Tree. + } + } + } + + #[cfg(not(feature = "artifact-graph"))] + fn add_import_module_ops( + &self, + _exec_state: &mut ExecState, + _program: &crate::Program, + _module_id: ModuleId, + _module_path: &ModulePath, + _source_range: SourceRange, + _universe_map: &UniverseMap, + ) { + } + /// Perform the execution of a program. Accept all possible parameters and /// output everything. async fn inner_run( @@ -1059,6 +1104,11 @@ impl ExecutorContext { // Don't early return! We need to build other outputs regardless of // whether execution failed. + // Because of execution caching, we may start with operations from a + // previous run. + #[cfg(feature = "artifact-graph")] + let start_op = exec_state.global.artifacts.operations.len(); + self.eval_prelude(exec_state, SourceRange::from(program).start_as_range()) .await?; @@ -1072,6 +1122,29 @@ impl ExecutorContext { ) .await; + #[cfg(feature = "artifact-graph")] + { + // Fill in NodePath for operations. + let cached_body_items = exec_state.global.artifacts.cached_body_items(); + for op in exec_state.global.artifacts.operations.iter_mut().skip(start_op) { + match op { + Operation::StdLibCall { + node_path, + source_range, + .. + } + | Operation::GroupBegin { + node_path, + source_range, + .. + } => { + node_path.fill_placeholder(program, cached_body_items, *source_range); + } + Operation::GroupEnd => {} + } + } + } + // Ensure all the async commands completed. self.engine.ensure_async_commands_completed().await?; diff --git a/rust/kcl-lib/src/execution/state.rs b/rust/kcl-lib/src/execution/state.rs index bebf7437d..8a0bb26f3 100644 --- a/rust/kcl-lib/src/execution/state.rs +++ b/rust/kcl-lib/src/execution/state.rs @@ -381,6 +381,13 @@ impl GlobalState { } } +#[cfg(feature = "artifact-graph")] +impl ArtifactState { + pub fn cached_body_items(&self) -> usize { + self.graph.item_count + } +} + impl ModuleState { pub(super) fn new(path: ModulePath, memory: Arc, module_id: Option) -> Self { ModuleState { diff --git a/rust/kcl-lib/src/parsing/ast/types/path.rs b/rust/kcl-lib/src/parsing/ast/types/path.rs index 2aa758bb8..263cc03f8 100644 --- a/rust/kcl-lib/src/parsing/ast/types/path.rs +++ b/rust/kcl-lib/src/parsing/ast/types/path.rs @@ -60,6 +60,20 @@ pub enum Step { } impl NodePath { + /// Placeholder for when the AST isn't available to create a real path. It + /// will be filled in later. + pub(crate) fn placeholder() -> Self { + Self::default() + } + + #[cfg(feature = "artifact-graph")] + pub(crate) fn fill_placeholder(&mut self, program: &Node, cached_body_items: usize, range: SourceRange) { + if !self.is_empty() { + return; + } + *self = Self::from_range(program, cached_body_items, range).unwrap_or_default(); + } + /// Given a program and a [`SourceRange`], return the path to the node that /// contains the range. pub(crate) fn from_range(program: &Node, cached_body_items: usize, range: SourceRange) -> Option { @@ -390,4 +404,19 @@ mod tests { } ); } + + #[test] + fn test_node_path_from_range_import() { + let code = r#"import "cube.step" as cube +import "cylinder.kcl" as cylinder +"#; + let program = crate::Program::parse_no_errs(code).unwrap(); + // The entire cylinder import statement. + assert_eq!( + NodePath::from_range(&program.ast, 0, range(27, 60)).unwrap(), + NodePath { + steps: vec![Step::ProgramBodyItem { index: 1 }], + } + ); + } } diff --git a/rust/kcl-lib/src/source_range.rs b/rust/kcl-lib/src/source_range.rs index 96d893247..52ad24c02 100644 --- a/rust/kcl-lib/src/source_range.rs +++ b/rust/kcl-lib/src/source_range.rs @@ -94,6 +94,11 @@ impl SourceRange { ModuleId::from_usize(self.0[2]) } + /// True if this source range is from the top-level module. + pub fn is_top_level_module(&self) -> bool { + self.module_id().is_top_level() + } + /// Check if the range contains a position. pub fn contains(&self, pos: usize) -> bool { pos >= self.start() && pos <= self.end() diff --git a/rust/kcl-lib/tests/add_lots/ops.snap b/rust/kcl-lib/tests/add_lots/ops.snap index 29a19cdec..f0a2f9ea7 100644 --- a/rust/kcl-lib/tests/add_lots/ops.snap +++ b/rust/kcl-lib/tests/add_lots/ops.snap @@ -27,6 +27,185 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + } + ] + }, "sourceRange": [] }, { @@ -53,6 +232,185 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -79,6 +437,182 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -105,6 +639,179 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -131,6 +838,176 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -157,6 +1034,173 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -183,6 +1227,170 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -209,6 +1417,167 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -235,6 +1604,164 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -261,6 +1788,161 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -287,6 +1969,158 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -313,6 +2147,155 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -339,6 +2322,152 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -365,6 +2494,149 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -391,6 +2663,146 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -417,6 +2829,143 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -443,6 +2992,140 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -469,6 +3152,137 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -495,6 +3309,134 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -521,6 +3463,131 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -547,6 +3614,128 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -573,6 +3762,125 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -599,6 +3907,122 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -625,6 +4049,119 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -651,6 +4188,116 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -677,6 +4324,113 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -703,6 +4457,110 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -729,6 +4587,107 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -755,6 +4714,104 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -781,6 +4838,101 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -807,6 +4959,98 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -833,6 +5077,95 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -859,6 +5192,92 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -885,6 +5304,89 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -911,6 +5413,86 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -937,6 +5519,83 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -963,6 +5622,80 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -989,6 +5722,77 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1015,6 +5819,74 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1041,6 +5913,71 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1067,6 +6004,68 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1093,6 +6092,65 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1119,6 +6177,62 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1145,6 +6259,59 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1171,6 +6338,56 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1197,6 +6414,53 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1223,6 +6487,50 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1249,6 +6557,47 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1275,6 +6624,44 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1301,6 +6688,41 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1327,6 +6749,38 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1353,6 +6807,35 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1379,6 +6862,32 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1405,6 +6914,29 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1431,6 +6963,26 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { @@ -1457,6 +7009,23 @@ description: Operations executed add_lots.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryRight" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/angled_line/ops.snap b/rust/kcl-lib/tests/angled_line/ops.snap index 18fd4e995..09eb2c2cf 100644 --- a/rust/kcl-lib/tests/angled_line/ops.snap +++ b/rust/kcl-lib/tests/angled_line/ops.snap @@ -14,6 +14,24 @@ description: Operations executed angled_line.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed angled_line.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/any_type/ops.snap b/rust/kcl-lib/tests/any_type/ops.snap index 69aef472c..128a46c25 100644 --- a/rust/kcl-lib/tests/any_type/ops.snap +++ b/rust/kcl-lib/tests/any_type/ops.snap @@ -44,6 +44,30 @@ description: Operations executed any_type.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +94,20 @@ description: Operations executed any_type.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -87,6 +125,20 @@ description: Operations executed any_type.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -113,6 +165,20 @@ description: Operations executed any_type.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -130,6 +196,20 @@ description: Operations executed any_type.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -161,6 +241,20 @@ description: Operations executed any_type.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/artifact_graph_example_code1/ops.snap b/rust/kcl-lib/tests/artifact_graph_example_code1/ops.snap index 463227ccd..687170cc4 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code1/ops.snap +++ b/rust/kcl-lib/tests/artifact_graph_example_code1/ops.snap @@ -14,6 +14,24 @@ description: Operations executed artifact_graph_example_code1.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed artifact_graph_example_code1.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +127,24 @@ description: Operations executed artifact_graph_example_code1.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -115,6 +169,24 @@ description: Operations executed artifact_graph_example_code1.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -147,6 +219,20 @@ description: Operations executed artifact_graph_example_code1.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/ops.snap b/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/ops.snap index 6425c8757..140ad36d8 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/ops.snap +++ b/rust/kcl-lib/tests/artifact_graph_example_code_no_3d/ops.snap @@ -14,6 +14,24 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +45,24 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/ops.snap b/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/ops.snap index 056dd3210..49da174b7 100644 --- a/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/ops.snap +++ b/rust/kcl-lib/tests/artifact_graph_example_code_offset_planes/ops.snap @@ -31,6 +31,20 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -61,6 +75,20 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -91,6 +119,20 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -104,6 +146,24 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/ops.snap b/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/ops.snap index bd6c11368..f12aa625d 100644 --- a/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/ops.snap +++ b/rust/kcl-lib/tests/artifact_graph_sketch_on_face_etc/ops.snap @@ -14,6 +14,24 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +102,24 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -102,6 +152,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -125,6 +189,24 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -157,6 +239,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -181,6 +277,24 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -213,6 +327,20 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/assembly_mixed_units_cubes/ops.snap b/rust/kcl-lib/tests/assembly_mixed_units_cubes/ops.snap index e72b9f2d0..597deedba 100644 --- a/rust/kcl-lib/tests/assembly_mixed_units_cubes/ops.snap +++ b/rust/kcl-lib/tests/assembly_mixed_units_cubes/ops.snap @@ -10,6 +10,14 @@ description: Operations executed assembly_mixed_units_cubes.kcl "name": "cube-inches.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed assembly_mixed_units_cubes.kcl "name": "cube-mm.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/assembly_non_default_units/ops.snap b/rust/kcl-lib/tests/assembly_non_default_units/ops.snap index cb638e79c..fa9caf617 100644 --- a/rust/kcl-lib/tests/assembly_non_default_units/ops.snap +++ b/rust/kcl-lib/tests/assembly_non_default_units/ops.snap @@ -10,6 +10,14 @@ description: Operations executed assembly_non_default_units.kcl "name": "other1.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed assembly_non_default_units.kcl "name": "other2.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/ops.snap b/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/ops.snap index ef20d0a2b..a48a788d8 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/ops.snap +++ b/rust/kcl-lib/tests/basic_fillet_cube_close_opposite/ops.snap @@ -14,6 +14,24 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -95,6 +131,24 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/basic_fillet_cube_end/ops.snap b/rust/kcl-lib/tests/basic_fillet_cube_end/ops.snap index c4496592f..1df8fb630 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_end/ops.snap +++ b/rust/kcl-lib/tests/basic_fillet_cube_end/ops.snap @@ -14,6 +14,24 @@ description: Operations executed basic_fillet_cube_end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed basic_fillet_cube_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -95,6 +131,24 @@ description: Operations executed basic_fillet_cube_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/ops.snap b/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/ops.snap index d4056bfdd..2f6992ebe 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/ops.snap +++ b/rust/kcl-lib/tests/basic_fillet_cube_next_adjacent/ops.snap @@ -14,6 +14,24 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -90,6 +126,24 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/ops.snap b/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/ops.snap index 00e35c051..6ddcadf00 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/ops.snap +++ b/rust/kcl-lib/tests/basic_fillet_cube_previous_adjacent/ops.snap @@ -14,6 +14,24 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -90,6 +126,24 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/basic_fillet_cube_start/ops.snap b/rust/kcl-lib/tests/basic_fillet_cube_start/ops.snap index a4c0e7f5a..937fd5e08 100644 --- a/rust/kcl-lib/tests/basic_fillet_cube_start/ops.snap +++ b/rust/kcl-lib/tests/basic_fillet_cube_start/ops.snap @@ -14,6 +14,24 @@ description: Operations executed basic_fillet_cube_start.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed basic_fillet_cube_start.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -96,6 +132,24 @@ description: Operations executed basic_fillet_cube_start.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/basic_revolve_circle/ops.snap b/rust/kcl-lib/tests/basic_revolve_circle/ops.snap index 6dd6139ba..2892607ba 100644 --- a/rust/kcl-lib/tests/basic_revolve_circle/ops.snap +++ b/rust/kcl-lib/tests/basic_revolve_circle/ops.snap @@ -14,6 +14,24 @@ description: Operations executed basic_revolve_circle.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -116,6 +134,24 @@ description: Operations executed basic_revolve_circle.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/circle_three_point/ops.snap b/rust/kcl-lib/tests/circle_three_point/ops.snap index a568a3e0b..8ef83c3de 100644 --- a/rust/kcl-lib/tests/circle_three_point/ops.snap +++ b/rust/kcl-lib/tests/circle_three_point/ops.snap @@ -14,6 +14,24 @@ description: Operations executed circle_three_point.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed circle_three_point.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/circular_pattern3d_a_pattern/ops.snap b/rust/kcl-lib/tests/circular_pattern3d_a_pattern/ops.snap index 503fb9753..2e88aa6f7 100644 --- a/rust/kcl-lib/tests/circular_pattern3d_a_pattern/ops.snap +++ b/rust/kcl-lib/tests/circular_pattern3d_a_pattern/ops.snap @@ -14,6 +14,24 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -136,6 +172,20 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -317,6 +367,20 @@ description: Operations executed circular_pattern3d_a_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/crazy_multi_profile/ops.snap b/rust/kcl-lib/tests/crazy_multi_profile/ops.snap index bf5dbdb50..07486138f 100644 --- a/rust/kcl-lib/tests/crazy_multi_profile/ops.snap +++ b/rust/kcl-lib/tests/crazy_multi_profile/ops.snap @@ -14,6 +14,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -46,6 +60,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +98,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -109,6 +151,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -141,6 +197,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -154,6 +224,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -186,6 +270,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -226,6 +324,20 @@ description: Operations executed crazy_multi_profile.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/cube/ops.snap b/rust/kcl-lib/tests/cube/ops.snap index 13be3091f..f81601b42 100644 --- a/rust/kcl-lib/tests/cube/ops.snap +++ b/rust/kcl-lib/tests/cube/ops.snap @@ -14,6 +14,34 @@ description: Operations executed cube.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +74,34 @@ description: Operations executed cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -108,6 +164,20 @@ description: Operations executed cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/cube_with_error/ops.snap b/rust/kcl-lib/tests/cube_with_error/ops.snap index e6a6cb879..b730220e7 100644 --- a/rust/kcl-lib/tests/cube_with_error/ops.snap +++ b/rust/kcl-lib/tests/cube_with_error/ops.snap @@ -14,6 +14,34 @@ description: Operations executed cube_with_error.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +74,34 @@ description: Operations executed cube_with_error.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -108,6 +164,20 @@ description: Operations executed cube_with_error.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/double_map_fn/ops.snap b/rust/kcl-lib/tests/double_map_fn/ops.snap index 7dd6bc9f6..bbaeab6cc 100644 --- a/rust/kcl-lib/tests/double_map_fn/ops.snap +++ b/rust/kcl-lib/tests/double_map_fn/ops.snap @@ -27,57 +27,23 @@ description: Operations executed double_map_fn.kcl }, "labeledArgs": {} }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Number", - "value": 1.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 }, - "sourceRange": [] - }, - "labeledArgs": {} - }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Number", - "value": 2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + { + "type": "VariableDeclarationDeclaration" }, - "sourceRange": [] - }, - "labeledArgs": {} + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] }, "sourceRange": [] }, @@ -105,6 +71,24 @@ description: Operations executed double_map_fn.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -131,6 +115,112 @@ description: Operations executed double_map_fn.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + }, + "labeledArgs": {} + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + }, + "labeledArgs": {} + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -157,6 +247,24 @@ description: Operations executed double_map_fn.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/error_inside_fn_also_has_source_range_of_call_site_recursive/ops.snap b/rust/kcl-lib/tests/error_inside_fn_also_has_source_range_of_call_site_recursive/ops.snap index 8276ab322..ace3f12b1 100644 --- a/rust/kcl-lib/tests/error_inside_fn_also_has_source_range_of_call_site_recursive/ops.snap +++ b/rust/kcl-lib/tests/error_inside_fn_also_has_source_range_of_call_site_recursive/ops.snap @@ -18,6 +18,30 @@ description: Operations executed error_inside_fn_also_has_source_range_of_call_s }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -35,6 +59,17 @@ description: Operations executed error_inside_fn_also_has_source_range_of_call_s }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/ops.snap b/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/ops.snap index bac222b49..d193694ea 100644 --- a/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/ops.snap +++ b/rust/kcl-lib/tests/error_revolve_on_edge_get_edge/ops.snap @@ -14,6 +14,24 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -70,6 +106,24 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -110,6 +164,24 @@ description: Operations executed error_revolve_on_edge_get_edge.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/error_with_point_shows_numeric_units/ops.snap b/rust/kcl-lib/tests/error_with_point_shows_numeric_units/ops.snap index fdb45718f..d18ef2959 100644 --- a/rust/kcl-lib/tests/error_with_point_shows_numeric_units/ops.snap +++ b/rust/kcl-lib/tests/error_with_point_shows_numeric_units/ops.snap @@ -14,6 +14,21 @@ description: Operations executed error_with_point_shows_numeric_units.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/execute_engine_error_return/ops.snap b/rust/kcl-lib/tests/execute_engine_error_return/ops.snap index 6fdc1b1e3..42aec500b 100644 --- a/rust/kcl-lib/tests/execute_engine_error_return/ops.snap +++ b/rust/kcl-lib/tests/execute_engine_error_return/ops.snap @@ -14,6 +14,24 @@ description: Operations executed execute_engine_error_return.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed execute_engine_error_return.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [], "isError": true } diff --git a/rust/kcl-lib/tests/fillet-and-shell/ops.snap b/rust/kcl-lib/tests/fillet-and-shell/ops.snap index b4e75c64b..fb28595df 100644 --- a/rust/kcl-lib/tests/fillet-and-shell/ops.snap +++ b/rust/kcl-lib/tests/fillet-and-shell/ops.snap @@ -14,6 +14,24 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +45,24 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +95,24 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -115,82 +169,199 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -217,6 +388,37 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -242,6 +444,37 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -267,6 +500,93 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -299,37 +619,36 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 4.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] }, "sourceRange": [] }, @@ -363,6 +682,37 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -395,6 +745,100 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -455,6 +899,17 @@ description: Operations executed fillet-and-shell.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -515,6 +970,17 @@ description: Operations executed fillet-and-shell.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -575,6 +1041,17 @@ description: Operations executed fillet-and-shell.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -635,6 +1112,17 @@ description: Operations executed fillet-and-shell.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -679,6 +1167,17 @@ description: Operations executed fillet-and-shell.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/fillet_duplicate_tags/ops.snap b/rust/kcl-lib/tests/fillet_duplicate_tags/ops.snap index 3d6faf99b..9636f5880 100644 --- a/rust/kcl-lib/tests/fillet_duplicate_tags/ops.snap +++ b/rust/kcl-lib/tests/fillet_duplicate_tags/ops.snap @@ -14,6 +14,24 @@ description: Operations executed fillet_duplicate_tags.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,21 @@ description: Operations executed fillet_duplicate_tags.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -99,6 +132,21 @@ description: Operations executed fillet_duplicate_tags.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [], "isError": true } diff --git a/rust/kcl-lib/tests/flush_batch_on_end/ops.snap b/rust/kcl-lib/tests/flush_batch_on_end/ops.snap index cdcdeeea3..b6d37bc7e 100644 --- a/rust/kcl-lib/tests/flush_batch_on_end/ops.snap +++ b/rust/kcl-lib/tests/flush_batch_on_end/ops.snap @@ -14,6 +14,20 @@ description: Operations executed flush_batch_on_end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -39,6 +53,24 @@ description: Operations executed flush_batch_on_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -71,6 +103,20 @@ description: Operations executed flush_batch_on_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/function_sketch/ops.snap b/rust/kcl-lib/tests/function_sketch/ops.snap index 9c2b713cb..d355f1276 100644 --- a/rust/kcl-lib/tests/function_sketch/ops.snap +++ b/rust/kcl-lib/tests/function_sketch/ops.snap @@ -14,6 +14,37 @@ description: Operations executed function_sketch.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +77,37 @@ description: Operations executed function_sketch.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -106,6 +168,20 @@ description: Operations executed function_sketch.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/function_sketch_with_position/ops.snap b/rust/kcl-lib/tests/function_sketch_with_position/ops.snap index 983c1aaf5..7c0c0ff31 100644 --- a/rust/kcl-lib/tests/function_sketch_with_position/ops.snap +++ b/rust/kcl-lib/tests/function_sketch_with_position/ops.snap @@ -14,6 +14,37 @@ description: Operations executed function_sketch_with_position.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +77,37 @@ description: Operations executed function_sketch_with_position.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -140,6 +202,20 @@ description: Operations executed function_sketch_with_position.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/helix_ccw/ops.snap b/rust/kcl-lib/tests/helix_ccw/ops.snap index 9270c97c0..83db43fdf 100644 --- a/rust/kcl-lib/tests/helix_ccw/ops.snap +++ b/rust/kcl-lib/tests/helix_ccw/ops.snap @@ -14,6 +14,24 @@ description: Operations executed helix_ccw.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed helix_ccw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -105,6 +141,24 @@ description: Operations executed helix_ccw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/helix_simple/ops.snap b/rust/kcl-lib/tests/helix_simple/ops.snap index 0bd8bd803..cf6174336 100644 --- a/rust/kcl-lib/tests/helix_simple/ops.snap +++ b/rust/kcl-lib/tests/helix_simple/ops.snap @@ -14,6 +14,24 @@ description: Operations executed helix_simple.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -96,6 +114,20 @@ description: Operations executed helix_simple.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/i_shape/ops.snap b/rust/kcl-lib/tests/i_shape/ops.snap index 6f1195cf6..517b0719a 100644 --- a/rust/kcl-lib/tests/i_shape/ops.snap +++ b/rust/kcl-lib/tests/i_shape/ops.snap @@ -14,6 +14,24 @@ description: Operations executed i_shape.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +45,24 @@ description: Operations executed i_shape.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -52,6 +88,24 @@ description: Operations executed i_shape.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -84,6 +138,24 @@ description: Operations executed i_shape.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/import_async/ops.snap b/rust/kcl-lib/tests/import_async/ops.snap index 4926fd474..1415eb59f 100644 --- a/rust/kcl-lib/tests/import_async/ops.snap +++ b/rust/kcl-lib/tests/import_async/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_async.kcl "name": "2-5-long-m8-chc-screw.stl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -23,6 +31,37 @@ description: Operations executed import_async.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -36,6 +75,50 @@ description: Operations executed import_async.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -49,6 +132,50 @@ description: Operations executed import_async.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -62,6 +189,50 @@ description: Operations executed import_async.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -92,6 +263,53 @@ description: Operations executed import_async.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -122,6 +340,53 @@ description: Operations executed import_async.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -152,6 +417,53 @@ description: Operations executed import_async.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -192,6 +504,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -232,6 +592,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -272,6 +680,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -312,6 +768,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -352,6 +856,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -392,6 +944,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -432,6 +1032,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -472,6 +1120,54 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -512,30 +1208,53 @@ description: Operations executed import_async.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -562,6 +1281,50 @@ description: Operations executed import_async.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -587,6 +1350,119 @@ description: Operations executed import_async.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -615,6 +1491,33 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -643,6 +1546,33 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -671,6 +1601,33 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -703,6 +1660,33 @@ description: Operations executed import_async.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -795,6 +1779,17 @@ description: Operations executed import_async.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -825,6 +1820,21 @@ description: Operations executed import_async.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_constant/ops.snap b/rust/kcl-lib/tests/import_constant/ops.snap index d1eaeead0..24eec7631 100644 --- a/rust/kcl-lib/tests/import_constant/ops.snap +++ b/rust/kcl-lib/tests/import_constant/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_constant.kcl "name": "export_constant.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_export/ops.snap b/rust/kcl-lib/tests/import_export/ops.snap index 0db7f30e6..84d254996 100644 --- a/rust/kcl-lib/tests/import_export/ops.snap +++ b/rust/kcl-lib/tests/import_export/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_export.kcl "name": "export_1.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_foreign/ops.snap b/rust/kcl-lib/tests/import_foreign/ops.snap index 989ccce14..1f9d38e53 100644 --- a/rust/kcl-lib/tests/import_foreign/ops.snap +++ b/rust/kcl-lib/tests/import_foreign/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_foreign.kcl "name": "cube.gltf", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_function_not_sketch/ops.snap b/rust/kcl-lib/tests/import_function_not_sketch/ops.snap index 6802c524d..fd10ae348 100644 --- a/rust/kcl-lib/tests/import_function_not_sketch/ops.snap +++ b/rust/kcl-lib/tests/import_function_not_sketch/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_function_not_sketch.kcl "name": "my_functions.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_glob/ops.snap b/rust/kcl-lib/tests/import_glob/ops.snap index 99dfab381..19ecb883c 100644 --- a/rust/kcl-lib/tests/import_glob/ops.snap +++ b/rust/kcl-lib/tests/import_glob/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_glob.kcl "name": "export_constant.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_mesh_clone/ops.snap b/rust/kcl-lib/tests/import_mesh_clone/ops.snap index 1197e3295..b20311a1c 100644 --- a/rust/kcl-lib/tests/import_mesh_clone/ops.snap +++ b/rust/kcl-lib/tests/import_mesh_clone/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_mesh_clone.kcl "name": "cube.obj", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -56,6 +64,21 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -69,6 +92,24 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -99,6 +140,24 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -112,6 +171,24 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -142,6 +219,24 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -155,6 +250,24 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -185,6 +298,24 @@ description: Operations executed import_mesh_clone.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_only_at_top_level/ops.snap b/rust/kcl-lib/tests/import_only_at_top_level/ops.snap index b6e2c52dc..e01a2f63b 100644 --- a/rust/kcl-lib/tests/import_only_at_top_level/ops.snap +++ b/rust/kcl-lib/tests/import_only_at_top_level/ops.snap @@ -10,6 +10,27 @@ description: Operations executed import_only_at_top_level.kcl "name": "empty.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -21,6 +42,17 @@ description: Operations executed import_only_at_top_level.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_side_effect/ops.snap b/rust/kcl-lib/tests/import_side_effect/ops.snap index 7c6ba1a12..5d96c7b63 100644 --- a/rust/kcl-lib/tests/import_side_effect/ops.snap +++ b/rust/kcl-lib/tests/import_side_effect/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_side_effect.kcl "name": "export_side_effect.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_transform/ops.snap b/rust/kcl-lib/tests/import_transform/ops.snap index 488e3b4ef..1fd3d65eb 100644 --- a/rust/kcl-lib/tests/import_transform/ops.snap +++ b/rust/kcl-lib/tests/import_transform/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_transform.kcl "name": "2-5-long-m8-chc-screw.stl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -72,6 +80,21 @@ description: Operations executed import_transform.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -134,6 +157,21 @@ description: Operations executed import_transform.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -181,6 +219,21 @@ description: Operations executed import_transform.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_whole_simple/ops.snap b/rust/kcl-lib/tests/import_whole_simple/ops.snap index 8d0c98646..daf664515 100644 --- a/rust/kcl-lib/tests/import_whole_simple/ops.snap +++ b/rust/kcl-lib/tests/import_whole_simple/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_whole_simple.kcl "name": "exported_mod.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -42,6 +50,24 @@ description: Operations executed import_whole_simple.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/import_whole_transitive_import/ops.snap b/rust/kcl-lib/tests/import_whole_transitive_import/ops.snap index 98a4323a7..4307dfd30 100644 --- a/rust/kcl-lib/tests/import_whole_transitive_import/ops.snap +++ b/rust/kcl-lib/tests/import_whole_transitive_import/ops.snap @@ -10,6 +10,14 @@ description: Operations executed import_whole_transitive_import.kcl "name": "part.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -42,6 +50,24 @@ description: Operations executed import_whole_transitive_import.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/intersect_cubes/ops.snap b/rust/kcl-lib/tests/intersect_cubes/ops.snap index 19166f623..f13c5913c 100644 --- a/rust/kcl-lib/tests/intersect_cubes/ops.snap +++ b/rust/kcl-lib/tests/intersect_cubes/ops.snap @@ -14,6 +14,34 @@ description: Operations executed intersect_cubes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +55,34 @@ description: Operations executed intersect_cubes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +115,34 @@ description: Operations executed intersect_cubes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +175,34 @@ description: Operations executed intersect_cubes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -153,6 +265,20 @@ description: Operations executed intersect_cubes.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -215,6 +341,24 @@ description: Operations executed intersect_cubes.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -247,6 +391,24 @@ description: Operations executed intersect_cubes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -273,6 +435,20 @@ description: Operations executed intersect_cubes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/involute_circular_units/ops.snap b/rust/kcl-lib/tests/involute_circular_units/ops.snap index 14bf5bf79..f76cb845b 100644 --- a/rust/kcl-lib/tests/involute_circular_units/ops.snap +++ b/rust/kcl-lib/tests/involute_circular_units/ops.snap @@ -14,6 +14,24 @@ description: Operations executed involute_circular_units.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -54,6 +72,28 @@ description: Operations executed involute_circular_units.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -79,6 +119,24 @@ description: Operations executed involute_circular_units.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -111,6 +169,24 @@ description: Operations executed involute_circular_units.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/axial-fan/ops.snap b/rust/kcl-lib/tests/kcl_samples/axial-fan/ops.snap index 2687ec3f2..62fd46d9d 100644 --- a/rust/kcl-lib/tests/kcl_samples/axial-fan/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/axial-fan/ops.snap @@ -10,6 +10,14 @@ description: Operations executed axial-fan.kcl "name": "fan-housing.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed axial-fan.kcl "name": "motor.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed axial-fan.kcl "name": "fan.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/ball-bearing/ops.snap b/rust/kcl-lib/tests/kcl_samples/ball-bearing/ops.snap index ba8ea9088..67dadd949 100644 --- a/rust/kcl-lib/tests/kcl_samples/ball-bearing/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/ball-bearing/ops.snap @@ -14,6 +14,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -44,6 +62,27 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -69,6 +108,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -101,6 +158,20 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -114,6 +185,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -200,6 +289,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -340,6 +447,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -353,6 +478,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -439,6 +582,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -579,6 +740,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -592,6 +771,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -694,6 +891,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -834,6 +1049,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -847,6 +1080,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -877,6 +1128,27 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -902,6 +1174,24 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -934,6 +1224,20 @@ description: Operations executed ball-bearing.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/ball-joint-rod-end/ops.snap b/rust/kcl-lib/tests/kcl_samples/ball-joint-rod-end/ops.snap index 1de5073a8..e97bfb4be 100644 --- a/rust/kcl-lib/tests/kcl_samples/ball-joint-rod-end/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/ball-joint-rod-end/ops.snap @@ -41,6 +41,20 @@ description: Operations executed ball-joint-rod-end.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -54,6 +68,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -94,6 +122,28 @@ description: Operations executed ball-joint-rod-end.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -196,6 +246,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -209,6 +277,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -249,6 +331,28 @@ description: Operations executed ball-joint-rod-end.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -351,6 +455,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -391,6 +509,20 @@ description: Operations executed ball-joint-rod-end.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -404,6 +536,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -506,6 +652,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -519,6 +679,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -551,6 +725,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -615,6 +807,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -659,6 +869,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -703,6 +931,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -729,6 +975,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -742,6 +1002,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -774,6 +1048,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -838,6 +1130,24 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -873,6 +1183,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -899,6 +1223,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 37 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -929,6 +1267,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 38 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -942,6 +1294,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 39 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -974,6 +1340,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1009,6 +1389,20 @@ description: Operations executed ball-joint-rod-end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/bench/ops.snap b/rust/kcl-lib/tests/kcl_samples/bench/ops.snap index 507dc1c8b..50759df13 100644 --- a/rust/kcl-lib/tests/kcl_samples/bench/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/bench/ops.snap @@ -10,22 +10,13 @@ description: Operations executed bench.kcl "name": "bench-parts.kcl", "moduleId": 0 }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "divider", - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {} + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] }, "sourceRange": [] }, @@ -44,6 +35,45 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "divider", + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {} + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -74,6 +104,20 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -91,6 +135,17 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -121,6 +176,20 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -155,6 +224,17 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -185,6 +265,20 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -219,6 +313,17 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -249,6 +354,20 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -283,6 +402,17 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -313,6 +443,20 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -347,6 +491,17 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -381,100 +536,112 @@ description: Operations executed bench.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "dividerSketch", - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 }, - "sourceRange": [] + { + "type": "ExpressionStatementExpr" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" }, - "labeledArgs": {} + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -493,6 +660,9 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -510,6 +680,29 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "dividerSketch", + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {} + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -542,37 +735,8 @@ description: Operations executed bench.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -606,22 +770,43 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "dividerSketch", - "functionSourceRange": [], - "unlabeledArg": { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", "value": { - "type": "Plane", - "artifact_id": "[uuid]" + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [] - }, - "labeledArgs": {} + } + }, + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -640,6 +825,9 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -657,6 +845,29 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "dividerSketch", + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {} + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -689,37 +900,8 @@ description: Operations executed bench.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -753,6 +935,44 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -797,49 +1017,8 @@ description: Operations executed bench.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "shell", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "faces": { - "value": { - "type": "Array", - "value": [ - { - "type": "String", - "value": "end" - } - ] - }, - "sourceRange": [] - }, - "thickness": { - "value": { - "type": "Number", - "value": 1.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -885,6 +1064,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -906,7 +1088,7 @@ description: Operations executed bench.kcl "value": [ { "type": "String", - "value": "start" + "value": "end" } ] }, @@ -929,6 +1111,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -973,6 +1158,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1017,6 +1205,56 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "shell", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "faces": { + "value": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "start" + } + ] + }, + "sourceRange": [] + }, + "thickness": { + "value": { + "type": "Number", + "value": 1.5, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1030,6 +1268,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1043,6 +1284,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1095,6 +1339,9 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1127,6 +1374,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1179,6 +1429,9 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1211,6 +1464,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1224,6 +1480,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1241,6 +1500,9 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1290,6 +1552,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1303,6 +1568,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1320,6 +1588,9 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1363,6 +1634,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1376,6 +1650,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1389,6 +1666,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1402,6 +1682,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1415,6 +1698,9 @@ description: Operations executed bench.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1432,6 +1718,9 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1449,6 +1738,9 @@ description: Operations executed bench.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1479,6 +1771,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1509,6 +1804,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1543,6 +1841,9 @@ description: Operations executed bench.kcl } } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1577,35 +1878,8 @@ description: Operations executed bench.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 20.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -1637,6 +1911,42 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 20.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1662,6 +1972,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1687,6 +2000,9 @@ description: Operations executed bench.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/bone-plate/ops.snap b/rust/kcl-lib/tests/kcl_samples/bone-plate/ops.snap index 8892d4a79..6b1926051 100644 --- a/rust/kcl-lib/tests/kcl_samples/bone-plate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/bone-plate/ops.snap @@ -14,6 +14,24 @@ description: Operations executed bone-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -123,141 +141,351 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -100.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 19 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -291,37 +519,33 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -100.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -355,37 +579,33 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -100.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -419,6 +639,34 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -451,6 +699,34 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -483,6 +759,214 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -100.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -527,6 +1011,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -571,6 +1069,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -615,6 +1127,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -659,6 +1185,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -703,6 +1243,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -747,6 +1301,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -791,6 +1359,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -835,6 +1417,20 @@ description: Operations executed bone-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -912,6 +1508,20 @@ description: Operations executed bone-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/bottle/ops.snap b/rust/kcl-lib/tests/kcl_samples/bottle/ops.snap index f28f71fee..e00b485a5 100644 --- a/rust/kcl-lib/tests/kcl_samples/bottle/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/bottle/ops.snap @@ -14,6 +14,24 @@ description: Operations executed bottle.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed bottle.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -69,6 +105,24 @@ description: Operations executed bottle.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -101,6 +155,24 @@ description: Operations executed bottle.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -145,6 +217,24 @@ description: Operations executed bottle.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap b/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap index 215c36cd8..17fc3295f 100644 --- a/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/bracket/ops.snap @@ -14,6 +14,24 @@ description: Operations executed bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -70,6 +106,24 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -125,6 +179,24 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -149,6 +221,24 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -192,6 +282,24 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -236,6 +344,17 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -280,6 +399,17 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -338,6 +468,17 @@ description: Operations executed bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/brake-rotor/ops.snap b/rust/kcl-lib/tests/kcl_samples/brake-rotor/ops.snap index 5c8dc5b63..89ee5dede 100644 --- a/rust/kcl-lib/tests/kcl_samples/brake-rotor/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/brake-rotor/ops.snap @@ -14,6 +14,33 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -27,6 +54,33 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -52,6 +106,37 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -77,6 +162,37 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -112,6 +228,33 @@ description: Operations executed brake-rotor.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -147,40 +290,32 @@ description: Operations executed brake-rotor.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "drillHole", - "functionSourceRange": [], - "unlabeledArg": null, - "labeledArgs": { - "activeSketch": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 }, - "t": { - "value": { - "type": "Number", - "value": 0.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" } - } + ] }, "sourceRange": [] }, @@ -217,6 +352,33 @@ description: Operations executed brake-rotor.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -237,7 +399,7 @@ description: Operations executed brake-rotor.kcl "t": { "value": { "type": "Number", - "value": 0.8, + "value": 0.5, "ty": { "type": "Default", "len": { @@ -252,6 +414,33 @@ description: Operations executed brake-rotor.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -287,6 +476,95 @@ description: Operations executed brake-rotor.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "drillHole", + "functionSourceRange": [], + "unlabeledArg": null, + "labeledArgs": { + "activeSketch": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "t": { + "value": { + "type": "Number", + "value": 0.8, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -527,6 +805,33 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -767,6 +1072,33 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -799,6 +1131,33 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -831,6 +1190,33 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -898,6 +1284,20 @@ description: Operations executed brake-rotor.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -928,6 +1328,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -941,6 +1355,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -973,6 +1401,24 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1029,6 +1475,24 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1169,6 +1633,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1199,6 +1677,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1266,6 +1758,20 @@ description: Operations executed brake-rotor.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1279,6 +1785,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1365,6 +1885,24 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 37 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -1389,6 +1927,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 38 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1450,6 +2002,20 @@ description: Operations executed brake-rotor.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/ops.snap b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/ops.snap index aad72b0e4..b41e137a7 100644 --- a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/ops.snap @@ -10,6 +10,14 @@ description: Operations executed car-wheel-assembly.kcl "name": "car-wheel.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed car-wheel-assembly.kcl "name": "car-rotor.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed car-wheel-assembly.kcl "name": "brake-caliper.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -37,6 +61,14 @@ description: Operations executed car-wheel-assembly.kcl "name": "lug-nut.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +78,14 @@ description: Operations executed car-wheel-assembly.kcl "name": "car-tire.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -139,6 +179,21 @@ description: Operations executed car-wheel-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -279,6 +334,21 @@ description: Operations executed car-wheel-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -343,6 +413,21 @@ description: Operations executed car-wheel-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -352,6 +437,9 @@ description: Operations executed car-wheel-assembly.kcl "name": "parameters.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/clock/ops.snap b/rust/kcl-lib/tests/kcl_samples/clock/ops.snap index af2bea080..c926164bc 100644 --- a/rust/kcl-lib/tests/kcl_samples/clock/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/clock/ops.snap @@ -14,6 +14,20 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -53,6 +67,24 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -97,6 +129,24 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -120,6 +170,20 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -145,6 +209,17 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -184,6 +259,24 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -228,256 +321,720 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -509,35 +1066,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -569,35 +1127,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -629,35 +1188,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -689,35 +1249,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -749,35 +1310,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -809,35 +1371,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -869,35 +1432,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -929,6 +1493,37 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -959,6 +1554,525 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -991,37 +2105,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1055,37 +2165,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1119,37 +2225,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1183,37 +2285,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1247,37 +2345,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1311,37 +2405,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1375,37 +2465,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1439,6 +2525,34 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1471,6 +2585,34 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1503,6 +2645,454 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1516,74 +3106,156 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -1615,35 +3287,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -1675,25 +3348,54 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "extrude", + "name": "offsetPlane", "unlabeledArg": { "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "type": "Plane", + "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": { - "length": { + "offset": { "value": { "type": "Number", - "value": 10.0, + "value": 50.0, "ty": { "type": "Default", "len": { @@ -1707,6 +3409,98 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1739,6 +3533,34 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 14 + } + ] + }, "sourceRange": [] }, { @@ -1771,6 +3593,34 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 14 + } + ] + }, "sourceRange": [] }, { @@ -1803,6 +3653,94 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 14 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 14 + } + ] + }, "sourceRange": [] }, { @@ -1816,6 +3754,34 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1829,6 +3795,34 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1842,6 +3836,34 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1855,6 +3877,34 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1868,35 +3918,33 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -1928,35 +3976,36 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -1988,6 +4037,37 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -2018,6 +4098,159 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -2050,37 +4283,33 @@ description: Operations executed clock.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 10.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] }, "sourceRange": [] }, @@ -2114,6 +4343,34 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -2146,6 +4403,34 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -2178,6 +4463,94 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 10.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -2222,6 +4595,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2266,6 +4650,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2310,6 +4705,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2354,6 +4760,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2398,6 +4815,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2442,6 +4870,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 37 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2486,6 +4925,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 38 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2530,6 +4980,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 39 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2574,6 +5035,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 40 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2618,6 +5090,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2662,6 +5145,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2706,6 +5200,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2750,6 +5255,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2794,6 +5310,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2838,6 +5365,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 46 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2882,6 +5420,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 47 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2926,6 +5475,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 48 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2970,6 +5530,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 49 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3014,6 +5585,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 50 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3058,6 +5640,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 51 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3102,6 +5695,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 52 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3146,6 +5750,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 53 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3190,6 +5805,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 54 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3234,6 +5860,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 55 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3278,6 +5915,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 56 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3322,6 +5970,17 @@ description: Operations executed clock.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 57 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3345,6 +6004,21 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 58 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3377,6 +6051,21 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 58 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -3390,6 +6079,20 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 59 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3420,6 +6123,23 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 59 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -3445,6 +6165,21 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 62 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3477,6 +6212,21 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 62 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3490,6 +6240,20 @@ description: Operations executed clock.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 63 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3520,6 +6284,23 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 63 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -3545,6 +6326,21 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3577,6 +6373,21 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3600,6 +6411,20 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 71 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3632,6 +6457,24 @@ description: Operations executed clock.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 72 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/cold-plate/ops.snap b/rust/kcl-lib/tests/kcl_samples/cold-plate/ops.snap index 44837f65b..fe1040853 100644 --- a/rust/kcl-lib/tests/kcl_samples/cold-plate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/cold-plate/ops.snap @@ -14,6 +14,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -53,6 +71,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 18 + } + ] + }, "sourceRange": [] }, { @@ -66,6 +102,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -96,6 +150,27 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -109,6 +184,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -139,6 +232,27 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -164,6 +278,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -189,6 +321,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -202,6 +352,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -241,6 +409,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -331,6 +517,24 @@ description: Operations executed cold-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/color-cube/ops.snap b/rust/kcl-lib/tests/kcl_samples/color-cube/ops.snap index 86f13e16b..1e2408668 100644 --- a/rust/kcl-lib/tests/kcl_samples/color-cube/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/color-cube/ops.snap @@ -31,35 +31,19 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": -50.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -91,6 +75,20 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -121,6 +119,64 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": -50.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -151,6 +207,20 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -181,37 +251,19 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 1.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -245,37 +297,33 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 1.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -309,6 +357,34 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -341,6 +417,34 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -373,6 +477,154 @@ description: Operations executed color-cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 1.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -399,6 +651,17 @@ description: Operations executed color-cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -425,6 +688,17 @@ description: Operations executed color-cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -451,6 +725,17 @@ description: Operations executed color-cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -477,6 +762,17 @@ description: Operations executed color-cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -503,6 +799,17 @@ description: Operations executed color-cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -529,6 +836,17 @@ description: Operations executed color-cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap index bdc433f82..10c55d6ab 100644 --- a/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/counterdrilled-weldment/ops.snap @@ -14,6 +14,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -39,6 +57,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -71,6 +107,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -127,28 +181,23 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] }, "sourceRange": [] }, @@ -173,6 +222,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -196,6 +276,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -219,6 +330,91 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -251,37 +447,36 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.188, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -315,6 +510,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -347,14 +573,45 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "startSketchOn", + "name": "extrude", "unlabeledArg": { "value": { - "type": "Solid", + "type": "Sketch", "value": { "artifactId": "[uuid]" } @@ -362,14 +619,54 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] }, "labeledArgs": { - "face": { + "length": { "value": { - "type": "String", - "value": "start" + "type": "Number", + "value": -0.188, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -393,6 +690,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -416,6 +744,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -439,6 +798,91 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "start" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -471,37 +915,36 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.313, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -535,6 +978,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -567,6 +1041,100 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -0.313, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -612,50 +1180,36 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "chamfer", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.133, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - }, - "tags": { - "value": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "value": "hole01", - "artifact_id": "[uuid]" - } - ] - }, - "sourceRange": [] - } + ] }, "sourceRange": [] }, @@ -702,6 +1256,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -747,6 +1332,113 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "chamfer", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.133, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + }, + "tags": { + "value": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "hole01", + "artifact_id": "[uuid]" + } + ] + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -791,6 +1483,17 @@ description: Operations executed counterdrilled-weldment.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -835,6 +1538,17 @@ description: Operations executed counterdrilled-weldment.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -879,6 +1593,17 @@ description: Operations executed counterdrilled-weldment.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -923,6 +1648,17 @@ description: Operations executed counterdrilled-weldment.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -936,6 +1672,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -968,6 +1722,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -981,6 +1753,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1011,6 +1801,27 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1036,6 +1847,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1068,6 +1897,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1098,6 +1945,24 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -1111,6 +1976,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1124,6 +2020,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1163,6 +2090,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1202,6 +2160,37 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1342,6 +2331,33 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1482,6 +2498,33 @@ description: Operations executed counterdrilled-weldment.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1508,6 +2551,17 @@ description: Operations executed counterdrilled-weldment.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -1534,6 +2588,17 @@ description: Operations executed counterdrilled-weldment.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap index 374ff4eb2..ae634cf1f 100644 --- a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ops.snap @@ -14,6 +14,24 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -54,6 +72,28 @@ description: Operations executed countersunk-plate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -79,6 +119,24 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] }, { @@ -111,6 +169,24 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -134,6 +210,34 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -157,6 +261,34 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -189,6 +321,34 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -221,6 +381,34 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -266,6 +454,34 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -311,6 +527,34 @@ description: Operations executed countersunk-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -337,6 +581,17 @@ description: Operations executed countersunk-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -363,6 +618,17 @@ description: Operations executed countersunk-plate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/cpu-cooler/ops.snap b/rust/kcl-lib/tests/kcl_samples/cpu-cooler/ops.snap index 3acac7003..654dc61ec 100644 --- a/rust/kcl-lib/tests/kcl_samples/cpu-cooler/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/cpu-cooler/ops.snap @@ -10,6 +10,14 @@ description: Operations executed cpu-cooler.kcl "name": "parameters.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed cpu-cooler.kcl "name": "fan-housing.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed cpu-cooler.kcl "name": "motor.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -37,6 +61,14 @@ description: Operations executed cpu-cooler.kcl "name": "fan.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +78,14 @@ description: Operations executed cpu-cooler.kcl "name": "heat-sink.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -55,6 +95,14 @@ description: Operations executed cpu-cooler.kcl "name": "mounting-wire.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -64,6 +112,14 @@ description: Operations executed cpu-cooler.kcl "name": "removable-sticker.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -112,6 +168,34 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -171,6 +255,34 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -278,6 +390,34 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -368,6 +508,34 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -469,6 +637,34 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -618,6 +814,34 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -639,6 +863,17 @@ description: Operations executed cpu-cooler.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -671,6 +906,17 @@ description: Operations executed cpu-cooler.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -751,6 +997,17 @@ description: Operations executed cpu-cooler.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -914,6 +1171,21 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1101,6 +1373,21 @@ description: Operations executed cpu-cooler.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/curtain-wall-anchor-plate/ops.snap b/rust/kcl-lib/tests/kcl_samples/curtain-wall-anchor-plate/ops.snap index c2fc60a59..0f649a966 100644 --- a/rust/kcl-lib/tests/kcl_samples/curtain-wall-anchor-plate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/curtain-wall-anchor-plate/ops.snap @@ -14,6 +14,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -44,6 +71,36 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -76,6 +133,37 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -120,6 +208,37 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -164,6 +283,37 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -177,6 +327,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -212,6 +389,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -244,6 +448,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -267,6 +498,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -299,6 +557,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -312,6 +597,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -342,6 +654,36 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -374,6 +716,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -397,6 +766,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -432,6 +828,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -464,6 +887,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -508,6 +958,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -534,6 +1011,33 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -610,6 +1114,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -623,6 +1141,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -687,6 +1219,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -719,6 +1269,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -734,6 +1298,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -798,6 +1380,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -833,6 +1433,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -868,6 +1482,20 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -928,6 +1556,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -992,6 +1638,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1056,6 +1720,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1146,6 +1828,24 @@ description: Operations executed curtain-wall-anchor-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/ops.snap index 8efb0daa6..fb0d11300 100644 --- a/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/cycloidal-gear/ops.snap @@ -14,6 +14,50 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +71,50 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -40,6 +128,50 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -70,6 +202,53 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -100,6 +279,53 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -130,30 +356,52 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -180,6 +428,50 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -205,6 +497,119 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -237,6 +642,33 @@ description: Operations executed cycloidal-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -263,6 +695,40 @@ description: Operations executed cycloidal-gear.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "ArrayElement", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -289,6 +755,40 @@ description: Operations executed cycloidal-gear.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "ArrayElement", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -315,6 +815,40 @@ description: Operations executed cycloidal-gear.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "ArrayElement", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -387,6 +921,17 @@ description: Operations executed cycloidal-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap b/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap index d06b03d3e..8191aa0b2 100644 --- a/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/dodecahedron/ops.snap @@ -14,6 +14,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -40,6 +102,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -53,6 +146,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -66,6 +190,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -79,6 +234,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -92,6 +278,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -105,6 +322,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -118,6 +366,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -131,6 +410,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -144,6 +454,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -157,6 +498,37 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -189,6 +561,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -221,6 +620,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -253,6 +679,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -285,6 +738,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -317,6 +797,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -349,6 +856,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -381,6 +915,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -413,6 +974,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -445,6 +1033,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -477,6 +1092,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -509,6 +1151,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -541,6 +1210,33 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -605,6 +1301,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -669,6 +1393,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -733,6 +1485,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -797,6 +1577,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -861,6 +1669,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -925,6 +1761,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -989,6 +1853,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1053,6 +1945,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1117,6 +2037,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1181,6 +2129,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1245,6 +2221,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1309,6 +2313,34 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1379,6 +2411,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1449,6 +2495,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1519,6 +2579,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1589,6 +2663,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1659,6 +2747,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1729,6 +2831,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1799,6 +2915,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1869,6 +2999,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1939,6 +3083,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2009,6 +3167,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2079,6 +3251,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2149,6 +3335,20 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2175,6 +3375,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2201,6 +3433,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2227,6 +3491,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2253,6 +3549,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2279,6 +3607,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2305,6 +3665,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2331,6 +3723,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2357,6 +3781,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2383,6 +3839,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2409,6 +3897,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2435,6 +3955,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2461,6 +4013,38 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2532,6 +4116,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2603,6 +4219,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2674,6 +4322,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2745,6 +4425,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2816,6 +4528,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2887,6 +4631,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2958,6 +4734,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3029,6 +4837,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3100,6 +4940,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3171,6 +5043,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3242,6 +5146,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3313,6 +5249,38 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -3349,6 +5317,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3385,6 +5377,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3421,6 +5437,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3457,6 +5497,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3493,6 +5557,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3529,6 +5617,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3565,6 +5677,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3601,6 +5737,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3637,6 +5797,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3673,6 +5857,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3709,6 +5917,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3745,6 +5977,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3771,6 +6027,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3797,6 +6090,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3823,6 +6153,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3849,6 +6216,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3875,6 +6279,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3901,6 +6342,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3927,6 +6405,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3953,6 +6468,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -3979,6 +6531,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -4005,6 +6594,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -4031,6 +6657,43 @@ description: Operations executed dodecahedron.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -4121,34 +6784,35 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 }, - "sourceRange": [] - }, - "labeledArgs": { - "accum": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryLeft" } - } + ] }, "sourceRange": [] }, @@ -4179,34 +6843,29 @@ description: Operations executed dodecahedron.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 }, - "sourceRange": [] - }, - "labeledArgs": { - "accum": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" } - } + ] }, "sourceRange": [] }, @@ -4237,34 +6896,29 @@ description: Operations executed dodecahedron.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 }, - "sourceRange": [] - }, - "labeledArgs": { - "accum": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" } - } + ] }, "sourceRange": [] }, @@ -4295,34 +6949,29 @@ description: Operations executed dodecahedron.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 }, - "sourceRange": [] - }, - "labeledArgs": { - "accum": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" } - } + ] }, "sourceRange": [] }, @@ -4353,34 +7002,29 @@ description: Operations executed dodecahedron.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": null, - "functionSourceRange": [], - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 }, - "sourceRange": [] - }, - "labeledArgs": { - "accum": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" } - } + ] }, "sourceRange": [] }, @@ -4411,6 +7055,30 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -4440,6 +7108,295 @@ description: Operations executed dodecahedron.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "accum": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "accum": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "accum": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "accum": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": null, + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "accum": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "ReturnStatementArg" + } + ] + }, "sourceRange": [] }, { @@ -4530,6 +7487,17 @@ description: Operations executed dodecahedron.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/enclosure/ops.snap b/rust/kcl-lib/tests/kcl_samples/enclosure/ops.snap index a30381df3..d3c7e386f 100644 --- a/rust/kcl-lib/tests/kcl_samples/enclosure/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/enclosure/ops.snap @@ -14,6 +14,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -102,6 +138,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -146,82 +200,199 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -248,6 +419,37 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -273,6 +475,37 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -298,6 +531,93 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -330,37 +650,32 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 67.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -394,6 +709,33 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -426,6 +768,92 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 67.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -470,6 +898,17 @@ description: Operations executed enclosure.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -514,6 +953,17 @@ description: Operations executed enclosure.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -558,6 +1008,17 @@ description: Operations executed enclosure.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -602,6 +1063,17 @@ description: Operations executed enclosure.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -615,30 +1087,23 @@ description: Operations executed enclosure.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -665,6 +1130,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -690,6 +1173,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -715,6 +1216,67 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -747,6 +1309,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -803,6 +1383,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -826,30 +1424,23 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -876,6 +1467,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -901,6 +1510,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -926,6 +1553,67 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -958,6 +1646,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1014,6 +1720,24 @@ description: Operations executed enclosure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/engine-valve/ops.snap b/rust/kcl-lib/tests/kcl_samples/engine-valve/ops.snap index f61c106c2..6515e5e7f 100644 --- a/rust/kcl-lib/tests/kcl_samples/engine-valve/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/engine-valve/ops.snap @@ -14,6 +14,20 @@ description: Operations executed engine-valve.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -116,6 +130,20 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +157,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -159,6 +205,27 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -191,6 +258,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -214,6 +299,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -246,6 +349,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -269,6 +390,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -301,6 +440,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -324,6 +481,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -356,6 +531,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -379,6 +572,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -411,6 +622,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -434,6 +663,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -466,6 +713,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -489,6 +754,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -521,6 +804,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -544,6 +845,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -583,6 +902,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -627,6 +964,24 @@ description: Operations executed engine-valve.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/ops.snap b/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/ops.snap index 889014356..619593fbd 100644 --- a/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/exhaust-manifold/ops.snap @@ -14,121 +14,344 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -155,30 +378,36 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -205,11 +434,42 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "sweep", + "name": "subtract2d", "unlabeledArg": { "value": { "type": "Sketch", @@ -220,7 +480,7 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] }, "labeledArgs": { - "path": { + "tool": { "value": { "type": "Sketch", "value": { @@ -230,6 +490,93 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -255,6 +602,37 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -280,6 +658,37 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -305,6 +714,93 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "sweep", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "path": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -397,6 +893,17 @@ description: Operations executed exhaust-manifold.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -489,6 +996,17 @@ description: Operations executed exhaust-manifold.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -581,6 +1099,17 @@ description: Operations executed exhaust-manifold.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -673,6 +1202,17 @@ description: Operations executed exhaust-manifold.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -686,30 +1226,23 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -736,30 +1269,23 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 19 + } + ] }, "sourceRange": [] }, @@ -786,30 +1312,23 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 20 + } + ] }, "sourceRange": [] }, @@ -836,6 +1355,24 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 21 + } + ] + }, "sourceRange": [] }, { @@ -861,6 +1398,24 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 22 + } + ] + }, "sourceRange": [] }, { @@ -886,6 +1441,153 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 23 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 24 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 25 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 26 + } + ] + }, "sourceRange": [] }, { @@ -918,6 +1620,24 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 27 + } + ] + }, "sourceRange": [] }, { @@ -966,6 +1686,24 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 28 + } + ] + }, "sourceRange": [] }, { @@ -1014,6 +1752,24 @@ description: Operations executed exhaust-manifold.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 29 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/flange/ops.snap b/rust/kcl-lib/tests/kcl_samples/flange/ops.snap index a41e9c620..4a620a82f 100644 --- a/rust/kcl-lib/tests/kcl_samples/flange/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/flange/ops.snap @@ -14,6 +14,24 @@ description: Operations executed flange.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +45,24 @@ description: Operations executed flange.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -75,6 +111,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -107,6 +161,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -130,6 +202,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -162,6 +252,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -185,6 +293,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -217,6 +343,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -240,6 +384,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -272,6 +434,24 @@ description: Operations executed flange.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap b/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap index 7410781e1..6029d8dc9 100644 --- a/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/focusrite-scarlett-mounting-bracket/ops.snap @@ -14,6 +14,37 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -74,6 +105,20 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -106,6 +151,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -162,6 +225,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -175,6 +256,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -200,6 +299,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -232,6 +349,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -280,6 +415,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -370,6 +523,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -383,6 +554,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -408,6 +597,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -440,6 +647,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -488,6 +713,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -578,6 +821,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -591,6 +852,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -623,6 +902,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -636,6 +933,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -668,6 +983,24 @@ description: Operations executed focusrite-scarlett-mounting-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/food-service-spatula/ops.snap b/rust/kcl-lib/tests/kcl_samples/food-service-spatula/ops.snap index 791293225..bb072eca7 100644 --- a/rust/kcl-lib/tests/kcl_samples/food-service-spatula/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/food-service-spatula/ops.snap @@ -23,6 +23,56 @@ description: Operations executed food-service-spatula.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "IfExpressionElse" + }, + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "IfExpressionThen" + }, + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "BinaryLeft" + } + ] + }, "sourceRange": [] }, { @@ -45,6 +95,56 @@ description: Operations executed food-service-spatula.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "IfExpressionElse" + }, + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "IfExpressionThen" + }, + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "BinaryLeft" + } + ] + }, "sourceRange": [] }, { @@ -67,6 +167,56 @@ description: Operations executed food-service-spatula.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "IfExpressionElse" + }, + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "IfExpressionThen" + }, + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "BinaryLeft" + } + ] + }, "sourceRange": [] }, { @@ -80,6 +230,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -183,6 +347,20 @@ description: Operations executed food-service-spatula.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -286,6 +464,20 @@ description: Operations executed food-service-spatula.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -389,30 +581,19 @@ description: Operations executed food-service-spatula.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -439,6 +620,24 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -464,6 +663,67 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -496,6 +756,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -544,6 +818,17 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -557,6 +842,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -587,6 +886,23 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -619,6 +935,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -667,6 +997,17 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -680,6 +1021,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -712,6 +1067,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -736,6 +1105,20 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -839,6 +1222,20 @@ description: Operations executed food-service-spatula.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -871,6 +1268,17 @@ description: Operations executed food-service-spatula.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/french-press/ops.snap b/rust/kcl-lib/tests/kcl_samples/french-press/ops.snap index 69d4dc9eb..b0cb5b665 100644 --- a/rust/kcl-lib/tests/kcl_samples/french-press/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/french-press/ops.snap @@ -14,6 +14,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -116,6 +134,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -129,6 +165,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -161,6 +215,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 19 + } + ] + }, "sourceRange": [] }, { @@ -301,6 +373,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 20 + } + ] + }, "sourceRange": [] }, { @@ -314,6 +404,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -344,6 +452,27 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -376,6 +505,20 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -399,6 +542,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -448,6 +609,20 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -461,6 +636,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -547,6 +740,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -560,6 +771,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -646,6 +875,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -659,6 +906,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -689,6 +954,27 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -714,6 +1000,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -746,6 +1050,20 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -769,6 +1087,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -848,6 +1184,20 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -871,6 +1221,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -926,6 +1294,20 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -939,6 +1321,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -971,6 +1371,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1015,6 +1433,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1028,6 +1464,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1114,6 +1568,24 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -1127,6 +1599,24 @@ description: Operations executed french-press.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1157,6 +1647,27 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1189,6 +1700,20 @@ description: Operations executed french-press.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap b/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap index 1571c043a..09d7a5205 100644 --- a/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/gear-rack/ops.snap @@ -14,6 +14,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +95,37 @@ description: Operations executed gear-rack.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +158,37 @@ description: Operations executed gear-rack.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -102,6 +200,24 @@ description: Operations executed gear-rack.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -192,6 +308,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -205,6 +339,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -237,6 +389,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -250,6 +420,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -282,6 +470,24 @@ description: Operations executed gear-rack.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/ops.snap b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/ops.snap index f799784a7..e20fde471 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate-magnets/ops.snap @@ -14,6 +14,37 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +121,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -76,6 +152,23 @@ description: Operations executed gridfinity-baseplate-magnets.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -106,6 +199,26 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -246,6 +359,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -348,6 +475,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -365,6 +506,23 @@ description: Operations executed gridfinity-baseplate-magnets.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -395,6 +553,26 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -535,6 +713,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -648,6 +840,24 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -785,6 +995,24 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -898,6 +1126,24 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1035,82 +1281,199 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -1137,22 +1500,92 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "magnetCenterCutout", - "functionSourceRange": [], - "unlabeledArg": { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", "value": { - "type": "Plane", - "artifact_id": "[uuid]" + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } }, "sourceRange": [] - }, - "labeledArgs": {} + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -1171,6 +1604,93 @@ description: Operations executed gridfinity-baseplate-magnets.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "magnetCenterCutout", + "functionSourceRange": [], + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {} + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1184,6 +1704,24 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1201,6 +1739,24 @@ description: Operations executed gridfinity-baseplate-magnets.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1249,6 +1805,24 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1281,6 +1855,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1337,6 +1925,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1354,6 +1956,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1384,6 +2000,23 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1416,6 +2049,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1472,6 +2119,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1562,6 +2223,21 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1663,6 +2339,21 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1753,6 +2444,21 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1854,6 +2560,21 @@ description: Operations executed gridfinity-baseplate-magnets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/ops.snap b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/ops.snap index 5d54d0eb8..67f4f68e7 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-baseplate/ops.snap @@ -14,6 +14,37 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +121,20 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -76,6 +152,23 @@ description: Operations executed gridfinity-baseplate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -106,6 +199,26 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -246,6 +359,20 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -348,6 +475,20 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -365,6 +506,23 @@ description: Operations executed gridfinity-baseplate.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -395,6 +553,26 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -535,6 +713,20 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -648,6 +840,24 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -785,6 +995,24 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -898,6 +1126,24 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1035,6 +1281,24 @@ description: Operations executed gridfinity-baseplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/ops.snap b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/ops.snap index 69e72aff5..bb174713e 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins-stacking-lip/ops.snap @@ -14,6 +14,37 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +121,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -76,6 +152,23 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -106,6 +199,26 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -246,6 +359,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -348,6 +475,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -365,6 +506,23 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -395,6 +553,26 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -535,6 +713,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -548,6 +740,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -580,6 +790,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -636,6 +864,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -659,6 +905,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -714,6 +978,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -827,6 +1109,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -964,6 +1264,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1077,6 +1395,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1214,6 +1550,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1304,6 +1658,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1405,6 +1777,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1418,6 +1808,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1448,6 +1856,27 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1480,6 +1909,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1536,6 +1983,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1580,6 +2045,24 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1593,6 +2076,37 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1606,6 +2120,37 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1619,6 +2164,37 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1632,6 +2208,37 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1664,6 +2271,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 39 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1814,6 +2435,23 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 39 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1846,6 +2484,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 40 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1996,6 +2648,23 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 40 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -2136,6 +2805,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2276,6 +2959,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2378,6 +3075,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2528,6 +3239,23 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -2630,6 +3358,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2780,6 +3522,23 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -2920,6 +3679,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 46 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3060,6 +3833,20 @@ description: Operations executed gridfinity-bins-stacking-lip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 47 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/ops.snap b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/ops.snap index 79e2e0bdc..d6710dda9 100644 --- a/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/gridfinity-bins/ops.snap @@ -14,6 +14,37 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +121,20 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -76,6 +152,23 @@ description: Operations executed gridfinity-bins.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -106,6 +199,26 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -246,6 +359,20 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -348,6 +475,20 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -365,6 +506,23 @@ description: Operations executed gridfinity-bins.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -395,6 +553,26 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -535,6 +713,20 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -548,6 +740,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -580,6 +790,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -636,6 +864,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -659,6 +905,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -714,6 +978,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -827,6 +1109,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -964,6 +1264,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1077,6 +1395,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1214,6 +1550,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1304,6 +1658,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1405,6 +1777,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1418,6 +1808,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1448,6 +1856,27 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1480,6 +1909,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1536,6 +1983,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1580,6 +2045,24 @@ description: Operations executed gridfinity-bins.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/hammer/ops.snap b/rust/kcl-lib/tests/kcl_samples/hammer/ops.snap index 79cd9c4f2..1b2571ecc 100644 --- a/rust/kcl-lib/tests/kcl_samples/hammer/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/hammer/ops.snap @@ -14,6 +14,24 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -53,6 +71,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 18 + } + ] + }, "sourceRange": [] }, { @@ -66,6 +102,20 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -96,37 +146,22 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -14.0, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -160,6 +195,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -192,6 +245,74 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -14.0, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -227,6 +348,20 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -253,6 +388,28 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "ArrayElement", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -279,6 +436,35 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "ArrayElement", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "ArrayElement", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -292,6 +478,24 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -324,6 +528,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -337,6 +559,24 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -367,6 +607,27 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -406,6 +667,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -450,6 +729,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -476,6 +773,24 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -506,6 +821,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -519,6 +852,24 @@ description: Operations executed hammer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -621,6 +972,24 @@ description: Operations executed hammer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap index 44593d470..a03d9926c 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/helical-gear/ops.snap @@ -14,6 +14,37 @@ description: Operations executed helical-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,50 @@ description: Operations executed helical-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -40,6 +115,50 @@ description: Operations executed helical-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -53,6 +172,50 @@ description: Operations executed helical-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -83,6 +246,53 @@ description: Operations executed helical-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -113,6 +323,53 @@ description: Operations executed helical-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -143,6 +400,53 @@ description: Operations executed helical-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -183,6 +487,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -223,6 +575,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -263,6 +663,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -303,6 +751,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -343,6 +839,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -383,6 +927,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -423,6 +1015,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -463,6 +1103,54 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -503,30 +1191,53 @@ description: Operations executed helical-gear.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -553,6 +1264,50 @@ description: Operations executed helical-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -578,6 +1333,119 @@ description: Operations executed helical-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -606,6 +1474,33 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -634,6 +1529,33 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -662,6 +1584,33 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -694,6 +1643,33 @@ description: Operations executed helical-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -786,6 +1762,17 @@ description: Operations executed helical-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap index b0c07e064..845471ba2 100644 --- a/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/helical-planetary-gearset/ops.snap @@ -14,132 +14,42 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 0.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "offsetPlane", + "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", @@ -147,29 +57,43 @@ description: Operations executed helical-planetary-gearset.kcl }, "sourceRange": [] }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 2.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "offsetPlane", + "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", @@ -177,23 +101,335 @@ description: Operations executed helical-planetary-gearset.kcl }, "sourceRange": [] }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 5.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -225,6 +461,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -255,6 +538,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -285,6 +615,284 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 2.5, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -325,6 +933,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -365,6 +1021,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -405,6 +1109,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -445,6 +1197,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -485,6 +1285,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -525,6 +1373,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -565,6 +1461,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -605,6 +1549,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -645,6 +1637,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -685,6 +1725,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -725,6 +1813,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -765,6 +1901,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -805,6 +1989,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -845,6 +2077,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -885,6 +2165,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -925,6 +2253,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -965,6 +2341,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1005,30 +2429,53 @@ description: Operations executed helical-planetary-gearset.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -1055,30 +2502,49 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] }, "sourceRange": [] }, @@ -1105,6 +2571,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1130,6 +2640,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1155,6 +2709,188 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1183,6 +2919,33 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1211,33 +2974,32 @@ description: Operations executed helical-planetary-gearset.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "helicalGearSketch", - "functionSourceRange": [], - "unlabeledArg": null, - "labeledArgs": { - "offsetHeight": { - "value": { - "type": "Number", - "value": 2.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" } - } + ] }, "sourceRange": [] }, @@ -1267,6 +3029,33 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1280,7 +3069,7 @@ description: Operations executed helical-planetary-gearset.kcl "offsetHeight": { "value": { "type": "Number", - "value": 5.0, + "value": 2.5, "ty": { "type": "Default", "len": { @@ -1295,6 +3084,33 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1323,6 +3139,88 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "helicalGearSketch", + "functionSourceRange": [], + "unlabeledArg": null, + "labeledArgs": { + "offsetHeight": { + "value": { + "type": "Number", + "value": 5.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1355,6 +3253,33 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1387,6 +3312,33 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1400,6 +3352,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1413,6 +3409,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1426,6 +3466,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1456,6 +3540,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1486,6 +3617,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1516,6 +3694,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1556,6 +3781,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1596,6 +3869,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1636,6 +3957,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1676,6 +4045,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1716,6 +4133,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1756,6 +4221,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1796,6 +4309,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1836,6 +4397,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1876,6 +4485,54 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1889,6 +4546,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1902,6 +4603,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1915,6 +4660,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1945,6 +4734,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1975,6 +4811,53 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -2005,30 +4888,52 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -2055,6 +4960,50 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -2080,6 +5029,119 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -2108,6 +5170,33 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2136,6 +5225,33 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2164,6 +5280,33 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2196,6 +5339,33 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2288,6 +5458,17 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2380,6 +5561,17 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2472,6 +5664,21 @@ description: Operations executed helical-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2504,6 +5711,21 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2644,6 +5866,21 @@ description: Operations executed helical-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap b/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap index 5343bc2e8..1f37b7a9f 100644 --- a/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/helium-tank/ops.snap @@ -14,6 +14,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -116,6 +134,20 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +161,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -155,6 +205,27 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -194,6 +265,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -238,6 +327,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -251,6 +358,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -276,6 +401,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -308,6 +451,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -334,6 +495,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -347,6 +526,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -373,6 +570,27 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -386,6 +604,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -412,6 +648,27 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -437,6 +694,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -476,6 +751,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] }, { @@ -489,6 +782,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -515,6 +826,27 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -540,6 +872,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -579,6 +929,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -614,6 +982,20 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -627,6 +1009,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -657,6 +1057,27 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -689,6 +1110,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -719,6 +1158,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -745,6 +1202,28 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -835,6 +1314,31 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -848,6 +1352,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -874,6 +1396,27 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -899,6 +1442,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -938,6 +1499,24 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1035,6 +1614,21 @@ description: Operations executed helium-tank.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap index e0791e534..be4db3140 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-gear/ops.snap @@ -14,6 +14,50 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +71,50 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -57,6 +145,53 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -87,6 +222,53 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -127,6 +309,54 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -167,6 +397,54 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -207,6 +485,54 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -247,6 +573,54 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -287,6 +661,54 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -327,6 +749,54 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -352,6 +822,50 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -377,6 +891,50 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -405,6 +963,33 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -433,6 +1018,33 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -448,6 +1060,37 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -480,6 +1123,37 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -524,6 +1198,33 @@ description: Operations executed herringbone-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -616,6 +1317,17 @@ description: Operations executed herringbone-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap index 04ac6693f..b7152a4d8 100644 --- a/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/herringbone-planetary-gearset/ops.snap @@ -14,80 +14,55 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 0.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "offsetPlane", + "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", @@ -95,23 +70,164 @@ description: Operations executed herringbone-planetary-gearset.kcl }, "sourceRange": [] }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 4.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -143,6 +259,53 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -173,6 +336,207 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 0.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -213,6 +577,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -253,6 +665,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -293,6 +753,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -333,6 +841,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -373,6 +929,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -413,6 +1017,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -453,6 +1105,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -493,6 +1193,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -533,6 +1281,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -573,6 +1369,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -613,6 +1457,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -653,30 +1545,53 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -703,6 +1618,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -728,6 +1687,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -753,6 +1756,119 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -781,6 +1897,33 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -809,33 +1952,32 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "herringboneGearSketch", - "functionSourceRange": [], - "unlabeledArg": null, - "labeledArgs": { - "offsetHeight": { - "value": { - "type": "Number", - "value": 4.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" } - } + ] }, "sourceRange": [] }, @@ -865,6 +2007,88 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "herringboneGearSketch", + "functionSourceRange": [], + "unlabeledArg": null, + "labeledArgs": { + "offsetHeight": { + "value": { + "type": "Number", + "value": 4.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -880,6 +2104,37 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -895,6 +2150,37 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -927,6 +2213,37 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -959,6 +2276,37 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1003,6 +2351,33 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1047,6 +2422,33 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1060,6 +2462,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1073,6 +2519,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1103,6 +2593,53 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1133,6 +2670,53 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1173,6 +2757,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1213,6 +2845,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1253,6 +2933,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1293,6 +3021,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1333,6 +3109,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1373,6 +3197,54 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1386,6 +3258,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1399,6 +3315,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1429,6 +3389,53 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1459,6 +3466,53 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1484,6 +3538,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1509,6 +3607,50 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1537,6 +3679,33 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1565,6 +3734,33 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1580,6 +3776,37 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1612,6 +3839,37 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1656,6 +3914,33 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1748,6 +4033,17 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -1840,6 +4136,17 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -1932,6 +4239,21 @@ description: Operations executed herringbone-planetary-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1964,6 +4286,21 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -2104,6 +4441,21 @@ description: Operations executed herringbone-planetary-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/hex-nut/ops.snap b/rust/kcl-lib/tests/kcl_samples/hex-nut/ops.snap index e4b72bdff..f7300af31 100644 --- a/rust/kcl-lib/tests/kcl_samples/hex-nut/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/hex-nut/ops.snap @@ -14,6 +14,37 @@ description: Operations executed hex-nut.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -39,6 +70,37 @@ description: Operations executed hex-nut.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -71,6 +133,37 @@ description: Operations executed hex-nut.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -149,6 +242,17 @@ description: Operations executed hex-nut.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/i-beam/ops.snap b/rust/kcl-lib/tests/kcl_samples/i-beam/ops.snap index e1908aebe..8ad3ab064 100644 --- a/rust/kcl-lib/tests/kcl_samples/i-beam/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/i-beam/ops.snap @@ -14,6 +14,24 @@ description: Operations executed i-beam.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -42,6 +60,24 @@ description: Operations executed i-beam.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap b/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap index c0f953720..f30db754e 100644 --- a/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/keyboard/ops.snap @@ -14,6 +14,24 @@ description: Operations executed keyboard.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -104,6 +140,24 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -128,6 +182,20 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -183,310 +251,856 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "ExpressionStatementExpr" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -520,37 +1134,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -584,37 +1197,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -648,37 +1260,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -712,37 +1323,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -776,37 +1386,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -840,37 +1449,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -904,37 +1512,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -968,37 +1575,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -1032,37 +1638,36 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.1, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] }, "sourceRange": [] }, @@ -1096,6 +1701,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -1128,6 +1764,667 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.1, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -1218,6 +2515,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1308,6 +2636,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1398,6 +2757,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1488,6 +2878,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1578,6 +2999,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1668,6 +3120,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1758,6 +3241,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1848,6 +3362,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -1938,6 +3483,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2028,6 +3604,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2118,6 +3725,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2208,6 +3846,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2298,6 +3967,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2388,6 +4088,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2478,6 +4209,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2568,6 +4330,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2658,6 +4451,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2748,6 +4572,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2838,6 +4693,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -2928,6 +4814,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -3018,6 +4935,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -3119,6 +5067,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3220,6 +5179,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3321,6 +5291,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3422,6 +5403,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3523,6 +5515,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3624,6 +5627,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3725,6 +5739,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3826,6 +5851,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3927,6 +5963,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4028,6 +6075,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4129,6 +6187,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4230,6 +6299,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4331,6 +6411,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4432,6 +6523,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4533,6 +6635,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4634,6 +6747,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4735,6 +6859,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 37 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4836,6 +6971,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 38 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -4937,6 +7083,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 39 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -5038,6 +7195,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 40 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -5139,108 +7307,60 @@ description: Operations executed keyboard.kcl } } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.03, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 }, - "sourceRange": [] - } - }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" + { + "type": "ExpressionStatementExpr" } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" }, "sourceRange": [] }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.03, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -5274,6 +7394,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 18 + } + ] + }, "sourceRange": [] }, { @@ -5287,6 +7438,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -5300,6 +7482,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -5332,6 +7545,37 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -5364,6 +7608,251 @@ description: Operations executed keyboard.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -0.03, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -0.03, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -5442,6 +7931,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -5520,6 +8020,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 46 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -5598,6 +8109,17 @@ description: Operations executed keyboard.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 47 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/kitt/ops.snap b/rust/kcl-lib/tests/kcl_samples/kitt/ops.snap index 0ebedf9f0..1f57d0286 100644 --- a/rust/kcl-lib/tests/kcl_samples/kitt/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/kitt/ops.snap @@ -24,28 +24,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "start" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -70,28 +78,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "start" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -116,28 +132,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "start" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -162,28 +186,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "start" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -208,6 +240,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -226,11 +289,204 @@ description: Operations executed kitt.kcl "face": { "value": { "type": "String", - "value": "end" + "value": "start" }, "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "start" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "start" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "start" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -254,28 +510,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -300,28 +564,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -346,28 +618,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -392,28 +672,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -438,6 +726,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -461,6 +780,307 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -485,28 +1105,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -531,6 +1159,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -554,6 +1213,91 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -578,28 +1322,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -624,6 +1376,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -647,6 +1430,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -664,13 +1478,43 @@ description: Operations executed kitt.kcl "labeledArgs": { "face": { "value": { - "type": "TagIdentifier", - "value": "seg02", - "artifact_id": "[uuid]" + "type": "String", + "value": "end" }, "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -695,29 +1539,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "seg02", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -743,29 +1594,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "seg02", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -791,29 +1649,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "seg02", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -839,6 +1704,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -863,6 +1759,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -887,6 +1814,257 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "seg02", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -919,37 +2097,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -983,37 +2160,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1047,37 +2223,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1111,6 +2286,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1143,6 +2349,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1175,6 +2412,226 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.5, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.5, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.5, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1207,6 +2664,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1239,37 +2727,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1303,6 +2790,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1335,6 +2853,100 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1367,37 +2979,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1431,6 +3042,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1463,6 +3105,100 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1495,6 +3231,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1527,37 +3294,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1591,37 +3357,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1655,37 +3420,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1719,37 +3483,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1783,6 +3546,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1801,7 +3595,7 @@ description: Operations executed kitt.kcl "length": { "value": { "type": "Number", - "value": -2.0, + "value": 2.0, "ty": { "type": "Default", "len": { @@ -1815,6 +3609,226 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1847,37 +3861,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1911,37 +3924,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -1975,37 +3987,36 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -2.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] }, "sourceRange": [] }, @@ -2039,6 +4050,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -2071,6 +4113,37 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -2103,6 +4176,289 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -2.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -2116,6 +4472,24 @@ description: Operations executed kitt.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2148,6 +4522,24 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -2256,6 +4648,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2279,6 +4685,24 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2311,6 +4735,24 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 15 + } + ] + }, "sourceRange": [] }, { @@ -2419,6 +4861,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2527,6 +4983,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2635,6 +5105,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2743,6 +5227,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -2766,6 +5264,24 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2798,6 +5314,24 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 15 + } + ] + }, "sourceRange": [] }, { @@ -2906,6 +5440,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3014,6 +5562,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3122,6 +5684,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3230,6 +5806,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3338,6 +5928,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3446,6 +6050,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3554,6 +6172,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 47 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3662,6 +6294,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 48 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3770,6 +6416,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 49 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3878,6 +6538,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 55 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -3986,6 +6660,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 60 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4094,6 +6782,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 61 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4202,6 +6904,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 62 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4215,6 +6931,37 @@ description: Operations executed kitt.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -4228,6 +6975,37 @@ description: Operations executed kitt.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -4260,6 +7038,33 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4292,6 +7097,33 @@ description: Operations executed kitt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4400,6 +7232,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4508,6 +7367,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 66 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4552,6 +7438,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 68 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4596,6 +7496,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 69 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4705,6 +7619,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4814,6 +7755,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -4922,6 +7890,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5030,6 +8025,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5138,6 +8160,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5246,6 +8295,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5354,6 +8430,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5462,6 +8565,33 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 73 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5506,6 +8636,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 76 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5550,6 +8694,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 77 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5659,6 +8817,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 89 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5768,6 +8940,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 90 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5877,6 +9063,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 91 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -5986,6 +9186,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 92 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -6095,6 +9309,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 93 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -6204,6 +9432,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 94 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -6313,6 +9555,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 95 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -6422,6 +9678,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 101 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -6531,6 +9801,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 102 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -6640,6 +9924,20 @@ description: Operations executed kitt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 103 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/lego/ops.snap b/rust/kcl-lib/tests/kcl_samples/lego/ops.snap index de38a6b7c..4bb3c48ff 100644 --- a/rust/kcl-lib/tests/kcl_samples/lego/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/lego/ops.snap @@ -14,6 +14,24 @@ description: Operations executed lego.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -69,6 +105,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -101,6 +155,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -124,6 +196,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -191,6 +281,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -214,6 +322,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -257,6 +383,24 @@ description: Operations executed lego.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/makeup-mirror/ops.snap b/rust/kcl-lib/tests/kcl_samples/makeup-mirror/ops.snap index 1e9f2f66a..dac14fd5d 100644 --- a/rust/kcl-lib/tests/kcl_samples/makeup-mirror/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/makeup-mirror/ops.snap @@ -14,6 +14,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -40,6 +102,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -53,6 +146,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -66,6 +190,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -79,6 +234,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -92,6 +278,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -122,65 +339,39 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 24.5, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } - }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "offsetPlane", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": { - "offset": { - "value": { - "type": "Number", - "value": 49.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + { + "type": "VariableDeclarationDeclaration" }, - "sourceRange": [] - } + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -212,6 +403,40 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -242,6 +467,104 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 24.5, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -272,6 +595,104 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "offsetPlane", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": { + "offset": { + "value": { + "type": "Number", + "value": 49.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -302,37 +723,39 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 24.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -366,37 +789,36 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 24.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -430,37 +852,36 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 24.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -494,6 +915,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -526,6 +978,226 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 24.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 24.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 24.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -586,6 +1258,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -646,6 +1332,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -706,6 +1406,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -766,6 +1480,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -826,6 +1554,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -886,6 +1628,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -946,6 +1702,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -959,6 +1729,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -972,6 +1773,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1004,6 +1836,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1036,6 +1899,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1087,6 +1981,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1138,6 +2046,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1151,6 +2073,33 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1181,6 +2130,36 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1213,6 +2192,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1245,6 +2255,37 @@ description: Operations executed makeup-mirror.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1376,6 +2417,20 @@ description: Operations executed makeup-mirror.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/mounting-plate/ops.snap b/rust/kcl-lib/tests/kcl_samples/mounting-plate/ops.snap index 2a98da382..a42853fcd 100644 --- a/rust/kcl-lib/tests/kcl_samples/mounting-plate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/mounting-plate/ops.snap @@ -14,30 +14,19 @@ description: Operations executed mounting-plate.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -64,30 +53,23 @@ description: Operations executed mounting-plate.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] }, "sourceRange": [] }, @@ -114,6 +96,24 @@ description: Operations executed mounting-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -139,6 +139,110 @@ description: Operations executed mounting-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -171,6 +275,24 @@ description: Operations executed mounting-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -227,6 +349,24 @@ description: Operations executed mounting-plate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ops.snap b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ops.snap index 91bf3bfc2..67f1f7ceb 100644 --- a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ops.snap @@ -10,6 +10,14 @@ description: Operations executed multi-axis-robot.kcl "name": "robot-arm-base.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed multi-axis-robot.kcl "name": "robot-rotating-base.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed multi-axis-robot.kcl "name": "robot-arm-j2.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -37,6 +61,14 @@ description: Operations executed multi-axis-robot.kcl "name": "robot-arm-j3.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ops.snap b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ops.snap index 12f72dbd1..c1f96a93f 100644 --- a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ops.snap @@ -14,6 +14,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -44,6 +62,27 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -76,6 +115,20 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -100,6 +153,20 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -132,102 +199,239 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -40.45, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -261,37 +465,32 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -40.45, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -325,6 +524,33 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -357,6 +583,151 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -40.45, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -40.45, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -385,6 +756,24 @@ description: Operations executed pdu-faceplate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -449,6 +838,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -477,6 +884,20 @@ description: Operations executed pdu-faceplate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -500,6 +921,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -532,6 +971,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -596,6 +1053,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -609,6 +1084,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -639,6 +1132,27 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -671,6 +1185,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -735,6 +1267,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -763,6 +1313,24 @@ description: Operations executed pdu-faceplate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -827,6 +1395,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -855,6 +1441,24 @@ description: Operations executed pdu-faceplate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -919,6 +1523,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -942,6 +1564,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1006,6 +1646,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1038,6 +1696,20 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1061,6 +1733,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1125,6 +1815,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1168,6 +1876,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 46 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1269,6 +1995,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 46 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1297,6 +2041,24 @@ description: Operations executed pdu-faceplate.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 49 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1361,6 +2123,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 49 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1425,6 +2205,24 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 54 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -1492,6 +2290,20 @@ description: Operations executed pdu-faceplate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 55 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/ops.snap b/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/ops.snap index c8a9ba033..2c3385307 100644 --- a/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/ops.snap @@ -10,6 +10,14 @@ description: Operations executed pillow-block-bearing.kcl "name": "parameters.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed pillow-block-bearing.kcl "name": "ball-bearing.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed pillow-block-bearing.kcl "name": "block.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap index beddea7bc..050410bcd 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/ops.snap @@ -10,6 +10,14 @@ description: Operations executed pipe-flange-assembly.kcl "name": "parameters.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed pipe-flange-assembly.kcl "name": "9472k188-gasket.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed pipe-flange-assembly.kcl "name": "68095k348-flange.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -37,6 +61,14 @@ description: Operations executed pipe-flange-assembly.kcl "name": "98017a257-washer.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +78,14 @@ description: Operations executed pipe-flange-assembly.kcl "name": "91251a404-bolt.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -55,6 +95,14 @@ description: Operations executed pipe-flange-assembly.kcl "name": "95479a127-hex-nut.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -64,16 +112,13 @@ description: Operations executed pipe-flange-assembly.kcl "name": "1120t74-pipe.kcl", "moduleId": 0 }, - "sourceRange": [] - }, - { - "type": "GroupBegin", - "group": { - "type": "FunctionCall", - "name": "flange", - "functionSourceRange": [], - "unlabeledArg": null, - "labeledArgs": {} + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + } + ] }, "sourceRange": [] }, @@ -86,6 +131,43 @@ description: Operations executed pipe-flange-assembly.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, + "sourceRange": [] + }, + { + "type": "GroupBegin", + "group": { + "type": "FunctionCall", + "name": "flange", + "functionSourceRange": [], + "unlabeledArg": null, + "labeledArgs": {} + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -165,6 +247,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -229,6 +326,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -293,6 +405,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -304,6 +431,21 @@ description: Operations executed pipe-flange-assembly.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -368,6 +510,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -508,6 +665,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -621,6 +793,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -632,6 +819,21 @@ description: Operations executed pipe-flange-assembly.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -696,6 +898,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -760,6 +977,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -900,6 +1132,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -911,6 +1158,21 @@ description: Operations executed pipe-flange-assembly.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -975,6 +1237,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1115,6 +1392,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1126,6 +1418,21 @@ description: Operations executed pipe-flange-assembly.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1190,6 +1497,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1261,6 +1583,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1272,6 +1609,21 @@ description: Operations executed pipe-flange-assembly.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1336,6 +1688,21 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1407,105 +1774,84 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Array", - "value": [ - { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - } - ] + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 }, - "sourceRange": [] - } + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -1555,11 +1901,14 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "extrude", + "name": "subtract2d", "unlabeledArg": { "value": { "type": "Sketch", @@ -1570,23 +1919,42 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] }, "labeledArgs": { - "length": { + "tool": { "value": { - "type": "Number", - "value": 0.69, - "ty": { - "type": "Default", - "len": { - "type": "Inches" + "type": "Array", + "value": [ + { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } }, - "angle": { - "type": "Degrees" + { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } } - } + ] }, "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1619,6 +1987,44 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.69, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1642,6 +2048,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1665,6 +2074,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1697,6 +2109,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1729,28 +2144,8 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -1775,6 +2170,35 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1807,6 +2231,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1839,28 +2266,8 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "String", - "value": "end" - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -1885,6 +2292,35 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1917,6 +2353,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1949,6 +2388,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1962,6 +2404,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1994,6 +2439,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2017,6 +2465,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2049,6 +2500,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2062,6 +2516,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2094,6 +2551,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2143,6 +2603,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2166,6 +2629,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2198,6 +2664,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2221,6 +2690,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2253,6 +2725,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2266,6 +2741,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2298,6 +2776,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2321,6 +2802,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2353,6 +2837,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2366,6 +2853,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2379,37 +2869,8 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] }, "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 6.0, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -2443,6 +2904,44 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 6.0, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2466,6 +2965,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2489,6 +2991,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2521,6 +3026,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -2553,6 +3061,9 @@ description: Operations executed pipe-flange-assembly.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/ops.snap b/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/ops.snap index 86cb2ebcc..57c2acb71 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe-with-bend/ops.snap @@ -14,6 +14,20 @@ description: Operations executed pipe-with-bend.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -39,6 +53,24 @@ description: Operations executed pipe-with-bend.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -141,6 +173,20 @@ description: Operations executed pipe-with-bend.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/pipe/ops.snap b/rust/kcl-lib/tests/kcl_samples/pipe/ops.snap index 30ccbbec9..23fbc2f38 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe/ops.snap @@ -14,6 +14,24 @@ description: Operations executed pipe.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed pipe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -69,6 +105,24 @@ description: Operations executed pipe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -101,6 +155,24 @@ description: Operations executed pipe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/poopy-shoe/ops.snap b/rust/kcl-lib/tests/kcl_samples/poopy-shoe/ops.snap index 3b2556b7d..c1965ad06 100644 --- a/rust/kcl-lib/tests/kcl_samples/poopy-shoe/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/poopy-shoe/ops.snap @@ -14,6 +14,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -116,6 +134,20 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +161,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -161,6 +211,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 15 + } + ] + }, "sourceRange": [] }, { @@ -174,6 +242,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -206,6 +292,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -229,6 +333,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -261,6 +383,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 14 + } + ] + }, "sourceRange": [] }, { @@ -274,6 +414,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -306,6 +464,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -330,6 +506,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -362,6 +556,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -385,6 +597,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -417,6 +647,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -430,6 +678,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -462,6 +728,24 @@ description: Operations executed poopy-shoe.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ops.snap b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ops.snap index f2727367b..fda59ab58 100644 --- a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ops.snap @@ -14,6 +14,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +45,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -57,6 +93,27 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +127,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -102,6 +177,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -134,6 +227,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -147,6 +258,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -179,6 +308,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -211,6 +358,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -224,6 +389,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -256,6 +439,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -288,6 +489,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -301,6 +520,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -333,6 +570,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -365,6 +620,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -403,6 +676,20 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -435,6 +722,20 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -450,6 +751,27 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "ArrayElement", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -465,6 +787,27 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + }, + { + "type": "ArrayElement", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -497,6 +840,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -510,6 +871,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -612,6 +991,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -660,6 +1057,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -692,6 +1107,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] }, { @@ -705,6 +1138,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -807,6 +1258,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -855,6 +1324,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -887,6 +1374,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] }, { @@ -900,6 +1405,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1002,6 +1525,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -1050,6 +1591,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -1082,6 +1641,24 @@ description: Operations executed prosthetic-hip.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ops.snap b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ops.snap index 61cf54c91..134727765 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ops.snap @@ -14,6 +14,24 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,20 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -69,6 +101,24 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -101,6 +151,20 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -124,6 +188,24 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -156,6 +238,20 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -179,6 +275,24 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -211,6 +325,20 @@ description: Operations executed router-template-cross-bar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-slate/ops.snap b/rust/kcl-lib/tests/kcl_samples/router-template-slate/ops.snap index ca339c383..84e152f74 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-slate/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-slate/ops.snap @@ -14,6 +14,24 @@ description: Operations executed router-template-slate.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,20 @@ description: Operations executed router-template-slate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -69,6 +101,24 @@ description: Operations executed router-template-slate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -101,6 +151,20 @@ description: Operations executed router-template-slate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -124,6 +188,24 @@ description: Operations executed router-template-slate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -156,6 +238,20 @@ description: Operations executed router-template-slate.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/sash-window/ops.snap b/rust/kcl-lib/tests/kcl_samples/sash-window/ops.snap index 19ce2b553..a348de6e3 100644 --- a/rust/kcl-lib/tests/kcl_samples/sash-window/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/sash-window/ops.snap @@ -14,6 +14,33 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -27,6 +54,33 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -40,6 +94,33 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +151,36 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -100,6 +211,36 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -130,6 +271,36 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -162,37 +333,32 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 23.0, - "ty": { - "type": "Default", - "len": { - "type": "Mm" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -226,14 +392,41 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { "type": "StdLibCall", - "name": "startSketchOn", + "name": "extrude", "unlabeledArg": { "value": { - "type": "Solid", + "type": "Sketch", "value": { "artifactId": "[uuid]" } @@ -241,14 +434,50 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": { - "face": { + "length": { "value": { - "type": "String", - "value": "end" + "type": "Number", + "value": 23.0, + "ty": { + "type": "Default", + "len": { + "type": "Mm" + }, + "angle": { + "type": "Degrees" + } + } }, "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -272,6 +501,33 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -295,6 +551,83 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "String", + "value": "end" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -327,6 +660,37 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -370,6 +734,37 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -413,6 +808,37 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -560,6 +986,20 @@ description: Operations executed sash-window.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -707,6 +1147,24 @@ description: Operations executed sash-window.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -771,6 +1229,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -835,6 +1311,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -848,6 +1342,20 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -878,6 +1386,23 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -910,6 +1435,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -974,6 +1517,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1038,6 +1599,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1051,6 +1630,20 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1081,6 +1674,23 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1113,6 +1723,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1177,6 +1805,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1241,6 +1887,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1305,6 +1969,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1452,6 +2134,24 @@ description: Operations executed sash-window.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1516,6 +2216,24 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1529,6 +2247,20 @@ description: Operations executed sash-window.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1561,6 +2293,20 @@ description: Operations executed sash-window.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/ops.snap b/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/ops.snap index b72c77e79..b3df3e267 100644 --- a/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/sheet-metal-bracket/ops.snap @@ -14,6 +14,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 25 + } + ] + }, "sourceRange": [] }, { @@ -104,6 +140,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 26 + } + ] + }, "sourceRange": [] }, { @@ -128,6 +182,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -171,6 +243,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -195,6 +285,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -238,6 +346,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -262,6 +388,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -317,6 +461,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -341,6 +503,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -373,6 +553,24 @@ description: Operations executed sheet-metal-bracket.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/ops.snap b/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/ops.snap index c1db15744..afa90e0d5 100644 --- a/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/ops.snap @@ -14,6 +14,20 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -58,6 +72,28 @@ description: Operations executed shepherds-hook-bolt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -102,6 +138,28 @@ description: Operations executed shepherds-hook-bolt.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -132,6 +190,20 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -164,6 +236,20 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -187,6 +273,20 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -233,6 +333,24 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -277,6 +395,24 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -290,6 +426,20 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -392,6 +542,20 @@ description: Operations executed shepherds-hook-bolt.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap index 62d792534..addf2ed3b 100644 --- a/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/socket-head-cap-screw/ops.snap @@ -14,6 +14,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -95,6 +131,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -118,6 +172,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -150,6 +222,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -173,6 +263,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -205,6 +313,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -249,6 +375,24 @@ description: Operations executed socket-head-cap-screw.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ops.snap b/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ops.snap index 4bf80a503..a2e95e5bd 100644 --- a/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ops.snap @@ -14,6 +14,37 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -40,6 +102,37 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -53,6 +146,37 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -85,6 +209,33 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -117,6 +268,33 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -149,6 +327,33 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -181,6 +386,33 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -232,6 +464,24 @@ description: Operations executed spinning-highrise-tower.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -283,6 +533,24 @@ description: Operations executed spinning-highrise-tower.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -313,6 +581,28 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -364,6 +654,20 @@ description: Operations executed spinning-highrise-tower.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -394,6 +698,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -417,6 +739,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -449,6 +789,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -470,6 +828,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -491,6 +867,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -512,6 +906,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -533,6 +945,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -554,6 +984,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -575,6 +1023,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -596,6 +1062,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -617,6 +1101,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -638,6 +1140,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -659,6 +1179,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -680,6 +1218,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -701,6 +1257,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -722,6 +1296,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -743,6 +1335,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -764,6 +1374,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -785,6 +1413,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -818,6 +1464,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -831,6 +1495,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -863,6 +1545,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -914,6 +1614,24 @@ description: Operations executed spinning-highrise-tower.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -935,6 +1653,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -956,6 +1692,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -977,6 +1731,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -998,6 +1770,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1019,6 +1809,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1040,6 +1848,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1061,6 +1887,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1082,6 +1926,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1103,6 +1965,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1124,6 +2004,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1145,6 +2043,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1166,6 +2082,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1187,6 +2121,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1208,6 +2160,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1229,6 +2199,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1250,6 +2238,24 @@ description: Operations executed spinning-highrise-tower.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -1283,6 +2289,24 @@ description: Operations executed spinning-highrise-tower.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap b/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap index fa34e7273..28a4db361 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/spur-gear/ops.snap @@ -14,6 +14,37 @@ description: Operations executed spur-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed spur-gear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -67,6 +129,41 @@ description: Operations executed spur-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -107,6 +204,41 @@ description: Operations executed spur-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -147,6 +279,41 @@ description: Operations executed spur-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -172,6 +339,37 @@ description: Operations executed spur-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -204,6 +402,37 @@ description: Operations executed spur-gear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -280,6 +509,17 @@ description: Operations executed spur-gear.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap b/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap index be7e4b54c..dd2cdcbc6 100644 --- a/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/spur-reduction-gearset/ops.snap @@ -14,6 +14,37 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +58,37 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -67,6 +129,41 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -107,6 +204,41 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -147,6 +279,41 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -187,6 +354,41 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -227,6 +429,41 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -267,6 +504,41 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -292,6 +564,37 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -317,6 +620,37 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -349,6 +683,37 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -381,6 +746,37 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -457,6 +853,17 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -533,6 +940,21 @@ description: Operations executed spur-reduction-gearset.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -565,6 +987,21 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -597,6 +1034,21 @@ description: Operations executed spur-reduction-gearset.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap index bc4becebf..5cc368f71 100644 --- a/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/surgical-drill-guide/ops.snap @@ -14,6 +14,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -67,6 +85,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, "sourceRange": [] }, { @@ -80,6 +116,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -112,6 +166,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -125,6 +197,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -155,6 +245,27 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -187,6 +298,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -217,6 +346,20 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -243,6 +386,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -256,6 +417,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -282,6 +461,27 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -321,6 +521,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -344,6 +562,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -383,6 +619,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -427,6 +681,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -450,6 +722,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -482,6 +772,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -495,6 +803,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -521,6 +847,27 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -546,6 +893,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -592,6 +957,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -640,6 +1023,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -653,6 +1054,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -683,6 +1102,27 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -715,6 +1155,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -738,6 +1196,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -777,6 +1253,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -821,6 +1315,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -844,6 +1356,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -876,6 +1406,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -889,6 +1437,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -919,6 +1485,27 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -944,6 +1531,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -990,6 +1595,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1038,6 +1661,24 @@ description: Operations executed surgical-drill-guide.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/t-slot-rail/ops.snap b/rust/kcl-lib/tests/kcl_samples/t-slot-rail/ops.snap index 611a5d921..aaa802537 100644 --- a/rust/kcl-lib/tests/kcl_samples/t-slot-rail/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/t-slot-rail/ops.snap @@ -14,6 +14,37 @@ description: Operations executed t-slot-rail.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -39,6 +70,37 @@ description: Operations executed t-slot-rail.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 20 + } + ] + }, "sourceRange": [] }, { @@ -77,6 +139,37 @@ description: Operations executed t-slot-rail.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 21 + } + ] + }, "sourceRange": [] }, { @@ -105,6 +198,37 @@ description: Operations executed t-slot-rail.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 22 + } + ] + }, "sourceRange": [] }, { @@ -145,6 +269,17 @@ description: Operations executed t-slot-rail.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/telemetry-antenna/ops.snap b/rust/kcl-lib/tests/kcl_samples/telemetry-antenna/ops.snap index 61ef72c00..62a2da571 100644 --- a/rust/kcl-lib/tests/kcl_samples/telemetry-antenna/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/telemetry-antenna/ops.snap @@ -14,6 +14,20 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -116,29 +130,19 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "seg03", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] }, "sourceRange": [] }, @@ -164,29 +168,33 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "seg03", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -212,6 +220,34 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -236,6 +272,34 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -260,6 +324,138 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "seg03", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "seg03", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -292,37 +488,33 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.08, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -356,37 +548,33 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.08, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] }, "sourceRange": [] }, @@ -420,6 +608,34 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -452,6 +668,154 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -0.08, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -0.08, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -497,50 +861,33 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "chamfer", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.04, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - }, - "tags": { - "value": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "value": "hole01", - "artifact_id": "[uuid]" - } - ] - }, - "sourceRange": [] - } + ] }, "sourceRange": [] }, @@ -587,50 +934,33 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "chamfer", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.04, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - }, - "tags": { - "value": { - "type": "Array", - "value": [ - { - "type": "TagIdentifier", - "value": "hole01", - "artifact_id": "[uuid]" - } - ] - }, - "sourceRange": [] - } + ] }, "sourceRange": [] }, @@ -677,6 +1007,34 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -722,6 +1080,180 @@ description: Operations executed telemetry-antenna.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "chamfer", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.04, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + }, + "tags": { + "value": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "hole01", + "artifact_id": "[uuid]" + } + ] + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "chamfer", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.04, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + }, + "tags": { + "value": { + "type": "Array", + "value": [ + { + "type": "TagIdentifier", + "value": "hole01", + "artifact_id": "[uuid]" + } + ] + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -766,6 +1298,17 @@ description: Operations executed telemetry-antenna.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -810,6 +1353,17 @@ description: Operations executed telemetry-antenna.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -854,6 +1408,17 @@ description: Operations executed telemetry-antenna.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -898,6 +1463,17 @@ description: Operations executed telemetry-antenna.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -942,6 +1518,17 @@ description: Operations executed telemetry-antenna.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -986,6 +1573,17 @@ description: Operations executed telemetry-antenna.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ops.snap b/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ops.snap index 824d61191..ffd376313 100644 --- a/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ops.snap @@ -14,6 +14,24 @@ description: Operations executed thermal-block-insert.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -25,6 +43,24 @@ description: Operations executed thermal-block-insert.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -38,6 +74,24 @@ description: Operations executed thermal-block-insert.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -49,6 +103,24 @@ description: Operations executed thermal-block-insert.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -92,6 +164,20 @@ description: Operations executed thermal-block-insert.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap index 4400990b0..fcf40a56e 100644 --- a/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/tooling-nest-block/ops.snap @@ -14,6 +14,24 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,20 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -69,29 +101,36 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "rectangleSegmentA001", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -117,6 +156,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -141,6 +211,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -159,12 +260,43 @@ description: Operations executed tooling-nest-block.kcl "face": { "value": { "type": "TagIdentifier", - "value": "rectangleSegmentB001", + "value": "rectangleSegmentA001", "artifact_id": "[uuid]" }, "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -189,6 +321,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -213,6 +376,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -237,6 +431,92 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "rectangleSegmentB001", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -261,29 +541,36 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "rectangleSegmentD001", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -309,29 +596,36 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "rectangleSegmentD001", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -357,29 +651,36 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "face": { - "value": { - "type": "TagIdentifier", - "value": "rectangleSegmentD001", - "artifact_id": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] }, "sourceRange": [] }, @@ -405,6 +706,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -429,6 +761,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -453,6 +816,202 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "rectangleSegmentD001", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "rectangleSegmentD001", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "face": { + "value": { + "type": "TagIdentifier", + "value": "rectangleSegmentD001", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -476,6 +1035,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -515,6 +1105,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -554,6 +1175,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -593,6 +1245,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -632,6 +1315,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -667,40 +1381,36 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": -0.25, - "ty": { - "type": "Known", - "type": "Length", - "type": "Inches" - } - }, - "sourceRange": [] - }, - "tagStart": { - "value": { - "type": "TagDeclarator", - "name": "capStart001" - }, - "sourceRange": [] - } + ] }, "sourceRange": [] }, @@ -737,6 +1447,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -772,6 +1513,103 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": -0.25, + "ty": { + "type": "Known", + "type": "Length", + "type": "Inches" + } + }, + "sourceRange": [] + }, + "tagStart": { + "value": { + "type": "TagDeclarator", + "name": "capStart001" + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -807,6 +1645,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -846,6 +1715,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -885,6 +1785,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -924,6 +1855,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -963,6 +1925,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1002,6 +1995,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1041,6 +2065,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1080,6 +2135,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1119,6 +2205,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1154,6 +2271,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -1198,6 +2346,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1242,6 +2421,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1286,6 +2496,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1330,6 +2571,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1370,45 +2642,36 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "fillet", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 } - }, - "sourceRange": [] - }, - "labeledArgs": { - "radius": { - "value": { - "type": "Number", - "value": 0.248, - "ty": { - "type": "Known", - "type": "Length", - "type": "Inches" - } - }, - "sourceRange": [] - }, - "tags": { - "value": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]" - } - ] - }, - "sourceRange": [] - } + ] }, "sourceRange": [] }, @@ -1450,6 +2713,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1490,6 +2784,108 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "fillet", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "radius": { + "value": { + "type": "Number", + "value": 0.248, + "ty": { + "type": "Known", + "type": "Length", + "type": "Inches" + } + }, + "sourceRange": [] + }, + "tags": { + "value": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + } + ] + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1530,6 +2926,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1574,6 +3001,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1618,6 +3076,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1662,6 +3151,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1706,6 +3226,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1750,6 +3301,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1794,6 +3376,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1838,6 +3451,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1882,6 +3526,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1922,6 +3597,37 @@ description: Operations executed tooling-nest-block.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -1989,6 +3695,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2057,6 +3774,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2125,6 +3853,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2193,6 +3932,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2257,6 +4007,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2321,6 +4082,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2385,6 +4157,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2449,6 +4232,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2513,6 +4307,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2581,6 +4386,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2649,6 +4465,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2717,6 +4544,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2785,6 +4623,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 31 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2853,6 +4702,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2921,6 +4781,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -2989,6 +4860,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 34 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3057,6 +4939,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 35 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -3120,6 +5013,17 @@ description: Operations executed tooling-nest-block.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/truss-structure/ops.snap b/rust/kcl-lib/tests/kcl_samples/truss-structure/ops.snap index f39d20966..82d8a234a 100644 --- a/rust/kcl-lib/tests/kcl_samples/truss-structure/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/truss-structure/ops.snap @@ -14,6 +14,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -39,6 +53,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -64,6 +92,17 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -96,6 +135,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -109,6 +162,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -139,6 +206,23 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -171,6 +255,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -203,6 +301,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -216,6 +328,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -246,6 +372,23 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -278,6 +421,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 27 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -310,6 +467,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -400,6 +571,24 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -413,6 +602,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -445,6 +648,24 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -535,6 +756,24 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 32 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -548,6 +787,20 @@ description: Operations executed truss-structure.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 33 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -591,6 +844,21 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -692,6 +960,21 @@ description: Operations executed truss-structure.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 36 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/utility-sink/ops.snap b/rust/kcl-lib/tests/kcl_samples/utility-sink/ops.snap index 4c038fdcb..8285600ca 100644 --- a/rust/kcl-lib/tests/kcl_samples/utility-sink/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/utility-sink/ops.snap @@ -14,6 +14,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -69,6 +83,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -82,6 +114,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -112,6 +158,23 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 17 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -155,6 +218,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -198,6 +279,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -211,6 +310,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -241,6 +354,23 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -284,6 +414,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -297,6 +445,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -327,6 +489,23 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -370,6 +549,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 26 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -413,6 +610,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 28 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -426,6 +641,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -456,6 +685,23 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 29 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -488,6 +734,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 30 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -511,6 +775,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 38 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -543,6 +821,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 39 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -566,6 +862,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 40 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -598,6 +908,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 41 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -611,6 +939,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -641,6 +987,27 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -673,6 +1040,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 42 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -686,6 +1071,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -716,6 +1119,27 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -748,6 +1172,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 43 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -761,6 +1203,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -791,6 +1251,27 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -823,6 +1304,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 44 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -836,6 +1335,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -866,6 +1383,27 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -898,6 +1436,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 45 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -911,6 +1467,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 52 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -941,6 +1511,23 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 52 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -984,6 +1571,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 53 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1085,6 +1690,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 53 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -1128,6 +1751,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 57 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -1141,6 +1782,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 65 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1171,6 +1826,23 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 65 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -1184,6 +1856,20 @@ description: Operations executed utility-sink.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 67 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1209,6 +1895,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 69 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1299,6 +2003,24 @@ description: Operations executed utility-sink.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 69 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/ops.snap b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/ops.snap index 15a2b1867..34db4f3b6 100644 --- a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/ops.snap @@ -10,6 +10,14 @@ description: Operations executed walkie-talkie.kcl "name": "parameters.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed walkie-talkie.kcl "name": "body.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed walkie-talkie.kcl "name": "case.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -37,6 +61,14 @@ description: Operations executed walkie-talkie.kcl "name": "antenna.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +78,14 @@ description: Operations executed walkie-talkie.kcl "name": "talk-button.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -55,6 +95,14 @@ description: Operations executed walkie-talkie.kcl "name": "knob.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -64,6 +112,14 @@ description: Operations executed walkie-talkie.kcl "name": "button.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -128,6 +184,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -192,6 +263,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -256,6 +342,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -320,6 +421,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -331,6 +447,21 @@ description: Operations executed walkie-talkie.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -395,6 +526,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -406,6 +552,21 @@ description: Operations executed walkie-talkie.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -470,6 +631,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -481,6 +657,21 @@ description: Operations executed walkie-talkie.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -545,6 +736,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -616,6 +822,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -627,6 +848,21 @@ description: Operations executed walkie-talkie.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -691,6 +927,21 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -762,89 +1013,84 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "startSketchOn", - "unlabeledArg": { - "value": { - "type": "Plane", - "artifact_id": "[uuid]" - }, - "sourceRange": [] - }, - "labeledArgs": {}, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.04, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 }, - "sourceRange": [] - } + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "startSketchOn", + "unlabeledArg": { + "value": { + "type": "Plane", + "artifact_id": "[uuid]" + }, + "sourceRange": [] + }, + "labeledArgs": {}, + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -878,37 +1124,8 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "extrude", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.04, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -942,6 +1159,79 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.04, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "extrude", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.04, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -990,53 +1280,8 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "chamfer", - "unlabeledArg": { - "value": { - "type": "Solid", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "length": { - "value": { - "type": "Number", - "value": 0.05, - "ty": { - "type": "Default", - "len": { - "type": "Inches" - }, - "angle": { - "type": "Degrees" - } - } - }, - "sourceRange": [] - }, - "tags": { - "value": { - "type": "Array", - "value": [ - { - "type": "Uuid", - "value": "[uuid]" - }, - { - "type": "Uuid", - "value": "[uuid]" - } - ] - }, - "sourceRange": [] - } + "nodePath": { + "steps": [] }, "sourceRange": [] }, @@ -1086,6 +1331,9 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -1134,6 +1382,60 @@ description: Operations executed walkie-talkie.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "chamfer", + "unlabeledArg": { + "value": { + "type": "Solid", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "length": { + "value": { + "type": "Number", + "value": 0.05, + "ty": { + "type": "Default", + "len": { + "type": "Inches" + }, + "angle": { + "type": "Degrees" + } + } + }, + "sourceRange": [] + }, + "tags": { + "value": { + "type": "Array", + "value": [ + { + "type": "Uuid", + "value": "[uuid]" + }, + { + "type": "Uuid", + "value": "[uuid]" + } + ] + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kcl_samples/washer/ops.snap b/rust/kcl-lib/tests/kcl_samples/washer/ops.snap index befe9eacc..2f1a9c39f 100644 --- a/rust/kcl-lib/tests/kcl_samples/washer/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/washer/ops.snap @@ -14,6 +14,24 @@ description: Operations executed washer.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -39,6 +57,24 @@ description: Operations executed washer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -71,6 +107,20 @@ description: Operations executed washer.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kcl_samples/wing-spar/ops.snap b/rust/kcl-lib/tests/kcl_samples/wing-spar/ops.snap index 5778c3dc0..c86a76676 100644 --- a/rust/kcl-lib/tests/kcl_samples/wing-spar/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/wing-spar/ops.snap @@ -14,6 +14,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -44,30 +62,26 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwUnlabeledArg" + } + ] }, "sourceRange": [] }, @@ -94,30 +108,23 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, - "sourceRange": [] - }, - { - "type": "StdLibCall", - "name": "subtract2d", - "unlabeledArg": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } - }, - "sourceRange": [] - }, - "labeledArgs": { - "tool": { - "value": { - "type": "Sketch", - "value": { - "artifactId": "[uuid]" - } + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 }, - "sourceRange": [] - } + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] }, "sourceRange": [] }, @@ -144,6 +151,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -169,6 +194,110 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 11 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, + "sourceRange": [] + }, + { + "type": "StdLibCall", + "name": "subtract2d", + "unlabeledArg": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + }, + "labeledArgs": { + "tool": { + "value": { + "type": "Sketch", + "value": { + "artifactId": "[uuid]" + } + }, + "sourceRange": [] + } + }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 13 + } + ] + }, "sourceRange": [] }, { @@ -201,6 +330,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 14 + } + ] + }, "sourceRange": [] }, { @@ -291,6 +438,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 15 + } + ] + }, "sourceRange": [] }, { @@ -304,6 +469,20 @@ description: Operations executed wing-spar.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -336,6 +515,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 18 + } + ] + }, "sourceRange": [] }, { @@ -368,6 +565,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 18 + } + ] + }, "sourceRange": [] }, { @@ -392,6 +607,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -447,6 +680,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] }, { @@ -471,6 +722,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -526,6 +795,24 @@ description: Operations executed wing-spar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 12 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kittycad_svg/ops.snap b/rust/kcl-lib/tests/kittycad_svg/ops.snap index 3098a0a80..bc3c34ac7 100644 --- a/rust/kcl-lib/tests/kittycad_svg/ops.snap +++ b/rust/kcl-lib/tests/kittycad_svg/ops.snap @@ -14,6 +14,24 @@ description: Operations executed kittycad_svg.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed kittycad_svg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 284 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kw_fn/ops.snap b/rust/kcl-lib/tests/kw_fn/ops.snap index 3532c4c6b..9437da652 100644 --- a/rust/kcl-lib/tests/kw_fn/ops.snap +++ b/rust/kcl-lib/tests/kw_fn/ops.snap @@ -27,6 +27,20 @@ description: Operations executed kw_fn.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +84,20 @@ description: Operations executed kw_fn.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/kw_fn_too_few_args/ops.snap b/rust/kcl-lib/tests/kw_fn_too_few_args/ops.snap index e4ef36f91..bbeee54c7 100644 --- a/rust/kcl-lib/tests/kw_fn_too_few_args/ops.snap +++ b/rust/kcl-lib/tests/kw_fn_too_few_args/ops.snap @@ -29,6 +29,20 @@ description: Operations executed kw_fn_too_few_args.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kw_fn_unlabeled_but_has_label/ops.snap b/rust/kcl-lib/tests/kw_fn_unlabeled_but_has_label/ops.snap index a2fd160a3..0c2270cf4 100644 --- a/rust/kcl-lib/tests/kw_fn_unlabeled_but_has_label/ops.snap +++ b/rust/kcl-lib/tests/kw_fn_unlabeled_but_has_label/ops.snap @@ -29,6 +29,20 @@ description: Operations executed kw_fn_unlabeled_but_has_label.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/kw_fn_with_defaults/ops.snap b/rust/kcl-lib/tests/kw_fn_with_defaults/ops.snap index 2746d1560..f52b6bee9 100644 --- a/rust/kcl-lib/tests/kw_fn_with_defaults/ops.snap +++ b/rust/kcl-lib/tests/kw_fn_with_defaults/ops.snap @@ -27,6 +27,20 @@ description: Operations executed kw_fn_with_defaults.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +84,20 @@ description: Operations executed kw_fn_with_defaults.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/linear_pattern3d_a_pattern/ops.snap b/rust/kcl-lib/tests/linear_pattern3d_a_pattern/ops.snap index b1b202dad..915b4465d 100644 --- a/rust/kcl-lib/tests/linear_pattern3d_a_pattern/ops.snap +++ b/rust/kcl-lib/tests/linear_pattern3d_a_pattern/ops.snap @@ -14,6 +14,24 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -136,6 +172,20 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -267,6 +317,20 @@ description: Operations executed linear_pattern3d_a_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/loop_tag/ops.snap b/rust/kcl-lib/tests/loop_tag/ops.snap index 2bafbf61c..cabc74a95 100644 --- a/rust/kcl-lib/tests/loop_tag/ops.snap +++ b/rust/kcl-lib/tests/loop_tag/ops.snap @@ -14,6 +14,24 @@ description: Operations executed loop_tag.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -40,6 +58,28 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -76,6 +116,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -112,6 +166,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -148,6 +216,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -184,6 +266,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -220,6 +316,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -256,6 +366,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -292,6 +416,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -328,6 +466,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -364,6 +516,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -400,6 +566,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -436,6 +616,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -472,6 +666,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -508,6 +716,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -544,6 +766,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -580,6 +816,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -616,6 +866,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -652,6 +916,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -688,6 +966,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -724,6 +1016,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -760,6 +1066,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -796,6 +1116,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -832,6 +1166,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -868,6 +1216,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -904,6 +1266,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -940,6 +1316,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -976,6 +1366,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1012,6 +1416,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1048,6 +1466,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1084,6 +1516,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1120,6 +1566,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1156,6 +1616,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1192,6 +1666,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1228,6 +1716,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1264,6 +1766,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1300,6 +1816,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1336,6 +1866,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1372,6 +1916,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1408,6 +1966,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1444,6 +2016,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1480,6 +2066,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1516,6 +2116,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1552,6 +2166,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1588,6 +2216,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1624,6 +2266,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1660,6 +2316,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1696,6 +2366,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1732,6 +2416,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1768,6 +2466,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1804,6 +2516,20 @@ description: Operations executed loop_tag.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -1830,6 +2556,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1856,6 +2614,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1882,6 +2672,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1908,6 +2730,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1934,6 +2788,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1960,6 +2846,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -1986,6 +2904,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2012,6 +2962,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2038,6 +3020,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2064,6 +3078,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2090,6 +3136,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2116,6 +3194,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2142,6 +3252,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2168,6 +3310,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2194,6 +3368,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2220,6 +3426,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2246,6 +3484,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2272,6 +3542,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2298,6 +3600,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2324,6 +3658,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2350,6 +3716,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2376,6 +3774,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2402,6 +3832,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2428,6 +3890,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2454,6 +3948,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2480,6 +4006,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2506,6 +4064,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2532,6 +4122,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2558,6 +4180,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2584,6 +4238,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2610,6 +4296,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2636,6 +4354,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2662,6 +4412,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2688,6 +4470,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2714,6 +4528,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2740,6 +4586,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2766,6 +4644,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2792,6 +4702,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2818,6 +4760,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2844,6 +4818,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2870,6 +4876,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2896,6 +4934,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2922,6 +4992,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2948,6 +5050,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -2974,6 +5108,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3000,6 +5166,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3026,6 +5224,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3052,6 +5282,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3078,6 +5340,38 @@ description: Operations executed loop_tag.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 1 + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -3110,6 +5404,20 @@ description: Operations executed loop_tag.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/mike_stress_test/ops.snap b/rust/kcl-lib/tests/mike_stress_test/ops.snap index d71a850b6..f4d5a457d 100644 --- a/rust/kcl-lib/tests/mike_stress_test/ops.snap +++ b/rust/kcl-lib/tests/mike_stress_test/ops.snap @@ -14,6 +14,24 @@ description: Operations executed mike_stress_test.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed mike_stress_test.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1003 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/module_return_using_var/ops.snap b/rust/kcl-lib/tests/module_return_using_var/ops.snap index 2a899dad8..019a0c8e2 100644 --- a/rust/kcl-lib/tests/module_return_using_var/ops.snap +++ b/rust/kcl-lib/tests/module_return_using_var/ops.snap @@ -10,6 +10,14 @@ description: Operations executed module_return_using_var.kcl "name": "cube.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -42,6 +50,21 @@ description: Operations executed module_return_using_var.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/multi_target_csg/ops.snap b/rust/kcl-lib/tests/multi_target_csg/ops.snap index 421216b9e..5ab374975 100644 --- a/rust/kcl-lib/tests/multi_target_csg/ops.snap +++ b/rust/kcl-lib/tests/multi_target_csg/ops.snap @@ -14,6 +14,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -39,6 +53,24 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -71,6 +103,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -84,6 +130,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -143,6 +203,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -156,6 +230,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -186,6 +274,23 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -223,6 +328,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -259,6 +378,20 @@ description: Operations executed multi_target_csg.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [], "isError": true } diff --git a/rust/kcl-lib/tests/multi_transform/ops.snap b/rust/kcl-lib/tests/multi_transform/ops.snap index 49c76ba30..1003a1890 100644 --- a/rust/kcl-lib/tests/multi_transform/ops.snap +++ b/rust/kcl-lib/tests/multi_transform/ops.snap @@ -14,6 +14,21 @@ description: Operations executed multi_transform.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +61,21 @@ description: Operations executed multi_transform.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -67,6 +97,21 @@ description: Operations executed multi_transform.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -88,6 +133,21 @@ description: Operations executed multi_transform.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { @@ -121,6 +181,21 @@ description: Operations executed multi_transform.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/multiple-foreign-imports-all-render/ops.snap b/rust/kcl-lib/tests/multiple-foreign-imports-all-render/ops.snap index 5dbb0e1f4..1334fbbc6 100644 --- a/rust/kcl-lib/tests/multiple-foreign-imports-all-render/ops.snap +++ b/rust/kcl-lib/tests/multiple-foreign-imports-all-render/ops.snap @@ -10,6 +10,14 @@ description: Operations executed multiple-foreign-imports-all-render.kcl "name": "cube.step", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -19,6 +27,14 @@ description: Operations executed multiple-foreign-imports-all-render.kcl "name": "othercube.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -28,6 +44,14 @@ description: Operations executed multiple-foreign-imports-all-render.kcl "name": "anothercube.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -58,6 +82,21 @@ description: Operations executed multiple-foreign-imports-all-render.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -88,6 +127,21 @@ description: Operations executed multiple-foreign-imports-all-render.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/neg_xz_plane/ops.snap b/rust/kcl-lib/tests/neg_xz_plane/ops.snap index def0ebcfe..4cfce1eb2 100644 --- a/rust/kcl-lib/tests/neg_xz_plane/ops.snap +++ b/rust/kcl-lib/tests/neg_xz_plane/ops.snap @@ -14,6 +14,24 @@ description: Operations executed neg_xz_plane.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed neg_xz_plane.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/nested_assembly/ops.snap b/rust/kcl-lib/tests/nested_assembly/ops.snap index a68c3f395..a8648129d 100644 --- a/rust/kcl-lib/tests/nested_assembly/ops.snap +++ b/rust/kcl-lib/tests/nested_assembly/ops.snap @@ -1,6 +1,6 @@ --- source: kcl-lib/src/simulation_tests.rs -description: Operations executed nested_main_kcl.kcl +description: Operations executed nested_assembly.kcl --- [ { @@ -10,6 +10,14 @@ description: Operations executed nested_main_kcl.kcl "name": "main.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/nested_main_kcl/ops.snap b/rust/kcl-lib/tests/nested_main_kcl/ops.snap index a68c3f395..f3c255e01 100644 --- a/rust/kcl-lib/tests/nested_main_kcl/ops.snap +++ b/rust/kcl-lib/tests/nested_main_kcl/ops.snap @@ -10,6 +10,14 @@ description: Operations executed nested_main_kcl.kcl "name": "main.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/nested_windows_main_kcl/ops.snap b/rust/kcl-lib/tests/nested_windows_main_kcl/ops.snap index a68c3f395..0d8ea5628 100644 --- a/rust/kcl-lib/tests/nested_windows_main_kcl/ops.snap +++ b/rust/kcl-lib/tests/nested_windows_main_kcl/ops.snap @@ -1,6 +1,6 @@ --- source: kcl-lib/src/simulation_tests.rs -description: Operations executed nested_main_kcl.kcl +description: Operations executed nested_windows_main_kcl.kcl --- [ { @@ -10,6 +10,14 @@ description: Operations executed nested_main_kcl.kcl "name": "main.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/out_of_band_sketches/ops.snap b/rust/kcl-lib/tests/out_of_band_sketches/ops.snap index cbad6a750..bd7a3fd69 100644 --- a/rust/kcl-lib/tests/out_of_band_sketches/ops.snap +++ b/rust/kcl-lib/tests/out_of_band_sketches/ops.snap @@ -14,6 +14,20 @@ description: Operations executed out_of_band_sketches.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -27,6 +41,20 @@ description: Operations executed out_of_band_sketches.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +98,17 @@ description: Operations executed out_of_band_sketches.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/panic_repro_cube/ops.snap b/rust/kcl-lib/tests/panic_repro_cube/ops.snap index 3c2fcfae1..8ac7e2f53 100644 --- a/rust/kcl-lib/tests/panic_repro_cube/ops.snap +++ b/rust/kcl-lib/tests/panic_repro_cube/ops.snap @@ -14,6 +14,24 @@ description: Operations executed panic_repro_cube.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -60,6 +78,20 @@ description: Operations executed panic_repro_cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/parametric/ops.snap b/rust/kcl-lib/tests/parametric/ops.snap index eb6d9b5ad..c920f9d2e 100644 --- a/rust/kcl-lib/tests/parametric/ops.snap +++ b/rust/kcl-lib/tests/parametric/ops.snap @@ -14,6 +14,24 @@ description: Operations executed parametric.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed parametric.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/parametric_with_tan_arc/ops.snap b/rust/kcl-lib/tests/parametric_with_tan_arc/ops.snap index cabdf97cb..c33c3ccf8 100644 --- a/rust/kcl-lib/tests/parametric_with_tan_arc/ops.snap +++ b/rust/kcl-lib/tests/parametric_with_tan_arc/ops.snap @@ -14,6 +14,24 @@ description: Operations executed parametric_with_tan_arc.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed parametric_with_tan_arc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/pattern_circular_in_module/ops.snap b/rust/kcl-lib/tests/pattern_circular_in_module/ops.snap index cba8b753d..24d4ae8e0 100644 --- a/rust/kcl-lib/tests/pattern_circular_in_module/ops.snap +++ b/rust/kcl-lib/tests/pattern_circular_in_module/ops.snap @@ -10,6 +10,14 @@ description: Operations executed pattern_circular_in_module.kcl "name": "thing.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -21,6 +29,17 @@ description: Operations executed pattern_circular_in_module.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -34,6 +53,9 @@ description: Operations executed pattern_circular_in_module.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -89,6 +111,9 @@ description: Operations executed pattern_circular_in_module.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/pattern_into_union/ops.snap b/rust/kcl-lib/tests/pattern_into_union/ops.snap index 8dbe79a51..a1ffef6b9 100644 --- a/rust/kcl-lib/tests/pattern_into_union/ops.snap +++ b/rust/kcl-lib/tests/pattern_into_union/ops.snap @@ -14,6 +14,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +95,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +145,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -135,6 +207,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -225,6 +315,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -238,6 +346,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -270,6 +396,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -314,6 +458,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -404,6 +566,24 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -550,6 +730,17 @@ description: Operations executed pattern_into_union.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [], "isError": true } diff --git a/rust/kcl-lib/tests/pattern_linear_in_module/ops.snap b/rust/kcl-lib/tests/pattern_linear_in_module/ops.snap index 3fe9c80c4..350263b53 100644 --- a/rust/kcl-lib/tests/pattern_linear_in_module/ops.snap +++ b/rust/kcl-lib/tests/pattern_linear_in_module/ops.snap @@ -10,6 +10,14 @@ description: Operations executed pattern_linear_in_module.kcl "name": "thing.kcl", "moduleId": 0 }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -21,6 +29,17 @@ description: Operations executed pattern_linear_in_module.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -34,6 +53,9 @@ description: Operations executed pattern_linear_in_module.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { @@ -107,6 +129,9 @@ description: Operations executed pattern_linear_in_module.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/pentagon_fillet_sugar/ops.snap b/rust/kcl-lib/tests/pentagon_fillet_sugar/ops.snap index 50a70c5ba..618a02c84 100644 --- a/rust/kcl-lib/tests/pentagon_fillet_sugar/ops.snap +++ b/rust/kcl-lib/tests/pentagon_fillet_sugar/ops.snap @@ -14,6 +14,24 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -70,6 +106,34 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -94,6 +158,34 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -130,6 +222,20 @@ description: Operations executed pentagon_fillet_sugar.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -162,6 +268,24 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -211,6 +335,24 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -247,6 +389,20 @@ description: Operations executed pentagon_fillet_sugar.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -279,6 +435,24 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -328,6 +502,24 @@ description: Operations executed pentagon_fillet_sugar.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/pipe_as_arg/ops.snap b/rust/kcl-lib/tests/pipe_as_arg/ops.snap index 7916c41ac..5fcd05124 100644 --- a/rust/kcl-lib/tests/pipe_as_arg/ops.snap +++ b/rust/kcl-lib/tests/pipe_as_arg/ops.snap @@ -63,6 +63,20 @@ description: Operations executed pipe_as_arg.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -89,6 +103,28 @@ description: Operations executed pipe_as_arg.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/poop_chute/ops.snap b/rust/kcl-lib/tests/poop_chute/ops.snap index 735a91146..91c304b9d 100644 --- a/rust/kcl-lib/tests/poop_chute/ops.snap +++ b/rust/kcl-lib/tests/poop_chute/ops.snap @@ -14,6 +14,24 @@ description: Operations executed poop_chute.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -116,6 +134,20 @@ description: Operations executed poop_chute.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +161,24 @@ description: Operations executed poop_chute.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -161,6 +211,24 @@ description: Operations executed poop_chute.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 15 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/revolve-colinear/ops.snap b/rust/kcl-lib/tests/revolve-colinear/ops.snap index e913ba463..528406c38 100644 --- a/rust/kcl-lib/tests/revolve-colinear/ops.snap +++ b/rust/kcl-lib/tests/revolve-colinear/ops.snap @@ -14,6 +14,24 @@ description: Operations executed revolve-colinear.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -100,6 +118,24 @@ description: Operations executed revolve-colinear.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/revolve_about_edge/ops.snap b/rust/kcl-lib/tests/revolve_about_edge/ops.snap index 10b3a98cb..76c14b825 100644 --- a/rust/kcl-lib/tests/revolve_about_edge/ops.snap +++ b/rust/kcl-lib/tests/revolve_about_edge/ops.snap @@ -14,6 +14,24 @@ description: Operations executed revolve_about_edge.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +45,24 @@ description: Operations executed revolve_about_edge.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -67,6 +103,24 @@ description: Operations executed revolve_about_edge.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/riddle_small/ops.snap b/rust/kcl-lib/tests/riddle_small/ops.snap index b0f5a4682..57961f3d9 100644 --- a/rust/kcl-lib/tests/riddle_small/ops.snap +++ b/rust/kcl-lib/tests/riddle_small/ops.snap @@ -27,6 +27,26 @@ description: Operations executed riddle_small.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryRight" + }, + { + "type": "BinaryLeft" + } + ] + }, "sourceRange": [] }, { @@ -53,6 +73,26 @@ description: Operations executed riddle_small.kcl }, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "BinaryRight" + }, + { + "type": "BinaryLeft" + } + ] + }, "sourceRange": [] }, { @@ -66,6 +106,24 @@ description: Operations executed riddle_small.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -98,6 +156,24 @@ description: Operations executed riddle_small.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/rotate_after_fillet/ops.snap b/rust/kcl-lib/tests/rotate_after_fillet/ops.snap index cea66d6ac..4149424a1 100644 --- a/rust/kcl-lib/tests/rotate_after_fillet/ops.snap +++ b/rust/kcl-lib/tests/rotate_after_fillet/ops.snap @@ -14,6 +14,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +77,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -95,6 +157,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -118,6 +211,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -150,6 +274,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -173,6 +328,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -205,6 +391,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -249,6 +466,37 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -260,6 +508,21 @@ description: Operations executed rotate_after_fillet.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -324,6 +587,21 @@ description: Operations executed rotate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/scale_after_fillet/ops.snap b/rust/kcl-lib/tests/scale_after_fillet/ops.snap index fb7681e11..8a212d9f3 100644 --- a/rust/kcl-lib/tests/scale_after_fillet/ops.snap +++ b/rust/kcl-lib/tests/scale_after_fillet/ops.snap @@ -14,6 +14,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +77,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -95,6 +157,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -118,6 +211,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -150,6 +274,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -173,6 +328,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -205,6 +391,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -249,6 +466,37 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -260,6 +508,21 @@ description: Operations executed scale_after_fillet.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -309,6 +572,21 @@ description: Operations executed scale_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/ops.snap b/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/ops.snap index 975eca32f..c41e8d8f8 100644 --- a/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/ops.snap +++ b/rust/kcl-lib/tests/sketch-on-chamfer-two-times-different-order/ops.snap @@ -14,6 +14,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +127,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -142,6 +196,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -194,6 +266,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -218,6 +308,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -242,6 +350,24 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -274,6 +400,20 @@ description: Operations executed sketch-on-chamfer-two-times-different-order.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/sketch-on-chamfer-two-times/ops.snap b/rust/kcl-lib/tests/sketch-on-chamfer-two-times/ops.snap index 9b8b2d59b..9ecb5582e 100644 --- a/rust/kcl-lib/tests/sketch-on-chamfer-two-times/ops.snap +++ b/rust/kcl-lib/tests/sketch-on-chamfer-two-times/ops.snap @@ -14,6 +14,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +127,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -143,6 +197,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -194,6 +266,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -218,6 +308,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -242,6 +350,24 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -274,6 +400,20 @@ description: Operations executed sketch-on-chamfer-two-times.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/sketch_in_object/ops.snap b/rust/kcl-lib/tests/sketch_in_object/ops.snap index 444e52e95..f911625aa 100644 --- a/rust/kcl-lib/tests/sketch_in_object/ops.snap +++ b/rust/kcl-lib/tests/sketch_in_object/ops.snap @@ -14,6 +14,34 @@ description: Operations executed sketch_in_object.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +55,48 @@ description: Operations executed sketch_in_object.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "ObjectProperty", + "index": 0 + }, + { + "type": "ObjectPropertyValue" + }, + { + "type": "ObjectProperty", + "index": 0 + }, + { + "type": "ObjectPropertyValue" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -38,6 +108,20 @@ description: Operations executed sketch_in_object.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +154,21 @@ description: Operations executed sketch_in_object.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -81,6 +180,20 @@ description: Operations executed sketch_in_object.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -113,6 +226,21 @@ description: Operations executed sketch_in_object.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/sketch_on_face/ops.snap b/rust/kcl-lib/tests/sketch_on_face/ops.snap index a676931eb..b142b2f87 100644 --- a/rust/kcl-lib/tests/sketch_on_face/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face/ops.snap @@ -14,6 +14,24 @@ description: Operations executed sketch_on_face.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed sketch_on_face.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -70,6 +106,24 @@ description: Operations executed sketch_on_face.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -102,6 +156,24 @@ description: Operations executed sketch_on_face.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap index dbdc11019..a58bbcb6b 100644 --- a/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_after_fillets_referencing_face/ops.snap @@ -14,6 +14,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -90,6 +126,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -134,6 +188,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 10 + } + ] + }, "sourceRange": [] }, { @@ -158,6 +230,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -190,6 +280,24 @@ description: Operations executed sketch_on_face_after_fillets_referencing_face.k "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/sketch_on_face_circle_tagged/ops.snap b/rust/kcl-lib/tests/sketch_on_face_circle_tagged/ops.snap index 27215e2f6..53f684981 100644 --- a/rust/kcl-lib/tests/sketch_on_face_circle_tagged/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_circle_tagged/ops.snap @@ -14,6 +14,37 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -76,6 +107,24 @@ description: Operations executed sketch_on_face_circle_tagged.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -108,6 +157,24 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -131,6 +198,24 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -163,6 +248,24 @@ description: Operations executed sketch_on_face_circle_tagged.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/sketch_on_face_end/ops.snap b/rust/kcl-lib/tests/sketch_on_face_end/ops.snap index 32e66c8a5..3c962c1e4 100644 --- a/rust/kcl-lib/tests/sketch_on_face_end/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_end/ops.snap @@ -14,6 +14,37 @@ description: Operations executed sketch_on_face_end.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -76,6 +107,24 @@ description: Operations executed sketch_on_face_end.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -108,6 +157,24 @@ description: Operations executed sketch_on_face_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -131,6 +198,24 @@ description: Operations executed sketch_on_face_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -163,6 +248,24 @@ description: Operations executed sketch_on_face_end.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/ops.snap b/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/ops.snap index 81687e5c0..8967e4aa2 100644 --- a/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_end_negative_extrude/ops.snap @@ -14,6 +14,37 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -76,6 +107,24 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -108,6 +157,24 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -131,6 +198,24 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -163,6 +248,24 @@ description: Operations executed sketch_on_face_end_negative_extrude.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/sketch_on_face_start/ops.snap b/rust/kcl-lib/tests/sketch_on_face_start/ops.snap index df854b99e..29ba23d52 100644 --- a/rust/kcl-lib/tests/sketch_on_face_start/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_start/ops.snap @@ -14,6 +14,37 @@ description: Operations executed sketch_on_face_start.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -76,6 +107,24 @@ description: Operations executed sketch_on_face_start.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -108,6 +157,27 @@ description: Operations executed sketch_on_face_start.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + }, + { + "type": "LabeledExpressionExpr" + } + ] + }, "sourceRange": [] }, { @@ -131,6 +201,24 @@ description: Operations executed sketch_on_face_start.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -163,6 +251,24 @@ description: Operations executed sketch_on_face_start.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/sketch_on_face_union/ops.snap b/rust/kcl-lib/tests/sketch_on_face_union/ops.snap index add8db387..c3490d96e 100644 --- a/rust/kcl-lib/tests/sketch_on_face_union/ops.snap +++ b/rust/kcl-lib/tests/sketch_on_face_union/ops.snap @@ -14,6 +14,20 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -39,6 +53,20 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -64,6 +92,17 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] }, { @@ -96,6 +135,20 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -109,6 +162,20 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -139,6 +206,23 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -171,6 +255,24 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -203,6 +305,24 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -227,6 +347,20 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -259,6 +393,24 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -338,6 +490,24 @@ description: Operations executed sketch_on_face_union.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/spheres/ops.snap b/rust/kcl-lib/tests/spheres/ops.snap index cd8e07a63..f22f44c6b 100644 --- a/rust/kcl-lib/tests/spheres/ops.snap +++ b/rust/kcl-lib/tests/spheres/ops.snap @@ -14,6 +14,21 @@ description: Operations executed spheres.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -100,6 +115,21 @@ description: Operations executed spheres.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -113,6 +143,21 @@ description: Operations executed spheres.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -199,6 +244,21 @@ description: Operations executed spheres.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] }, { @@ -231,6 +291,21 @@ description: Operations executed spheres.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/ssi_pattern/ops.snap b/rust/kcl-lib/tests/ssi_pattern/ops.snap index 92d774176..7cc1d8a24 100644 --- a/rust/kcl-lib/tests/ssi_pattern/ops.snap +++ b/rust/kcl-lib/tests/ssi_pattern/ops.snap @@ -14,6 +14,24 @@ description: Operations executed ssi_pattern.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,20 @@ description: Operations executed ssi_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -70,6 +102,24 @@ description: Operations executed ssi_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -281,6 +331,24 @@ description: Operations executed ssi_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 4 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_cylinder_from_cube/ops.snap b/rust/kcl-lib/tests/subtract_cylinder_from_cube/ops.snap index abf999432..40438466f 100644 --- a/rust/kcl-lib/tests/subtract_cylinder_from_cube/ops.snap +++ b/rust/kcl-lib/tests/subtract_cylinder_from_cube/ops.snap @@ -14,6 +14,34 @@ description: Operations executed subtract_cylinder_from_cube.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +74,34 @@ description: Operations executed subtract_cylinder_from_cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -92,6 +148,20 @@ description: Operations executed subtract_cylinder_from_cube.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -105,6 +175,24 @@ description: Operations executed subtract_cylinder_from_cube.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -137,6 +225,24 @@ description: Operations executed subtract_cylinder_from_cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -169,6 +275,24 @@ description: Operations executed subtract_cylinder_from_cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -204,6 +328,20 @@ description: Operations executed subtract_cylinder_from_cube.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/subtract_doesnt_need_brackets/ops.snap b/rust/kcl-lib/tests/subtract_doesnt_need_brackets/ops.snap index 24b1b8868..b29949d5d 100644 --- a/rust/kcl-lib/tests/subtract_doesnt_need_brackets/ops.snap +++ b/rust/kcl-lib/tests/subtract_doesnt_need_brackets/ops.snap @@ -14,6 +14,34 @@ description: Operations executed subtract_doesnt_need_brackets.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +55,34 @@ description: Operations executed subtract_doesnt_need_brackets.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +115,34 @@ description: Operations executed subtract_doesnt_need_brackets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +175,34 @@ description: Operations executed subtract_doesnt_need_brackets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -153,6 +265,20 @@ description: Operations executed subtract_doesnt_need_brackets.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -215,6 +341,24 @@ description: Operations executed subtract_doesnt_need_brackets.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -247,6 +391,24 @@ description: Operations executed subtract_doesnt_need_brackets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -272,6 +434,20 @@ description: Operations executed subtract_doesnt_need_brackets.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/subtract_regression00/ops.snap b/rust/kcl-lib/tests/subtract_regression00/ops.snap index 9f13fe697..f47ae4e38 100644 --- a/rust/kcl-lib/tests/subtract_regression00/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression00/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression00.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -62,6 +76,20 @@ description: Operations executed subtract_regression00.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -75,6 +103,20 @@ description: Operations executed subtract_regression00.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -105,6 +147,23 @@ description: Operations executed subtract_regression00.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -137,6 +196,20 @@ description: Operations executed subtract_regression00.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -162,6 +235,20 @@ description: Operations executed subtract_regression00.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression01/ops.snap b/rust/kcl-lib/tests/subtract_regression01/ops.snap index e023878da..7c307e9a7 100644 --- a/rust/kcl-lib/tests/subtract_regression01/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression01/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression01.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -62,6 +76,20 @@ description: Operations executed subtract_regression01.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -75,6 +103,20 @@ description: Operations executed subtract_regression01.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -105,6 +147,23 @@ description: Operations executed subtract_regression01.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -142,6 +201,20 @@ description: Operations executed subtract_regression01.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -167,6 +240,20 @@ description: Operations executed subtract_regression01.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression02/ops.snap b/rust/kcl-lib/tests/subtract_regression02/ops.snap index b9ef063b2..5a1da0b41 100644 --- a/rust/kcl-lib/tests/subtract_regression02/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression02/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -62,6 +76,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -75,6 +103,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -128,6 +170,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -153,6 +209,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -166,6 +236,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -219,6 +303,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -244,6 +342,20 @@ description: Operations executed subtract_regression02.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression03/ops.snap b/rust/kcl-lib/tests/subtract_regression03/ops.snap index 9ba2fa0df..19c5643f0 100644 --- a/rust/kcl-lib/tests/subtract_regression03/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression03/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -52,6 +66,24 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -65,6 +97,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -90,6 +136,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -103,6 +163,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -140,6 +214,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -165,6 +253,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -178,6 +280,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -215,6 +331,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -240,6 +370,20 @@ description: Operations executed subtract_regression03.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression04/ops.snap b/rust/kcl-lib/tests/subtract_regression04/ops.snap index aa01ad567..88117d09d 100644 --- a/rust/kcl-lib/tests/subtract_regression04/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression04/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression04.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -116,6 +130,20 @@ description: Operations executed subtract_regression04.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +157,20 @@ description: Operations executed subtract_regression04.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -182,6 +224,20 @@ description: Operations executed subtract_regression04.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -207,6 +263,20 @@ description: Operations executed subtract_regression04.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression05/ops.snap b/rust/kcl-lib/tests/subtract_regression05/ops.snap index 0a20ed0c6..fa53215e2 100644 --- a/rust/kcl-lib/tests/subtract_regression05/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression05/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -27,6 +41,20 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -52,6 +80,24 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -77,6 +123,20 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -90,6 +150,20 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -192,6 +266,20 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -217,6 +305,20 @@ description: Operations executed subtract_regression05.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression06/ops.snap b/rust/kcl-lib/tests/subtract_regression06/ops.snap index 92aa69584..b2ff385c3 100644 --- a/rust/kcl-lib/tests/subtract_regression06/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression06/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression06.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -62,6 +76,20 @@ description: Operations executed subtract_regression06.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -75,6 +103,20 @@ description: Operations executed subtract_regression06.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -112,6 +154,20 @@ description: Operations executed subtract_regression06.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -137,6 +193,20 @@ description: Operations executed subtract_regression06.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression07/ops.snap b/rust/kcl-lib/tests/subtract_regression07/ops.snap index 1bdd2ff7e..0bd7e3b8a 100644 --- a/rust/kcl-lib/tests/subtract_regression07/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression07/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -39,6 +53,24 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -87,6 +119,20 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -100,6 +146,20 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -130,6 +190,23 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -143,6 +220,20 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -173,6 +264,23 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwUnlabeledArg" + } + ] + }, "sourceRange": [] }, { @@ -199,6 +307,20 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -224,6 +346,20 @@ description: Operations executed subtract_regression07.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression08/ops.snap b/rust/kcl-lib/tests/subtract_regression08/ops.snap index 508bb6803..50415b368 100644 --- a/rust/kcl-lib/tests/subtract_regression08/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression08/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -27,6 +41,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -59,6 +87,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 4 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -72,6 +114,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -85,6 +141,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -117,6 +187,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -142,6 +226,20 @@ description: Operations executed subtract_regression08.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression09/ops.snap b/rust/kcl-lib/tests/subtract_regression09/ops.snap index 77c3ef88d..de1ae83b0 100644 --- a/rust/kcl-lib/tests/subtract_regression09/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression09/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression09.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -116,6 +130,20 @@ description: Operations executed subtract_regression09.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +157,20 @@ description: Operations executed subtract_regression09.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -182,6 +224,20 @@ description: Operations executed subtract_regression09.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -207,6 +263,17 @@ description: Operations executed subtract_regression09.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "ExpressionStatementExpr" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression10/ops.snap b/rust/kcl-lib/tests/subtract_regression10/ops.snap index 382662ce8..98a45dd97 100644 --- a/rust/kcl-lib/tests/subtract_regression10/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression10/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -27,6 +41,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -129,6 +161,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 9 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 22 + } + ] + }, "sourceRange": [] }, { @@ -142,6 +192,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -181,6 +249,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 10 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 7 + } + ] + }, "sourceRange": [] }, { @@ -321,6 +407,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 11 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -351,6 +451,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -377,6 +491,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 12 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -390,6 +522,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -429,6 +579,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -478,6 +646,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 13 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -491,6 +677,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -530,6 +734,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 14 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -565,6 +787,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 15 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -578,6 +814,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -617,6 +871,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 16 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 22 + } + ] + }, "sourceRange": [] }, { @@ -630,6 +902,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -669,6 +959,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 18 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 9 + } + ] + }, "sourceRange": [] }, { @@ -695,6 +1003,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 19 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -708,6 +1030,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 20 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -748,6 +1084,28 @@ description: Operations executed subtract_regression10.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -787,6 +1145,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 21 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -826,6 +1202,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 22 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -856,6 +1250,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -882,6 +1290,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 23 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -895,6 +1321,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -938,6 +1382,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 24 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -968,6 +1430,20 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -994,6 +1470,24 @@ description: Operations executed subtract_regression10.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 25 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "CallKwArg", + "index": 0 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/subtract_regression11/ops.snap b/rust/kcl-lib/tests/subtract_regression11/ops.snap index 496de123c..f179c9ce7 100644 --- a/rust/kcl-lib/tests/subtract_regression11/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression11/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression11.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -116,6 +130,20 @@ description: Operations executed subtract_regression11.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +157,20 @@ description: Operations executed subtract_regression11.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -182,6 +224,20 @@ description: Operations executed subtract_regression11.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -207,6 +263,20 @@ description: Operations executed subtract_regression11.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_regression12/ops.snap b/rust/kcl-lib/tests/subtract_regression12/ops.snap index 8e14df506..55d42d02b 100644 --- a/rust/kcl-lib/tests/subtract_regression12/ops.snap +++ b/rust/kcl-lib/tests/subtract_regression12/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_regression12.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -116,6 +130,20 @@ description: Operations executed subtract_regression12.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -129,6 +157,20 @@ description: Operations executed subtract_regression12.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -182,6 +224,20 @@ description: Operations executed subtract_regression12.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -207,6 +263,20 @@ description: Operations executed subtract_regression12.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_with_pattern/ops.snap b/rust/kcl-lib/tests/subtract_with_pattern/ops.snap index f002067c7..a15869c04 100644 --- a/rust/kcl-lib/tests/subtract_with_pattern/ops.snap +++ b/rust/kcl-lib/tests/subtract_with_pattern/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -46,6 +60,20 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -59,6 +87,20 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -91,6 +133,20 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -181,6 +237,20 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -270,6 +340,21 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -349,6 +434,21 @@ description: Operations executed subtract_with_pattern.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/subtract_with_pattern_cut_thru/ops.snap b/rust/kcl-lib/tests/subtract_with_pattern_cut_thru/ops.snap index 595333f93..b9a293d53 100644 --- a/rust/kcl-lib/tests/subtract_with_pattern_cut_thru/ops.snap +++ b/rust/kcl-lib/tests/subtract_with_pattern_cut_thru/ops.snap @@ -14,6 +14,20 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -46,6 +60,20 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -59,6 +87,20 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -91,6 +133,24 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -123,6 +183,24 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -213,6 +291,20 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 6 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -272,6 +364,24 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -351,6 +461,24 @@ description: Operations executed subtract_with_pattern_cut_thru.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/tan_arc_x_line/ops.snap b/rust/kcl-lib/tests/tan_arc_x_line/ops.snap index 1f02a68b9..76d2ec947 100644 --- a/rust/kcl-lib/tests/tan_arc_x_line/ops.snap +++ b/rust/kcl-lib/tests/tan_arc_x_line/ops.snap @@ -14,6 +14,21 @@ description: Operations executed tan_arc_x_line.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 5 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/tangent_to_3_point_arc/ops.snap b/rust/kcl-lib/tests/tangent_to_3_point_arc/ops.snap index 2fccfa4ec..d9ddc0c60 100644 --- a/rust/kcl-lib/tests/tangent_to_3_point_arc/ops.snap +++ b/rust/kcl-lib/tests/tangent_to_3_point_arc/ops.snap @@ -14,6 +14,20 @@ description: Operations executed tangent_to_3_point_arc.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/tangential_arc/ops.snap b/rust/kcl-lib/tests/tangential_arc/ops.snap index 7a07d555a..c253f2216 100644 --- a/rust/kcl-lib/tests/tangential_arc/ops.snap +++ b/rust/kcl-lib/tests/tangential_arc/ops.snap @@ -14,6 +14,24 @@ description: Operations executed tangential_arc.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed tangential_arc.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/translate_after_fillet/ops.snap b/rust/kcl-lib/tests/translate_after_fillet/ops.snap index f655137fa..d43115660 100644 --- a/rust/kcl-lib/tests/translate_after_fillet/ops.snap +++ b/rust/kcl-lib/tests/translate_after_fillet/ops.snap @@ -14,6 +14,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +77,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -95,6 +157,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -118,6 +211,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -150,6 +274,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 8 + } + ] + }, "sourceRange": [] }, { @@ -173,6 +328,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -205,6 +391,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 2 + } + ] + }, "sourceRange": [] }, { @@ -249,6 +466,37 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 7 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 3 + } + ] + }, "sourceRange": [] }, { @@ -260,6 +508,21 @@ description: Operations executed translate_after_fillet.kcl "unlabeledArg": null, "labeledArgs": {} }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -324,6 +587,21 @@ description: Operations executed translate_after_fillet.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 8 + }, + { + "type": "ExpressionStatementExpr" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/union_cubes/ops.snap b/rust/kcl-lib/tests/union_cubes/ops.snap index e7fcd9eb0..e603ce51c 100644 --- a/rust/kcl-lib/tests/union_cubes/ops.snap +++ b/rust/kcl-lib/tests/union_cubes/ops.snap @@ -14,6 +14,34 @@ description: Operations executed union_cubes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -27,6 +55,34 @@ description: Operations executed union_cubes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -59,6 +115,34 @@ description: Operations executed union_cubes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -91,6 +175,34 @@ description: Operations executed union_cubes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "FunctionExpressionBody" + }, + { + "type": "FunctionExpressionBodyItem", + "index": 0 + }, + { + "type": "ReturnStatementArg" + }, + { + "type": "PipeBodyItem", + "index": 6 + } + ] + }, "sourceRange": [] }, { @@ -153,6 +265,20 @@ description: Operations executed union_cubes.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 1 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { @@ -215,6 +341,24 @@ description: Operations executed union_cubes.kcl } } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -247,6 +391,24 @@ description: Operations executed union_cubes.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 2 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 1 + } + ] + }, "sourceRange": [] }, { @@ -273,6 +435,20 @@ description: Operations executed union_cubes.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 3 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + } + ] + }, "sourceRange": [] }, { diff --git a/rust/kcl-lib/tests/var_ref_in_own_def/ops.snap b/rust/kcl-lib/tests/var_ref_in_own_def/ops.snap index 90a1f8242..12a04e404 100644 --- a/rust/kcl-lib/tests/var_ref_in_own_def/ops.snap +++ b/rust/kcl-lib/tests/var_ref_in_own_def/ops.snap @@ -14,6 +14,24 @@ description: Operations executed var_ref_in_own_def.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] } ] diff --git a/rust/kcl-lib/tests/xz_plane/ops.snap b/rust/kcl-lib/tests/xz_plane/ops.snap index 0723845e1..3334b07a7 100644 --- a/rust/kcl-lib/tests/xz_plane/ops.snap +++ b/rust/kcl-lib/tests/xz_plane/ops.snap @@ -14,6 +14,24 @@ description: Operations executed xz_plane.kcl "sourceRange": [] }, "labeledArgs": {}, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 0 + } + ] + }, "sourceRange": [] }, { @@ -46,6 +64,24 @@ description: Operations executed xz_plane.kcl "sourceRange": [] } }, + "nodePath": { + "steps": [ + { + "type": "ProgramBodyItem", + "index": 0 + }, + { + "type": "VariableDeclarationDeclaration" + }, + { + "type": "VariableDeclarationInit" + }, + { + "type": "PipeBodyItem", + "index": 5 + } + ] + }, "sourceRange": [] } ] diff --git a/src/lang/wasm.test.ts b/src/lang/wasm.test.ts index c945bf674..0e7ef5021 100644 --- a/src/lang/wasm.test.ts +++ b/src/lang/wasm.test.ts @@ -68,4 +68,16 @@ y = foo(center = [3, 4])`) expect(await rustImplPathToNode(ast, sr(31, 32))).toStrictEqual( getNodePathFromSourceRange(ast, sr(31, 32)) ) + + const ast2 = assertParse(`a1 = startSketchOn({ + origin = { x = 0, y = 0, z = 0 }, + xAxis = { x = 1, y = 0, z = 0 }, + // ^ + yAxis = { x = 0, y = 1, z = 0 }, + zAxis = { x = 0, y = 0, z = 1 } +}) +`) + expect(await rustImplPathToNode(ast2, sr(73, 74))).toStrictEqual( + getNodePathFromSourceRange(ast2, sr(73, 74)) + ) }) diff --git a/src/lang/wasm.ts b/src/lang/wasm.ts index 0f4c25437..d42fad7e6 100644 --- a/src/lang/wasm.ts +++ b/src/lang/wasm.ts @@ -175,6 +175,12 @@ function bestSourceRange(error: RustKclError): SourceRange { return sourceRangeFromRust(error.details.sourceRanges[0]) } +export function defaultNodePath(): NodePath { + return { + steps: [], + } +} + const splitErrors = ( input: CompilationError[] ): { errors: CompilationError[]; warnings: CompilationError[] } => { @@ -440,7 +446,7 @@ export async function rustImplPathToNode( return pathToNodeFromRustNodePath(nodePath) } -async function nodePathFromRange( +export async function nodePathFromRange( ast: Program, range: SourceRange ): Promise { @@ -568,7 +574,7 @@ export async function coreDump( } } -function pathToNodeFromRustNodePath(nodePath: NodePath): PathToNode { +export function pathToNodeFromRustNodePath(nodePath: NodePath): PathToNode { const pathToNode: PathToNode = [] for (const step of nodePath.steps) { switch (step.type) { diff --git a/src/lib/operations.test.ts b/src/lib/operations.test.ts index d945a32b0..f66fb9a10 100644 --- a/src/lib/operations.test.ts +++ b/src/lib/operations.test.ts @@ -1,9 +1,12 @@ +import type { NodePath } from '@rust/kcl-lib/bindings/NodePath' import type { Operation } from '@rust/kcl-lib/bindings/Operation' import { topLevelRange } from '@src/lang/util' import { assertParse, + defaultNodePath, defaultSourceRange, + nodePathFromRange, type SourceRange, } from '@src/lang/wasm' import { filterOperations, getOperationVariableName } from '@src/lib/operations' @@ -14,6 +17,7 @@ function stdlib(name: string): Operation { name, unlabeledArg: null, labeledArgs: {}, + nodePath: defaultNodePath(), sourceRange: defaultSourceRange(), isError: false, } @@ -29,6 +33,7 @@ function userCall(name: string): Operation { unlabeledArg: null, labeledArgs: {}, }, + nodePath: defaultNodePath(), sourceRange: defaultSourceRange(), } } @@ -47,6 +52,7 @@ function moduleBegin(name: string): Operation { name, moduleId: 0, }, + nodePath: defaultNodePath(), sourceRange: defaultSourceRange(), } } @@ -176,6 +182,12 @@ function rangeOfText(fullCode: string, target: string): SourceRange { return topLevelRange(start, start + target.length) } +async function buildNodePath(code: string, target: string): Promise { + const sourceRange = rangeOfText(code, target) + const program = assertParse(code) + return (await nodePathFromRange(program, sourceRange)) ?? defaultNodePath() +} + describe('variable name of operations', () => { it('finds the variable name with simple assignment', async () => { const op = stdlib('stdLibFn') @@ -183,8 +195,8 @@ describe('variable name of operations', () => { throw new Error('Expected operation to be a StdLibCall') } const code = `myVar = stdLibFn()` - // Make the source range match the code. - op.sourceRange = rangeOfText(code, 'stdLibFn()') + // Make the path match the code. + op.nodePath = await buildNodePath(code, 'stdLibFn()') const program = assertParse(code) const variableName = getOperationVariableName(op, program) @@ -200,8 +212,8 @@ describe('variable name of operations', () => { return 0 } ` - // Make the source range match the code. - op.sourceRange = rangeOfText(code, 'stdLibFn()') + // Make the path match the code. + op.nodePath = await buildNodePath(code, 'stdLibFn()') const program = assertParse(code) const variableName = getOperationVariableName(op, program) @@ -215,8 +227,8 @@ describe('variable name of operations', () => { const code = `myVar = foo() |> stdLibFn() ` - // Make the source range match the code. - op.sourceRange = rangeOfText(code, 'stdLibFn()') + // Make the path match the code. + op.nodePath = await buildNodePath(code, 'stdLibFn()') const program = assertParse(code) const variableName = getOperationVariableName(op, program) @@ -231,8 +243,8 @@ describe('variable name of operations', () => { |> stdLibFn() |> bar() ` - // Make the source range match the code. - op.sourceRange = rangeOfText(code, 'stdLibFn()') + // Make the path match the code. + op.nodePath = await buildNodePath(code, 'stdLibFn()') const program = assertParse(code) const variableName = getOperationVariableName(op, program) diff --git a/src/lib/operations.ts b/src/lib/operations.ts index e40a7cec6..88b091ee9 100644 --- a/src/lib/operations.ts +++ b/src/lib/operations.ts @@ -6,7 +6,6 @@ import { findPipesWithImportAlias, getSketchSelectionsFromOperation, } from '@src/lang/queryAst' -import { getNodePathFromSourceRange } from '@src/lang/queryAstNodePathUtils' import type { Artifact } from '@src/lang/std/artifactGraph' import { getArtifactOfTypes, @@ -19,7 +18,7 @@ import { type CallExpressionKw, type PipeExpression, type Program, - sourceRangeFromRust, + pathToNodeFromRustNodePath, type VariableDeclaration, } from '@src/lang/wasm' import type { @@ -102,10 +101,7 @@ const prepareToEditExtrude: PrepareToEditCallback = async ({ operation }) => { const argDefaultValues: ModelingCommandSchema['Extrude'] = { sketches, length, - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { ...baseCommand, @@ -168,10 +164,7 @@ const prepareToEditEdgeTreatment: PrepareToEditCallback = async ({ // Assemble the default argument values for the Fillet command, // with `nodeToEdit` set, which will let the Fillet actor know // to edit the node that corresponds to the StdLibCall. - const nodeToEdit = getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ) + const nodeToEdit = pathToNodeFromRustNodePath(operation.nodePath) let argDefaultValues: | ModelingCommandSchema['Chamfer'] @@ -333,10 +326,7 @@ const prepareToEditShell: PrepareToEditCallback = graphSelections, otherSelections: [], }, - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { ...baseCommand, @@ -405,10 +395,7 @@ const prepareToEditOffsetPlane: PrepareToEditCallback = async ({ const argDefaultValues: ModelingCommandSchema['Offset plane'] = { distance: distanceResult, plane, - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { @@ -497,10 +484,7 @@ const prepareToEditSweep: PrepareToEditCallback = async ({ operation }) => { sketches, path, sectional, - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { ...baseCommand, @@ -750,10 +734,7 @@ const prepareToEditHelix: PrepareToEditCallback = async ({ operation }) => { radius, length, ccw, - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { @@ -889,10 +870,7 @@ const prepareToEditRevolve: PrepareToEditCallback = async ({ axis, edge, angle, - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { ...baseCommand, @@ -1111,8 +1089,7 @@ export function getOperationVariableName( return undefined } // Find the AST node. - const range = sourceRangeFromRust(op.sourceRange) - const pathToNode = getNodePathFromSourceRange(program, range) + const pathToNode = pathToNodeFromRustNodePath(op.nodePath) if (pathToNode.length === 0) { return undefined } @@ -1299,10 +1276,7 @@ export async function enterAppearanceFlow({ if (stdLibInfo && stdLibInfo.supportsAppearance) { const argDefaultValues = { - nodeToEdit: getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ), + nodeToEdit: pathToNodeFromRustNodePath(operation.nodePath), } return { type: 'Find and select command', @@ -1334,10 +1308,7 @@ async function prepareToEditTranslate({ operation }: EnterEditFlowProps) { } } - const nodeToEdit = getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ) + const nodeToEdit = pathToNodeFromRustNodePath(operation.nodePath) let x: KclExpression | undefined = undefined let y: KclExpression | undefined = undefined let z: KclExpression | undefined = undefined @@ -1408,10 +1379,7 @@ async function prepareToEditRotate({ operation }: EnterEditFlowProps) { } } - const nodeToEdit = getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ) + const nodeToEdit = pathToNodeFromRustNodePath(operation.nodePath) let roll: KclExpression | undefined = undefined let pitch: KclExpression | undefined = undefined let yaw: KclExpression | undefined = undefined @@ -1480,10 +1448,7 @@ export async function enterCloneFlow({ ) } - const nodeToEdit = getNodePathFromSourceRange( - kclManager.ast, - sourceRangeFromRust(operation.sourceRange) - ) + const nodeToEdit = pathToNodeFromRustNodePath(operation.nodePath) // Won't be used since we provide nodeToEdit const selection: Selections = { graphSelections: [], otherSelections: [] }