diff --git a/docs/kcl/consts.md b/docs/kcl/consts.md index c204f1d77..385c7bf46 100644 --- a/docs/kcl/consts.md +++ b/docs/kcl/consts.md @@ -9,13 +9,9 @@ layout: manual ### `std` -- [`HALF_TURN`](/docs/kcl/consts/std-HALF_TURN) -- [`QUARTER_TURN`](/docs/kcl/consts/std-QUARTER_TURN) -- [`THREE_QUARTER_TURN`](/docs/kcl/consts/std-THREE_QUARTER_TURN) - [`XY`](/docs/kcl/consts/std-XY) - [`XZ`](/docs/kcl/consts/std-XZ) - [`YZ`](/docs/kcl/consts/std-YZ) -- [`ZERO`](/docs/kcl/consts/std-ZERO) ### `std::math` @@ -23,3 +19,10 @@ layout: manual - [`PI`](/docs/kcl/consts/std-math-PI) - [`TAU`](/docs/kcl/consts/std-math-TAU) +### `std::turns` + +- [`HALF_TURN`](/docs/kcl/consts/std-turns-HALF_TURN) +- [`QUARTER_TURN`](/docs/kcl/consts/std-turns-QUARTER_TURN) +- [`THREE_QUARTER_TURN`](/docs/kcl/consts/std-turns-THREE_QUARTER_TURN) +- [`ZERO`](/docs/kcl/consts/std-turns-ZERO) + diff --git a/docs/kcl/consts/std-HALF_TURN.md b/docs/kcl/consts/std-HALF_TURN.md deleted file mode 100644 index 65a69a56e..000000000 --- a/docs/kcl/consts/std-HALF_TURN.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "std::HALF_TURN" -excerpt: "" -layout: manual ---- - - - - - -```js -std::HALF_TURN: number(deg) = 180deg -``` - - diff --git a/docs/kcl/consts/std-QUARTER_TURN.md b/docs/kcl/consts/std-QUARTER_TURN.md deleted file mode 100644 index 7fb657840..000000000 --- a/docs/kcl/consts/std-QUARTER_TURN.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "std::QUARTER_TURN" -excerpt: "" -layout: manual ---- - - - - - -```js -std::QUARTER_TURN: number(deg) = 90deg -``` - - diff --git a/docs/kcl/consts/std-THREE_QUARTER_TURN.md b/docs/kcl/consts/std-THREE_QUARTER_TURN.md deleted file mode 100644 index 4d66e4d2f..000000000 --- a/docs/kcl/consts/std-THREE_QUARTER_TURN.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "std::THREE_QUARTER_TURN" -excerpt: "" -layout: manual ---- - - - - - -```js -std::THREE_QUARTER_TURN: number(deg) = 270deg -``` - - diff --git a/docs/kcl/consts/std-ZERO.md b/docs/kcl/consts/std-ZERO.md deleted file mode 100644 index 0002979af..000000000 --- a/docs/kcl/consts/std-ZERO.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "std::ZERO" -excerpt: "" -layout: manual ---- - - - - - -```js -std::ZERO: number = 0 -``` - - diff --git a/docs/kcl/consts/std-turns-HALF_TURN.md b/docs/kcl/consts/std-turns-HALF_TURN.md new file mode 100644 index 000000000..b019c2a5d --- /dev/null +++ b/docs/kcl/consts/std-turns-HALF_TURN.md @@ -0,0 +1,15 @@ +--- +title: "std::turns::HALF_TURN" +excerpt: "" +layout: manual +--- + + + + + +```js +std::turns::HALF_TURN: number(deg) = 180deg +``` + + diff --git a/docs/kcl/consts/std-turns-QUARTER_TURN.md b/docs/kcl/consts/std-turns-QUARTER_TURN.md new file mode 100644 index 000000000..baf369a91 --- /dev/null +++ b/docs/kcl/consts/std-turns-QUARTER_TURN.md @@ -0,0 +1,15 @@ +--- +title: "std::turns::QUARTER_TURN" +excerpt: "" +layout: manual +--- + + + + + +```js +std::turns::QUARTER_TURN: number(deg) = 90deg +``` + + diff --git a/docs/kcl/consts/std-turns-THREE_QUARTER_TURN.md b/docs/kcl/consts/std-turns-THREE_QUARTER_TURN.md new file mode 100644 index 000000000..11ce8e342 --- /dev/null +++ b/docs/kcl/consts/std-turns-THREE_QUARTER_TURN.md @@ -0,0 +1,15 @@ +--- +title: "std::turns::THREE_QUARTER_TURN" +excerpt: "" +layout: manual +--- + + + + + +```js +std::turns::THREE_QUARTER_TURN: number(deg) = 270deg +``` + + diff --git a/docs/kcl/consts/std-turns-ZERO.md b/docs/kcl/consts/std-turns-ZERO.md new file mode 100644 index 000000000..b32ff42de --- /dev/null +++ b/docs/kcl/consts/std-turns-ZERO.md @@ -0,0 +1,15 @@ +--- +title: "std::turns::ZERO" +excerpt: "" +layout: manual +--- + + + + + +```js +std::turns::ZERO: number = 0 +``` + + diff --git a/docs/kcl/index.md b/docs/kcl/index.md index 5b73d3ec1..97bf13f51 100644 --- a/docs/kcl/index.md +++ b/docs/kcl/index.md @@ -23,19 +23,15 @@ layout: manual * [`tag`](kcl/types/tag) * **std** * [`Face`](kcl/types/Face) - * [`HALF_TURN`](kcl/consts/std-HALF_TURN) * [`Helix`](kcl/types/Helix) * [`Plane`](kcl/types/Plane) * [`Point2d`](kcl/types/Point2d) * [`Point3d`](kcl/types/Point3d) - * [`QUARTER_TURN`](kcl/consts/std-QUARTER_TURN) * [`Sketch`](kcl/types/Sketch) * [`Solid`](kcl/types/Solid) - * [`THREE_QUARTER_TURN`](kcl/consts/std-THREE_QUARTER_TURN) * [`XY`](kcl/consts/std-XY) * [`XZ`](kcl/consts/std-XZ) * [`YZ`](kcl/consts/std-YZ) - * [`ZERO`](kcl/consts/std-ZERO) * [`abs`](kcl/abs) * [`acos`](kcl/acos) * [`angleToMatchLengthX`](kcl/angleToMatchLengthX) @@ -146,3 +142,8 @@ layout: manual * [`tan`](kcl/std-math-tan) * **std::sketch** * [`circle`](kcl/std-sketch-circle) +* **std::turns** + * [`turns::HALF_TURN`](kcl/consts/std-turns-HALF_TURN) + * [`turns::QUARTER_TURN`](kcl/consts/std-turns-QUARTER_TURN) + * [`turns::THREE_QUARTER_TURN`](kcl/consts/std-turns-THREE_QUARTER_TURN) + * [`turns::ZERO`](kcl/consts/std-turns-ZERO) diff --git a/e2e/playwright/snapshot-tests.spec.ts b/e2e/playwright/snapshot-tests.spec.ts index 8e2171696..67d40bb6a 100644 --- a/e2e/playwright/snapshot-tests.spec.ts +++ b/e2e/playwright/snapshot-tests.spec.ts @@ -76,11 +76,11 @@ part001 = startSketchOn(-XZ) |> xLine(endAbsolute = totalLen, tag = $seg03) |> yLine(length = -armThick, tag = $seg01) |> angledLineThatIntersects({ - angle = HALF_TURN, + angle = turns::HALF_TURN, offset = -armThick, intersectTag = seg04 }, %) - |> angledLineToY([segAng(seg04, %) + 180, ZERO], %) + |> angledLineToY([segAng(seg04, %) + 180, turns::ZERO], %) |> angledLineToY({ angle = -bottomAng, to = -totalHeightHalf - armThick, @@ -88,12 +88,12 @@ part001 = startSketchOn(-XZ) |> xLine(length = endAbsolute = segEndX(seg03) + 0) |> yLine(length = -segLen(seg01, %)) |> angledLineThatIntersects({ - angle = HALF_TURN, + angle = turns::HALF_TURN, offset = -armThick, intersectTag = seg02 }, %) |> angledLineToY([segAng(seg02, %) + 180, -baseHeight], %) - |> xLine(endAbsolute = ZERO) + |> xLine(endAbsolute = turns::ZERO) |> close() |> extrude(length = 4)` ) diff --git a/e2e/playwright/testing-constraints.spec.ts b/e2e/playwright/testing-constraints.spec.ts index 57ae5e8da..e820fdc9a 100644 --- a/e2e/playwright/testing-constraints.spec.ts +++ b/e2e/playwright/testing-constraints.spec.ts @@ -486,13 +486,13 @@ test.describe('Testing constraints', { tag: ['@skipWin'] }, () => { testName: 'Add variable, selecting axis', addVariable: true, axisSelect: true, - value: 'QUARTER_TURN - angle001', + value: 'turns::QUARTER_TURN - angle001', }, { testName: 'No variable, selecting axis', addVariable: false, axisSelect: true, - value: 'QUARTER_TURN - 7', + value: 'turns::QUARTER_TURN - 7', }, ] as const for (const { testName, addVariable, value, axisSelect } of cases) { @@ -935,12 +935,12 @@ part002 = startSketchOn(XZ) test.describe('Axis & segment - no modal constraints', () => { const cases = [ { - codeAfter: `|> line(endAbsolute = [154.9, ZERO])`, + codeAfter: `|> line(endAbsolute = [154.9, turns::ZERO])`, axisClick: { x: 950, y: 250 }, constraintName: 'Snap To X', }, { - codeAfter: `|> line(endAbsolute = [ZERO, 61.34])`, + codeAfter: `|> line(endAbsolute = [turns::ZERO, 61.34])`, axisClick: { x: 600, y: 150 }, constraintName: 'Snap To Y', }, diff --git a/e2e/playwright/various.spec.ts b/e2e/playwright/various.spec.ts index 3591a6f7d..90a4283c5 100644 --- a/e2e/playwright/various.spec.ts +++ b/e2e/playwright/various.spec.ts @@ -67,11 +67,11 @@ part001 = startSketchOn(-XZ) |> xLine(endAbsolute = totalLen, tag = $seg03) |> yLine(length = -armThick, tag = $seg01) |> angledLineThatIntersects({ - angle = HALF_TURN, + angle = turns::HALF_TURN, offset = -armThick, intersectTag = seg04 }, %) -|> angledLineToY([segAng(seg04) + 180, ZERO], %) +|> angledLineToY([segAng(seg04) + 180, turns::ZERO], %) |> angledLineToY({ angle = -bottomAng, to = -totalHeightHalf - armThick, @@ -79,12 +79,12 @@ part001 = startSketchOn(-XZ) |> xLine(endAbsolute = segEndX(seg03) + 0) |> yLine(length = -segLen(seg01)) |> angledLineThatIntersects({ - angle = HALF_TURN, + angle = turns::HALF_TURN, offset = -armThick, intersectTag = seg02 }, %) |> angledLineToY([segAng(seg02) + 180, -baseHeight], %) -|> xLine(endAbsolute = ZERO) +|> xLine(endAbsolute = turns::ZERO) |> close() |> extrude(length = 4)` ) diff --git a/public/kcl-samples/router-template-cross-bar/main.kcl b/public/kcl-samples/router-template-cross-bar/main.kcl index ee84d1ed6..8542f8dd5 100644 --- a/public/kcl-samples/router-template-cross-bar/main.kcl +++ b/public/kcl-samples/router-template-cross-bar/main.kcl @@ -14,7 +14,7 @@ radius = 10 depth = 30 distanceToInsideEdge = slateWidthHalf + templateThickness + templateGap sketch001 = startSketchOn(XZ) - |> startProfileAt([ZERO, depth + templateGap], %) + |> startProfileAt([turns::ZERO, depth + templateGap], %) |> xLine(length = slateWidthHalf - radius, tag = $seg01) |> arc({ angleEnd = 0, @@ -28,7 +28,7 @@ sketch001 = startSketchOn(XZ) |> yLine(length = templateThickness * 2, tag = $seg08) |> xLine(endAbsolute = segEndX(seg02) + 0, tag = $seg05) |> yLine(endAbsolute = segEndY(seg01) + templateThickness, tag = $seg10) - |> xLine(endAbsolute = ZERO, tag = $seg04) + |> xLine(endAbsolute = turns::ZERO, tag = $seg04) |> xLine(length = -segLen(seg04)) |> yLine(length = -segLen(seg10)) |> xLine(length = -segLen(seg05)) diff --git a/public/kcl-samples/router-template-slate/main.kcl b/public/kcl-samples/router-template-slate/main.kcl index adbde8403..0535cc7d3 100644 --- a/public/kcl-samples/router-template-slate/main.kcl +++ b/public/kcl-samples/router-template-slate/main.kcl @@ -28,7 +28,7 @@ sketch001 = startSketchOn(XZ) |> yLine(endAbsolute = -templateGap * 2 - (templateDiameter / 2), tag = $seg05) |> xLine(endAbsolute = slateWidthHalf + templateThickness, tag = $seg04) |> yLine(length = -length002, tag = $seg03) - |> xLine(endAbsolute = ZERO, tag = $seg02) + |> xLine(endAbsolute = turns::ZERO, tag = $seg02) // |> line(end = [7.78, 11.16]) |> xLine(length = -segLen(seg02)) |> yLine(length = segLen(seg03)) diff --git a/rust/kcl-lib/src/docs/gen_std_tests.rs b/rust/kcl-lib/src/docs/gen_std_tests.rs index ce930b392..475329a58 100644 --- a/rust/kcl-lib/src/docs/gen_std_tests.rs +++ b/rust/kcl-lib/src/docs/gen_std_tests.rs @@ -339,9 +339,9 @@ fn generate_index(combined: &IndexMap>, kcl_lib: &[Doc } functions.entry(d.mod_name()).or_default().push(match d { - DocData::Fn(f) => (f.name.clone(), d.file_name()), - DocData::Const(c) => (c.name.clone(), d.file_name()), - DocData::Ty(t) => (t.name.clone(), d.file_name()), + DocData::Fn(f) => (f.preferred_name.clone(), d.file_name()), + DocData::Const(c) => (c.preferred_name.clone(), d.file_name()), + DocData::Ty(t) => (t.preferred_name.clone(), d.file_name()), }); if let DocData::Const(c) = d { diff --git a/rust/kcl-lib/src/docs/kcl_doc.rs b/rust/kcl-lib/src/docs/kcl_doc.rs index 0c72cdd7d..fe78ddf2a 100644 --- a/rust/kcl-lib/src/docs/kcl_doc.rs +++ b/rust/kcl-lib/src/docs/kcl_doc.rs @@ -9,7 +9,7 @@ use tower_lsp::lsp_types::{ use crate::{ execution::annotations, parsing::{ - ast::types::{Annotation, Node, PrimitiveType, Type, VariableKind}, + ast::types::{Annotation, ImportSelector, Node, PrimitiveType, Type, VariableKind}, token::NumericSuffix, }, ModuleId, @@ -17,7 +17,7 @@ use crate::{ pub fn walk_prelude() -> Vec { let mut visitor = CollectionVisitor::default(); - visitor.visit_module("prelude").unwrap(); + visitor.visit_module("prelude", "").unwrap(); visitor.result } @@ -29,7 +29,7 @@ struct CollectionVisitor { } impl CollectionVisitor { - fn visit_module(&mut self, name: &str) -> Result<(), String> { + fn visit_module(&mut self, name: &str, preferred_prefix: &str) -> Result<(), String> { let old_name = std::mem::replace(&mut self.name, name.to_owned()); let source = crate::modules::read_std(name).unwrap(); let parsed = crate::parsing::parse_str(source, ModuleId::from_usize(self.id)) @@ -40,14 +40,16 @@ impl CollectionVisitor { for n in &parsed.body { match n { crate::parsing::ast::types::BodyItem::ImportStatement(import) if !import.visibility.is_default() => { - // Only supports glob imports for now. - assert!(matches!( - import.selector, - crate::parsing::ast::types::ImportSelector::Glob(..) - )); match &import.path { crate::parsing::ast::types::ImportPath::Std { path } => { - self.visit_module(&path[1])?; + match import.selector { + ImportSelector::Glob(..) => self.visit_module(&path[1], "")?, + ImportSelector::None { .. } => { + self.visit_module(&path[1], &format!("{}::", import.module_name().unwrap()))? + } + // Only supports glob or whole-module imports for now. + _ => unimplemented!(), + } } p => return Err(format!("Unexpected import: `{p}`")), } @@ -59,8 +61,8 @@ impl CollectionVisitor { format!("std::{}::", self.name) }; let mut dd = match var.kind { - VariableKind::Fn => DocData::Fn(FnData::from_ast(var, qual_name)), - VariableKind::Const => DocData::Const(ConstData::from_ast(var, qual_name)), + VariableKind::Fn => DocData::Fn(FnData::from_ast(var, qual_name, preferred_prefix)), + VariableKind::Const => DocData::Const(ConstData::from_ast(var, qual_name, preferred_prefix)), }; dd.with_meta(&var.outer_attrs); @@ -77,7 +79,7 @@ impl CollectionVisitor { } else { format!("std::{}::", self.name) }; - let mut dd = DocData::Ty(TyData::from_ast(ty, qual_name)); + let mut dd = DocData::Ty(TyData::from_ast(ty, qual_name, preferred_prefix)); dd.with_meta(&ty.outer_attrs); for a in &ty.outer_attrs { @@ -200,6 +202,8 @@ impl DocData { #[derive(Debug, Clone)] pub struct ConstData { pub name: String, + /// How the const is indexed, etc. + pub preferred_name: String, /// The fully qualified name. pub qual_name: String, pub value: Option, @@ -216,7 +220,11 @@ pub struct ConstData { } impl ConstData { - fn from_ast(var: &crate::parsing::ast::types::VariableDeclaration, mut qual_name: String) -> Self { + fn from_ast( + var: &crate::parsing::ast::types::VariableDeclaration, + mut qual_name: String, + preferred_prefix: &str, + ) -> Self { assert_eq!(var.kind, crate::parsing::ast::types::VariableKind::Const); let (value, ty) = match &var.declaration.init { @@ -240,6 +248,7 @@ impl ConstData { let name = var.declaration.id.name.clone(); qual_name.push_str(&name); ConstData { + preferred_name: format!("{preferred_prefix}{name}"), name, qual_name, value, @@ -272,7 +281,7 @@ impl ConstData { detail.push_str(ty); } CompletionItem { - label: self.name.clone(), + label: self.preferred_name.clone(), label_details: Some(CompletionItemLabelDetails { detail: self.value.clone(), description: None, @@ -306,6 +315,8 @@ impl ConstData { pub struct FnData { /// The name of the function. pub name: String, + /// How the function is indexed, etc. + pub preferred_name: String, /// The fully qualified name. pub qual_name: String, /// The args of the function. @@ -326,7 +337,11 @@ pub struct FnData { } impl FnData { - fn from_ast(var: &crate::parsing::ast::types::VariableDeclaration, mut qual_name: String) -> Self { + fn from_ast( + var: &crate::parsing::ast::types::VariableDeclaration, + mut qual_name: String, + preferred_prefix: &str, + ) -> Self { assert_eq!(var.kind, crate::parsing::ast::types::VariableKind::Fn); let crate::parsing::ast::types::Expr::FunctionExpression(expr) = &var.declaration.init else { unreachable!(); @@ -345,6 +360,7 @@ impl FnData { } FnData { + preferred_name: format!("{preferred_prefix}{name}"), name, qual_name, args: expr.params.iter().map(ArgData::from_ast).collect(), @@ -443,7 +459,7 @@ impl FnData { } // We end with ${} so you can jump to the end of the snippet. // After the last argument. - format!("{}({})${{}}", self.name, args.join(", ")) + format!("{}({})${{}}", self.preferred_name, args.join(", ")) } fn to_signature_help(&self) -> SignatureHelp { @@ -452,7 +468,7 @@ impl FnData { SignatureHelp { signatures: vec![SignatureInformation { - label: self.name.clone(), + label: self.preferred_name.clone(), documentation: self.short_docs().map(|s| { Documentation::MarkupContent(MarkupContent { kind: MarkupKind::Markdown, @@ -580,6 +596,8 @@ impl ArgKind { pub struct TyData { /// The name of the function. pub name: String, + /// How the type is indexed, etc. + pub preferred_name: String, /// The fully qualified name. pub qual_name: String, pub properties: Properties, @@ -597,7 +615,11 @@ pub struct TyData { } impl TyData { - fn from_ast(ty: &crate::parsing::ast::types::TypeDeclaration, mut qual_name: String) -> Self { + fn from_ast( + ty: &crate::parsing::ast::types::TypeDeclaration, + mut qual_name: String, + preferred_prefix: &str, + ) -> Self { let name = ty.name.name.clone(); qual_name.push_str(&name); let mut referenced_types = HashSet::new(); @@ -606,6 +628,7 @@ impl TyData { } TyData { + preferred_name: format!("{preferred_prefix}{name}"), name, qual_name, properties: Properties { @@ -641,7 +664,7 @@ impl TyData { fn to_completion_item(&self) -> CompletionItem { CompletionItem { - label: self.name.clone(), + label: self.preferred_name.clone(), label_details: self.alias.as_ref().map(|t| CompletionItemLabelDetails { detail: Some(format!("type {} = {t}", self.name)), description: None, @@ -658,7 +681,7 @@ impl TyData { preselect: None, sort_text: None, filter_text: None, - insert_text: Some(self.name.clone()), + insert_text: Some(self.preferred_name.clone()), insert_text_format: Some(InsertTextFormat::SNIPPET), insert_text_mode: None, text_edit: None, diff --git a/rust/kcl-lib/src/modules.rs b/rust/kcl-lib/src/modules.rs index 9e6c248eb..9107f7714 100644 --- a/rust/kcl-lib/src/modules.rs +++ b/rust/kcl-lib/src/modules.rs @@ -88,6 +88,7 @@ pub(crate) fn read_std(mod_name: &str) -> Option<&'static str> { "prelude" => Some(include_str!("../std/prelude.kcl")), "math" => Some(include_str!("../std/math.kcl")), "sketch" => Some(include_str!("../std/sketch.kcl")), + "turns" => Some(include_str!("../std/turns.kcl")), _ => None, } } diff --git a/rust/kcl-lib/src/parsing/ast/types/mod.rs b/rust/kcl-lib/src/parsing/ast/types/mod.rs index 43f736fb8..ff5c35134 100644 --- a/rust/kcl-lib/src/parsing/ast/types/mod.rs +++ b/rust/kcl-lib/src/parsing/ast/types/mod.rs @@ -1609,19 +1609,21 @@ impl ImportStatement { return Some(alias.name.clone()); } - let mut parts = match &self.path { - ImportPath::Kcl { filename: s } | ImportPath::Foreign { path: s } => s.split('.'), - _ => return None, - }; - let path = parts.next()?; - let _ext = parts.next()?; - let rest = parts.next(); + match &self.path { + ImportPath::Kcl { filename: s } | ImportPath::Foreign { path: s } => { + let mut parts = s.split('.'); + let path = parts.next()?; + let _ext = parts.next()?; + let rest = parts.next(); - if rest.is_some() { - return None; + if rest.is_some() { + return None; + } + + path.rsplit(&['/', '\\']).next().map(str::to_owned) + } + ImportPath::Std { path } => path.last().cloned(), } - - path.rsplit(&['/', '\\']).next().map(str::to_owned) } } diff --git a/rust/kcl-lib/src/parsing/mod.rs b/rust/kcl-lib/src/parsing/mod.rs index d0a81f5cf..b9c734232 100644 --- a/rust/kcl-lib/src/parsing/mod.rs +++ b/rust/kcl-lib/src/parsing/mod.rs @@ -152,7 +152,12 @@ const STR_DEPRECATIONS: [(&str, &str); 6] = [ ("-YZ", "-YZ"), ]; const FN_DEPRECATIONS: [(&str, &str); 3] = [("pi", "PI"), ("e", "E"), ("tau", "TAU")]; -const CONST_DEPRECATIONS: [(&str, &str); 0] = []; +const CONST_DEPRECATIONS: [(&str, &str); 4] = [ + ("ZERO", "turns::ZERO"), + ("QUARTER_TURN", "turns::QUARTER_TURN"), + ("HALF_TURN", "turns::HALF_TURN"), + ("THREE_QUARTER_TURN", "turns::THREE_QUARTER_TURN"), +]; #[derive(Clone, Copy)] pub enum DeprecationKind { diff --git a/rust/kcl-lib/src/parsing/parser.rs b/rust/kcl-lib/src/parsing/parser.rs index b638aa422..572a4bd8b 100644 --- a/rust/kcl-lib/src/parsing/parser.rs +++ b/rust/kcl-lib/src/parsing/parser.rs @@ -1823,14 +1823,6 @@ fn import_stmt(i: &mut TokenSlice) -> PResult> { ) .into(), )); - } else if matches!(path, ImportPath::Std { .. }) && matches!(selector, ImportSelector::None { .. }) { - return Err(ErrMode::Cut( - CompilationError::fatal( - SourceRange::new(start, end, module_id), - "the standard library cannot be imported as a part", - ) - .into(), - )); } Ok(Node::boxed( diff --git a/rust/kcl-lib/std/prelude.kcl b/rust/kcl-lib/std/prelude.kcl index cb8d74ffe..6addc621a 100644 --- a/rust/kcl-lib/std/prelude.kcl +++ b/rust/kcl-lib/std/prelude.kcl @@ -5,6 +5,7 @@ export import * from "std::math" export import * from "std::sketch" +export import "std::turns" /// A number /// @@ -245,11 +246,6 @@ export type Point2d = [number; 2] /// with type `Point3d`, use an array, e.g., `[0, 0, 0]` or `[5.0, 3.14, 6.8]`. export type Point3d = [number; 3] -export ZERO = 0 -export QUARTER_TURN = 90deg -export HALF_TURN = 180deg -export THREE_QUARTER_TURN = 270deg - export XY = { origin = { x = 0, y = 0, z = 0 }, xAxis = { x = 1, y = 0, z = 0 }, diff --git a/rust/kcl-lib/std/turns.kcl b/rust/kcl-lib/std/turns.kcl new file mode 100644 index 000000000..9295f6527 --- /dev/null +++ b/rust/kcl-lib/std/turns.kcl @@ -0,0 +1,6 @@ +@no_std + +export ZERO = 0 +export QUARTER_TURN = 90deg +export HALF_TURN = 180deg +export THREE_QUARTER_TURN = 270deg diff --git a/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md index c0a9a06e8..6db8f90fd 100644 --- a/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/assembly_mixed_units_cubes/artifact_graph_flowchart.snap.md @@ -1,25 +1,25 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[76, 113, 4]"] - 3["Segment
[119, 136, 4]"] - 4["Segment
[142, 160, 4]"] - 5["Segment
[166, 184, 4]"] - 6["Segment
[190, 246, 4]"] - 7["Segment
[252, 259, 4]"] + 2["Path
[76, 113, 5]"] + 3["Segment
[119, 136, 5]"] + 4["Segment
[142, 160, 5]"] + 5["Segment
[166, 184, 5]"] + 6["Segment
[190, 246, 5]"] + 7["Segment
[252, 259, 5]"] 8[Solid2d] end subgraph path25 [Path] - 25["Path
[76, 111, 5]"] - 26["Segment
[117, 134, 5]"] - 27["Segment
[140, 158, 5]"] - 28["Segment
[164, 182, 5]"] - 29["Segment
[188, 244, 5]"] - 30["Segment
[250, 257, 5]"] + 25["Path
[76, 111, 6]"] + 26["Segment
[117, 134, 6]"] + 27["Segment
[140, 158, 6]"] + 28["Segment
[164, 182, 6]"] + 29["Segment
[188, 244, 6]"] + 30["Segment
[250, 257, 6]"] 31[Solid2d] end - 1["Plane
[47, 66, 4]"] - 9["Sweep Extrusion
[265, 287, 4]"] + 1["Plane
[47, 66, 5]"] + 9["Sweep Extrusion
[265, 287, 5]"] 10[Wall] 11[Wall] 12[Wall] @@ -34,8 +34,8 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Opposite"] 23["SweepEdge Adjacent"] - 24["Plane
[47, 66, 5]"] - 32["Sweep Extrusion
[263, 285, 5]"] + 24["Plane
[47, 66, 6]"] + 32["Sweep Extrusion
[263, 285, 6]"] 33[Wall] 34[Wall] 35[Wall] diff --git a/rust/kcl-lib/tests/assembly_mixed_units_cubes/program_memory.snap b/rust/kcl-lib/tests/assembly_mixed_units_cubes/program_memory.snap index e5b7aa3ff..1a6491220 100644 --- a/rust/kcl-lib/tests/assembly_mixed_units_cubes/program_memory.snap +++ b/rust/kcl-lib/tests/assembly_mixed_units_cubes/program_memory.snap @@ -5,10 +5,10 @@ description: Variables in memory after executing assembly_mixed_units_cubes.kcl { "cubeIn": { "type": "Module", - "value": 4 + "value": 5 }, "cubeMm": { "type": "Module", - "value": 5 + "value": 6 } } diff --git a/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md index df59ea4bb..3c76048bf 100644 --- a/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/assembly_non_default_units/artifact_graph_flowchart.snap.md @@ -1,17 +1,17 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[197, 232, 4]"] - 3["Segment
[197, 232, 4]"] + 2["Path
[197, 232, 5]"] + 3["Segment
[197, 232, 5]"] 4[Solid2d] end subgraph path6 [Path] - 6["Path
[113, 148, 5]"] - 7["Segment
[113, 148, 5]"] + 6["Path
[113, 148, 6]"] + 7["Segment
[113, 148, 6]"] 8[Solid2d] end - 1["Plane
[172, 191, 4]"] - 5["Plane
[88, 107, 5]"] + 1["Plane
[172, 191, 5]"] + 5["Plane
[88, 107, 6]"] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/assembly_non_default_units/program_memory.snap b/rust/kcl-lib/tests/assembly_non_default_units/program_memory.snap index 0d6c82eda..9d0c227bf 100644 --- a/rust/kcl-lib/tests/assembly_non_default_units/program_memory.snap +++ b/rust/kcl-lib/tests/assembly_non_default_units/program_memory.snap @@ -5,10 +5,10 @@ description: Variables in memory after executing assembly_non_default_units.kcl { "other1": { "type": "Module", - "value": 4 + "value": 5 }, "other2": { "type": "Module", - "value": 5 + "value": 6 } } diff --git a/rust/kcl-lib/tests/import_foreign/program_memory.snap b/rust/kcl-lib/tests/import_foreign/program_memory.snap index 585e23400..88d57cd00 100644 --- a/rust/kcl-lib/tests/import_foreign/program_memory.snap +++ b/rust/kcl-lib/tests/import_foreign/program_memory.snap @@ -5,7 +5,7 @@ description: Variables in memory after executing import_foreign.kcl { "cube": { "type": "Module", - "value": 4 + "value": 5 }, "model": { "type": "ImportedGeometry", diff --git a/rust/kcl-lib/tests/import_transform/program_memory.snap b/rust/kcl-lib/tests/import_transform/program_memory.snap index 8599d50df..ef1a01f7f 100644 --- a/rust/kcl-lib/tests/import_transform/program_memory.snap +++ b/rust/kcl-lib/tests/import_transform/program_memory.snap @@ -5,6 +5,6 @@ description: Variables in memory after executing import_transform.kcl { "screw": { "type": "Module", - "value": 4 + "value": 5 } } diff --git a/rust/kcl-lib/tests/import_whole/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/import_whole/artifact_graph_flowchart.snap.md index 02ba66870..ce1d43882 100644 --- a/rust/kcl-lib/tests/import_whole/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/import_whole/artifact_graph_flowchart.snap.md @@ -1,12 +1,12 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[83, 119, 4]"] - 3["Segment
[83, 119, 4]"] + 2["Path
[83, 119, 5]"] + 3["Segment
[83, 119, 5]"] 4[Solid2d] end - 1["Plane
[60, 77, 4]"] - 5["Sweep Extrusion
[125, 145, 4]"] + 1["Plane
[60, 77, 5]"] + 5["Sweep Extrusion
[125, 145, 5]"] 6[Wall] 7["Cap Start"] 8["Cap End"] diff --git a/rust/kcl-lib/tests/import_whole/program_memory.snap b/rust/kcl-lib/tests/import_whole/program_memory.snap index afceb706f..be03eed1d 100644 --- a/rust/kcl-lib/tests/import_whole/program_memory.snap +++ b/rust/kcl-lib/tests/import_whole/program_memory.snap @@ -111,6 +111,6 @@ description: Variables in memory after executing import_whole.kcl }, "foo": { "type": "Module", - "value": 4 + "value": 5 } } diff --git a/rust/kcl-lib/tests/kcl_samples/bench/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/bench/artifact_graph_flowchart.snap.md index 5d4b87145..89829e189 100644 --- a/rust/kcl-lib/tests/kcl_samples/bench/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/bench/artifact_graph_flowchart.snap.md @@ -1,239 +1,239 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[361, 394, 4]"] - 3["Segment
[402, 428, 4]"] - 4["Segment
[436, 489, 4]"] - 5["Segment
[497, 550, 4]"] - 6["Segment
[558, 612, 4]"] - 7["Segment
[620, 645, 4]"] - 8["Segment
[653, 673, 4]"] - 9["Segment
[681, 705, 4]"] - 10["Segment
[713, 766, 4]"] - 11["Segment
[774, 799, 4]"] - 12["Segment
[807, 827, 4]"] - 13["Segment
[835, 859, 4]"] - 14["Segment
[867, 919, 4]"] - 15["Segment
[927, 979, 4]"] - 16["Segment
[987, 1012, 4]"] - 17["Segment
[1020, 1044, 4]"] - 18["Segment
[1052, 1105, 4]"] - 19["Segment
[1113, 1138, 4]"] - 20["Segment
[1146, 1173, 4]"] - 21["Segment
[1181, 1233, 4]"] - 22["Segment
[1241, 1276, 4]"] - 23["Segment
[1284, 1291, 4]"] + 2["Path
[361, 394, 5]"] + 3["Segment
[402, 428, 5]"] + 4["Segment
[436, 489, 5]"] + 5["Segment
[497, 550, 5]"] + 6["Segment
[558, 612, 5]"] + 7["Segment
[620, 645, 5]"] + 8["Segment
[653, 673, 5]"] + 9["Segment
[681, 705, 5]"] + 10["Segment
[713, 766, 5]"] + 11["Segment
[774, 799, 5]"] + 12["Segment
[807, 827, 5]"] + 13["Segment
[835, 859, 5]"] + 14["Segment
[867, 919, 5]"] + 15["Segment
[927, 979, 5]"] + 16["Segment
[987, 1012, 5]"] + 17["Segment
[1020, 1044, 5]"] + 18["Segment
[1052, 1105, 5]"] + 19["Segment
[1113, 1138, 5]"] + 20["Segment
[1146, 1173, 5]"] + 21["Segment
[1181, 1233, 5]"] + 22["Segment
[1241, 1276, 5]"] + 23["Segment
[1284, 1291, 5]"] 24[Solid2d] end subgraph path89 [Path] - 89["Path
[361, 394, 4]"] - 90["Segment
[402, 428, 4]"] - 91["Segment
[436, 489, 4]"] - 92["Segment
[497, 550, 4]"] - 93["Segment
[558, 612, 4]"] - 94["Segment
[620, 645, 4]"] - 95["Segment
[653, 673, 4]"] - 96["Segment
[681, 705, 4]"] - 97["Segment
[713, 766, 4]"] - 98["Segment
[774, 799, 4]"] - 99["Segment
[807, 827, 4]"] - 100["Segment
[835, 859, 4]"] - 101["Segment
[867, 919, 4]"] - 102["Segment
[927, 979, 4]"] - 103["Segment
[987, 1012, 4]"] - 104["Segment
[1020, 1044, 4]"] - 105["Segment
[1052, 1105, 4]"] - 106["Segment
[1113, 1138, 4]"] - 107["Segment
[1146, 1173, 4]"] - 108["Segment
[1181, 1233, 4]"] - 109["Segment
[1241, 1276, 4]"] - 110["Segment
[1284, 1291, 4]"] + 89["Path
[361, 394, 5]"] + 90["Segment
[402, 428, 5]"] + 91["Segment
[436, 489, 5]"] + 92["Segment
[497, 550, 5]"] + 93["Segment
[558, 612, 5]"] + 94["Segment
[620, 645, 5]"] + 95["Segment
[653, 673, 5]"] + 96["Segment
[681, 705, 5]"] + 97["Segment
[713, 766, 5]"] + 98["Segment
[774, 799, 5]"] + 99["Segment
[807, 827, 5]"] + 100["Segment
[835, 859, 5]"] + 101["Segment
[867, 919, 5]"] + 102["Segment
[927, 979, 5]"] + 103["Segment
[987, 1012, 5]"] + 104["Segment
[1020, 1044, 5]"] + 105["Segment
[1052, 1105, 5]"] + 106["Segment
[1113, 1138, 5]"] + 107["Segment
[1146, 1173, 5]"] + 108["Segment
[1181, 1233, 5]"] + 109["Segment
[1241, 1276, 5]"] + 110["Segment
[1284, 1291, 5]"] 111[Solid2d] end subgraph path176 [Path] - 176["Path
[361, 394, 4]"] - 177["Segment
[402, 428, 4]"] - 178["Segment
[436, 489, 4]"] - 179["Segment
[497, 550, 4]"] - 180["Segment
[558, 612, 4]"] - 181["Segment
[620, 645, 4]"] - 182["Segment
[653, 673, 4]"] - 183["Segment
[681, 705, 4]"] - 184["Segment
[713, 766, 4]"] - 185["Segment
[774, 799, 4]"] - 186["Segment
[807, 827, 4]"] - 187["Segment
[835, 859, 4]"] - 188["Segment
[867, 919, 4]"] - 189["Segment
[927, 979, 4]"] - 190["Segment
[987, 1012, 4]"] - 191["Segment
[1020, 1044, 4]"] - 192["Segment
[1052, 1105, 4]"] - 193["Segment
[1113, 1138, 4]"] - 194["Segment
[1146, 1173, 4]"] - 195["Segment
[1181, 1233, 4]"] - 196["Segment
[1241, 1276, 4]"] - 197["Segment
[1284, 1291, 4]"] + 176["Path
[361, 394, 5]"] + 177["Segment
[402, 428, 5]"] + 178["Segment
[436, 489, 5]"] + 179["Segment
[497, 550, 5]"] + 180["Segment
[558, 612, 5]"] + 181["Segment
[620, 645, 5]"] + 182["Segment
[653, 673, 5]"] + 183["Segment
[681, 705, 5]"] + 184["Segment
[713, 766, 5]"] + 185["Segment
[774, 799, 5]"] + 186["Segment
[807, 827, 5]"] + 187["Segment
[835, 859, 5]"] + 188["Segment
[867, 919, 5]"] + 189["Segment
[927, 979, 5]"] + 190["Segment
[987, 1012, 5]"] + 191["Segment
[1020, 1044, 5]"] + 192["Segment
[1052, 1105, 5]"] + 193["Segment
[1113, 1138, 5]"] + 194["Segment
[1146, 1173, 5]"] + 195["Segment
[1181, 1233, 5]"] + 196["Segment
[1241, 1276, 5]"] + 197["Segment
[1284, 1291, 5]"] 198[Solid2d] end subgraph path262 [Path] - 262["Path
[361, 394, 4]"] - 263["Segment
[402, 428, 4]"] - 264["Segment
[436, 489, 4]"] - 265["Segment
[497, 550, 4]"] - 266["Segment
[558, 612, 4]"] - 267["Segment
[620, 645, 4]"] - 268["Segment
[653, 673, 4]"] - 269["Segment
[681, 705, 4]"] - 270["Segment
[713, 766, 4]"] - 271["Segment
[774, 799, 4]"] - 272["Segment
[807, 827, 4]"] - 273["Segment
[835, 859, 4]"] - 274["Segment
[867, 919, 4]"] - 275["Segment
[927, 979, 4]"] - 276["Segment
[987, 1012, 4]"] - 277["Segment
[1020, 1044, 4]"] - 278["Segment
[1052, 1105, 4]"] - 279["Segment
[1113, 1138, 4]"] - 280["Segment
[1146, 1173, 4]"] - 281["Segment
[1181, 1233, 4]"] - 282["Segment
[1241, 1276, 4]"] - 283["Segment
[1284, 1291, 4]"] + 262["Path
[361, 394, 5]"] + 263["Segment
[402, 428, 5]"] + 264["Segment
[436, 489, 5]"] + 265["Segment
[497, 550, 5]"] + 266["Segment
[558, 612, 5]"] + 267["Segment
[620, 645, 5]"] + 268["Segment
[653, 673, 5]"] + 269["Segment
[681, 705, 5]"] + 270["Segment
[713, 766, 5]"] + 271["Segment
[774, 799, 5]"] + 272["Segment
[807, 827, 5]"] + 273["Segment
[835, 859, 5]"] + 274["Segment
[867, 919, 5]"] + 275["Segment
[927, 979, 5]"] + 276["Segment
[987, 1012, 5]"] + 277["Segment
[1020, 1044, 5]"] + 278["Segment
[1052, 1105, 5]"] + 279["Segment
[1113, 1138, 5]"] + 280["Segment
[1146, 1173, 5]"] + 281["Segment
[1181, 1233, 5]"] + 282["Segment
[1241, 1276, 5]"] + 283["Segment
[1284, 1291, 5]"] 284[Solid2d] end subgraph path349 [Path] - 349["Path
[361, 394, 4]"] - 350["Segment
[402, 428, 4]"] - 351["Segment
[436, 489, 4]"] - 352["Segment
[497, 550, 4]"] - 353["Segment
[558, 612, 4]"] - 354["Segment
[620, 645, 4]"] - 355["Segment
[653, 673, 4]"] - 356["Segment
[681, 705, 4]"] - 357["Segment
[713, 766, 4]"] - 358["Segment
[774, 799, 4]"] - 359["Segment
[807, 827, 4]"] - 360["Segment
[835, 859, 4]"] - 361["Segment
[867, 919, 4]"] - 362["Segment
[927, 979, 4]"] - 363["Segment
[987, 1012, 4]"] - 364["Segment
[1020, 1044, 4]"] - 365["Segment
[1052, 1105, 4]"] - 366["Segment
[1113, 1138, 4]"] - 367["Segment
[1146, 1173, 4]"] - 368["Segment
[1181, 1233, 4]"] - 369["Segment
[1241, 1276, 4]"] - 370["Segment
[1284, 1291, 4]"] + 349["Path
[361, 394, 5]"] + 350["Segment
[402, 428, 5]"] + 351["Segment
[436, 489, 5]"] + 352["Segment
[497, 550, 5]"] + 353["Segment
[558, 612, 5]"] + 354["Segment
[620, 645, 5]"] + 355["Segment
[653, 673, 5]"] + 356["Segment
[681, 705, 5]"] + 357["Segment
[713, 766, 5]"] + 358["Segment
[774, 799, 5]"] + 359["Segment
[807, 827, 5]"] + 360["Segment
[835, 859, 5]"] + 361["Segment
[867, 919, 5]"] + 362["Segment
[927, 979, 5]"] + 363["Segment
[987, 1012, 5]"] + 364["Segment
[1020, 1044, 5]"] + 365["Segment
[1052, 1105, 5]"] + 366["Segment
[1113, 1138, 5]"] + 367["Segment
[1146, 1173, 5]"] + 368["Segment
[1181, 1233, 5]"] + 369["Segment
[1241, 1276, 5]"] + 370["Segment
[1284, 1291, 5]"] 371[Solid2d] end subgraph path435 [Path] - 435["Path
[361, 394, 4]"] - 436["Segment
[402, 428, 4]"] - 437["Segment
[436, 489, 4]"] - 438["Segment
[497, 550, 4]"] - 439["Segment
[558, 612, 4]"] - 440["Segment
[620, 645, 4]"] - 441["Segment
[653, 673, 4]"] - 442["Segment
[681, 705, 4]"] - 443["Segment
[713, 766, 4]"] - 444["Segment
[774, 799, 4]"] - 445["Segment
[807, 827, 4]"] - 446["Segment
[835, 859, 4]"] - 447["Segment
[867, 919, 4]"] - 448["Segment
[927, 979, 4]"] - 449["Segment
[987, 1012, 4]"] - 450["Segment
[1020, 1044, 4]"] - 451["Segment
[1052, 1105, 4]"] - 452["Segment
[1113, 1138, 4]"] - 453["Segment
[1146, 1173, 4]"] - 454["Segment
[1181, 1233, 4]"] - 455["Segment
[1241, 1276, 4]"] - 456["Segment
[1284, 1291, 4]"] + 435["Path
[361, 394, 5]"] + 436["Segment
[402, 428, 5]"] + 437["Segment
[436, 489, 5]"] + 438["Segment
[497, 550, 5]"] + 439["Segment
[558, 612, 5]"] + 440["Segment
[620, 645, 5]"] + 441["Segment
[653, 673, 5]"] + 442["Segment
[681, 705, 5]"] + 443["Segment
[713, 766, 5]"] + 444["Segment
[774, 799, 5]"] + 445["Segment
[807, 827, 5]"] + 446["Segment
[835, 859, 5]"] + 447["Segment
[867, 919, 5]"] + 448["Segment
[927, 979, 5]"] + 449["Segment
[987, 1012, 5]"] + 450["Segment
[1020, 1044, 5]"] + 451["Segment
[1052, 1105, 5]"] + 452["Segment
[1113, 1138, 5]"] + 453["Segment
[1146, 1173, 5]"] + 454["Segment
[1181, 1233, 5]"] + 455["Segment
[1241, 1276, 5]"] + 456["Segment
[1284, 1291, 5]"] 457[Solid2d] end subgraph path522 [Path] - 522["Path
[1685, 1709, 4]"] + 522["Path
[1685, 1709, 5]"] end subgraph path523 [Path] - 523["Path
[1717, 1847, 4]"] - 524["Segment
[1717, 1847, 4]"] - 525["Segment
[1717, 1847, 4]"] - 526["Segment
[1717, 1847, 4]"] - 527["Segment
[1717, 1847, 4]"] - 528["Segment
[1717, 1847, 4]"] - 529["Segment
[1717, 1847, 4]"] - 530["Segment
[1717, 1847, 4]"] + 523["Path
[1717, 1847, 5]"] + 524["Segment
[1717, 1847, 5]"] + 525["Segment
[1717, 1847, 5]"] + 526["Segment
[1717, 1847, 5]"] + 527["Segment
[1717, 1847, 5]"] + 528["Segment
[1717, 1847, 5]"] + 529["Segment
[1717, 1847, 5]"] + 530["Segment
[1717, 1847, 5]"] 531[Solid2d] end subgraph path553 [Path] - 553["Path
[1685, 1709, 4]"] + 553["Path
[1685, 1709, 5]"] end subgraph path554 [Path] - 554["Path
[1717, 1847, 4]"] - 555["Segment
[1717, 1847, 4]"] - 556["Segment
[1717, 1847, 4]"] - 557["Segment
[1717, 1847, 4]"] - 558["Segment
[1717, 1847, 4]"] - 559["Segment
[1717, 1847, 4]"] - 560["Segment
[1717, 1847, 4]"] - 561["Segment
[1717, 1847, 4]"] + 554["Path
[1717, 1847, 5]"] + 555["Segment
[1717, 1847, 5]"] + 556["Segment
[1717, 1847, 5]"] + 557["Segment
[1717, 1847, 5]"] + 558["Segment
[1717, 1847, 5]"] + 559["Segment
[1717, 1847, 5]"] + 560["Segment
[1717, 1847, 5]"] + 561["Segment
[1717, 1847, 5]"] 562[Solid2d] end subgraph path585 [Path] - 585["Path
[2123, 2150, 4]"] - 586["Segment
[2158, 2180, 4]"] - 587["Segment
[2188, 2210, 4]"] - 588["Segment
[2218, 2240, 4]"] - 589["Segment
[2248, 2271, 4]"] - 590["Segment
[2279, 2302, 4]"] - 591["Segment
[2310, 2345, 4]"] - 592["Segment
[2353, 2360, 4]"] + 585["Path
[2123, 2150, 5]"] + 586["Segment
[2158, 2180, 5]"] + 587["Segment
[2188, 2210, 5]"] + 588["Segment
[2218, 2240, 5]"] + 589["Segment
[2248, 2271, 5]"] + 590["Segment
[2279, 2302, 5]"] + 591["Segment
[2310, 2345, 5]"] + 592["Segment
[2353, 2360, 5]"] 593[Solid2d] end subgraph path618 [Path] - 618["Path
[2632, 2661, 4]"] - 619["Segment
[2669, 2692, 4]"] - 620["Segment
[2700, 2725, 4]"] - 621["Segment
[2733, 2757, 4]"] - 622["Segment
[2765, 2789, 4]"] - 623["Segment
[2797, 2819, 4]"] - 624["Segment
[2827, 2862, 4]"] - 625["Segment
[2870, 2877, 4]"] + 618["Path
[2632, 2661, 5]"] + 619["Segment
[2669, 2692, 5]"] + 620["Segment
[2700, 2725, 5]"] + 621["Segment
[2733, 2757, 5]"] + 622["Segment
[2765, 2789, 5]"] + 623["Segment
[2797, 2819, 5]"] + 624["Segment
[2827, 2862, 5]"] + 625["Segment
[2870, 2877, 5]"] 626[Solid2d] end subgraph path650 [Path] - 650["Path
[3152, 3179, 4]"] - 651["Segment
[3187, 3206, 4]"] - 652["Segment
[3214, 3304, 4]"] + 650["Path
[3152, 3179, 5]"] + 651["Segment
[3187, 3206, 5]"] + 652["Segment
[3214, 3304, 5]"] end subgraph path654 [Path] - 654["Path
[3404, 3437, 4]"] - 655["Segment
[3445, 3464, 4]"] - 656["Segment
[3472, 3494, 4]"] - 657["Segment
[3502, 3525, 4]"] - 658["Segment
[3533, 3553, 4]"] - 659["Segment
[3561, 3585, 4]"] - 660["Segment
[3593, 3616, 4]"] - 661["Segment
[3624, 3631, 4]"] + 654["Path
[3404, 3437, 5]"] + 655["Segment
[3445, 3464, 5]"] + 656["Segment
[3472, 3494, 5]"] + 657["Segment
[3502, 3525, 5]"] + 658["Segment
[3533, 3553, 5]"] + 659["Segment
[3561, 3585, 5]"] + 660["Segment
[3593, 3616, 5]"] + 661["Segment
[3624, 3631, 5]"] 662[Solid2d] end subgraph path688 [Path] - 688["Path
[3152, 3179, 4]"] - 689["Segment
[3187, 3206, 4]"] - 690["Segment
[3214, 3304, 4]"] + 688["Path
[3152, 3179, 5]"] + 689["Segment
[3187, 3206, 5]"] + 690["Segment
[3214, 3304, 5]"] end subgraph path692 [Path] - 692["Path
[3404, 3437, 4]"] - 693["Segment
[3445, 3464, 4]"] - 694["Segment
[3472, 3494, 4]"] - 695["Segment
[3502, 3525, 4]"] - 696["Segment
[3533, 3553, 4]"] - 697["Segment
[3561, 3585, 4]"] - 698["Segment
[3593, 3616, 4]"] - 699["Segment
[3624, 3631, 4]"] + 692["Path
[3404, 3437, 5]"] + 693["Segment
[3445, 3464, 5]"] + 694["Segment
[3472, 3494, 5]"] + 695["Segment
[3502, 3525, 5]"] + 696["Segment
[3533, 3553, 5]"] + 697["Segment
[3561, 3585, 5]"] + 698["Segment
[3593, 3616, 5]"] + 699["Segment
[3624, 3631, 5]"] 700[Solid2d] end - 1["Plane
[333, 353, 4]"] - 25["Sweep Extrusion
[1379, 1417, 4]"] + 1["Plane
[333, 353, 5]"] + 25["Sweep Extrusion
[1379, 1417, 5]"] 26[Wall] 27[Wall] 28[Wall] @@ -296,8 +296,8 @@ flowchart LR 85["SweepEdge Adjacent"] 86["SweepEdge Opposite"] 87["SweepEdge Adjacent"] - 88["Plane
[333, 353, 4]"] - 112["Sweep Extrusion
[1455, 1494, 4]"] + 88["Plane
[333, 353, 5]"] + 112["Sweep Extrusion
[1455, 1494, 5]"] 113[Wall] 114[Wall] 115[Wall] @@ -361,7 +361,7 @@ flowchart LR 173["SweepEdge Opposite"] 174["SweepEdge Adjacent"] 175["Plane
[823, 865, 0]"] - 199["Sweep Extrusion
[1379, 1417, 4]"] + 199["Sweep Extrusion
[1379, 1417, 5]"] 200[Wall] 201[Wall] 202[Wall] @@ -424,7 +424,7 @@ flowchart LR 259["SweepEdge Adjacent"] 260["SweepEdge Opposite"] 261["SweepEdge Adjacent"] - 285["Sweep Extrusion
[1455, 1494, 4]"] + 285["Sweep Extrusion
[1455, 1494, 5]"] 286[Wall] 287[Wall] 288[Wall] @@ -488,7 +488,7 @@ flowchart LR 346["SweepEdge Opposite"] 347["SweepEdge Adjacent"] 348["Plane
[875, 916, 0]"] - 372["Sweep Extrusion
[1379, 1417, 4]"] + 372["Sweep Extrusion
[1379, 1417, 5]"] 373[Wall] 374[Wall] 375[Wall] @@ -551,7 +551,7 @@ flowchart LR 432["SweepEdge Adjacent"] 433["SweepEdge Opposite"] 434["SweepEdge Adjacent"] - 458["Sweep Extrusion
[1455, 1494, 4]"] + 458["Sweep Extrusion
[1455, 1494, 5]"] 459[Wall] 460[Wall] 461[Wall] @@ -615,7 +615,7 @@ flowchart LR 519["SweepEdge Opposite"] 520["SweepEdge Adjacent"] 521["Plane
[975, 1017, 0]"] - 532["Sweep Extrusion
[1949, 1973, 4]"] + 532["Sweep Extrusion
[1949, 1973, 5]"] 533[Wall] 534[Wall] 535[Wall] @@ -636,7 +636,7 @@ flowchart LR 550["SweepEdge Adjacent"] 551["SweepEdge Opposite"] 552["SweepEdge Adjacent"] - 563["Sweep Extrusion
[2015, 2039, 4]"] + 563["Sweep Extrusion
[2015, 2039, 5]"] 564[Wall] 565[Wall] 566[Wall] @@ -658,7 +658,7 @@ flowchart LR 582["SweepEdge Opposite"] 583["SweepEdge Adjacent"] 584["Plane
[1068, 1135, 0]"] - 594["Sweep Extrusion
[2523, 2547, 4]"] + 594["Sweep Extrusion
[2523, 2547, 5]"] 595[Wall] 596[Wall] 597[Wall] @@ -679,10 +679,10 @@ flowchart LR 612["SweepEdge Adjacent"] 613["SweepEdge Opposite"] 614["SweepEdge Adjacent"] - 615["Sweep Extrusion
[2523, 2547, 4]"] - 616["Sweep Extrusion
[2523, 2547, 4]"] + 615["Sweep Extrusion
[2523, 2547, 5]"] + 616["Sweep Extrusion
[2523, 2547, 5]"] 617["Plane
[1205, 1272, 0]"] - 627["Sweep Extrusion
[3047, 3071, 4]"] + 627["Sweep Extrusion
[3047, 3071, 5]"] 628[Wall] 629[Wall] 630[Wall] @@ -703,10 +703,10 @@ flowchart LR 645["SweepEdge Adjacent"] 646["SweepEdge Opposite"] 647["SweepEdge Adjacent"] - 648["Sweep Extrusion
[3047, 3071, 4]"] - 649["Plane
[3712, 3747, 4]"] - 653["Plane
[3778, 3807, 4]"] - 663["Sweep Sweep
[3819, 3846, 4]"] + 648["Sweep Extrusion
[3047, 3071, 5]"] + 649["Plane
[3712, 3747, 5]"] + 653["Plane
[3778, 3807, 5]"] + 663["Sweep Sweep
[3819, 3846, 5]"] 664[Wall] 665[Wall] 666[Wall] @@ -730,9 +730,9 @@ flowchart LR 684["SweepEdge Adjacent"] 685["SweepEdge Opposite"] 686["SweepEdge Adjacent"] - 687["Plane
[3712, 3747, 4]"] - 691["Plane
[3778, 3807, 4]"] - 701["Sweep Sweep
[3819, 3846, 4]"] + 687["Plane
[3712, 3747, 5]"] + 691["Plane
[3778, 3807, 5]"] + 701["Sweep Sweep
[3819, 3846, 5]"] 702[Wall] 703[Wall] 704[Wall] @@ -756,18 +756,18 @@ flowchart LR 722["SweepEdge Adjacent"] 723["SweepEdge Opposite"] 724["SweepEdge Adjacent"] - 725["StartSketchOnPlane
[333, 353, 4]"] - 726["StartSketchOnPlane
[333, 353, 4]"] - 727["StartSketchOnPlane
[333, 353, 4]"] - 728["StartSketchOnPlane
[333, 353, 4]"] - 729["StartSketchOnPlane
[1657, 1677, 4]"] - 730["StartSketchOnPlane
[1657, 1677, 4]"] - 731["StartSketchOnPlane
[2095, 2115, 4]"] - 732["StartSketchOnPlane
[2604, 2624, 4]"] - 733["StartSketchOnPlane
[3124, 3144, 4]"] - 734["StartSketchOnPlane
[3376, 3396, 4]"] - 735["StartSketchOnPlane
[3124, 3144, 4]"] - 736["StartSketchOnPlane
[3376, 3396, 4]"] + 725["StartSketchOnPlane
[333, 353, 5]"] + 726["StartSketchOnPlane
[333, 353, 5]"] + 727["StartSketchOnPlane
[333, 353, 5]"] + 728["StartSketchOnPlane
[333, 353, 5]"] + 729["StartSketchOnPlane
[1657, 1677, 5]"] + 730["StartSketchOnPlane
[1657, 1677, 5]"] + 731["StartSketchOnPlane
[2095, 2115, 5]"] + 732["StartSketchOnPlane
[2604, 2624, 5]"] + 733["StartSketchOnPlane
[3124, 3144, 5]"] + 734["StartSketchOnPlane
[3376, 3396, 5]"] + 735["StartSketchOnPlane
[3124, 3144, 5]"] + 736["StartSketchOnPlane
[3376, 3396, 5]"] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/bench/ops.snap b/rust/kcl-lib/tests/kcl_samples/bench/ops.snap index 080fe4fc1..3b7561f6c 100644 --- a/rust/kcl-lib/tests/kcl_samples/bench/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/bench/ops.snap @@ -9,7 +9,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 1331, 1606, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -21,7 +21,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 309, 1312, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -77,7 +77,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 309, 1312, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -248,7 +248,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 1331, 1606, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -260,7 +260,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 309, 1312, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -316,7 +316,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 309, 1312, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -487,7 +487,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 1331, 1606, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -499,7 +499,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 309, 1312, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -555,7 +555,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 309, 1312, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -726,7 +726,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 1889, 2052, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -738,7 +738,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 1626, 1868, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -800,7 +800,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 1626, 1868, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -889,7 +889,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 2474, 2560, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -901,7 +901,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 2071, 2453, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1007,7 +1007,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 2993, 3084, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1019,7 +1019,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 2580, 2972, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1095,7 +1095,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 3671, 3859, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1131,7 +1131,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 3100, 3325, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1191,7 +1191,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 3344, 3652, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1249,7 +1249,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 3671, 3859, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1285,7 +1285,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 3100, 3325, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1345,7 +1345,7 @@ description: Operations executed bench.kcl "functionSourceRange": [ 3344, 3652, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, diff --git a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_graph_flowchart.snap.md index f2ee384f1..66a0ae42b 100644 --- a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/artifact_graph_flowchart.snap.md @@ -1,264 +1,264 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[567, 618, 5]"] - 3["Segment
[567, 618, 5]"] + 2["Path
[567, 618, 6]"] + 3["Segment
[567, 618, 6]"] 4[Solid2d] end subgraph path11 [Path] - 11["Path
[803, 859, 5]"] - 12["Segment
[803, 859, 5]"] + 11["Path
[803, 859, 6]"] + 12["Segment
[803, 859, 6]"] 13[Solid2d] end subgraph path19 [Path] - 19["Path
[984, 1037, 5]"] - 20["Segment
[984, 1037, 5]"] + 19["Path
[984, 1037, 6]"] + 20["Segment
[984, 1037, 6]"] 21[Solid2d] end subgraph path30 [Path] - 30["Path
[1420, 1460, 5]"] - 31["Segment
[1420, 1460, 5]"] + 30["Path
[1420, 1460, 6]"] + 31["Segment
[1420, 1460, 6]"] 32[Solid2d] end subgraph path38 [Path] - 38["Path
[1564, 1615, 5]"] - 39["Segment
[1564, 1615, 5]"] + 38["Path
[1564, 1615, 6]"] + 39["Segment
[1564, 1615, 6]"] 40[Solid2d] end subgraph path47 [Path] - 47["Path
[1748, 1801, 5]"] - 48["Segment
[1748, 1801, 5]"] + 47["Path
[1748, 1801, 6]"] + 48["Segment
[1748, 1801, 6]"] 49[Solid2d] end subgraph path58 [Path] - 58["Path
[2044, 2116, 5]"] - 59["Segment
[2044, 2116, 5]"] + 58["Path
[2044, 2116, 6]"] + 59["Segment
[2044, 2116, 6]"] 60[Solid2d] end subgraph path81 [Path] - 81["Path
[2373, 2404, 5]"] - 82["Segment
[2410, 2430, 5]"] - 83["Segment
[2436, 2456, 5]"] - 84["Segment
[2462, 2483, 5]"] - 85["Segment
[2489, 2545, 5]"] - 86["Segment
[2551, 2558, 5]"] + 81["Path
[2373, 2404, 6]"] + 82["Segment
[2410, 2430, 6]"] + 83["Segment
[2436, 2456, 6]"] + 84["Segment
[2462, 2483, 6]"] + 85["Segment
[2489, 2545, 6]"] + 86["Segment
[2551, 2558, 6]"] 87[Solid2d] end subgraph path106 [Path] - 106["Path
[2860, 2892, 5]"] - 107["Segment
[2898, 2919, 5]"] - 108["Segment
[2925, 2945, 5]"] - 109["Segment
[2951, 2971, 5]"] - 110["Segment
[2977, 3033, 5]"] - 111["Segment
[3039, 3046, 5]"] + 106["Path
[2860, 2892, 6]"] + 107["Segment
[2898, 2919, 6]"] + 108["Segment
[2925, 2945, 6]"] + 109["Segment
[2951, 2971, 6]"] + 110["Segment
[2977, 3033, 6]"] + 111["Segment
[3039, 3046, 6]"] 112[Solid2d] end subgraph path132 [Path] - 132["Path
[350, 406, 4]"] - 133["Segment
[350, 406, 4]"] + 132["Path
[350, 406, 5]"] + 133["Segment
[350, 406, 5]"] 134[Solid2d] end subgraph path135 [Path] - 135["Path
[417, 473, 4]"] - 136["Segment
[417, 473, 4]"] + 135["Path
[417, 473, 5]"] + 136["Segment
[417, 473, 5]"] 137[Solid2d] end subgraph path144 [Path] - 144["Path
[638, 694, 4]"] - 145["Segment
[638, 694, 4]"] + 144["Path
[638, 694, 5]"] + 145["Segment
[638, 694, 5]"] 146[Solid2d] end subgraph path147 [Path] - 147["Path
[705, 761, 4]"] - 148["Segment
[705, 761, 4]"] + 147["Path
[705, 761, 5]"] + 148["Segment
[705, 761, 5]"] 149[Solid2d] end subgraph path156 [Path] - 156["Path
[905, 959, 4]"] - 157["Segment
[905, 959, 4]"] + 156["Path
[905, 959, 5]"] + 157["Segment
[905, 959, 5]"] 158[Solid2d] end subgraph path167 [Path] - 167["Path
[1237, 1297, 4]"] - 168["Segment
[1237, 1297, 4]"] + 167["Path
[1237, 1297, 5]"] + 168["Segment
[1237, 1297, 5]"] 169[Solid2d] end subgraph path179 [Path] - 179["Path
[1655, 1701, 4]"] - 180["Segment
[1707, 1759, 4]"] - 181["Segment
[1765, 1870, 4]"] - 182["Segment
[1876, 1898, 4]"] - 183["Segment
[1904, 1960, 4]"] - 184["Segment
[1966, 1973, 4]"] + 179["Path
[1655, 1701, 5]"] + 180["Segment
[1707, 1759, 5]"] + 181["Segment
[1765, 1870, 5]"] + 182["Segment
[1876, 1898, 5]"] + 183["Segment
[1904, 1960, 5]"] + 184["Segment
[1966, 1973, 5]"] 185[Solid2d] end subgraph path195 [Path] - 195["Path
[2107, 2153, 4]"] - 196["Segment
[2159, 2211, 4]"] - 197["Segment
[2217, 2324, 4]"] - 198["Segment
[2330, 2367, 4]"] - 199["Segment
[2373, 2429, 4]"] - 200["Segment
[2435, 2442, 4]"] + 195["Path
[2107, 2153, 5]"] + 196["Segment
[2159, 2211, 5]"] + 197["Segment
[2217, 2324, 5]"] + 198["Segment
[2330, 2367, 5]"] + 199["Segment
[2373, 2429, 5]"] + 200["Segment
[2435, 2442, 5]"] 201[Solid2d] end subgraph path212 [Path] - 212["Path
[2953, 3000, 4]"] - 213["Segment
[3008, 3348, 4]"] - 214["Segment
[3356, 3388, 4]"] - 215["Segment
[3396, 3740, 4]"] - 216["Segment
[3748, 3804, 4]"] - 217["Segment
[3812, 3819, 4]"] + 212["Path
[2953, 3000, 5]"] + 213["Segment
[3008, 3348, 5]"] + 214["Segment
[3356, 3388, 5]"] + 215["Segment
[3396, 3740, 5]"] + 216["Segment
[3748, 3804, 5]"] + 217["Segment
[3812, 3819, 5]"] 218[Solid2d] end subgraph path235 [Path] - 235["Path
[2953, 3000, 4]"] - 236["Segment
[3008, 3348, 4]"] - 237["Segment
[3356, 3388, 4]"] - 238["Segment
[3396, 3740, 4]"] - 239["Segment
[3748, 3804, 4]"] - 240["Segment
[3812, 3819, 4]"] + 235["Path
[2953, 3000, 5]"] + 236["Segment
[3008, 3348, 5]"] + 237["Segment
[3356, 3388, 5]"] + 238["Segment
[3396, 3740, 5]"] + 239["Segment
[3748, 3804, 5]"] + 240["Segment
[3812, 3819, 5]"] 241[Solid2d] end subgraph path258 [Path] - 258["Path
[4347, 4442, 4]"] - 259["Segment
[4448, 4481, 4]"] - 260["Segment
[4487, 4538, 4]"] - 261["Segment
[4544, 4577, 4]"] - 262["Segment
[4583, 4633, 4]"] - 263["Segment
[4639, 4680, 4]"] - 264["Segment
[4686, 4735, 4]"] - 265["Segment
[4741, 4774, 4]"] - 266["Segment
[4780, 4814, 4]"] - 267["Segment
[4820, 4854, 4]"] - 268["Segment
[4860, 4912, 4]"] - 269["Segment
[4918, 4952, 4]"] - 270["Segment
[4958, 5034, 4]"] - 271["Segment
[5040, 5073, 4]"] - 272["Segment
[5079, 5155, 4]"] - 273["Segment
[5161, 5195, 4]"] - 274["Segment
[5201, 5275, 4]"] - 275["Segment
[5281, 5315, 4]"] - 276["Segment
[5321, 5372, 4]"] - 277["Segment
[5378, 5440, 4]"] - 278["Segment
[5446, 5497, 4]"] - 279["Segment
[5503, 5537, 4]"] - 280["Segment
[5543, 5576, 4]"] - 281["Segment
[5582, 5615, 4]"] - 282["Segment
[5621, 5628, 4]"] + 258["Path
[4347, 4442, 5]"] + 259["Segment
[4448, 4481, 5]"] + 260["Segment
[4487, 4538, 5]"] + 261["Segment
[4544, 4577, 5]"] + 262["Segment
[4583, 4633, 5]"] + 263["Segment
[4639, 4680, 5]"] + 264["Segment
[4686, 4735, 5]"] + 265["Segment
[4741, 4774, 5]"] + 266["Segment
[4780, 4814, 5]"] + 267["Segment
[4820, 4854, 5]"] + 268["Segment
[4860, 4912, 5]"] + 269["Segment
[4918, 4952, 5]"] + 270["Segment
[4958, 5034, 5]"] + 271["Segment
[5040, 5073, 5]"] + 272["Segment
[5079, 5155, 5]"] + 273["Segment
[5161, 5195, 5]"] + 274["Segment
[5201, 5275, 5]"] + 275["Segment
[5281, 5315, 5]"] + 276["Segment
[5321, 5372, 5]"] + 277["Segment
[5378, 5440, 5]"] + 278["Segment
[5446, 5497, 5]"] + 279["Segment
[5503, 5537, 5]"] + 280["Segment
[5543, 5576, 5]"] + 281["Segment
[5582, 5615, 5]"] + 282["Segment
[5621, 5628, 5]"] 283[Solid2d] end subgraph path334 [Path] - 334["Path
[740, 780, 7]"] - 335["Segment
[788, 850, 7]"] - 336["Segment
[858, 894, 7]"] - 337["Segment
[902, 932, 7]"] - 338["Segment
[940, 992, 7]"] - 339["Segment
[1000, 1040, 7]"] - 340["Segment
[1048, 1083, 7]"] - 341["Segment
[1091, 1129, 7]"] - 342["Segment
[1137, 1159, 7]"] - 343["Segment
[1167, 1174, 7]"] + 334["Path
[740, 780, 8]"] + 335["Segment
[788, 850, 8]"] + 336["Segment
[858, 894, 8]"] + 337["Segment
[902, 932, 8]"] + 338["Segment
[940, 992, 8]"] + 339["Segment
[1000, 1040, 8]"] + 340["Segment
[1048, 1083, 8]"] + 341["Segment
[1091, 1129, 8]"] + 342["Segment
[1137, 1159, 8]"] + 343["Segment
[1167, 1174, 8]"] 344[Solid2d] end subgraph path365 [Path] - 365["Path
[507, 588, 6]"] - 366["Segment
[594, 695, 6]"] - 367["Segment
[701, 786, 6]"] - 368["Segment
[792, 876, 6]"] - 369["Segment
[882, 968, 6]"] - 370["Segment
[974, 1059, 6]"] - 371["Segment
[1065, 1151, 6]"] - 372["Segment
[1157, 1280, 6]"] - 373["Segment
[1286, 1372, 6]"] - 374["Segment
[1378, 1513, 6]"] - 375["Segment
[1519, 1605, 6]"] - 376["Segment
[1611, 1735, 6]"] - 377["Segment
[1741, 1827, 6]"] - 378["Segment
[1833, 1918, 6]"] - 379["Segment
[1924, 2010, 6]"] - 380["Segment
[2016, 2101, 6]"] - 381["Segment
[2107, 2192, 6]"] - 382["Segment
[2198, 2205, 6]"] + 365["Path
[507, 588, 7]"] + 366["Segment
[594, 695, 7]"] + 367["Segment
[701, 786, 7]"] + 368["Segment
[792, 876, 7]"] + 369["Segment
[882, 968, 7]"] + 370["Segment
[974, 1059, 7]"] + 371["Segment
[1065, 1151, 7]"] + 372["Segment
[1157, 1280, 7]"] + 373["Segment
[1286, 1372, 7]"] + 374["Segment
[1378, 1513, 7]"] + 375["Segment
[1519, 1605, 7]"] + 376["Segment
[1611, 1735, 7]"] + 377["Segment
[1741, 1827, 7]"] + 378["Segment
[1833, 1918, 7]"] + 379["Segment
[1924, 2010, 7]"] + 380["Segment
[2016, 2101, 7]"] + 381["Segment
[2107, 2192, 7]"] + 382["Segment
[2198, 2205, 7]"] 383[Solid2d] end subgraph path439 [Path] - 439["Path
[483, 540, 8]"] - 440["Segment
[546, 680, 8]"] - 441["Segment
[686, 741, 8]"] - 442["Segment
[747, 844, 8]"] - 443["Segment
[850, 882, 8]"] - 444["Segment
[888, 920, 8]"] - 445["Segment
[926, 957, 8]"] - 446["Segment
[963, 1078, 8]"] - 447["Segment
[1084, 1116, 8]"] - 448["Segment
[1122, 1154, 8]"] - 449["Segment
[1160, 1191, 8]"] - 450["Segment
[1197, 1290, 8]"] - 451["Segment
[1296, 1351, 8]"] - 452["Segment
[1357, 1430, 8]"] - 453["Segment
[1436, 1443, 8]"] + 439["Path
[483, 540, 9]"] + 440["Segment
[546, 680, 9]"] + 441["Segment
[686, 741, 9]"] + 442["Segment
[747, 844, 9]"] + 443["Segment
[850, 882, 9]"] + 444["Segment
[888, 920, 9]"] + 445["Segment
[926, 957, 9]"] + 446["Segment
[963, 1078, 9]"] + 447["Segment
[1084, 1116, 9]"] + 448["Segment
[1122, 1154, 9]"] + 449["Segment
[1160, 1191, 9]"] + 450["Segment
[1197, 1290, 9]"] + 451["Segment
[1296, 1351, 9]"] + 452["Segment
[1357, 1430, 9]"] + 453["Segment
[1436, 1443, 9]"] 454[Solid2d] end - 1["Plane
[544, 561, 5]"] - 5["Sweep Extrusion
[627, 683, 5]"] + 1["Plane
[544, 561, 6]"] + 5["Sweep Extrusion
[627, 683, 6]"] 6[Wall] 7["Cap Start"] 8["Cap End"] 9["SweepEdge Opposite"] 10["SweepEdge Adjacent"] - 14["Sweep Extrusion
[872, 934, 5]"] + 14["Sweep Extrusion
[872, 934, 6]"] 15[Wall] 16["Cap End"] 17["SweepEdge Opposite"] 18["SweepEdge Adjacent"] - 22["Sweep Extrusion
[1184, 1263, 5]"] + 22["Sweep Extrusion
[1184, 1263, 6]"] 23[Wall] 24["SweepEdge Opposite"] 25["SweepEdge Adjacent"] - 26["Sweep Extrusion
[1184, 1263, 5]"] - 27["Sweep Extrusion
[1184, 1263, 5]"] - 28["Sweep Extrusion
[1184, 1263, 5]"] - 29["Sweep Extrusion
[1184, 1263, 5]"] - 33["Sweep Extrusion
[1466, 1499, 5]"] + 26["Sweep Extrusion
[1184, 1263, 6]"] + 27["Sweep Extrusion
[1184, 1263, 6]"] + 28["Sweep Extrusion
[1184, 1263, 6]"] + 29["Sweep Extrusion
[1184, 1263, 6]"] + 33["Sweep Extrusion
[1466, 1499, 6]"] 34[Wall] 35["Cap End"] 36["SweepEdge Opposite"] 37["SweepEdge Adjacent"] - 41["Sweep Extrusion
[1630, 1695, 5]"] + 41["Sweep Extrusion
[1630, 1695, 6]"] 42[Wall] 43["Cap Start"] 44["Cap End"] 45["SweepEdge Opposite"] 46["SweepEdge Adjacent"] - 50["Sweep Extrusion
[1948, 1992, 5]"] + 50["Sweep Extrusion
[1948, 1992, 6]"] 51[Wall] 52["SweepEdge Opposite"] 53["SweepEdge Adjacent"] - 54["Sweep Extrusion
[1948, 1992, 5]"] - 55["Sweep Extrusion
[1948, 1992, 5]"] - 56["Sweep Extrusion
[1948, 1992, 5]"] - 57["Sweep Extrusion
[1948, 1992, 5]"] - 61["Sweep Extrusion
[2271, 2315, 5]"] + 54["Sweep Extrusion
[1948, 1992, 6]"] + 55["Sweep Extrusion
[1948, 1992, 6]"] + 56["Sweep Extrusion
[1948, 1992, 6]"] + 57["Sweep Extrusion
[1948, 1992, 6]"] + 61["Sweep Extrusion
[2271, 2315, 6]"] 62[Wall] 63["Cap End"] 64["SweepEdge Opposite"] 65["SweepEdge Adjacent"] - 66["Sweep Extrusion
[2271, 2315, 5]"] - 67["Sweep Extrusion
[2271, 2315, 5]"] - 68["Sweep Extrusion
[2271, 2315, 5]"] - 69["Sweep Extrusion
[2271, 2315, 5]"] - 70["Sweep Extrusion
[2271, 2315, 5]"] - 71["Sweep Extrusion
[2271, 2315, 5]"] - 72["Sweep Extrusion
[2271, 2315, 5]"] - 73["Sweep Extrusion
[2271, 2315, 5]"] - 74["Sweep Extrusion
[2271, 2315, 5]"] - 75["Sweep Extrusion
[2271, 2315, 5]"] - 76["Sweep Extrusion
[2271, 2315, 5]"] - 77["Sweep Extrusion
[2271, 2315, 5]"] - 78["Sweep Extrusion
[2271, 2315, 5]"] - 79["Sweep Extrusion
[2271, 2315, 5]"] - 80["Sweep Extrusion
[2271, 2315, 5]"] - 88["Sweep Extrusion
[2724, 2792, 5]"] + 66["Sweep Extrusion
[2271, 2315, 6]"] + 67["Sweep Extrusion
[2271, 2315, 6]"] + 68["Sweep Extrusion
[2271, 2315, 6]"] + 69["Sweep Extrusion
[2271, 2315, 6]"] + 70["Sweep Extrusion
[2271, 2315, 6]"] + 71["Sweep Extrusion
[2271, 2315, 6]"] + 72["Sweep Extrusion
[2271, 2315, 6]"] + 73["Sweep Extrusion
[2271, 2315, 6]"] + 74["Sweep Extrusion
[2271, 2315, 6]"] + 75["Sweep Extrusion
[2271, 2315, 6]"] + 76["Sweep Extrusion
[2271, 2315, 6]"] + 77["Sweep Extrusion
[2271, 2315, 6]"] + 78["Sweep Extrusion
[2271, 2315, 6]"] + 79["Sweep Extrusion
[2271, 2315, 6]"] + 80["Sweep Extrusion
[2271, 2315, 6]"] + 88["Sweep Extrusion
[2724, 2792, 6]"] 89[Wall] 90[Wall] 91[Wall] @@ -272,11 +272,11 @@ flowchart LR 99["SweepEdge Adjacent"] 100["SweepEdge Opposite"] 101["SweepEdge Adjacent"] - 102["Sweep Extrusion
[2724, 2792, 5]"] - 103["Sweep Extrusion
[2724, 2792, 5]"] - 104["Sweep Extrusion
[2724, 2792, 5]"] - 105["Sweep Extrusion
[2724, 2792, 5]"] - 113["Sweep Extrusion
[3198, 3272, 5]"] + 102["Sweep Extrusion
[2724, 2792, 6]"] + 103["Sweep Extrusion
[2724, 2792, 6]"] + 104["Sweep Extrusion
[2724, 2792, 6]"] + 105["Sweep Extrusion
[2724, 2792, 6]"] + 113["Sweep Extrusion
[3198, 3272, 6]"] 114[Wall] 115[Wall] 116[Wall] @@ -290,41 +290,41 @@ flowchart LR 124["SweepEdge Adjacent"] 125["SweepEdge Opposite"] 126["SweepEdge Adjacent"] - 127["Sweep Extrusion
[3198, 3272, 5]"] - 128["Sweep Extrusion
[3198, 3272, 5]"] - 129["Sweep Extrusion
[3198, 3272, 5]"] - 130["Sweep Extrusion
[3198, 3272, 5]"] - 131["Plane
[327, 344, 4]"] - 138["Sweep Extrusion
[483, 516, 4]"] + 127["Sweep Extrusion
[3198, 3272, 6]"] + 128["Sweep Extrusion
[3198, 3272, 6]"] + 129["Sweep Extrusion
[3198, 3272, 6]"] + 130["Sweep Extrusion
[3198, 3272, 6]"] + 131["Plane
[327, 344, 5]"] + 138["Sweep Extrusion
[483, 516, 5]"] 139[Wall] 140["Cap Start"] 141["Cap End"] 142["SweepEdge Opposite"] 143["SweepEdge Adjacent"] - 150["Sweep Extrusion
[771, 804, 4]"] + 150["Sweep Extrusion
[771, 804, 5]"] 151[Wall] 152["Cap Start"] 153["Cap End"] 154["SweepEdge Opposite"] 155["SweepEdge Adjacent"] - 159["Sweep Extrusion
[1106, 1140, 4]"] + 159["Sweep Extrusion
[1106, 1140, 5]"] 160[Wall] 161["SweepEdge Opposite"] 162["SweepEdge Adjacent"] - 163["Sweep Extrusion
[1106, 1140, 4]"] - 164["Sweep Extrusion
[1106, 1140, 4]"] - 165["Sweep Extrusion
[1106, 1140, 4]"] - 166["Sweep Extrusion
[1106, 1140, 4]"] - 170["Sweep Extrusion
[1444, 1478, 4]"] + 163["Sweep Extrusion
[1106, 1140, 5]"] + 164["Sweep Extrusion
[1106, 1140, 5]"] + 165["Sweep Extrusion
[1106, 1140, 5]"] + 166["Sweep Extrusion
[1106, 1140, 5]"] + 170["Sweep Extrusion
[1444, 1478, 5]"] 171[Wall] 172["SweepEdge Opposite"] 173["SweepEdge Adjacent"] - 174["Sweep Extrusion
[1444, 1478, 4]"] - 175["Sweep Extrusion
[1444, 1478, 4]"] - 176["Sweep Extrusion
[1444, 1478, 4]"] - 177["Sweep Extrusion
[1444, 1478, 4]"] - 178["Plane
[1632, 1649, 4]"] - 186["Sweep Revolve
[1979, 1998, 4]"] + 174["Sweep Extrusion
[1444, 1478, 5]"] + 175["Sweep Extrusion
[1444, 1478, 5]"] + 176["Sweep Extrusion
[1444, 1478, 5]"] + 177["Sweep Extrusion
[1444, 1478, 5]"] + 178["Plane
[1632, 1649, 5]"] + 186["Sweep Revolve
[1979, 1998, 5]"] 187[Wall] 188[Wall] 189[Wall] @@ -332,8 +332,8 @@ flowchart LR 191["SweepEdge Adjacent"] 192["SweepEdge Adjacent"] 193["SweepEdge Adjacent"] - 194["Plane
[2084, 2101, 4]"] - 202["Sweep Revolve
[2448, 2467, 4]"] + 194["Plane
[2084, 2101, 5]"] + 202["Sweep Revolve
[2448, 2467, 5]"] 203[Wall] 204[Wall] 205[Wall] @@ -342,8 +342,8 @@ flowchart LR 208["SweepEdge Adjacent"] 209["SweepEdge Adjacent"] 210["SweepEdge Adjacent"] - 211["Plane
[2922, 2945, 4]"] - 219["Sweep Extrusion
[3867, 3913, 4]"] + 211["Plane
[2922, 2945, 5]"] + 219["Sweep Extrusion
[3867, 3913, 5]"] 220[Wall] 221[Wall] 222[Wall] @@ -358,8 +358,8 @@ flowchart LR 231["SweepEdge Adjacent"] 232["SweepEdge Opposite"] 233["SweepEdge Adjacent"] - 234["Plane
[2922, 2945, 4]"] - 242["Sweep Extrusion
[3867, 3913, 4]"] + 234["Plane
[2922, 2945, 5]"] + 242["Sweep Extrusion
[3867, 3913, 5]"] 243[Wall] 244[Wall] 245[Wall] @@ -374,8 +374,8 @@ flowchart LR 254["SweepEdge Adjacent"] 255["SweepEdge Opposite"] 256["SweepEdge Adjacent"] - 257["Plane
[4324, 4341, 4]"] - 284["Sweep Revolve
[5634, 5653, 4]"] + 257["Plane
[4324, 4341, 5]"] + 284["Sweep Revolve
[5634, 5653, 5]"] 285[Wall] 286[Wall] 287[Wall] @@ -424,8 +424,8 @@ flowchart LR 330["SweepEdge Adjacent"] 331["SweepEdge Adjacent"] 332["SweepEdge Adjacent"] - 333["Plane
[706, 732, 7]"] - 345["Sweep Revolve
[1182, 1201, 7]"] + 333["Plane
[706, 732, 8]"] + 345["Sweep Revolve
[1182, 1201, 8]"] 346[Wall] 347[Wall] 348[Wall] @@ -444,8 +444,8 @@ flowchart LR 361["SweepEdge Adjacent"] 362["SweepEdge Adjacent"] 363["SweepEdge Adjacent"] - 364["Plane
[484, 501, 6]"] - 384["Sweep Revolve
[2243, 2295, 6]"] + 364["Plane
[484, 501, 7]"] + 384["Sweep Revolve
[2243, 2295, 7]"] 385[Wall] 386[Wall] 387[Wall] @@ -499,8 +499,8 @@ flowchart LR 435["SweepEdge Adjacent"] 436["SweepEdge Opposite"] 437["SweepEdge Adjacent"] - 438["Plane
[460, 477, 8]"] - 455["Sweep Revolve
[1486, 1517, 8]"] + 438["Plane
[460, 477, 9]"] + 455["Sweep Revolve
[1486, 1517, 9]"] 456[Wall] 457[Wall] 458[Wall] @@ -529,17 +529,17 @@ flowchart LR 481["SweepEdge Adjacent"] 482["SweepEdge Adjacent"] 483["SweepEdge Adjacent"] - 484["StartSketchOnFace
[770, 797, 5]"] - 485["StartSketchOnFace
[947, 978, 5]"] - 486["StartSketchOnFace
[1385, 1414, 5]"] - 487["StartSketchOnFace
[1524, 1558, 5]"] - 488["StartSketchOnFace
[1709, 1742, 5]"] - 489["StartSketchOnFace
[2009, 2038, 5]"] - 490["StartSketchOnFace
[2338, 2367, 5]"] - 491["StartSketchOnFace
[2821, 2854, 5]"] - 492["StartSketchOnFace
[603, 632, 4]"] - 493["StartSketchOnFace
[865, 899, 4]"] - 494["StartSketchOnFace
[1202, 1231, 4]"] + 484["StartSketchOnFace
[770, 797, 6]"] + 485["StartSketchOnFace
[947, 978, 6]"] + 486["StartSketchOnFace
[1385, 1414, 6]"] + 487["StartSketchOnFace
[1524, 1558, 6]"] + 488["StartSketchOnFace
[1709, 1742, 6]"] + 489["StartSketchOnFace
[2009, 2038, 6]"] + 490["StartSketchOnFace
[2338, 2367, 6]"] + 491["StartSketchOnFace
[2821, 2854, 6]"] + 492["StartSketchOnFace
[603, 632, 5]"] + 493["StartSketchOnFace
[865, 899, 5]"] + 494["StartSketchOnFace
[1202, 1231, 5]"] 1 --- 2 2 --- 3 2 ---- 5 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 f198d3e0c..c29de27c9 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 @@ -1848,7 +1848,7 @@ description: Operations executed car-wheel-assembly.kcl "functionSourceRange": [ 2620, 4193, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2235,7 +2235,7 @@ description: Operations executed car-wheel-assembly.kcl "functionSourceRange": [ 2620, 4193, - 4 + 5 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2660,7 +2660,7 @@ description: Operations executed car-wheel-assembly.kcl "functionSourceRange": [ 664, 1291, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, diff --git a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/program_memory.snap b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/program_memory.snap index 611ac68c3..2cbd95c37 100644 --- a/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/program_memory.snap +++ b/rust/kcl-lib/tests/kcl_samples/car-wheel-assembly/program_memory.snap @@ -5,7 +5,7 @@ description: Variables in memory after executing car-wheel-assembly.kcl { "brakeCaliper": { "type": "Module", - "value": 6 + "value": 7 }, "c1": { "type": "TagIdentifier", @@ -14,15 +14,15 @@ description: Variables in memory after executing car-wheel-assembly.kcl }, "carRotor": { "type": "Module", - "value": 5 + "value": 6 }, "carTire": { "type": "Module", - "value": 8 + "value": 9 }, "carWheel": { "type": "Module", - "value": 4 + "value": 5 }, "lugCount": { "type": "Number", @@ -39,6 +39,6 @@ description: Variables in memory after executing car-wheel-assembly.kcl }, "lugNut": { "type": "Module", - "value": 7 + "value": 8 } } diff --git a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_graph_flowchart.snap.md index b86bb5258..ee2173e4c 100644 --- a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/artifact_graph_flowchart.snap.md @@ -1,162 +1,162 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[224, 279, 4]"] - 3["Segment
[285, 347, 4]"] - 4["Segment
[353, 468, 4]"] - 5["Segment
[474, 594, 4]"] - 6["Segment
[600, 685, 4]"] - 7["Segment
[691, 698, 4]"] + 2["Path
[224, 279, 5]"] + 3["Segment
[285, 347, 5]"] + 4["Segment
[353, 468, 5]"] + 5["Segment
[474, 594, 5]"] + 6["Segment
[600, 685, 5]"] + 7["Segment
[691, 698, 5]"] 8[Solid2d] end subgraph path28 [Path] - 28["Path
[1134, 1191, 4]"] - 29["Segment
[1134, 1191, 4]"] + 28["Path
[1134, 1191, 5]"] + 29["Segment
[1134, 1191, 5]"] 30[Solid2d] end subgraph path36 [Path] - 36["Path
[1389, 1426, 4]"] - 37["Segment
[1389, 1426, 4]"] + 36["Path
[1389, 1426, 5]"] + 37["Segment
[1389, 1426, 5]"] 38[Solid2d] end subgraph path44 [Path] - 44["Path
[1558, 1698, 4]"] - 45["Segment
[1558, 1698, 4]"] + 44["Path
[1558, 1698, 5]"] + 45["Segment
[1558, 1698, 5]"] 46[Solid2d] end subgraph path54 [Path] - 54["Path
[1944, 2084, 4]"] - 55["Segment
[1944, 2084, 4]"] + 54["Path
[1944, 2084, 5]"] + 55["Segment
[1944, 2084, 5]"] 56[Solid2d] end subgraph path65 [Path] - 65["Path
[203, 263, 5]"] - 66["Segment
[203, 263, 5]"] + 65["Path
[203, 263, 6]"] + 66["Segment
[203, 263, 6]"] 67[Solid2d] end subgraph path75 [Path] - 75["Path
[493, 529, 5]"] - 76["Segment
[535, 579, 5]"] - 77["Segment
[585, 673, 5]"] - 78["Segment
[679, 728, 5]"] - 79["Segment
[734, 790, 5]"] - 80["Segment
[796, 803, 5]"] + 75["Path
[493, 529, 6]"] + 76["Segment
[535, 579, 6]"] + 77["Segment
[585, 673, 6]"] + 78["Segment
[679, 728, 6]"] + 79["Segment
[734, 790, 6]"] + 80["Segment
[796, 803, 6]"] 81[Solid2d] end subgraph path97 [Path] - 97["Path
[900, 1075, 5]"] - 98["Segment
[900, 1075, 5]"] + 97["Path
[900, 1075, 6]"] + 98["Segment
[900, 1075, 6]"] 99[Solid2d] end subgraph path105 [Path] - 105["Path
[1279, 1426, 5]"] - 106["Segment
[1279, 1426, 5]"] + 105["Path
[1279, 1426, 6]"] + 106["Segment
[1279, 1426, 6]"] 107[Solid2d] end subgraph path116 [Path] - 116["Path
[1743, 1917, 5]"] - 117["Segment
[1743, 1917, 5]"] + 116["Path
[1743, 1917, 6]"] + 117["Segment
[1743, 1917, 6]"] 118[Solid2d] end subgraph path125 [Path] - 125["Path
[2142, 2182, 5]"] - 126["Segment
[2142, 2182, 5]"] + 125["Path
[2142, 2182, 6]"] + 126["Segment
[2142, 2182, 6]"] 127[Solid2d] end subgraph path137 [Path] - 137["Path
[251, 394, 6]"] - 138["Segment
[400, 516, 6]"] - 139["Segment
[522, 600, 6]"] - 140["Segment
[606, 722, 6]"] - 141["Segment
[728, 784, 6]"] - 142["Segment
[790, 797, 6]"] + 137["Path
[251, 394, 7]"] + 138["Segment
[400, 516, 7]"] + 139["Segment
[522, 600, 7]"] + 140["Segment
[606, 722, 7]"] + 141["Segment
[728, 784, 7]"] + 142["Segment
[790, 797, 7]"] 143[Solid2d] end subgraph path159 [Path] - 159["Path
[913, 977, 6]"] - 160["Segment
[913, 977, 6]"] + 159["Path
[913, 977, 7]"] + 160["Segment
[913, 977, 7]"] 161[Solid2d] end subgraph path167 [Path] - 167["Path
[1146, 1354, 6]"] - 168["Segment
[1146, 1354, 6]"] + 167["Path
[1146, 1354, 7]"] + 168["Segment
[1146, 1354, 7]"] 169[Solid2d] end subgraph path175 [Path] - 175["Path
[1557, 1601, 6]"] - 176["Segment
[1557, 1601, 6]"] + 175["Path
[1557, 1601, 7]"] + 176["Segment
[1557, 1601, 7]"] 177[Solid2d] end subgraph path190 [Path] - 190["Path
[1839, 2031, 6]"] - 191["Segment
[1839, 2031, 6]"] + 190["Path
[1839, 2031, 7]"] + 191["Segment
[1839, 2031, 7]"] 192[Solid2d] end subgraph path201 [Path] - 201["Path
[2384, 2559, 6]"] - 202["Segment
[2384, 2559, 6]"] + 201["Path
[2384, 2559, 7]"] + 202["Segment
[2384, 2559, 7]"] 203[Solid2d] end subgraph path210 [Path] - 210["Path
[271, 504, 7]"] - 211["Segment
[510, 629, 7]"] - 212["Segment
[635, 715, 7]"] - 213["Segment
[721, 840, 7]"] - 214["Segment
[846, 916, 7]"] - 215["Segment
[922, 929, 7]"] + 210["Path
[271, 504, 8]"] + 211["Segment
[510, 629, 8]"] + 212["Segment
[635, 715, 8]"] + 213["Segment
[721, 840, 8]"] + 214["Segment
[846, 916, 8]"] + 215["Segment
[922, 929, 8]"] 216[Solid2d] end subgraph path232 [Path] - 232["Path
[1043, 1252, 7]"] - 233["Segment
[1043, 1252, 7]"] + 232["Path
[1043, 1252, 8]"] + 233["Segment
[1043, 1252, 8]"] 234[Solid2d] end subgraph path240 [Path] - 240["Path
[1457, 1646, 7]"] - 241["Segment
[1457, 1646, 7]"] + 240["Path
[1457, 1646, 8]"] + 241["Segment
[1457, 1646, 8]"] 242[Solid2d] end subgraph path255 [Path] - 255["Path
[2067, 2353, 7]"] - 256["Segment
[2067, 2353, 7]"] + 255["Path
[2067, 2353, 8]"] + 256["Segment
[2067, 2353, 8]"] 257[Solid2d] end subgraph path264 [Path] - 264["Path
[2452, 2736, 7]"] - 265["Segment
[2452, 2736, 7]"] + 264["Path
[2452, 2736, 8]"] + 265["Segment
[2452, 2736, 8]"] 266[Solid2d] end subgraph path273 [Path] - 273["Path
[2890, 2928, 7]"] - 274["Segment
[2890, 2928, 7]"] + 273["Path
[2890, 2928, 8]"] + 274["Segment
[2890, 2928, 8]"] 275[Solid2d] end subgraph path282 [Path] - 282["Path
[3058, 3283, 7]"] - 283["Segment
[3289, 3383, 7]"] - 284["Segment
[3389, 3532, 7]"] - 285["Segment
[3538, 3632, 7]"] - 286["Segment
[3638, 3740, 7]"] - 287["Segment
[3746, 3848, 7]"] - 288["Segment
[3854, 3954, 7]"] - 289["Segment
[3960, 4016, 7]"] - 290["Segment
[4022, 4029, 7]"] + 282["Path
[3058, 3283, 8]"] + 283["Segment
[3289, 3383, 8]"] + 284["Segment
[3389, 3532, 8]"] + 285["Segment
[3538, 3632, 8]"] + 286["Segment
[3638, 3740, 8]"] + 287["Segment
[3746, 3848, 8]"] + 288["Segment
[3854, 3954, 8]"] + 289["Segment
[3960, 4016, 8]"] + 290["Segment
[4022, 4029, 8]"] 291[Solid2d] end subgraph path316 [Path] - 316["Path
[4158, 4383, 7]"] - 317["Segment
[4389, 4485, 7]"] - 318["Segment
[4491, 4639, 7]"] - 319["Segment
[4645, 4741, 7]"] - 320["Segment
[4747, 4851, 7]"] - 321["Segment
[4857, 4961, 7]"] - 322["Segment
[4967, 5069, 7]"] - 323["Segment
[5075, 5131, 7]"] - 324["Segment
[5137, 5144, 7]"] + 316["Path
[4158, 4383, 8]"] + 317["Segment
[4389, 4485, 8]"] + 318["Segment
[4491, 4639, 8]"] + 319["Segment
[4645, 4741, 8]"] + 320["Segment
[4747, 4851, 8]"] + 321["Segment
[4857, 4961, 8]"] + 322["Segment
[4967, 5069, 8]"] + 323["Segment
[5075, 5131, 8]"] + 324["Segment
[5137, 5144, 8]"] 325[Solid2d] end - 1["Plane
[201, 218, 4]"] - 9["Sweep Extrusion
[712, 759, 4]"] + 1["Plane
[201, 218, 5]"] + 9["Sweep Extrusion
[712, 759, 5]"] 10[Wall] 11[Wall] 12[Wall] @@ -171,43 +171,43 @@ flowchart LR 21["SweepEdge Adjacent"] 22["SweepEdge Opposite"] 23["SweepEdge Adjacent"] - 24["EdgeCut Chamfer
[765, 1042, 4]"] - 25["EdgeCut Chamfer
[765, 1042, 4]"] - 26["EdgeCut Chamfer
[765, 1042, 4]"] - 27["EdgeCut Chamfer
[765, 1042, 4]"] - 31["Sweep Extrusion
[1205, 1271, 4]"] + 24["EdgeCut Chamfer
[765, 1042, 5]"] + 25["EdgeCut Chamfer
[765, 1042, 5]"] + 26["EdgeCut Chamfer
[765, 1042, 5]"] + 27["EdgeCut Chamfer
[765, 1042, 5]"] + 31["Sweep Extrusion
[1205, 1271, 5]"] 32[Wall] 33["Cap End"] 34["SweepEdge Opposite"] 35["SweepEdge Adjacent"] - 39["Sweep Extrusion
[1440, 1470, 4]"] + 39["Sweep Extrusion
[1440, 1470, 5]"] 40[Wall] 41["Cap End"] 42["SweepEdge Opposite"] 43["SweepEdge Adjacent"] - 47["Sweep Extrusion
[1846, 1893, 4]"] + 47["Sweep Extrusion
[1846, 1893, 5]"] 48[Wall] 49["SweepEdge Opposite"] 50["SweepEdge Adjacent"] - 51["Sweep Extrusion
[1846, 1893, 4]"] - 52["Sweep Extrusion
[1846, 1893, 4]"] - 53["Sweep Extrusion
[1846, 1893, 4]"] - 57["Sweep Extrusion
[2220, 2267, 4]"] + 51["Sweep Extrusion
[1846, 1893, 5]"] + 52["Sweep Extrusion
[1846, 1893, 5]"] + 53["Sweep Extrusion
[1846, 1893, 5]"] + 57["Sweep Extrusion
[2220, 2267, 5]"] 58[Wall] 59["SweepEdge Opposite"] 60["SweepEdge Adjacent"] - 61["Sweep Extrusion
[2220, 2267, 4]"] - 62["Sweep Extrusion
[2220, 2267, 4]"] - 63["Sweep Extrusion
[2220, 2267, 4]"] - 64["Plane
[174, 197, 5]"] - 68["Sweep Extrusion
[277, 315, 5]"] + 61["Sweep Extrusion
[2220, 2267, 5]"] + 62["Sweep Extrusion
[2220, 2267, 5]"] + 63["Sweep Extrusion
[2220, 2267, 5]"] + 64["Plane
[174, 197, 6]"] + 68["Sweep Extrusion
[277, 315, 6]"] 69[Wall] 70["Cap Start"] 71["Cap End"] 72["SweepEdge Opposite"] 73["SweepEdge Adjacent"] - 74["Plane
[464, 487, 5]"] - 82["Sweep Extrusion
[818, 848, 5]"] + 74["Plane
[464, 487, 6]"] + 82["Sweep Extrusion
[818, 848, 6]"] 83[Wall] 84[Wall] 85[Wall] @@ -222,35 +222,35 @@ flowchart LR 94["SweepEdge Adjacent"] 95["SweepEdge Opposite"] 96["SweepEdge Adjacent"] - 100["Sweep Extrusion
[1089, 1121, 5]"] + 100["Sweep Extrusion
[1089, 1121, 6]"] 101[Wall] 102["Cap End"] 103["SweepEdge Opposite"] 104["SweepEdge Adjacent"] - 108["Sweep Extrusion
[1659, 1691, 5]"] + 108["Sweep Extrusion
[1659, 1691, 6]"] 109[Wall] 110["Cap End"] 111["SweepEdge Opposite"] 112["SweepEdge Adjacent"] - 113["Sweep Extrusion
[1659, 1691, 5]"] - 114["Sweep Extrusion
[1659, 1691, 5]"] - 115["Sweep Extrusion
[1659, 1691, 5]"] - 119["Sweep Extrusion
[1931, 1964, 5]"] + 113["Sweep Extrusion
[1659, 1691, 6]"] + 114["Sweep Extrusion
[1659, 1691, 6]"] + 115["Sweep Extrusion
[1659, 1691, 6]"] + 119["Sweep Extrusion
[1931, 1964, 6]"] 120[Wall] 121["Cap End"] 122["SweepEdge Opposite"] 123["SweepEdge Adjacent"] - 124["Plane
[2113, 2136, 5]"] - 128["Sweep Extrusion
[2184, 2215, 5]"] + 124["Plane
[2113, 2136, 6]"] + 128["Sweep Extrusion
[2184, 2215, 6]"] 129[Wall] 130["Cap Start"] 131["Cap End"] 132["SweepEdge Opposite"] 133["SweepEdge Adjacent"] - 134["EdgeCut Fillet
[321, 383, 5]"] - 135["EdgeCut Fillet
[1970, 2032, 5]"] - 136["Plane
[222, 245, 6]"] - 144["Sweep Extrusion
[811, 859, 6]"] + 134["EdgeCut Fillet
[321, 383, 6]"] + 135["EdgeCut Fillet
[1970, 2032, 6]"] + 136["Plane
[222, 245, 7]"] + 144["Sweep Extrusion
[811, 859, 7]"] 145[Wall] 146[Wall] 147[Wall] @@ -265,43 +265,43 @@ flowchart LR 156["SweepEdge Adjacent"] 157["SweepEdge Opposite"] 158["SweepEdge Adjacent"] - 162["Sweep Extrusion
[992, 1025, 6]"] + 162["Sweep Extrusion
[992, 1025, 7]"] 163[Wall] 164["Cap End"] 165["SweepEdge Opposite"] 166["SweepEdge Adjacent"] - 170["Sweep Extrusion
[1369, 1399, 6]"] + 170["Sweep Extrusion
[1369, 1399, 7]"] 171[Wall] 172["Cap End"] 173["SweepEdge Opposite"] 174["SweepEdge Adjacent"] - 178["Sweep Extrusion
[1754, 1787, 6]"] + 178["Sweep Extrusion
[1754, 1787, 7]"] 179[Wall] 180["Cap End"] 181["SweepEdge Opposite"] 182["SweepEdge Adjacent"] - 183["Sweep Extrusion
[1754, 1787, 6]"] - 184["Sweep Extrusion
[1754, 1787, 6]"] - 185["Sweep Extrusion
[1754, 1787, 6]"] - 186["Sweep Extrusion
[1754, 1787, 6]"] - 187["Sweep Extrusion
[1754, 1787, 6]"] - 188["Sweep Extrusion
[1754, 1787, 6]"] - 189["Sweep Extrusion
[1754, 1787, 6]"] - 193["Sweep Extrusion
[2299, 2332, 6]"] + 183["Sweep Extrusion
[1754, 1787, 7]"] + 184["Sweep Extrusion
[1754, 1787, 7]"] + 185["Sweep Extrusion
[1754, 1787, 7]"] + 186["Sweep Extrusion
[1754, 1787, 7]"] + 187["Sweep Extrusion
[1754, 1787, 7]"] + 188["Sweep Extrusion
[1754, 1787, 7]"] + 189["Sweep Extrusion
[1754, 1787, 7]"] + 193["Sweep Extrusion
[2299, 2332, 7]"] 194[Wall] 195["Cap End"] 196["SweepEdge Opposite"] 197["SweepEdge Adjacent"] - 198["Sweep Extrusion
[2299, 2332, 6]"] - 199["Sweep Extrusion
[2299, 2332, 6]"] - 200["Sweep Extrusion
[2299, 2332, 6]"] - 204["Sweep Extrusion
[2561, 2591, 6]"] + 198["Sweep Extrusion
[2299, 2332, 7]"] + 199["Sweep Extrusion
[2299, 2332, 7]"] + 200["Sweep Extrusion
[2299, 2332, 7]"] + 204["Sweep Extrusion
[2561, 2591, 7]"] 205[Wall] 206["Cap End"] 207["SweepEdge Opposite"] 208["SweepEdge Adjacent"] - 209["Plane
[242, 265, 7]"] - 217["Sweep Extrusion
[943, 991, 7]"] + 209["Plane
[242, 265, 8]"] + 217["Sweep Extrusion
[943, 991, 8]"] 218[Wall] 219[Wall] 220[Wall] @@ -316,42 +316,42 @@ flowchart LR 229["SweepEdge Adjacent"] 230["SweepEdge Opposite"] 231["SweepEdge Adjacent"] - 235["Sweep Extrusion
[1267, 1300, 7]"] + 235["Sweep Extrusion
[1267, 1300, 8]"] 236[Wall] 237["Cap End"] 238["SweepEdge Opposite"] 239["SweepEdge Adjacent"] - 243["Sweep Extrusion
[1911, 1944, 7]"] + 243["Sweep Extrusion
[1911, 1944, 8]"] 244[Wall] 245["Cap End"] 246["SweepEdge Opposite"] 247["SweepEdge Adjacent"] - 248["Sweep Extrusion
[1911, 1944, 7]"] - 249["Sweep Extrusion
[1911, 1944, 7]"] - 250["Sweep Extrusion
[1911, 1944, 7]"] - 251["Sweep Extrusion
[1911, 1944, 7]"] - 252["Sweep Extrusion
[1911, 1944, 7]"] - 253["Sweep Extrusion
[1911, 1944, 7]"] - 254["Sweep Extrusion
[1911, 1944, 7]"] - 258["Sweep Extrusion
[2367, 2400, 7]"] + 248["Sweep Extrusion
[1911, 1944, 8]"] + 249["Sweep Extrusion
[1911, 1944, 8]"] + 250["Sweep Extrusion
[1911, 1944, 8]"] + 251["Sweep Extrusion
[1911, 1944, 8]"] + 252["Sweep Extrusion
[1911, 1944, 8]"] + 253["Sweep Extrusion
[1911, 1944, 8]"] + 254["Sweep Extrusion
[1911, 1944, 8]"] + 258["Sweep Extrusion
[2367, 2400, 8]"] 259[Wall] 260["Cap Start"] 261["Cap End"] 262["SweepEdge Opposite"] 263["SweepEdge Adjacent"] - 267["Sweep Extrusion
[2751, 2784, 7]"] + 267["Sweep Extrusion
[2751, 2784, 8]"] 268[Wall] 269["Cap Start"] 270["Cap End"] 271["SweepEdge Opposite"] 272["SweepEdge Adjacent"] - 276["Sweep Extrusion
[2943, 2977, 7]"] + 276["Sweep Extrusion
[2943, 2977, 8]"] 277[Wall] 278["Cap Start"] 279["Cap End"] 280["SweepEdge Opposite"] 281["SweepEdge Adjacent"] - 292["Sweep Extrusion
[4044, 4077, 7]"] + 292["Sweep Extrusion
[4044, 4077, 8]"] 293[Wall] 294[Wall] 295[Wall] @@ -375,7 +375,7 @@ flowchart LR 313["SweepEdge Adjacent"] 314["SweepEdge Opposite"] 315["SweepEdge Adjacent"] - 326["Sweep Extrusion
[5146, 5179, 7]"] + 326["Sweep Extrusion
[5146, 5179, 8]"] 327[Wall] 328[Wall] 329[Wall] @@ -399,25 +399,25 @@ flowchart LR 347["SweepEdge Adjacent"] 348["SweepEdge Opposite"] 349["SweepEdge Adjacent"] - 350["StartSketchOnFace
[1096, 1128, 4]"] - 351["StartSketchOnFace
[1351, 1383, 4]"] - 352["StartSketchOnFace
[1520, 1552, 4]"] - 353["StartSketchOnFace
[1906, 1938, 4]"] - 354["StartSketchOnFace
[862, 894, 5]"] - 355["StartSketchOnFace
[1241, 1273, 5]"] - 356["StartSketchOnFace
[1705, 1737, 5]"] - 357["StartSketchOnFace
[873, 907, 6]"] - 358["StartSketchOnFace
[1106, 1140, 6]"] - 359["StartSketchOnFace
[1519, 1551, 6]"] - 360["StartSketchOnFace
[1801, 1833, 6]"] - 361["StartSketchOnFace
[2346, 2378, 6]"] - 362["StartSketchOnFace
[1005, 1037, 7]"] - 363["StartSketchOnFace
[1419, 1451, 7]"] - 364["StartSketchOnFace
[2027, 2061, 7]"] - 365["StartSketchOnFace
[2414, 2446, 7]"] - 366["StartSketchOnFace
[2850, 2884, 7]"] - 367["StartSketchOnFace
[3018, 3052, 7]"] - 368["StartSketchOnFace
[4118, 4152, 7]"] + 350["StartSketchOnFace
[1096, 1128, 5]"] + 351["StartSketchOnFace
[1351, 1383, 5]"] + 352["StartSketchOnFace
[1520, 1552, 5]"] + 353["StartSketchOnFace
[1906, 1938, 5]"] + 354["StartSketchOnFace
[862, 894, 6]"] + 355["StartSketchOnFace
[1241, 1273, 6]"] + 356["StartSketchOnFace
[1705, 1737, 6]"] + 357["StartSketchOnFace
[873, 907, 7]"] + 358["StartSketchOnFace
[1106, 1140, 7]"] + 359["StartSketchOnFace
[1519, 1551, 7]"] + 360["StartSketchOnFace
[1801, 1833, 7]"] + 361["StartSketchOnFace
[2346, 2378, 7]"] + 362["StartSketchOnFace
[1005, 1037, 8]"] + 363["StartSketchOnFace
[1419, 1451, 8]"] + 364["StartSketchOnFace
[2027, 2061, 8]"] + 365["StartSketchOnFace
[2414, 2446, 8]"] + 366["StartSketchOnFace
[2850, 2884, 8]"] + 367["StartSketchOnFace
[3018, 3052, 8]"] + 368["StartSketchOnFace
[4118, 4152, 8]"] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/program_memory.snap b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/program_memory.snap index 541e65408..ebc803a54 100644 --- a/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/program_memory.snap +++ b/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/program_memory.snap @@ -5,18 +5,18 @@ description: Variables in memory after executing multi-axis-robot.kcl { "j2RobotArm": { "type": "Module", - "value": 6 + "value": 7 }, "j3RobotArm": { "type": "Module", - "value": 7 + "value": 8 }, "robotArmBase": { "type": "Module", - "value": 4 + "value": 5 }, "rotatingBase": { "type": "Module", - "value": 5 + "value": 6 } } diff --git a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_graph_flowchart.snap.md index eafe2cb92..63409a53b 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pipe-flange-assembly/artifact_graph_flowchart.snap.md @@ -1,206 +1,206 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[537, 630, 5]"] - 3["Segment
[537, 630, 5]"] + 2["Path
[537, 630, 6]"] + 3["Segment
[537, 630, 6]"] 4[Solid2d] end subgraph path6 [Path] - 6["Path
[859, 914, 5]"] - 7["Segment
[859, 914, 5]"] + 6["Path
[859, 914, 6]"] + 7["Segment
[859, 914, 6]"] 8[Solid2d] end subgraph path15 [Path] - 15["Path
[1129, 1188, 5]"] - 16["Segment
[1129, 1188, 5]"] + 15["Path
[1129, 1188, 6]"] + 16["Segment
[1129, 1188, 6]"] 17[Solid2d] end subgraph path23 [Path] - 23["Path
[1290, 1350, 5]"] - 24["Segment
[1290, 1350, 5]"] + 23["Path
[1290, 1350, 6]"] + 24["Segment
[1290, 1350, 6]"] 25[Solid2d] end subgraph path31 [Path] - 31["Path
[1507, 1560, 5]"] - 32["Segment
[1507, 1560, 5]"] + 31["Path
[1507, 1560, 6]"] + 32["Segment
[1507, 1560, 6]"] 33[Solid2d] end subgraph path39 [Path] - 39["Path
[537, 630, 5]"] - 40["Segment
[537, 630, 5]"] + 39["Path
[537, 630, 6]"] + 40["Segment
[537, 630, 6]"] 41[Solid2d] end subgraph path43 [Path] - 43["Path
[859, 914, 5]"] - 44["Segment
[859, 914, 5]"] + 43["Path
[859, 914, 6]"] + 44["Segment
[859, 914, 6]"] 45[Solid2d] end subgraph path52 [Path] - 52["Path
[1129, 1188, 5]"] - 53["Segment
[1129, 1188, 5]"] + 52["Path
[1129, 1188, 6]"] + 53["Segment
[1129, 1188, 6]"] 54[Solid2d] end subgraph path60 [Path] - 60["Path
[1290, 1350, 5]"] - 61["Segment
[1290, 1350, 5]"] + 60["Path
[1290, 1350, 6]"] + 61["Segment
[1290, 1350, 6]"] 62[Solid2d] end subgraph path68 [Path] - 68["Path
[1507, 1560, 5]"] - 69["Segment
[1507, 1560, 5]"] + 68["Path
[1507, 1560, 6]"] + 69["Segment
[1507, 1560, 6]"] 70[Solid2d] end subgraph path76 [Path] - 76["Path
[494, 556, 6]"] - 77["Segment
[494, 556, 6]"] + 76["Path
[494, 556, 7]"] + 77["Segment
[494, 556, 7]"] 78[Solid2d] end subgraph path85 [Path] - 85["Path
[706, 766, 6]"] - 86["Segment
[706, 766, 6]"] + 85["Path
[706, 766, 7]"] + 86["Segment
[706, 766, 7]"] 87[Solid2d] end subgraph path93 [Path] - 93["Path
[355, 407, 7]"] - 94["Segment
[355, 407, 7]"] + 93["Path
[355, 407, 8]"] + 94["Segment
[355, 407, 8]"] 95[Solid2d] end subgraph path102 [Path] - 102["Path
[540, 592, 7]"] - 103["Segment
[540, 592, 7]"] + 102["Path
[540, 592, 8]"] + 103["Segment
[540, 592, 8]"] 104[Solid2d] end subgraph path110 [Path] - 110["Path
[446, 516, 8]"] - 111["Segment
[446, 516, 8]"] + 110["Path
[446, 516, 9]"] + 111["Segment
[446, 516, 9]"] 112[Solid2d] end subgraph path121 [Path] - 121["Path
[780, 867, 8]"] - 122["Segment
[875, 958, 8]"] - 123["Segment
[966, 1049, 8]"] - 124["Segment
[1057, 1140, 8]"] - 125["Segment
[1148, 1230, 8]"] - 126["Segment
[1238, 1320, 8]"] - 127["Segment
[1328, 1335, 8]"] + 121["Path
[780, 867, 9]"] + 122["Segment
[875, 958, 9]"] + 123["Segment
[966, 1049, 9]"] + 124["Segment
[1057, 1140, 9]"] + 125["Segment
[1148, 1230, 9]"] + 126["Segment
[1238, 1320, 9]"] + 127["Segment
[1328, 1335, 9]"] 128[Solid2d] end subgraph path149 [Path] - 149["Path
[1469, 1538, 8]"] - 150["Segment
[1469, 1538, 8]"] + 149["Path
[1469, 1538, 9]"] + 150["Segment
[1469, 1538, 9]"] 151[Solid2d] end subgraph path158 [Path] - 158["Path
[378, 468, 9]"] - 159["Segment
[476, 558, 9]"] - 160["Segment
[566, 648, 9]"] - 161["Segment
[656, 738, 9]"] - 162["Segment
[746, 827, 9]"] - 163["Segment
[835, 916, 9]"] - 164["Segment
[924, 931, 9]"] + 158["Path
[378, 468, 10]"] + 159["Segment
[476, 558, 10]"] + 160["Segment
[566, 648, 10]"] + 161["Segment
[656, 738, 10]"] + 162["Segment
[746, 827, 10]"] + 163["Segment
[835, 916, 10]"] + 164["Segment
[924, 931, 10]"] 165[Solid2d] end subgraph path187 [Path] - 187["Path
[1075, 1127, 9]"] - 188["Segment
[1075, 1127, 9]"] + 187["Path
[1075, 1127, 10]"] + 188["Segment
[1075, 1127, 10]"] 189[Solid2d] end subgraph path195 [Path] - 195["Path
[313, 371, 10]"] - 196["Segment
[313, 371, 10]"] + 195["Path
[313, 371, 11]"] + 196["Segment
[313, 371, 11]"] 197[Solid2d] end subgraph path204 [Path] - 204["Path
[510, 565, 10]"] - 205["Segment
[510, 565, 10]"] + 204["Path
[510, 565, 11]"] + 205["Segment
[510, 565, 11]"] 206[Solid2d] end subgraph path212 [Path] - 212["Path
[313, 371, 10]"] - 213["Segment
[313, 371, 10]"] + 212["Path
[313, 371, 11]"] + 213["Segment
[313, 371, 11]"] 214[Solid2d] end subgraph path221 [Path] - 221["Path
[510, 565, 10]"] - 222["Segment
[510, 565, 10]"] + 221["Path
[510, 565, 11]"] + 222["Segment
[510, 565, 11]"] 223[Solid2d] end - 1["Plane
[512, 529, 5]"] - 5["Plane
[834, 851, 5]"] - 9["Sweep Extrusion
[952, 992, 5]"] + 1["Plane
[512, 529, 6]"] + 5["Plane
[834, 851, 6]"] + 9["Sweep Extrusion
[952, 992, 6]"] 10[Wall] 11["Cap Start"] 12["Cap End"] 13["SweepEdge Opposite"] 14["SweepEdge Adjacent"] - 18["Sweep Extrusion
[1196, 1233, 5]"] + 18["Sweep Extrusion
[1196, 1233, 6]"] 19[Wall] 20["Cap End"] 21["SweepEdge Opposite"] 22["SweepEdge Adjacent"] - 26["Sweep Extrusion
[1358, 1396, 5]"] + 26["Sweep Extrusion
[1358, 1396, 6]"] 27[Wall] 28["Cap End"] 29["SweepEdge Opposite"] 30["SweepEdge Adjacent"] - 34["Sweep Extrusion
[1568, 1610, 5]"] + 34["Sweep Extrusion
[1568, 1610, 6]"] 35[Wall] 36["SweepEdge Opposite"] 37["SweepEdge Adjacent"] - 38["Plane
[512, 529, 5]"] - 42["Plane
[834, 851, 5]"] - 46["Sweep Extrusion
[952, 992, 5]"] + 38["Plane
[512, 529, 6]"] + 42["Plane
[834, 851, 6]"] + 46["Sweep Extrusion
[952, 992, 6]"] 47[Wall] 48["Cap Start"] 49["Cap End"] 50["SweepEdge Opposite"] 51["SweepEdge Adjacent"] - 55["Sweep Extrusion
[1196, 1233, 5]"] + 55["Sweep Extrusion
[1196, 1233, 6]"] 56[Wall] 57["Cap End"] 58["SweepEdge Opposite"] 59["SweepEdge Adjacent"] - 63["Sweep Extrusion
[1358, 1396, 5]"] + 63["Sweep Extrusion
[1358, 1396, 6]"] 64[Wall] 65["Cap End"] 66["SweepEdge Opposite"] 67["SweepEdge Adjacent"] - 71["Sweep Extrusion
[1568, 1610, 5]"] + 71["Sweep Extrusion
[1568, 1610, 6]"] 72[Wall] 73["SweepEdge Opposite"] 74["SweepEdge Adjacent"] - 75["Plane
[469, 486, 6]"] - 79["Sweep Extrusion
[564, 600, 6]"] + 75["Plane
[469, 486, 7]"] + 79["Sweep Extrusion
[564, 600, 7]"] 80[Wall] 81["Cap Start"] 82["Cap End"] 83["SweepEdge Opposite"] 84["SweepEdge Adjacent"] - 88["Sweep Extrusion
[774, 811, 6]"] + 88["Sweep Extrusion
[774, 811, 7]"] 89[Wall] 90["SweepEdge Opposite"] 91["SweepEdge Adjacent"] - 92["Plane
[330, 347, 7]"] - 96["Sweep Extrusion
[415, 448, 7]"] + 92["Plane
[330, 347, 8]"] + 96["Sweep Extrusion
[415, 448, 8]"] 97[Wall] 98["Cap Start"] 99["Cap End"] 100["SweepEdge Opposite"] 101["SweepEdge Adjacent"] - 105["Sweep Extrusion
[600, 637, 7]"] + 105["Sweep Extrusion
[600, 637, 8]"] 106[Wall] 107["SweepEdge Opposite"] 108["SweepEdge Adjacent"] - 109["Plane
[421, 438, 8]"] - 113["Sweep Extrusion
[524, 557, 8]"] + 109["Plane
[421, 438, 9]"] + 113["Sweep Extrusion
[524, 557, 9]"] 114[Wall] 115["Cap Start"] 116["Cap End"] 117["SweepEdge Opposite"] 118["SweepEdge Adjacent"] - 119["EdgeCut Fillet
[565, 631, 8]"] - 120["EdgeCut Fillet
[565, 631, 8]"] - 129["Sweep Extrusion
[1343, 1383, 8]"] + 119["EdgeCut Fillet
[565, 631, 9]"] + 120["EdgeCut Fillet
[565, 631, 9]"] + 129["Sweep Extrusion
[1343, 1383, 9]"] 130[Wall] 131[Wall] 132[Wall] @@ -220,13 +220,13 @@ flowchart LR 146["SweepEdge Adjacent"] 147["SweepEdge Opposite"] 148["SweepEdge Adjacent"] - 152["Sweep Extrusion
[1546, 1574, 8]"] + 152["Sweep Extrusion
[1546, 1574, 9]"] 153[Wall] 154["Cap End"] 155["SweepEdge Opposite"] 156["SweepEdge Adjacent"] - 157["Plane
[353, 370, 9]"] - 166["Sweep Extrusion
[939, 972, 9]"] + 157["Plane
[353, 370, 10]"] + 166["Sweep Extrusion
[939, 972, 10]"] 167[Wall] 168[Wall] 169[Wall] @@ -247,45 +247,45 @@ flowchart LR 184["SweepEdge Adjacent"] 185["SweepEdge Opposite"] 186["SweepEdge Adjacent"] - 190["Sweep Extrusion
[1135, 1172, 9]"] + 190["Sweep Extrusion
[1135, 1172, 10]"] 191[Wall] 192["SweepEdge Opposite"] 193["SweepEdge Adjacent"] - 194["Plane
[288, 305, 10]"] - 198["Sweep Extrusion
[379, 410, 10]"] + 194["Plane
[288, 305, 11]"] + 198["Sweep Extrusion
[379, 410, 11]"] 199[Wall] 200["Cap Start"] 201["Cap End"] 202["SweepEdge Opposite"] 203["SweepEdge Adjacent"] - 207["Sweep Extrusion
[573, 605, 10]"] + 207["Sweep Extrusion
[573, 605, 11]"] 208[Wall] 209["SweepEdge Opposite"] 210["SweepEdge Adjacent"] - 211["Plane
[288, 305, 10]"] - 215["Sweep Extrusion
[379, 410, 10]"] + 211["Plane
[288, 305, 11]"] + 215["Sweep Extrusion
[379, 410, 11]"] 216[Wall] 217["Cap Start"] 218["Cap End"] 219["SweepEdge Opposite"] 220["SweepEdge Adjacent"] - 224["Sweep Extrusion
[573, 605, 10]"] + 224["Sweep Extrusion
[573, 605, 11]"] 225[Wall] 226["SweepEdge Opposite"] 227["SweepEdge Adjacent"] - 228["StartSketchOnFace
[1087, 1121, 5]"] - 229["StartSketchOnFace
[1250, 1282, 5]"] - 230["StartSketchOnFace
[1466, 1499, 5]"] - 231["StartSketchOnFace
[1087, 1121, 5]"] - 232["StartSketchOnFace
[1250, 1282, 5]"] - 233["StartSketchOnFace
[1466, 1499, 5]"] - 234["StartSketchOnFace
[666, 698, 6]"] - 235["StartSketchOnFace
[500, 532, 7]"] - 236["StartSketchOnFace
[740, 772, 8]"] - 237["StartSketchOnFace
[1431, 1461, 8]"] - 238["StartSketchOnFace
[1035, 1067, 9]"] - 239["StartSketchOnFace
[472, 502, 10]"] - 240["StartSketchOnFace
[472, 502, 10]"] + 228["StartSketchOnFace
[1087, 1121, 6]"] + 229["StartSketchOnFace
[1250, 1282, 6]"] + 230["StartSketchOnFace
[1466, 1499, 6]"] + 231["StartSketchOnFace
[1087, 1121, 6]"] + 232["StartSketchOnFace
[1250, 1282, 6]"] + 233["StartSketchOnFace
[1466, 1499, 6]"] + 234["StartSketchOnFace
[666, 698, 7]"] + 235["StartSketchOnFace
[500, 532, 8]"] + 236["StartSketchOnFace
[740, 772, 9]"] + 237["StartSketchOnFace
[1431, 1461, 9]"] + 238["StartSketchOnFace
[1035, 1067, 10]"] + 239["StartSketchOnFace
[472, 502, 11]"] + 240["StartSketchOnFace
[472, 502, 11]"] 1 --- 2 2 --- 3 2 --- 4 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 cb6de8327..2e0d4fd04 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 @@ -39,7 +39,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 451, 1670, - 5 + 6 ], "unlabeledArg": null, "labeledArgs": {}, @@ -657,7 +657,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 451, 1670, - 5 + 6 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1275,7 +1275,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 414, 870, - 6 + 7 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1525,7 +1525,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 275, 696, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2024,7 +2024,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 365, 1664, - 8 + 9 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2524,7 +2524,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 297, 1231, - 9 + 10 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2839,7 +2839,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 244, 658, - 10 + 11 ], "unlabeledArg": null, "labeledArgs": {}, @@ -3083,7 +3083,7 @@ description: Operations executed pipe-flange-assembly.kcl "functionSourceRange": [ 244, 658, - 10 + 11 ], "unlabeledArg": null, "labeledArgs": {}, diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md index b064f7b19..5f1367a9a 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/artifact_graph_flowchart.snap.md @@ -1,59 +1,59 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[460, 506, 0]"] - 3["Segment
[512, 565, 0]"] - 4["Segment
[571, 673, 0]"] - 5["Segment
[679, 732, 0]"] - 6["Segment
[738, 785, 0]"] - 7["Segment
[791, 886, 0]"] - 8["Segment
[892, 963, 0]"] - 9["Segment
[969, 1020, 0]"] - 10["Segment
[1026, 1079, 0]"] - 11["Segment
[1085, 1154, 0]"] - 12["Segment
[1160, 1199, 0]"] - 13["Segment
[1205, 1235, 0]"] - 14["Segment
[1241, 1271, 0]"] - 15["Segment
[1277, 1307, 0]"] - 16["Segment
[1313, 1343, 0]"] - 17["Segment
[1349, 1378, 0]"] - 18["Segment
[1384, 1414, 0]"] - 19["Segment
[1420, 1449, 0]"] - 20["Segment
[1455, 1484, 0]"] - 21["Segment
[1490, 1586, 0]"] - 22["Segment
[1592, 1648, 0]"] - 23["Segment
[1654, 1661, 0]"] + 2["Path
[460, 513, 0]"] + 3["Segment
[519, 572, 0]"] + 4["Segment
[578, 680, 0]"] + 5["Segment
[686, 739, 0]"] + 6["Segment
[745, 792, 0]"] + 7["Segment
[798, 893, 0]"] + 8["Segment
[899, 970, 0]"] + 9["Segment
[976, 1027, 0]"] + 10["Segment
[1033, 1086, 0]"] + 11["Segment
[1092, 1161, 0]"] + 12["Segment
[1167, 1213, 0]"] + 13["Segment
[1219, 1249, 0]"] + 14["Segment
[1255, 1285, 0]"] + 15["Segment
[1291, 1321, 0]"] + 16["Segment
[1327, 1357, 0]"] + 17["Segment
[1363, 1392, 0]"] + 18["Segment
[1398, 1428, 0]"] + 19["Segment
[1434, 1463, 0]"] + 20["Segment
[1469, 1498, 0]"] + 21["Segment
[1504, 1600, 0]"] + 22["Segment
[1606, 1662, 0]"] + 23["Segment
[1668, 1675, 0]"] 24[Solid2d] end subgraph path85 [Path] - 85["Path
[1759, 1803, 0]"] - 86["Segment
[1809, 1871, 0]"] - 87["Segment
[1877, 1990, 0]"] - 88["Segment
[1996, 2116, 0]"] - 89["Segment
[2122, 2178, 0]"] - 90["Segment
[2184, 2191, 0]"] + 85["Path
[1773, 1817, 0]"] + 86["Segment
[1823, 1885, 0]"] + 87["Segment
[1891, 2004, 0]"] + 88["Segment
[2010, 2130, 0]"] + 89["Segment
[2136, 2192, 0]"] + 90["Segment
[2198, 2205, 0]"] 91[Solid2d] end subgraph path107 [Path] - 107["Path
[2290, 2335, 0]"] - 108["Segment
[2341, 2401, 0]"] - 109["Segment
[2407, 2520, 0]"] - 110["Segment
[2526, 2646, 0]"] - 111["Segment
[2652, 2708, 0]"] - 112["Segment
[2714, 2721, 0]"] + 107["Path
[2304, 2349, 0]"] + 108["Segment
[2355, 2415, 0]"] + 109["Segment
[2421, 2534, 0]"] + 110["Segment
[2540, 2660, 0]"] + 111["Segment
[2666, 2722, 0]"] + 112["Segment
[2728, 2735, 0]"] 113[Solid2d] end subgraph path129 [Path] - 129["Path
[2819, 2864, 0]"] - 130["Segment
[2870, 2937, 0]"] - 131["Segment
[2943, 3056, 0]"] - 132["Segment
[3062, 3182, 0]"] - 133["Segment
[3188, 3244, 0]"] - 134["Segment
[3250, 3257, 0]"] + 129["Path
[2833, 2878, 0]"] + 130["Segment
[2884, 2951, 0]"] + 131["Segment
[2957, 3070, 0]"] + 132["Segment
[3076, 3196, 0]"] + 133["Segment
[3202, 3258, 0]"] + 134["Segment
[3264, 3271, 0]"] 135[Solid2d] end 1["Plane
[437, 454, 0]"] - 25["Sweep Extrusion
[1675, 1705, 0]"] + 25["Sweep Extrusion
[1689, 1719, 0]"] 26[Wall] 27[Wall] 28[Wall] @@ -113,7 +113,7 @@ flowchart LR 82["SweepEdge Adjacent"] 83["SweepEdge Opposite"] 84["SweepEdge Adjacent"] - 92["Sweep Extrusion
[2205, 2236, 0]"] + 92["Sweep Extrusion
[2219, 2250, 0]"] 93[Wall] 94[Wall] 95[Wall] @@ -128,7 +128,7 @@ flowchart LR 104["SweepEdge Adjacent"] 105["SweepEdge Opposite"] 106["SweepEdge Adjacent"] - 114["Sweep Extrusion
[2736, 2767, 0]"] + 114["Sweep Extrusion
[2750, 2781, 0]"] 115[Wall] 116[Wall] 117[Wall] @@ -143,7 +143,7 @@ flowchart LR 126["SweepEdge Adjacent"] 127["SweepEdge Opposite"] 128["SweepEdge Adjacent"] - 136["Sweep Extrusion
[3271, 3301, 0]"] + 136["Sweep Extrusion
[3285, 3315, 0]"] 137[Wall] 138[Wall] 139[Wall] @@ -158,9 +158,9 @@ flowchart LR 148["SweepEdge Adjacent"] 149["SweepEdge Opposite"] 150["SweepEdge Adjacent"] - 151["StartSketchOnFace
[1719, 1753, 0]"] - 152["StartSketchOnFace
[2250, 2284, 0]"] - 153["StartSketchOnFace
[2781, 2813, 0]"] + 151["StartSketchOnFace
[1733, 1767, 0]"] + 152["StartSketchOnFace
[2264, 2298, 0]"] + 153["StartSketchOnFace
[2795, 2827, 0]"] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ast.snap b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ast.snap index ec2ed7550..65d84964d 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/ast.snap @@ -577,26 +577,34 @@ description: Result of parsing router-template-cross-bar.kcl "commentStart": 476, "end": 0, "name": { - "commentStart": 476, + "commentStart": 483, "end": 0, "name": "ZERO", "start": 0, "type": "Identifier" }, - "path": [], + "path": [ + { + "commentStart": 476, + "end": 0, + "name": "turns", + "start": 0, + "type": "Identifier" + } + ], "start": 0, "type": "Name", "type": "Name" }, { - "commentStart": 482, + "commentStart": 489, "end": 0, "left": { "abs_path": false, - "commentStart": 482, + "commentStart": 489, "end": 0, "name": { - "commentStart": 482, + "commentStart": 489, "end": 0, "name": "depth", "start": 0, @@ -610,10 +618,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "+", "right": { "abs_path": false, - "commentStart": 490, + "commentStart": 497, "end": 0, "name": { - "commentStart": 490, + "commentStart": 497, "end": 0, "name": "templateGap", "start": 0, @@ -635,7 +643,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 504, + "commentStart": 511, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -668,21 +676,21 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 518, + "commentStart": 525, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 527, + "commentStart": 534, "end": 0, "left": { "abs_path": false, - "commentStart": 527, + "commentStart": 534, "end": 0, "name": { - "commentStart": 527, + "commentStart": 534, "end": 0, "name": "slateWidthHalf", "start": 0, @@ -696,10 +704,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "-", "right": { "abs_path": false, - "commentStart": 544, + "commentStart": 551, "end": 0, "name": { - "commentStart": 544, + "commentStart": 551, "end": 0, "name": "radius", "start": 0, @@ -718,14 +726,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 552, + "commentStart": 559, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 558, + "commentStart": 565, "end": 0, "start": 0, "type": "TagDeclarator", @@ -736,10 +744,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 512, + "commentStart": 519, "end": 0, "name": { - "commentStart": 512, + "commentStart": 519, "end": 0, "name": "xLine", "start": 0, @@ -749,7 +757,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 512, + "commentStart": 519, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -759,14 +767,14 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 575, + "commentStart": 582, "end": 0, "properties": [ { - "commentStart": 584, + "commentStart": 591, "end": 0, "key": { - "commentStart": 584, + "commentStart": 591, "end": 0, "name": "angleEnd", "start": 0, @@ -775,7 +783,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 595, + "commentStart": 602, "end": 0, "raw": "0", "start": 0, @@ -788,10 +796,10 @@ description: Result of parsing router-template-cross-bar.kcl } }, { - "commentStart": 605, + "commentStart": 612, "end": 0, "key": { - "commentStart": 605, + "commentStart": 612, "end": 0, "name": "angleStart", "start": 0, @@ -800,7 +808,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 618, + "commentStart": 625, "end": 0, "raw": "90", "start": 0, @@ -813,10 +821,10 @@ description: Result of parsing router-template-cross-bar.kcl } }, { - "commentStart": 629, + "commentStart": 636, "end": 0, "key": { - "commentStart": 629, + "commentStart": 636, "end": 0, "name": "radius", "start": 0, @@ -825,10 +833,10 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 638, + "commentStart": 645, "end": 0, "left": { - "commentStart": 638, + "commentStart": 645, "end": 0, "raw": "10", "start": 0, @@ -842,10 +850,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "+", "right": { "abs_path": false, - "commentStart": 643, + "commentStart": 650, "end": 0, "name": { - "commentStart": 643, + "commentStart": 650, "end": 0, "name": "templateGap", "start": 0, @@ -867,14 +875,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ObjectExpression" }, { - "commentStart": 663, + "commentStart": 670, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 666, + "commentStart": 673, "end": 0, "start": 0, "type": "TagDeclarator", @@ -884,10 +892,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 571, + "commentStart": 578, "end": 0, "name": { - "commentStart": 571, + "commentStart": 578, "end": 0, "name": "arc", "start": 0, @@ -897,7 +905,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 571, + "commentStart": 578, "end": 0, "start": 0, "type": "CallExpression", @@ -908,7 +916,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 685, + "commentStart": 692, "end": 0, "name": "endAbsolute", "start": 0, @@ -917,10 +925,10 @@ description: Result of parsing router-template-cross-bar.kcl "arg": { "argument": { "abs_path": false, - "commentStart": 700, + "commentStart": 707, "end": 0, "name": { - "commentStart": 700, + "commentStart": 707, "end": 0, "name": "templateThickness", "start": 0, @@ -931,7 +939,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name", "type": "Name" }, - "commentStart": 699, + "commentStart": 706, "end": 0, "operator": "-", "start": 0, @@ -942,14 +950,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 719, + "commentStart": 726, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 725, + "commentStart": 732, "end": 0, "start": 0, "type": "TagDeclarator", @@ -960,10 +968,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 679, + "commentStart": 686, "end": 0, "name": { - "commentStart": 679, + "commentStart": 686, "end": 0, "name": "yLine", "start": 0, @@ -973,7 +981,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 679, + "commentStart": 686, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -985,7 +993,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 744, + "commentStart": 751, "end": 0, "name": "length", "start": 0, @@ -993,10 +1001,10 @@ description: Result of parsing router-template-cross-bar.kcl }, "arg": { "abs_path": false, - "commentStart": 753, + "commentStart": 760, "end": 0, "name": { - "commentStart": 753, + "commentStart": 760, "end": 0, "name": "templateThickness", "start": 0, @@ -1011,14 +1019,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 772, + "commentStart": 779, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 778, + "commentStart": 785, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1029,10 +1037,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 738, + "commentStart": 745, "end": 0, "name": { - "commentStart": 738, + "commentStart": 745, "end": 0, "name": "xLine", "start": 0, @@ -1042,7 +1050,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 738, + "commentStart": 745, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1054,29 +1062,29 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 797, + "commentStart": 804, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 812, + "commentStart": 819, "end": 0, "left": { - "commentStart": 812, + "commentStart": 819, "end": 0, "left": { - "commentStart": 812, + "commentStart": 819, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 820, + "commentStart": 827, "end": 0, "name": { - "commentStart": 820, + "commentStart": 827, "end": 0, "name": "seg01", "start": 0, @@ -1090,10 +1098,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 812, + "commentStart": 819, "end": 0, "name": { - "commentStart": 812, + "commentStart": 819, "end": 0, "name": "segEndY", "start": 0, @@ -1103,7 +1111,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 812, + "commentStart": 819, "end": 0, "start": 0, "type": "CallExpression", @@ -1112,10 +1120,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "+", "right": { "abs_path": false, - "commentStart": 829, + "commentStart": 836, "end": 0, "name": { - "commentStart": 829, + "commentStart": 836, "end": 0, "name": "templateThickness", "start": 0, @@ -1132,7 +1140,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "/", "right": { - "commentStart": 850, + "commentStart": 857, "end": 0, "raw": "2", "start": 0, @@ -1150,10 +1158,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "-", "right": { "abs_path": false, - "commentStart": 854, + "commentStart": 861, "end": 0, "name": { - "commentStart": 854, + "commentStart": 861, "end": 0, "name": "templateThickness", "start": 0, @@ -1172,14 +1180,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 873, + "commentStart": 880, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 879, + "commentStart": 886, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1190,10 +1198,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 791, + "commentStart": 798, "end": 0, "name": { - "commentStart": 791, + "commentStart": 798, "end": 0, "name": "yLine", "start": 0, @@ -1203,7 +1211,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 791, + "commentStart": 798, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1215,23 +1223,23 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 898, + "commentStart": 905, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 912, + "commentStart": 919, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 920, + "commentStart": 927, "end": 0, "name": { - "commentStart": 920, + "commentStart": 927, "end": 0, "name": "seg03", "start": 0, @@ -1245,10 +1253,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 912, + "commentStart": 919, "end": 0, "name": { - "commentStart": 912, + "commentStart": 919, "end": 0, "name": "segEndX", "start": 0, @@ -1258,7 +1266,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 912, + "commentStart": 919, "end": 0, "start": 0, "type": "CallExpression", @@ -1267,10 +1275,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "+", "right": { "abs_path": false, - "commentStart": 929, + "commentStart": 936, "end": 0, "name": { - "commentStart": 929, + "commentStart": 936, "end": 0, "name": "minClampingDistance", "start": 0, @@ -1289,14 +1297,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 950, + "commentStart": 957, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 956, + "commentStart": 963, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1307,10 +1315,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 892, + "commentStart": 899, "end": 0, "name": { - "commentStart": 892, + "commentStart": 899, "end": 0, "name": "xLine", "start": 0, @@ -1320,7 +1328,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 892, + "commentStart": 899, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1332,21 +1340,21 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 975, + "commentStart": 982, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 984, + "commentStart": 991, "end": 0, "left": { "abs_path": false, - "commentStart": 984, + "commentStart": 991, "end": 0, "name": { - "commentStart": 984, + "commentStart": 991, "end": 0, "name": "templateThickness", "start": 0, @@ -1359,7 +1367,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "*", "right": { - "commentStart": 1004, + "commentStart": 1011, "end": 0, "raw": "2", "start": 0, @@ -1378,14 +1386,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1007, + "commentStart": 1014, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1013, + "commentStart": 1020, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1396,10 +1404,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 969, + "commentStart": 976, "end": 0, "name": { - "commentStart": 969, + "commentStart": 976, "end": 0, "name": "yLine", "start": 0, @@ -1409,7 +1417,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 969, + "commentStart": 976, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1421,23 +1429,23 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1032, + "commentStart": 1039, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1046, + "commentStart": 1053, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 1054, + "commentStart": 1061, "end": 0, "name": { - "commentStart": 1054, + "commentStart": 1061, "end": 0, "name": "seg02", "start": 0, @@ -1451,10 +1459,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1046, + "commentStart": 1053, "end": 0, "name": { - "commentStart": 1046, + "commentStart": 1053, "end": 0, "name": "segEndX", "start": 0, @@ -1464,7 +1472,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1046, + "commentStart": 1053, "end": 0, "start": 0, "type": "CallExpression", @@ -1472,7 +1480,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "+", "right": { - "commentStart": 1063, + "commentStart": 1070, "end": 0, "raw": "0", "start": 0, @@ -1491,14 +1499,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1066, + "commentStart": 1073, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1072, + "commentStart": 1079, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1509,10 +1517,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1026, + "commentStart": 1033, "end": 0, "name": { - "commentStart": 1026, + "commentStart": 1033, "end": 0, "name": "xLine", "start": 0, @@ -1522,7 +1530,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1026, + "commentStart": 1033, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1534,23 +1542,23 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1091, + "commentStart": 1098, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1105, + "commentStart": 1112, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 1113, + "commentStart": 1120, "end": 0, "name": { - "commentStart": 1113, + "commentStart": 1120, "end": 0, "name": "seg01", "start": 0, @@ -1564,10 +1572,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1105, + "commentStart": 1112, "end": 0, "name": { - "commentStart": 1105, + "commentStart": 1112, "end": 0, "name": "segEndY", "start": 0, @@ -1577,7 +1585,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1105, + "commentStart": 1112, "end": 0, "start": 0, "type": "CallExpression", @@ -1586,10 +1594,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "+", "right": { "abs_path": false, - "commentStart": 1122, + "commentStart": 1129, "end": 0, "name": { - "commentStart": 1122, + "commentStart": 1129, "end": 0, "name": "templateThickness", "start": 0, @@ -1608,14 +1616,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1141, + "commentStart": 1148, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1147, + "commentStart": 1154, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1626,10 +1634,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1085, + "commentStart": 1092, "end": 0, "name": { - "commentStart": 1085, + "commentStart": 1092, "end": 0, "name": "yLine", "start": 0, @@ -1639,7 +1647,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1085, + "commentStart": 1092, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1651,7 +1659,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1166, + "commentStart": 1173, "end": 0, "name": "endAbsolute", "start": 0, @@ -1659,16 +1667,24 @@ description: Result of parsing router-template-cross-bar.kcl }, "arg": { "abs_path": false, - "commentStart": 1180, + "commentStart": 1187, "end": 0, "name": { - "commentStart": 1180, + "commentStart": 1194, "end": 0, "name": "ZERO", "start": 0, "type": "Identifier" }, - "path": [], + "path": [ + { + "commentStart": 1187, + "end": 0, + "name": "turns", + "start": 0, + "type": "Identifier" + } + ], "start": 0, "type": "Name", "type": "Name" @@ -1677,14 +1693,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1186, + "commentStart": 1200, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1192, + "commentStart": 1206, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1695,10 +1711,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1160, + "commentStart": 1167, "end": 0, "name": { - "commentStart": 1160, + "commentStart": 1167, "end": 0, "name": "xLine", "start": 0, @@ -1708,7 +1724,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1160, + "commentStart": 1167, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1720,7 +1736,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1211, + "commentStart": 1225, "end": 0, "name": "length", "start": 0, @@ -1731,10 +1747,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1228, + "commentStart": 1242, "end": 0, "name": { - "commentStart": 1228, + "commentStart": 1242, "end": 0, "name": "seg04", "start": 0, @@ -1748,10 +1764,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1221, + "commentStart": 1235, "end": 0, "name": { - "commentStart": 1221, + "commentStart": 1235, "end": 0, "name": "segLen", "start": 0, @@ -1761,13 +1777,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1221, + "commentStart": 1235, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1220, + "commentStart": 1234, "end": 0, "operator": "-", "start": 0, @@ -1778,10 +1794,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1205, + "commentStart": 1219, "end": 0, "name": { - "commentStart": 1205, + "commentStart": 1219, "end": 0, "name": "xLine", "start": 0, @@ -1791,7 +1807,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1205, + "commentStart": 1219, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1803,7 +1819,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1247, + "commentStart": 1261, "end": 0, "name": "length", "start": 0, @@ -1814,10 +1830,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1264, + "commentStart": 1278, "end": 0, "name": { - "commentStart": 1264, + "commentStart": 1278, "end": 0, "name": "seg10", "start": 0, @@ -1831,10 +1847,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1257, + "commentStart": 1271, "end": 0, "name": { - "commentStart": 1257, + "commentStart": 1271, "end": 0, "name": "segLen", "start": 0, @@ -1844,13 +1860,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1257, + "commentStart": 1271, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1256, + "commentStart": 1270, "end": 0, "operator": "-", "start": 0, @@ -1861,10 +1877,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1241, + "commentStart": 1255, "end": 0, "name": { - "commentStart": 1241, + "commentStart": 1255, "end": 0, "name": "yLine", "start": 0, @@ -1874,7 +1890,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1241, + "commentStart": 1255, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1886,7 +1902,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1283, + "commentStart": 1297, "end": 0, "name": "length", "start": 0, @@ -1897,10 +1913,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1300, + "commentStart": 1314, "end": 0, "name": { - "commentStart": 1300, + "commentStart": 1314, "end": 0, "name": "seg05", "start": 0, @@ -1914,10 +1930,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1293, + "commentStart": 1307, "end": 0, "name": { - "commentStart": 1293, + "commentStart": 1307, "end": 0, "name": "segLen", "start": 0, @@ -1927,13 +1943,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1293, + "commentStart": 1307, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1292, + "commentStart": 1306, "end": 0, "operator": "-", "start": 0, @@ -1944,10 +1960,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1277, + "commentStart": 1291, "end": 0, "name": { - "commentStart": 1277, + "commentStart": 1291, "end": 0, "name": "xLine", "start": 0, @@ -1957,7 +1973,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1277, + "commentStart": 1291, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1969,7 +1985,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1319, + "commentStart": 1333, "end": 0, "name": "length", "start": 0, @@ -1980,10 +1996,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1336, + "commentStart": 1350, "end": 0, "name": { - "commentStart": 1336, + "commentStart": 1350, "end": 0, "name": "seg08", "start": 0, @@ -1997,10 +2013,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1329, + "commentStart": 1343, "end": 0, "name": { - "commentStart": 1329, + "commentStart": 1343, "end": 0, "name": "segLen", "start": 0, @@ -2010,13 +2026,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1329, + "commentStart": 1343, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1328, + "commentStart": 1342, "end": 0, "operator": "-", "start": 0, @@ -2027,10 +2043,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1313, + "commentStart": 1327, "end": 0, "name": { - "commentStart": 1313, + "commentStart": 1327, "end": 0, "name": "yLine", "start": 0, @@ -2040,7 +2056,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1313, + "commentStart": 1327, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2052,7 +2068,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1355, + "commentStart": 1369, "end": 0, "name": "length", "start": 0, @@ -2062,10 +2078,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1371, + "commentStart": 1385, "end": 0, "name": { - "commentStart": 1371, + "commentStart": 1385, "end": 0, "name": "seg06", "start": 0, @@ -2079,10 +2095,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1364, + "commentStart": 1378, "end": 0, "name": { - "commentStart": 1364, + "commentStart": 1378, "end": 0, "name": "segLen", "start": 0, @@ -2092,7 +2108,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1364, + "commentStart": 1378, "end": 0, "start": 0, "type": "CallExpression", @@ -2102,10 +2118,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1349, + "commentStart": 1363, "end": 0, "name": { - "commentStart": 1349, + "commentStart": 1363, "end": 0, "name": "xLine", "start": 0, @@ -2115,7 +2131,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1349, + "commentStart": 1363, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2127,7 +2143,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1390, + "commentStart": 1404, "end": 0, "name": "length", "start": 0, @@ -2138,10 +2154,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1407, + "commentStart": 1421, "end": 0, "name": { - "commentStart": 1407, + "commentStart": 1421, "end": 0, "name": "seg02", "start": 0, @@ -2155,10 +2171,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1400, + "commentStart": 1414, "end": 0, "name": { - "commentStart": 1400, + "commentStart": 1414, "end": 0, "name": "segLen", "start": 0, @@ -2168,13 +2184,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1400, + "commentStart": 1414, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1399, + "commentStart": 1413, "end": 0, "operator": "-", "start": 0, @@ -2185,10 +2201,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1384, + "commentStart": 1398, "end": 0, "name": { - "commentStart": 1384, + "commentStart": 1398, "end": 0, "name": "yLine", "start": 0, @@ -2198,7 +2214,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1384, + "commentStart": 1398, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2210,7 +2226,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1426, + "commentStart": 1440, "end": 0, "name": "length", "start": 0, @@ -2220,10 +2236,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1442, + "commentStart": 1456, "end": 0, "name": { - "commentStart": 1442, + "commentStart": 1456, "end": 0, "name": "seg07", "start": 0, @@ -2237,10 +2253,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1435, + "commentStart": 1449, "end": 0, "name": { - "commentStart": 1435, + "commentStart": 1449, "end": 0, "name": "segLen", "start": 0, @@ -2250,7 +2266,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1435, + "commentStart": 1449, "end": 0, "start": 0, "type": "CallExpression", @@ -2260,10 +2276,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1420, + "commentStart": 1434, "end": 0, "name": { - "commentStart": 1420, + "commentStart": 1434, "end": 0, "name": "xLine", "start": 0, @@ -2273,7 +2289,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1420, + "commentStart": 1434, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2285,7 +2301,7 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1461, + "commentStart": 1475, "end": 0, "name": "length", "start": 0, @@ -2295,10 +2311,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1477, + "commentStart": 1491, "end": 0, "name": { - "commentStart": 1477, + "commentStart": 1491, "end": 0, "name": "seg03", "start": 0, @@ -2312,10 +2328,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1470, + "commentStart": 1484, "end": 0, "name": { - "commentStart": 1470, + "commentStart": 1484, "end": 0, "name": "segLen", "start": 0, @@ -2325,7 +2341,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1470, + "commentStart": 1484, "end": 0, "start": 0, "type": "CallExpression", @@ -2335,10 +2351,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1455, + "commentStart": 1469, "end": 0, "name": { - "commentStart": 1455, + "commentStart": 1469, "end": 0, "name": "yLine", "start": 0, @@ -2348,7 +2364,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1455, + "commentStart": 1469, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2358,14 +2374,14 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 1494, + "commentStart": 1508, "end": 0, "properties": [ { - "commentStart": 1503, + "commentStart": 1517, "end": 0, "key": { - "commentStart": 1503, + "commentStart": 1517, "end": 0, "name": "angleEnd", "start": 0, @@ -2374,7 +2390,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 1514, + "commentStart": 1528, "end": 0, "raw": "90", "start": 0, @@ -2387,10 +2403,10 @@ description: Result of parsing router-template-cross-bar.kcl } }, { - "commentStart": 1525, + "commentStart": 1539, "end": 0, "key": { - "commentStart": 1525, + "commentStart": 1539, "end": 0, "name": "angleStart", "start": 0, @@ -2399,7 +2415,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 1538, + "commentStart": 1552, "end": 0, "raw": "180", "start": 0, @@ -2412,10 +2428,10 @@ description: Result of parsing router-template-cross-bar.kcl } }, { - "commentStart": 1550, + "commentStart": 1564, "end": 0, "key": { - "commentStart": 1550, + "commentStart": 1564, "end": 0, "name": "radius", "start": 0, @@ -2424,10 +2440,10 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 1559, + "commentStart": 1573, "end": 0, "left": { - "commentStart": 1559, + "commentStart": 1573, "end": 0, "raw": "10", "start": 0, @@ -2441,10 +2457,10 @@ description: Result of parsing router-template-cross-bar.kcl "operator": "+", "right": { "abs_path": false, - "commentStart": 1564, + "commentStart": 1578, "end": 0, "name": { - "commentStart": 1564, + "commentStart": 1578, "end": 0, "name": "templateGap", "start": 0, @@ -2466,7 +2482,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ObjectExpression" }, { - "commentStart": 1584, + "commentStart": 1598, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2475,10 +2491,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1490, + "commentStart": 1504, "end": 0, "name": { - "commentStart": 1490, + "commentStart": 1504, "end": 0, "name": "arc", "start": 0, @@ -2488,7 +2504,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1490, + "commentStart": 1504, "end": 0, "start": 0, "type": "CallExpression", @@ -2499,19 +2515,19 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1597, + "commentStart": 1611, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1611, + "commentStart": 1625, "elements": [ { "arguments": [ { - "commentStart": 1626, + "commentStart": 1640, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2520,10 +2536,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1612, + "commentStart": 1626, "end": 0, "name": { - "commentStart": 1612, + "commentStart": 1626, "end": 0, "name": "profileStartX", "start": 0, @@ -2533,7 +2549,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1612, + "commentStart": 1626, "end": 0, "start": 0, "type": "CallExpression", @@ -2542,7 +2558,7 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 1644, + "commentStart": 1658, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2551,10 +2567,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1630, + "commentStart": 1644, "end": 0, "name": { - "commentStart": 1630, + "commentStart": 1644, "end": 0, "name": "profileStartY", "start": 0, @@ -2564,7 +2580,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1630, + "commentStart": 1644, "end": 0, "start": 0, "type": "CallExpression", @@ -2580,10 +2596,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1592, + "commentStart": 1606, "end": 0, "name": { - "commentStart": 1592, + "commentStart": 1606, "end": 0, "name": "line", "start": 0, @@ -2593,7 +2609,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1592, + "commentStart": 1606, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2604,10 +2620,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 1654, + "commentStart": 1668, "end": 0, "name": { - "commentStart": 1654, + "commentStart": 1668, "end": 0, "name": "close", "start": 0, @@ -2617,7 +2633,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1654, + "commentStart": 1668, "end": 0, "start": 0, "type": "CallExpression", @@ -2640,12 +2656,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 1662, + "commentStart": 1676, "declaration": { - "commentStart": 1662, + "commentStart": 1676, "end": 0, "id": { - "commentStart": 1662, + "commentStart": 1676, "end": 0, "name": "extrude001", "start": 0, @@ -2656,14 +2672,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 1694, + "commentStart": 1708, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1703, + "commentStart": 1717, "end": 0, "raw": "5", "start": 0, @@ -2678,10 +2694,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1675, + "commentStart": 1689, "end": 0, "name": { - "commentStart": 1675, + "commentStart": 1689, "end": 0, "name": "extrude", "start": 0, @@ -2691,17 +2707,17 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1675, + "commentStart": 1689, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 1683, + "commentStart": 1697, "end": 0, "name": { - "commentStart": 1683, + "commentStart": 1697, "end": 0, "name": "sketch001", "start": 0, @@ -2723,12 +2739,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 1705, + "commentStart": 1719, "declaration": { - "commentStart": 1707, + "commentStart": 1721, "end": 0, "id": { - "commentStart": 1707, + "commentStart": 1721, "end": 0, "name": "sketch003", "start": 0, @@ -2740,10 +2756,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 1733, + "commentStart": 1747, "end": 0, "name": { - "commentStart": 1733, + "commentStart": 1747, "end": 0, "name": "extrude001", "start": 0, @@ -2755,7 +2771,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name" }, { - "commentStart": 1745, + "commentStart": 1759, "end": 0, "raw": "'START'", "start": 0, @@ -2766,10 +2782,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1719, + "commentStart": 1733, "end": 0, "name": { - "commentStart": 1719, + "commentStart": 1733, "end": 0, "name": "startSketchOn", "start": 0, @@ -2779,7 +2795,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1719, + "commentStart": 1733, "end": 0, "start": 0, "type": "CallExpression", @@ -2788,14 +2804,14 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 1774, + "commentStart": 1788, "elements": [ { "abs_path": false, - "commentStart": 1775, + "commentStart": 1789, "end": 0, "name": { - "commentStart": 1775, + "commentStart": 1789, "end": 0, "name": "distanceToInsideEdge", "start": 0, @@ -2807,7 +2823,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name" }, { - "commentStart": 1797, + "commentStart": 1811, "end": 0, "raw": "0", "start": 0, @@ -2825,7 +2841,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 1801, + "commentStart": 1815, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2834,10 +2850,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1759, + "commentStart": 1773, "end": 0, "name": { - "commentStart": 1759, + "commentStart": 1773, "end": 0, "name": "startProfileAt", "start": 0, @@ -2847,7 +2863,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1759, + "commentStart": 1773, "end": 0, "start": 0, "type": "CallExpression", @@ -2856,10 +2872,10 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 1820, + "commentStart": 1834, "elements": [ { - "commentStart": 1821, + "commentStart": 1835, "end": 0, "raw": "180", "start": 0, @@ -2872,10 +2888,10 @@ description: Result of parsing router-template-cross-bar.kcl }, { "abs_path": false, - "commentStart": 1826, + "commentStart": 1840, "end": 0, "name": { - "commentStart": 1826, + "commentStart": 1840, "end": 0, "name": "templateThickness", "start": 0, @@ -2893,14 +2909,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 1846, + "commentStart": 1860, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 1849, + "commentStart": 1863, "end": 0, "start": 0, "type": "TagDeclarator", @@ -2910,10 +2926,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1809, + "commentStart": 1823, "end": 0, "name": { - "commentStart": 1809, + "commentStart": 1823, "end": 0, "name": "angledLine", "start": 0, @@ -2923,7 +2939,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1809, + "commentStart": 1823, "end": 0, "start": 0, "type": "CallExpression", @@ -2932,19 +2948,19 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 1888, + "commentStart": 1902, "elements": [ { - "commentStart": 1897, + "commentStart": 1911, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 1904, + "commentStart": 1918, "end": 0, "name": { - "commentStart": 1904, + "commentStart": 1918, "end": 0, "name": "rectangleSegmentA002", "start": 0, @@ -2958,10 +2974,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1897, + "commentStart": 1911, "end": 0, "name": { - "commentStart": 1897, + "commentStart": 1911, "end": 0, "name": "segAng", "start": 0, @@ -2971,7 +2987,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1897, + "commentStart": 1911, "end": 0, "start": 0, "type": "CallExpression", @@ -2979,7 +2995,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "+", "right": { - "commentStart": 1928, + "commentStart": 1942, "end": 0, "raw": "90", "start": 0, @@ -2996,10 +3012,10 @@ description: Result of parsing router-template-cross-bar.kcl }, { "abs_path": false, - "commentStart": 1939, + "commentStart": 1953, "end": 0, "name": { - "commentStart": 1939, + "commentStart": 1953, "end": 0, "name": "templateThickness", "start": 0, @@ -3017,14 +3033,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 1965, + "commentStart": 1979, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 1968, + "commentStart": 1982, "end": 0, "start": 0, "type": "TagDeclarator", @@ -3034,10 +3050,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1877, + "commentStart": 1891, "end": 0, "name": { - "commentStart": 1877, + "commentStart": 1891, "end": 0, "name": "angledLine", "start": 0, @@ -3047,7 +3063,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1877, + "commentStart": 1891, "end": 0, "start": 0, "type": "CallExpression", @@ -3056,16 +3072,16 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2007, + "commentStart": 2021, "elements": [ { "arguments": [ { "abs_path": false, - "commentStart": 2023, + "commentStart": 2037, "end": 0, "name": { - "commentStart": 2023, + "commentStart": 2037, "end": 0, "name": "rectangleSegmentA002", "start": 0, @@ -3079,10 +3095,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2016, + "commentStart": 2030, "end": 0, "name": { - "commentStart": 2016, + "commentStart": 2030, "end": 0, "name": "segAng", "start": 0, @@ -3092,7 +3108,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2016, + "commentStart": 2030, "end": 0, "start": 0, "type": "CallExpression", @@ -3103,10 +3119,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 2061, + "commentStart": 2075, "end": 0, "name": { - "commentStart": 2061, + "commentStart": 2075, "end": 0, "name": "rectangleSegmentA002", "start": 0, @@ -3120,10 +3136,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2054, + "commentStart": 2068, "end": 0, "name": { - "commentStart": 2054, + "commentStart": 2068, "end": 0, "name": "segLen", "start": 0, @@ -3133,13 +3149,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2054, + "commentStart": 2068, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 2053, + "commentStart": 2067, "end": 0, "operator": "-", "start": 0, @@ -3153,14 +3169,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2091, + "commentStart": 2105, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 2094, + "commentStart": 2108, "end": 0, "start": 0, "type": "TagDeclarator", @@ -3170,10 +3186,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 1996, + "commentStart": 2010, "end": 0, "name": { - "commentStart": 1996, + "commentStart": 2010, "end": 0, "name": "angledLine", "start": 0, @@ -3183,7 +3199,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 1996, + "commentStart": 2010, "end": 0, "start": 0, "type": "CallExpression", @@ -3194,19 +3210,19 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 2127, + "commentStart": 2141, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2141, + "commentStart": 2155, "elements": [ { "arguments": [ { - "commentStart": 2156, + "commentStart": 2170, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3215,10 +3231,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2142, + "commentStart": 2156, "end": 0, "name": { - "commentStart": 2142, + "commentStart": 2156, "end": 0, "name": "profileStartX", "start": 0, @@ -3228,7 +3244,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2142, + "commentStart": 2156, "end": 0, "start": 0, "type": "CallExpression", @@ -3237,7 +3253,7 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2174, + "commentStart": 2188, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3246,10 +3262,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2160, + "commentStart": 2174, "end": 0, "name": { - "commentStart": 2160, + "commentStart": 2174, "end": 0, "name": "profileStartY", "start": 0, @@ -3259,7 +3275,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2160, + "commentStart": 2174, "end": 0, "start": 0, "type": "CallExpression", @@ -3275,10 +3291,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2122, + "commentStart": 2136, "end": 0, "name": { - "commentStart": 2122, + "commentStart": 2136, "end": 0, "name": "line", "start": 0, @@ -3288,7 +3304,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2122, + "commentStart": 2136, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -3299,10 +3315,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 2184, + "commentStart": 2198, "end": 0, "name": { - "commentStart": 2184, + "commentStart": 2198, "end": 0, "name": "close", "start": 0, @@ -3312,14 +3328,14 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2184, + "commentStart": 2198, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], - "commentStart": 1719, + "commentStart": 1733, "end": 0, "start": 0, "type": "PipeExpression", @@ -3335,12 +3351,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 2192, + "commentStart": 2206, "declaration": { - "commentStart": 2192, + "commentStart": 2206, "end": 0, "id": { - "commentStart": 2192, + "commentStart": 2206, "end": 0, "name": "extrude003", "start": 0, @@ -3351,14 +3367,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 2224, + "commentStart": 2238, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2233, + "commentStart": 2247, "end": 0, "raw": "13", "start": 0, @@ -3373,10 +3389,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2205, + "commentStart": 2219, "end": 0, "name": { - "commentStart": 2205, + "commentStart": 2219, "end": 0, "name": "extrude", "start": 0, @@ -3386,17 +3402,17 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2205, + "commentStart": 2219, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 2213, + "commentStart": 2227, "end": 0, "name": { - "commentStart": 2213, + "commentStart": 2227, "end": 0, "name": "sketch003", "start": 0, @@ -3418,12 +3434,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 2236, + "commentStart": 2250, "declaration": { - "commentStart": 2238, + "commentStart": 2252, "end": 0, "id": { - "commentStart": 2238, + "commentStart": 2252, "end": 0, "name": "sketch002", "start": 0, @@ -3435,10 +3451,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 2264, + "commentStart": 2278, "end": 0, "name": { - "commentStart": 2264, + "commentStart": 2278, "end": 0, "name": "extrude001", "start": 0, @@ -3450,7 +3466,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name" }, { - "commentStart": 2276, + "commentStart": 2290, "end": 0, "raw": "'START'", "start": 0, @@ -3461,10 +3477,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2250, + "commentStart": 2264, "end": 0, "name": { - "commentStart": 2250, + "commentStart": 2264, "end": 0, "name": "startSketchOn", "start": 0, @@ -3474,7 +3490,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2250, + "commentStart": 2264, "end": 0, "start": 0, "type": "CallExpression", @@ -3483,15 +3499,15 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2305, + "commentStart": 2319, "elements": [ { "argument": { "abs_path": false, - "commentStart": 2307, + "commentStart": 2321, "end": 0, "name": { - "commentStart": 2307, + "commentStart": 2321, "end": 0, "name": "distanceToInsideEdge", "start": 0, @@ -3502,7 +3518,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name", "type": "Name" }, - "commentStart": 2306, + "commentStart": 2320, "end": 0, "operator": "-", "start": 0, @@ -3510,7 +3526,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "UnaryExpression" }, { - "commentStart": 2329, + "commentStart": 2343, "end": 0, "raw": "0", "start": 0, @@ -3528,7 +3544,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2333, + "commentStart": 2347, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3537,10 +3553,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2290, + "commentStart": 2304, "end": 0, "name": { - "commentStart": 2290, + "commentStart": 2304, "end": 0, "name": "startProfileAt", "start": 0, @@ -3550,7 +3566,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2290, + "commentStart": 2304, "end": 0, "start": 0, "type": "CallExpression", @@ -3559,10 +3575,10 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2352, + "commentStart": 2366, "elements": [ { - "commentStart": 2353, + "commentStart": 2367, "end": 0, "raw": "0", "start": 0, @@ -3575,10 +3591,10 @@ description: Result of parsing router-template-cross-bar.kcl }, { "abs_path": false, - "commentStart": 2356, + "commentStart": 2370, "end": 0, "name": { - "commentStart": 2356, + "commentStart": 2370, "end": 0, "name": "templateThickness", "start": 0, @@ -3596,14 +3612,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2376, + "commentStart": 2390, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 2379, + "commentStart": 2393, "end": 0, "start": 0, "type": "TagDeclarator", @@ -3613,10 +3629,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2341, + "commentStart": 2355, "end": 0, "name": { - "commentStart": 2341, + "commentStart": 2355, "end": 0, "name": "angledLine", "start": 0, @@ -3626,7 +3642,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2341, + "commentStart": 2355, "end": 0, "start": 0, "type": "CallExpression", @@ -3635,19 +3651,19 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2418, + "commentStart": 2432, "elements": [ { - "commentStart": 2427, + "commentStart": 2441, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 2434, + "commentStart": 2448, "end": 0, "name": { - "commentStart": 2434, + "commentStart": 2448, "end": 0, "name": "rectangleSegmentA001", "start": 0, @@ -3661,10 +3677,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2427, + "commentStart": 2441, "end": 0, "name": { - "commentStart": 2427, + "commentStart": 2441, "end": 0, "name": "segAng", "start": 0, @@ -3674,7 +3690,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2427, + "commentStart": 2441, "end": 0, "start": 0, "type": "CallExpression", @@ -3682,7 +3698,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "-", "right": { - "commentStart": 2458, + "commentStart": 2472, "end": 0, "raw": "90", "start": 0, @@ -3699,10 +3715,10 @@ description: Result of parsing router-template-cross-bar.kcl }, { "abs_path": false, - "commentStart": 2469, + "commentStart": 2483, "end": 0, "name": { - "commentStart": 2469, + "commentStart": 2483, "end": 0, "name": "templateThickness", "start": 0, @@ -3720,14 +3736,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2495, + "commentStart": 2509, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 2498, + "commentStart": 2512, "end": 0, "start": 0, "type": "TagDeclarator", @@ -3737,10 +3753,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2407, + "commentStart": 2421, "end": 0, "name": { - "commentStart": 2407, + "commentStart": 2421, "end": 0, "name": "angledLine", "start": 0, @@ -3750,7 +3766,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2407, + "commentStart": 2421, "end": 0, "start": 0, "type": "CallExpression", @@ -3759,16 +3775,16 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2537, + "commentStart": 2551, "elements": [ { "arguments": [ { "abs_path": false, - "commentStart": 2553, + "commentStart": 2567, "end": 0, "name": { - "commentStart": 2553, + "commentStart": 2567, "end": 0, "name": "rectangleSegmentA001", "start": 0, @@ -3782,10 +3798,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2546, + "commentStart": 2560, "end": 0, "name": { - "commentStart": 2546, + "commentStart": 2560, "end": 0, "name": "segAng", "start": 0, @@ -3795,7 +3811,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2546, + "commentStart": 2560, "end": 0, "start": 0, "type": "CallExpression", @@ -3806,10 +3822,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 2591, + "commentStart": 2605, "end": 0, "name": { - "commentStart": 2591, + "commentStart": 2605, "end": 0, "name": "rectangleSegmentA001", "start": 0, @@ -3823,10 +3839,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2584, + "commentStart": 2598, "end": 0, "name": { - "commentStart": 2584, + "commentStart": 2598, "end": 0, "name": "segLen", "start": 0, @@ -3836,13 +3852,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2584, + "commentStart": 2598, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 2583, + "commentStart": 2597, "end": 0, "operator": "-", "start": 0, @@ -3856,14 +3872,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2621, + "commentStart": 2635, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 2624, + "commentStart": 2638, "end": 0, "start": 0, "type": "TagDeclarator", @@ -3873,10 +3889,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2526, + "commentStart": 2540, "end": 0, "name": { - "commentStart": 2526, + "commentStart": 2540, "end": 0, "name": "angledLine", "start": 0, @@ -3886,7 +3902,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2526, + "commentStart": 2540, "end": 0, "start": 0, "type": "CallExpression", @@ -3897,19 +3913,19 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 2657, + "commentStart": 2671, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2671, + "commentStart": 2685, "elements": [ { "arguments": [ { - "commentStart": 2686, + "commentStart": 2700, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3918,10 +3934,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2672, + "commentStart": 2686, "end": 0, "name": { - "commentStart": 2672, + "commentStart": 2686, "end": 0, "name": "profileStartX", "start": 0, @@ -3931,7 +3947,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2672, + "commentStart": 2686, "end": 0, "start": 0, "type": "CallExpression", @@ -3940,7 +3956,7 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2704, + "commentStart": 2718, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3949,10 +3965,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2690, + "commentStart": 2704, "end": 0, "name": { - "commentStart": 2690, + "commentStart": 2704, "end": 0, "name": "profileStartY", "start": 0, @@ -3962,7 +3978,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2690, + "commentStart": 2704, "end": 0, "start": 0, "type": "CallExpression", @@ -3978,10 +3994,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2652, + "commentStart": 2666, "end": 0, "name": { - "commentStart": 2652, + "commentStart": 2666, "end": 0, "name": "line", "start": 0, @@ -3991,7 +4007,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2652, + "commentStart": 2666, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -4002,10 +4018,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 2714, + "commentStart": 2728, "end": 0, "name": { - "commentStart": 2714, + "commentStart": 2728, "end": 0, "name": "close", "start": 0, @@ -4015,14 +4031,14 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2714, + "commentStart": 2728, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], - "commentStart": 2250, + "commentStart": 2264, "end": 0, "start": 0, "type": "PipeExpression", @@ -4038,12 +4054,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 2721, + "commentStart": 2735, "declaration": { - "commentStart": 2723, + "commentStart": 2737, "end": 0, "id": { - "commentStart": 2723, + "commentStart": 2737, "end": 0, "name": "extrude002", "start": 0, @@ -4054,14 +4070,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 2755, + "commentStart": 2769, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2764, + "commentStart": 2778, "end": 0, "raw": "13", "start": 0, @@ -4076,10 +4092,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2736, + "commentStart": 2750, "end": 0, "name": { - "commentStart": 2736, + "commentStart": 2750, "end": 0, "name": "extrude", "start": 0, @@ -4089,17 +4105,17 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2736, + "commentStart": 2750, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 2744, + "commentStart": 2758, "end": 0, "name": { - "commentStart": 2744, + "commentStart": 2758, "end": 0, "name": "sketch002", "start": 0, @@ -4121,12 +4137,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 2767, + "commentStart": 2781, "declaration": { - "commentStart": 2769, + "commentStart": 2783, "end": 0, "id": { - "commentStart": 2769, + "commentStart": 2783, "end": 0, "name": "sketch004", "start": 0, @@ -4138,10 +4154,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 2795, + "commentStart": 2809, "end": 0, "name": { - "commentStart": 2795, + "commentStart": 2809, "end": 0, "name": "extrude002", "start": 0, @@ -4153,7 +4169,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name" }, { - "commentStart": 2807, + "commentStart": 2821, "end": 0, "raw": "'END'", "start": 0, @@ -4164,10 +4180,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2781, + "commentStart": 2795, "end": 0, "name": { - "commentStart": 2781, + "commentStart": 2795, "end": 0, "name": "startSketchOn", "start": 0, @@ -4177,7 +4193,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2781, + "commentStart": 2795, "end": 0, "start": 0, "type": "CallExpression", @@ -4186,15 +4202,15 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2834, + "commentStart": 2848, "elements": [ { "argument": { "abs_path": false, - "commentStart": 2836, + "commentStart": 2850, "end": 0, "name": { - "commentStart": 2836, + "commentStart": 2850, "end": 0, "name": "distanceToInsideEdge", "start": 0, @@ -4205,7 +4221,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "Name", "type": "Name" }, - "commentStart": 2835, + "commentStart": 2849, "end": 0, "operator": "-", "start": 0, @@ -4213,7 +4229,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "UnaryExpression" }, { - "commentStart": 2858, + "commentStart": 2872, "end": 0, "raw": "0", "start": 0, @@ -4231,7 +4247,7 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2862, + "commentStart": 2876, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -4240,10 +4256,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2819, + "commentStart": 2833, "end": 0, "name": { - "commentStart": 2819, + "commentStart": 2833, "end": 0, "name": "startProfileAt", "start": 0, @@ -4253,7 +4269,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2819, + "commentStart": 2833, "end": 0, "start": 0, "type": "CallExpression", @@ -4262,10 +4278,10 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2881, + "commentStart": 2895, "elements": [ { - "commentStart": 2882, + "commentStart": 2896, "end": 0, "raw": "0", "start": 0, @@ -4277,14 +4293,14 @@ description: Result of parsing router-template-cross-bar.kcl } }, { - "commentStart": 2885, + "commentStart": 2899, "end": 0, "left": { "abs_path": false, - "commentStart": 2885, + "commentStart": 2899, "end": 0, "name": { - "commentStart": 2885, + "commentStart": 2899, "end": 0, "name": "distanceToInsideEdge", "start": 0, @@ -4297,7 +4313,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "*", "right": { - "commentStart": 2908, + "commentStart": 2922, "end": 0, "raw": "2", "start": 0, @@ -4319,14 +4335,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 2912, + "commentStart": 2926, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 2915, + "commentStart": 2929, "end": 0, "start": 0, "type": "TagDeclarator", @@ -4336,10 +4352,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2870, + "commentStart": 2884, "end": 0, "name": { - "commentStart": 2870, + "commentStart": 2884, "end": 0, "name": "angledLine", "start": 0, @@ -4349,7 +4365,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2870, + "commentStart": 2884, "end": 0, "start": 0, "type": "CallExpression", @@ -4358,19 +4374,19 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 2954, + "commentStart": 2968, "elements": [ { - "commentStart": 2963, + "commentStart": 2977, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 2970, + "commentStart": 2984, "end": 0, "name": { - "commentStart": 2970, + "commentStart": 2984, "end": 0, "name": "rectangleSegmentA003", "start": 0, @@ -4384,10 +4400,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2963, + "commentStart": 2977, "end": 0, "name": { - "commentStart": 2963, + "commentStart": 2977, "end": 0, "name": "segAng", "start": 0, @@ -4397,7 +4413,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2963, + "commentStart": 2977, "end": 0, "start": 0, "type": "CallExpression", @@ -4405,7 +4421,7 @@ description: Result of parsing router-template-cross-bar.kcl }, "operator": "-", "right": { - "commentStart": 2994, + "commentStart": 3008, "end": 0, "raw": "90", "start": 0, @@ -4422,10 +4438,10 @@ description: Result of parsing router-template-cross-bar.kcl }, { "abs_path": false, - "commentStart": 3005, + "commentStart": 3019, "end": 0, "name": { - "commentStart": 3005, + "commentStart": 3019, "end": 0, "name": "templateThickness", "start": 0, @@ -4443,14 +4459,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 3031, + "commentStart": 3045, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 3034, + "commentStart": 3048, "end": 0, "start": 0, "type": "TagDeclarator", @@ -4460,10 +4476,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 2943, + "commentStart": 2957, "end": 0, "name": { - "commentStart": 2943, + "commentStart": 2957, "end": 0, "name": "angledLine", "start": 0, @@ -4473,7 +4489,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 2943, + "commentStart": 2957, "end": 0, "start": 0, "type": "CallExpression", @@ -4482,16 +4498,16 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 3073, + "commentStart": 3087, "elements": [ { "arguments": [ { "abs_path": false, - "commentStart": 3089, + "commentStart": 3103, "end": 0, "name": { - "commentStart": 3089, + "commentStart": 3103, "end": 0, "name": "rectangleSegmentA003", "start": 0, @@ -4505,10 +4521,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3082, + "commentStart": 3096, "end": 0, "name": { - "commentStart": 3082, + "commentStart": 3096, "end": 0, "name": "segAng", "start": 0, @@ -4518,7 +4534,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3082, + "commentStart": 3096, "end": 0, "start": 0, "type": "CallExpression", @@ -4529,10 +4545,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [ { "abs_path": false, - "commentStart": 3127, + "commentStart": 3141, "end": 0, "name": { - "commentStart": 3127, + "commentStart": 3141, "end": 0, "name": "rectangleSegmentA003", "start": 0, @@ -4546,10 +4562,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3120, + "commentStart": 3134, "end": 0, "name": { - "commentStart": 3120, + "commentStart": 3134, "end": 0, "name": "segLen", "start": 0, @@ -4559,13 +4575,13 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3120, + "commentStart": 3134, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 3119, + "commentStart": 3133, "end": 0, "operator": "-", "start": 0, @@ -4579,14 +4595,14 @@ description: Result of parsing router-template-cross-bar.kcl "type": "ArrayExpression" }, { - "commentStart": 3157, + "commentStart": 3171, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 3160, + "commentStart": 3174, "end": 0, "start": 0, "type": "TagDeclarator", @@ -4596,10 +4612,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3062, + "commentStart": 3076, "end": 0, "name": { - "commentStart": 3062, + "commentStart": 3076, "end": 0, "name": "angledLine", "start": 0, @@ -4609,7 +4625,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3062, + "commentStart": 3076, "end": 0, "start": 0, "type": "CallExpression", @@ -4620,19 +4636,19 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 3193, + "commentStart": 3207, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 3207, + "commentStart": 3221, "elements": [ { "arguments": [ { - "commentStart": 3222, + "commentStart": 3236, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -4641,10 +4657,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3208, + "commentStart": 3222, "end": 0, "name": { - "commentStart": 3208, + "commentStart": 3222, "end": 0, "name": "profileStartX", "start": 0, @@ -4654,7 +4670,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3208, + "commentStart": 3222, "end": 0, "start": 0, "type": "CallExpression", @@ -4663,7 +4679,7 @@ description: Result of parsing router-template-cross-bar.kcl { "arguments": [ { - "commentStart": 3240, + "commentStart": 3254, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -4672,10 +4688,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3226, + "commentStart": 3240, "end": 0, "name": { - "commentStart": 3226, + "commentStart": 3240, "end": 0, "name": "profileStartY", "start": 0, @@ -4685,7 +4701,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3226, + "commentStart": 3240, "end": 0, "start": 0, "type": "CallExpression", @@ -4701,10 +4717,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3188, + "commentStart": 3202, "end": 0, "name": { - "commentStart": 3188, + "commentStart": 3202, "end": 0, "name": "line", "start": 0, @@ -4714,7 +4730,7 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3188, + "commentStart": 3202, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -4725,10 +4741,10 @@ description: Result of parsing router-template-cross-bar.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 3250, + "commentStart": 3264, "end": 0, "name": { - "commentStart": 3250, + "commentStart": 3264, "end": 0, "name": "close", "start": 0, @@ -4738,14 +4754,14 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3250, + "commentStart": 3264, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], - "commentStart": 2781, + "commentStart": 2795, "end": 0, "start": 0, "type": "PipeExpression", @@ -4761,12 +4777,12 @@ description: Result of parsing router-template-cross-bar.kcl "type": "VariableDeclaration" }, { - "commentStart": 3258, + "commentStart": 3272, "declaration": { - "commentStart": 3258, + "commentStart": 3272, "end": 0, "id": { - "commentStart": 3258, + "commentStart": 3272, "end": 0, "name": "extrude004", "start": 0, @@ -4777,14 +4793,14 @@ description: Result of parsing router-template-cross-bar.kcl { "type": "LabeledArg", "label": { - "commentStart": 3290, + "commentStart": 3304, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 3299, + "commentStart": 3313, "end": 0, "raw": "4", "start": 0, @@ -4799,10 +4815,10 @@ description: Result of parsing router-template-cross-bar.kcl ], "callee": { "abs_path": false, - "commentStart": 3271, + "commentStart": 3285, "end": 0, "name": { - "commentStart": 3271, + "commentStart": 3285, "end": 0, "name": "extrude", "start": 0, @@ -4812,17 +4828,17 @@ description: Result of parsing router-template-cross-bar.kcl "start": 0, "type": "Name" }, - "commentStart": 3271, + "commentStart": 3285, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 3279, + "commentStart": 3293, "end": 0, "name": { - "commentStart": 3279, + "commentStart": 3293, "end": 0, "name": "sketch004", "start": 0, @@ -4903,7 +4919,7 @@ description: Result of parsing router-template-cross-bar.kcl "nonCodeNodes": { "10": [ { - "commentStart": 1705, + "commentStart": 1719, "end": 0, "start": 0, "type": "NonCodeNode", @@ -4914,7 +4930,7 @@ description: Result of parsing router-template-cross-bar.kcl ], "12": [ { - "commentStart": 2236, + "commentStart": 2250, "end": 0, "start": 0, "type": "NonCodeNode", @@ -4925,7 +4941,7 @@ description: Result of parsing router-template-cross-bar.kcl ], "13": [ { - "commentStart": 2721, + "commentStart": 2735, "end": 0, "start": 0, "type": "NonCodeNode", @@ -4936,7 +4952,7 @@ description: Result of parsing router-template-cross-bar.kcl ], "14": [ { - "commentStart": 2767, + "commentStart": 2781, "end": 0, "start": 0, "type": "NonCodeNode", diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/program_memory.snap b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/program_memory.snap index bcb135c7e..4813f3e74 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/program_memory.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-cross-bar/program_memory.snap @@ -35,9 +35,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -48,9 +48,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -61,9 +61,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -74,9 +74,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -87,9 +87,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -100,9 +100,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -113,9 +113,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -126,9 +126,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -139,9 +139,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -152,9 +152,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -238,9 +238,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -269,9 +269,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -294,9 +294,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -319,9 +319,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -344,9 +344,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -369,9 +369,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -394,9 +394,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -419,9 +419,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -444,9 +444,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -469,9 +469,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -815,9 +815,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -828,9 +828,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -841,9 +841,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -871,9 +871,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -896,9 +896,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -921,9 +921,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -1005,9 +1005,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -1018,9 +1018,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -1031,9 +1031,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -1044,9 +1044,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -1057,9 +1057,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -1070,9 +1070,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -1083,9 +1083,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -1096,9 +1096,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -1109,9 +1109,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -1122,9 +1122,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -1208,9 +1208,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -1239,9 +1239,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -1264,9 +1264,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -1289,9 +1289,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -1314,9 +1314,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -1339,9 +1339,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -1364,9 +1364,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -1389,9 +1389,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -1414,9 +1414,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -1439,9 +1439,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -1834,9 +1834,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1849, - "end": 1870, - "start": 1849, + "commentStart": 1863, + "end": 1884, + "start": 1863, "type": "TagDeclarator", "value": "rectangleSegmentA002" }, @@ -1847,9 +1847,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1968, - "end": 1989, - "start": 1968, + "commentStart": 1982, + "end": 2003, + "start": 1982, "type": "TagDeclarator", "value": "rectangleSegmentB002" }, @@ -1860,9 +1860,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2094, - "end": 2115, - "start": 2094, + "commentStart": 2108, + "end": 2129, + "start": 2108, "type": "TagDeclarator", "value": "rectangleSegmentC002" }, @@ -1890,9 +1890,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 1849, - "end": 1870, - "start": 1849, + "commentStart": 1863, + "end": 1884, + "start": 1863, "type": "TagDeclarator", "value": "rectangleSegmentA002" }, @@ -1915,9 +1915,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 1968, - "end": 1989, - "start": 1968, + "commentStart": 1982, + "end": 2003, + "start": 1982, "type": "TagDeclarator", "value": "rectangleSegmentB002" }, @@ -1940,9 +1940,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 2094, - "end": 2115, - "start": 2094, + "commentStart": 2108, + "end": 2129, + "start": 2108, "type": "TagDeclarator", "value": "rectangleSegmentC002" }, @@ -2024,9 +2024,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -2037,9 +2037,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -2050,9 +2050,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -2063,9 +2063,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -2076,9 +2076,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -2089,9 +2089,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -2102,9 +2102,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -2115,9 +2115,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -2128,9 +2128,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -2141,9 +2141,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -2227,9 +2227,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -2258,9 +2258,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -2283,9 +2283,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -2308,9 +2308,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -2333,9 +2333,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -2358,9 +2358,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -2383,9 +2383,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -2408,9 +2408,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -2433,9 +2433,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -2458,9 +2458,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -2853,9 +2853,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2915, - "end": 2936, - "start": 2915, + "commentStart": 2929, + "end": 2950, + "start": 2929, "type": "TagDeclarator", "value": "rectangleSegmentA003" }, @@ -2866,9 +2866,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 3034, - "end": 3055, - "start": 3034, + "commentStart": 3048, + "end": 3069, + "start": 3048, "type": "TagDeclarator", "value": "rectangleSegmentB003" }, @@ -2879,9 +2879,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 3160, - "end": 3181, - "start": 3160, + "commentStart": 3174, + "end": 3195, + "start": 3174, "type": "TagDeclarator", "value": "rectangleSegmentC003" }, @@ -2909,9 +2909,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2915, - "end": 2936, - "start": 2915, + "commentStart": 2929, + "end": 2950, + "start": 2929, "type": "TagDeclarator", "value": "rectangleSegmentA003" }, @@ -2934,9 +2934,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 3034, - "end": 3055, - "start": 3034, + "commentStart": 3048, + "end": 3069, + "start": 3048, "type": "TagDeclarator", "value": "rectangleSegmentB003" }, @@ -2959,9 +2959,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 3160, - "end": 3181, - "start": 3160, + "commentStart": 3174, + "end": 3195, + "start": 3174, "type": "TagDeclarator", "value": "rectangleSegmentC003" }, @@ -3043,9 +3043,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -3056,9 +3056,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -3069,9 +3069,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -3099,9 +3099,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -3124,9 +3124,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -3149,9 +3149,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -3233,9 +3233,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -3246,9 +3246,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -3259,9 +3259,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -3272,9 +3272,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -3285,9 +3285,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -3298,9 +3298,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -3311,9 +3311,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -3324,9 +3324,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -3337,9 +3337,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -3350,9 +3350,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -3436,9 +3436,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -3467,9 +3467,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -3492,9 +3492,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -3517,9 +3517,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -3542,9 +3542,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -3567,9 +3567,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -3592,9 +3592,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -3617,9 +3617,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -3642,9 +3642,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -3667,9 +3667,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -4249,9 +4249,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -4280,9 +4280,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -4305,9 +4305,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -4330,9 +4330,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -4355,9 +4355,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -4380,9 +4380,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -4405,9 +4405,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -4430,9 +4430,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -4455,9 +4455,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -4480,9 +4480,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -4823,9 +4823,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -4848,9 +4848,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -4873,9 +4873,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -4957,9 +4957,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -4970,9 +4970,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -4983,9 +4983,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -4996,9 +4996,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -5009,9 +5009,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -5022,9 +5022,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -5035,9 +5035,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -5048,9 +5048,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -5061,9 +5061,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -5074,9 +5074,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -5160,9 +5160,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -5191,9 +5191,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -5216,9 +5216,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -5241,9 +5241,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -5266,9 +5266,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -5291,9 +5291,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -5316,9 +5316,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -5341,9 +5341,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -5366,9 +5366,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -5391,9 +5391,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -5783,9 +5783,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 1849, - "end": 1870, - "start": 1849, + "commentStart": 1863, + "end": 1884, + "start": 1863, "type": "TagDeclarator", "value": "rectangleSegmentA002" }, @@ -5808,9 +5808,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 1968, - "end": 1989, - "start": 1968, + "commentStart": 1982, + "end": 2003, + "start": 1982, "type": "TagDeclarator", "value": "rectangleSegmentB002" }, @@ -5833,9 +5833,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 2094, - "end": 2115, - "start": 2094, + "commentStart": 2108, + "end": 2129, + "start": 2108, "type": "TagDeclarator", "value": "rectangleSegmentC002" }, @@ -5917,9 +5917,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -5930,9 +5930,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -5943,9 +5943,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -5956,9 +5956,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -5969,9 +5969,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -5982,9 +5982,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -5995,9 +5995,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -6008,9 +6008,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -6021,9 +6021,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -6034,9 +6034,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -6120,9 +6120,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -6151,9 +6151,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -6176,9 +6176,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -6201,9 +6201,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -6226,9 +6226,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -6251,9 +6251,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -6276,9 +6276,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -6301,9 +6301,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -6326,9 +6326,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -6351,9 +6351,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -6743,9 +6743,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2915, - "end": 2936, - "start": 2915, + "commentStart": 2929, + "end": 2950, + "start": 2929, "type": "TagDeclarator", "value": "rectangleSegmentA003" }, @@ -6768,9 +6768,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 3034, - "end": 3055, - "start": 3034, + "commentStart": 3048, + "end": 3069, + "start": 3048, "type": "TagDeclarator", "value": "rectangleSegmentB003" }, @@ -6793,9 +6793,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 3160, - "end": 3181, - "start": 3160, + "commentStart": 3174, + "end": 3195, + "start": 3174, "type": "TagDeclarator", "value": "rectangleSegmentC003" }, @@ -6877,9 +6877,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -6890,9 +6890,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -6903,9 +6903,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -6933,9 +6933,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2379, - "end": 2400, - "start": 2379, + "commentStart": 2393, + "end": 2414, + "start": 2393, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -6958,9 +6958,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 0.0 ], "tag": { - "commentStart": 2498, - "end": 2519, - "start": 2498, + "commentStart": 2512, + "end": 2533, + "start": 2512, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -6983,9 +6983,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 2624, - "end": 2645, - "start": 2624, + "commentStart": 2638, + "end": 2659, + "start": 2638, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -7067,9 +7067,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -7080,9 +7080,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -7093,9 +7093,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -7106,9 +7106,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -7119,9 +7119,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -7132,9 +7132,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -7145,9 +7145,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -7158,9 +7158,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -7171,9 +7171,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -7184,9 +7184,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, @@ -7270,9 +7270,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 31.8813 ], "tag": { - "commentStart": 558, - "end": 564, - "start": 558, + "commentStart": 565, + "end": 571, + "start": 565, "type": "TagDeclarator", "value": "seg01" }, @@ -7301,9 +7301,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl ], "radius": 11.88125, "tag": { - "commentStart": 666, - "end": 672, - "start": 666, + "commentStart": 673, + "end": 679, + "start": 673, "type": "TagDeclarator", "value": "seg09" }, @@ -7326,9 +7326,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 20.0 ], "tag": { - "commentStart": 725, - "end": 731, - "start": 725, + "commentStart": 732, + "end": 738, + "start": 732, "type": "TagDeclarator", "value": "seg03" }, @@ -7351,9 +7351,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 778, - "end": 784, - "start": 778, + "commentStart": 785, + "end": 791, + "start": 785, "type": "TagDeclarator", "value": "seg07" }, @@ -7376,9 +7376,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl -10.0 ], "tag": { - "commentStart": 879, - "end": 885, - "start": 879, + "commentStart": 886, + "end": 892, + "start": 886, "type": "TagDeclarator", "value": "seg02" }, @@ -7401,9 +7401,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 956, - "end": 962, - "start": 956, + "commentStart": 963, + "end": 969, + "start": 963, "type": "TagDeclarator", "value": "seg06" }, @@ -7426,9 +7426,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 10.9406 ], "tag": { - "commentStart": 1013, - "end": 1019, - "start": 1013, + "commentStart": 1020, + "end": 1026, + "start": 1020, "type": "TagDeclarator", "value": "seg08" }, @@ -7451,9 +7451,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1072, - "end": 1078, - "start": 1072, + "commentStart": 1079, + "end": 1085, + "start": 1079, "type": "TagDeclarator", "value": "seg05" }, @@ -7476,9 +7476,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 30.9406 ], "tag": { - "commentStart": 1147, - "end": 1153, - "start": 1147, + "commentStart": 1154, + "end": 1160, + "start": 1154, "type": "TagDeclarator", "value": "seg10" }, @@ -7501,9 +7501,9 @@ description: Variables in memory after executing router-template-cross-bar.kcl 41.8813 ], "tag": { - "commentStart": 1192, - "end": 1198, - "start": 1192, + "commentStart": 1206, + "end": 1212, + "start": 1206, "type": "TagDeclarator", "value": "seg04" }, diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md index 4c27a6527..ea7408d33 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/router-template-slate/artifact_graph_flowchart.snap.md @@ -7,36 +7,36 @@ flowchart LR 5["Segment
[705, 781, 0]"] 6["Segment
[787, 856, 0]"] 7["Segment
[862, 902, 0]"] - 8["Segment
[908, 947, 0]"] - 9["Segment
[987, 1017, 0]"] - 10["Segment
[1023, 1052, 0]"] - 11["Segment
[1058, 1087, 0]"] - 12["Segment
[1093, 1122, 0]"] - 13["Segment
[1128, 1228, 0]"] - 14["Segment
[1234, 1290, 0]"] - 15["Segment
[1296, 1303, 0]"] + 8["Segment
[908, 954, 0]"] + 9["Segment
[994, 1024, 0]"] + 10["Segment
[1030, 1059, 0]"] + 11["Segment
[1065, 1094, 0]"] + 12["Segment
[1100, 1129, 0]"] + 13["Segment
[1135, 1235, 0]"] + 14["Segment
[1241, 1297, 0]"] + 15["Segment
[1303, 1310, 0]"] 16[Solid2d] end subgraph path52 [Path] - 52["Path
[1458, 1558, 0]"] - 53["Segment
[1564, 1611, 0]"] - 54["Segment
[1617, 1732, 0]"] - 55["Segment
[1738, 1858, 0]"] - 56["Segment
[1864, 1920, 0]"] - 57["Segment
[1926, 1933, 0]"] + 52["Path
[1465, 1565, 0]"] + 53["Segment
[1571, 1618, 0]"] + 54["Segment
[1624, 1739, 0]"] + 55["Segment
[1745, 1865, 0]"] + 56["Segment
[1871, 1927, 0]"] + 57["Segment
[1933, 1940, 0]"] 58[Solid2d] end subgraph path74 [Path] - 74["Path
[2090, 2189, 0]"] - 75["Segment
[2195, 2241, 0]"] - 76["Segment
[2247, 2339, 0]"] - 77["Segment
[2345, 2442, 0]"] - 78["Segment
[2448, 2504, 0]"] - 79["Segment
[2510, 2517, 0]"] + 74["Path
[2097, 2196, 0]"] + 75["Segment
[2202, 2248, 0]"] + 76["Segment
[2254, 2346, 0]"] + 77["Segment
[2352, 2449, 0]"] + 78["Segment
[2455, 2511, 0]"] + 79["Segment
[2517, 2524, 0]"] 80[Solid2d] end 1["Plane
[484, 501, 0]"] - 17["Sweep Extrusion
[1346, 1376, 0]"] + 17["Sweep Extrusion
[1353, 1383, 0]"] 18[Wall] 19[Wall] 20[Wall] @@ -71,7 +71,7 @@ flowchart LR 49["SweepEdge Opposite"] 50["SweepEdge Adjacent"] 51["SweepEdge Opposite"] - 59["Sweep Extrusion
[1977, 2009, 0]"] + 59["Sweep Extrusion
[1984, 2016, 0]"] 60[Wall] 61[Wall] 62[Wall] @@ -86,7 +86,7 @@ flowchart LR 71["SweepEdge Adjacent"] 72["SweepEdge Opposite"] 73["SweepEdge Adjacent"] - 81["Sweep Extrusion
[2560, 2592, 0]"] + 81["Sweep Extrusion
[2567, 2599, 0]"] 82[Wall] 83[Wall] 84[Wall] @@ -101,8 +101,8 @@ flowchart LR 93["SweepEdge Adjacent"] 94["SweepEdge Opposite"] 95["SweepEdge Adjacent"] - 96["StartSketchOnFace
[1418, 1452, 0]"] - 97["StartSketchOnFace
[2050, 2084, 0]"] + 96["StartSketchOnFace
[1425, 1459, 0]"] + 97["StartSketchOnFace
[2057, 2091, 0]"] 1 --- 2 2 --- 3 2 --- 4 diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-slate/ast.snap b/rust/kcl-lib/tests/kcl_samples/router-template-slate/ast.snap index b0a744e13..b3d368340 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-slate/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-slate/ast.snap @@ -1238,13 +1238,21 @@ description: Result of parsing router-template-slate.kcl "commentStart": 928, "end": 0, "name": { - "commentStart": 928, + "commentStart": 935, "end": 0, "name": "ZERO", "start": 0, "type": "Identifier" }, - "path": [], + "path": [ + { + "commentStart": 928, + "end": 0, + "name": "turns", + "start": 0, + "type": "Identifier" + } + ], "start": 0, "type": "Name", "type": "Name" @@ -1253,14 +1261,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 934, + "commentStart": 941, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 940, + "commentStart": 947, "end": 0, "start": 0, "type": "TagDeclarator", @@ -1296,7 +1304,7 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 993, + "commentStart": 1000, "end": 0, "name": "length", "start": 0, @@ -1307,10 +1315,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 1010, + "commentStart": 1017, "end": 0, "name": { - "commentStart": 1010, + "commentStart": 1017, "end": 0, "name": "seg02", "start": 0, @@ -1324,10 +1332,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1003, + "commentStart": 1010, "end": 0, "name": { - "commentStart": 1003, + "commentStart": 1010, "end": 0, "name": "segLen", "start": 0, @@ -1337,13 +1345,13 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1003, + "commentStart": 1010, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1002, + "commentStart": 1009, "end": 0, "operator": "-", "start": 0, @@ -1354,10 +1362,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 987, + "commentStart": 994, "end": 0, "name": { - "commentStart": 987, + "commentStart": 994, "end": 0, "name": "xLine", "start": 0, @@ -1367,7 +1375,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 987, + "commentStart": 994, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1379,7 +1387,7 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1029, + "commentStart": 1036, "end": 0, "name": "length", "start": 0, @@ -1389,10 +1397,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 1045, + "commentStart": 1052, "end": 0, "name": { - "commentStart": 1045, + "commentStart": 1052, "end": 0, "name": "seg03", "start": 0, @@ -1406,10 +1414,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1038, + "commentStart": 1045, "end": 0, "name": { - "commentStart": 1038, + "commentStart": 1045, "end": 0, "name": "segLen", "start": 0, @@ -1419,7 +1427,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1038, + "commentStart": 1045, "end": 0, "start": 0, "type": "CallExpression", @@ -1429,10 +1437,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1023, + "commentStart": 1030, "end": 0, "name": { - "commentStart": 1023, + "commentStart": 1030, "end": 0, "name": "yLine", "start": 0, @@ -1442,7 +1450,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1023, + "commentStart": 1030, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1454,7 +1462,7 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1064, + "commentStart": 1071, "end": 0, "name": "length", "start": 0, @@ -1464,10 +1472,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 1080, + "commentStart": 1087, "end": 0, "name": { - "commentStart": 1080, + "commentStart": 1087, "end": 0, "name": "seg04", "start": 0, @@ -1481,10 +1489,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1073, + "commentStart": 1080, "end": 0, "name": { - "commentStart": 1073, + "commentStart": 1080, "end": 0, "name": "segLen", "start": 0, @@ -1494,7 +1502,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1073, + "commentStart": 1080, "end": 0, "start": 0, "type": "CallExpression", @@ -1504,10 +1512,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1058, + "commentStart": 1065, "end": 0, "name": { - "commentStart": 1058, + "commentStart": 1065, "end": 0, "name": "xLine", "start": 0, @@ -1517,7 +1525,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1058, + "commentStart": 1065, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1529,7 +1537,7 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1099, + "commentStart": 1106, "end": 0, "name": "length", "start": 0, @@ -1539,10 +1547,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 1115, + "commentStart": 1122, "end": 0, "name": { - "commentStart": 1115, + "commentStart": 1122, "end": 0, "name": "seg05", "start": 0, @@ -1556,10 +1564,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1108, + "commentStart": 1115, "end": 0, "name": { - "commentStart": 1108, + "commentStart": 1115, "end": 0, "name": "segLen", "start": 0, @@ -1569,7 +1577,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1108, + "commentStart": 1115, "end": 0, "start": 0, "type": "CallExpression", @@ -1579,10 +1587,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1093, + "commentStart": 1100, "end": 0, "name": { - "commentStart": 1093, + "commentStart": 1100, "end": 0, "name": "yLine", "start": 0, @@ -1592,7 +1600,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1093, + "commentStart": 1100, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1602,14 +1610,14 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 1132, + "commentStart": 1139, "end": 0, "properties": [ { - "commentStart": 1141, + "commentStart": 1148, "end": 0, "key": { - "commentStart": 1141, + "commentStart": 1148, "end": 0, "name": "angleEnd", "start": 0, @@ -1618,7 +1626,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 1152, + "commentStart": 1159, "end": 0, "raw": "90", "start": 0, @@ -1631,10 +1639,10 @@ description: Result of parsing router-template-slate.kcl } }, { - "commentStart": 1163, + "commentStart": 1170, "end": 0, "key": { - "commentStart": 1163, + "commentStart": 1170, "end": 0, "name": "angleStart", "start": 0, @@ -1643,7 +1651,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 1176, + "commentStart": 1183, "end": 0, "raw": "180", "start": 0, @@ -1656,10 +1664,10 @@ description: Result of parsing router-template-slate.kcl } }, { - "commentStart": 1188, + "commentStart": 1195, "end": 0, "key": { - "commentStart": 1188, + "commentStart": 1195, "end": 0, "name": "radius", "start": 0, @@ -1668,14 +1676,14 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "ObjectProperty", "value": { - "commentStart": 1197, + "commentStart": 1204, "end": 0, "left": { "abs_path": false, - "commentStart": 1197, + "commentStart": 1204, "end": 0, "name": { - "commentStart": 1197, + "commentStart": 1204, "end": 0, "name": "radius", "start": 0, @@ -1689,10 +1697,10 @@ description: Result of parsing router-template-slate.kcl "operator": "-", "right": { "abs_path": false, - "commentStart": 1206, + "commentStart": 1213, "end": 0, "name": { - "commentStart": 1206, + "commentStart": 1213, "end": 0, "name": "templateGap", "start": 0, @@ -1714,7 +1722,7 @@ description: Result of parsing router-template-slate.kcl "type": "ObjectExpression" }, { - "commentStart": 1226, + "commentStart": 1233, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -1723,10 +1731,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1128, + "commentStart": 1135, "end": 0, "name": { - "commentStart": 1128, + "commentStart": 1135, "end": 0, "name": "arc", "start": 0, @@ -1736,7 +1744,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1128, + "commentStart": 1135, "end": 0, "start": 0, "type": "CallExpression", @@ -1747,19 +1755,19 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1239, + "commentStart": 1246, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1253, + "commentStart": 1260, "elements": [ { "arguments": [ { - "commentStart": 1268, + "commentStart": 1275, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -1768,10 +1776,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1254, + "commentStart": 1261, "end": 0, "name": { - "commentStart": 1254, + "commentStart": 1261, "end": 0, "name": "profileStartX", "start": 0, @@ -1781,7 +1789,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1254, + "commentStart": 1261, "end": 0, "start": 0, "type": "CallExpression", @@ -1790,7 +1798,7 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 1286, + "commentStart": 1293, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -1799,10 +1807,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1272, + "commentStart": 1279, "end": 0, "name": { - "commentStart": 1272, + "commentStart": 1279, "end": 0, "name": "profileStartY", "start": 0, @@ -1812,7 +1820,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1272, + "commentStart": 1279, "end": 0, "start": 0, "type": "CallExpression", @@ -1828,10 +1836,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1234, + "commentStart": 1241, "end": 0, "name": { - "commentStart": 1234, + "commentStart": 1241, "end": 0, "name": "line", "start": 0, @@ -1841,7 +1849,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1234, + "commentStart": 1241, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -1852,10 +1860,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 1296, + "commentStart": 1303, "end": 0, "name": { - "commentStart": 1296, + "commentStart": 1303, "end": 0, "name": "close", "start": 0, @@ -1865,7 +1873,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1296, + "commentStart": 1303, "end": 0, "start": 0, "type": "CallExpression", @@ -1878,7 +1886,7 @@ description: Result of parsing router-template-slate.kcl "nonCodeNodes": { "7": [ { - "commentStart": 949, + "commentStart": 956, "end": 0, "start": 0, "type": "NonCodeNode", @@ -1891,7 +1899,7 @@ description: Result of parsing router-template-slate.kcl ], "14": [ { - "commentStart": 1303, + "commentStart": 1310, "end": 0, "start": 0, "type": "NonCodeNode", @@ -1924,12 +1932,12 @@ description: Result of parsing router-template-slate.kcl "type": "VariableDeclaration" }, { - "commentStart": 1333, + "commentStart": 1340, "declaration": { - "commentStart": 1333, + "commentStart": 1340, "end": 0, "id": { - "commentStart": 1333, + "commentStart": 1340, "end": 0, "name": "extrude001", "start": 0, @@ -1940,14 +1948,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1365, + "commentStart": 1372, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1374, + "commentStart": 1381, "end": 0, "raw": "5", "start": 0, @@ -1962,10 +1970,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1346, + "commentStart": 1353, "end": 0, "name": { - "commentStart": 1346, + "commentStart": 1353, "end": 0, "name": "extrude", "start": 0, @@ -1975,17 +1983,17 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1346, + "commentStart": 1353, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 1354, + "commentStart": 1361, "end": 0, "name": { - "commentStart": 1354, + "commentStart": 1361, "end": 0, "name": "sketch001", "start": 0, @@ -2007,12 +2015,12 @@ description: Result of parsing router-template-slate.kcl "type": "VariableDeclaration" }, { - "commentStart": 1376, + "commentStart": 1383, "declaration": { - "commentStart": 1406, + "commentStart": 1413, "end": 0, "id": { - "commentStart": 1406, + "commentStart": 1413, "end": 0, "name": "sketch002", "start": 0, @@ -2024,10 +2032,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 1432, + "commentStart": 1439, "end": 0, "name": { - "commentStart": 1432, + "commentStart": 1439, "end": 0, "name": "extrude001", "start": 0, @@ -2039,7 +2047,7 @@ description: Result of parsing router-template-slate.kcl "type": "Name" }, { - "commentStart": 1444, + "commentStart": 1451, "end": 0, "raw": "'START'", "start": 0, @@ -2050,10 +2058,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1418, + "commentStart": 1425, "end": 0, "name": { - "commentStart": 1418, + "commentStart": 1425, "end": 0, "name": "startSketchOn", "start": 0, @@ -2063,7 +2071,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1418, + "commentStart": 1425, "end": 0, "start": 0, "type": "CallExpression", @@ -2072,15 +2080,15 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 1473, + "commentStart": 1480, "elements": [ { "argument": { "abs_path": false, - "commentStart": 1483, + "commentStart": 1490, "end": 0, "name": { - "commentStart": 1483, + "commentStart": 1490, "end": 0, "name": "slateWidthHalf", "start": 0, @@ -2091,7 +2099,7 @@ description: Result of parsing router-template-slate.kcl "type": "Name", "type": "Name" }, - "commentStart": 1482, + "commentStart": 1489, "end": 0, "operator": "-", "start": 0, @@ -2099,18 +2107,18 @@ description: Result of parsing router-template-slate.kcl "type": "UnaryExpression" }, { - "commentStart": 1506, + "commentStart": 1513, "end": 0, "left": { - "commentStart": 1506, + "commentStart": 1513, "end": 0, "left": { "argument": { "abs_path": false, - "commentStart": 1507, + "commentStart": 1514, "end": 0, "name": { - "commentStart": 1507, + "commentStart": 1514, "end": 0, "name": "templateGap", "start": 0, @@ -2121,7 +2129,7 @@ description: Result of parsing router-template-slate.kcl "type": "Name", "type": "Name" }, - "commentStart": 1506, + "commentStart": 1513, "end": 0, "operator": "-", "start": 0, @@ -2130,7 +2138,7 @@ description: Result of parsing router-template-slate.kcl }, "operator": "*", "right": { - "commentStart": 1521, + "commentStart": 1528, "end": 0, "raw": "2", "start": 0, @@ -2147,14 +2155,14 @@ description: Result of parsing router-template-slate.kcl }, "operator": "-", "right": { - "commentStart": 1526, + "commentStart": 1533, "end": 0, "left": { "abs_path": false, - "commentStart": 1526, + "commentStart": 1533, "end": 0, "name": { - "commentStart": 1526, + "commentStart": 1533, "end": 0, "name": "templateDiameter", "start": 0, @@ -2167,7 +2175,7 @@ description: Result of parsing router-template-slate.kcl }, "operator": "/", "right": { - "commentStart": 1545, + "commentStart": 1552, "end": 0, "raw": "2", "start": 0, @@ -2193,7 +2201,7 @@ description: Result of parsing router-template-slate.kcl "type": "ArrayExpression" }, { - "commentStart": 1556, + "commentStart": 1563, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2202,10 +2210,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1458, + "commentStart": 1465, "end": 0, "name": { - "commentStart": 1458, + "commentStart": 1465, "end": 0, "name": "startProfileAt", "start": 0, @@ -2215,7 +2223,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1458, + "commentStart": 1465, "end": 0, "start": 0, "type": "CallExpression", @@ -2226,7 +2234,7 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1570, + "commentStart": 1577, "end": 0, "name": "length", "start": 0, @@ -2234,7 +2242,7 @@ description: Result of parsing router-template-slate.kcl }, "arg": { "argument": { - "commentStart": 1580, + "commentStart": 1587, "end": 0, "raw": "7", "start": 0, @@ -2245,7 +2253,7 @@ description: Result of parsing router-template-slate.kcl "suffix": "None" } }, - "commentStart": 1579, + "commentStart": 1586, "end": 0, "operator": "-", "start": 0, @@ -2256,14 +2264,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1583, + "commentStart": 1590, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1589, + "commentStart": 1596, "end": 0, "start": 0, "type": "TagDeclarator", @@ -2274,10 +2282,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1564, + "commentStart": 1571, "end": 0, "name": { - "commentStart": 1564, + "commentStart": 1571, "end": 0, "name": "xLine", "start": 0, @@ -2287,7 +2295,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1564, + "commentStart": 1571, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2297,19 +2305,19 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 1628, + "commentStart": 1635, "elements": [ { - "commentStart": 1637, + "commentStart": 1644, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 1644, + "commentStart": 1651, "end": 0, "name": { - "commentStart": 1644, + "commentStart": 1651, "end": 0, "name": "rectangleSegmentA001", "start": 0, @@ -2323,10 +2331,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1637, + "commentStart": 1644, "end": 0, "name": { - "commentStart": 1637, + "commentStart": 1644, "end": 0, "name": "segAng", "start": 0, @@ -2336,7 +2344,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1637, + "commentStart": 1644, "end": 0, "start": 0, "type": "CallExpression", @@ -2344,7 +2352,7 @@ description: Result of parsing router-template-slate.kcl }, "operator": "+", "right": { - "commentStart": 1668, + "commentStart": 1675, "end": 0, "raw": "90", "start": 0, @@ -2361,10 +2369,10 @@ description: Result of parsing router-template-slate.kcl }, { "abs_path": false, - "commentStart": 1679, + "commentStart": 1686, "end": 0, "name": { - "commentStart": 1679, + "commentStart": 1686, "end": 0, "name": "minClampingDistance", "start": 0, @@ -2382,14 +2390,14 @@ description: Result of parsing router-template-slate.kcl "type": "ArrayExpression" }, { - "commentStart": 1707, + "commentStart": 1714, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 1710, + "commentStart": 1717, "end": 0, "start": 0, "type": "TagDeclarator", @@ -2399,10 +2407,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1617, + "commentStart": 1624, "end": 0, "name": { - "commentStart": 1617, + "commentStart": 1624, "end": 0, "name": "angledLine", "start": 0, @@ -2412,7 +2420,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1617, + "commentStart": 1624, "end": 0, "start": 0, "type": "CallExpression", @@ -2421,16 +2429,16 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 1749, + "commentStart": 1756, "elements": [ { "arguments": [ { "abs_path": false, - "commentStart": 1765, + "commentStart": 1772, "end": 0, "name": { - "commentStart": 1765, + "commentStart": 1772, "end": 0, "name": "rectangleSegmentA001", "start": 0, @@ -2444,10 +2452,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1758, + "commentStart": 1765, "end": 0, "name": { - "commentStart": 1758, + "commentStart": 1765, "end": 0, "name": "segAng", "start": 0, @@ -2457,7 +2465,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1758, + "commentStart": 1765, "end": 0, "start": 0, "type": "CallExpression", @@ -2468,10 +2476,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 1803, + "commentStart": 1810, "end": 0, "name": { - "commentStart": 1803, + "commentStart": 1810, "end": 0, "name": "rectangleSegmentA001", "start": 0, @@ -2485,10 +2493,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1796, + "commentStart": 1803, "end": 0, "name": { - "commentStart": 1796, + "commentStart": 1803, "end": 0, "name": "segLen", "start": 0, @@ -2498,13 +2506,13 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1796, + "commentStart": 1803, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 1795, + "commentStart": 1802, "end": 0, "operator": "-", "start": 0, @@ -2518,14 +2526,14 @@ description: Result of parsing router-template-slate.kcl "type": "ArrayExpression" }, { - "commentStart": 1833, + "commentStart": 1840, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { - "commentStart": 1836, + "commentStart": 1843, "end": 0, "start": 0, "type": "TagDeclarator", @@ -2535,10 +2543,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1738, + "commentStart": 1745, "end": 0, "name": { - "commentStart": 1738, + "commentStart": 1745, "end": 0, "name": "angledLine", "start": 0, @@ -2548,7 +2556,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1738, + "commentStart": 1745, "end": 0, "start": 0, "type": "CallExpression", @@ -2559,19 +2567,19 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1869, + "commentStart": 1876, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 1883, + "commentStart": 1890, "elements": [ { "arguments": [ { - "commentStart": 1898, + "commentStart": 1905, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2580,10 +2588,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1884, + "commentStart": 1891, "end": 0, "name": { - "commentStart": 1884, + "commentStart": 1891, "end": 0, "name": "profileStartX", "start": 0, @@ -2593,7 +2601,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1884, + "commentStart": 1891, "end": 0, "start": 0, "type": "CallExpression", @@ -2602,7 +2610,7 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 1916, + "commentStart": 1923, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2611,10 +2619,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1902, + "commentStart": 1909, "end": 0, "name": { - "commentStart": 1902, + "commentStart": 1909, "end": 0, "name": "profileStartY", "start": 0, @@ -2624,7 +2632,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1902, + "commentStart": 1909, "end": 0, "start": 0, "type": "CallExpression", @@ -2640,10 +2648,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1864, + "commentStart": 1871, "end": 0, "name": { - "commentStart": 1864, + "commentStart": 1871, "end": 0, "name": "line", "start": 0, @@ -2653,7 +2661,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1864, + "commentStart": 1871, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -2664,10 +2672,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 1926, + "commentStart": 1933, "end": 0, "name": { - "commentStart": 1926, + "commentStart": 1933, "end": 0, "name": "close", "start": 0, @@ -2677,20 +2685,20 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1926, + "commentStart": 1933, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], - "commentStart": 1418, + "commentStart": 1425, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "6": [ { - "commentStart": 1933, + "commentStart": 1940, "end": 0, "start": 0, "type": "NonCodeNode", @@ -2723,12 +2731,12 @@ description: Result of parsing router-template-slate.kcl "type": "VariableDeclaration" }, { - "commentStart": 1964, + "commentStart": 1971, "declaration": { - "commentStart": 1964, + "commentStart": 1971, "end": 0, "id": { - "commentStart": 1964, + "commentStart": 1971, "end": 0, "name": "extrude002", "start": 0, @@ -2739,14 +2747,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 1996, + "commentStart": 2003, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2005, + "commentStart": 2012, "end": 0, "raw": "7.5", "start": 0, @@ -2761,10 +2769,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 1977, + "commentStart": 1984, "end": 0, "name": { - "commentStart": 1977, + "commentStart": 1984, "end": 0, "name": "extrude", "start": 0, @@ -2774,17 +2782,17 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 1977, + "commentStart": 1984, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 1985, + "commentStart": 1992, "end": 0, "name": { - "commentStart": 1985, + "commentStart": 1992, "end": 0, "name": "sketch002", "start": 0, @@ -2806,12 +2814,12 @@ description: Result of parsing router-template-slate.kcl "type": "VariableDeclaration" }, { - "commentStart": 2009, + "commentStart": 2016, "declaration": { - "commentStart": 2038, + "commentStart": 2045, "end": 0, "id": { - "commentStart": 2038, + "commentStart": 2045, "end": 0, "name": "sketch003", "start": 0, @@ -2823,10 +2831,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 2064, + "commentStart": 2071, "end": 0, "name": { - "commentStart": 2064, + "commentStart": 2071, "end": 0, "name": "extrude001", "start": 0, @@ -2838,7 +2846,7 @@ description: Result of parsing router-template-slate.kcl "type": "Name" }, { - "commentStart": 2076, + "commentStart": 2083, "end": 0, "raw": "'START'", "start": 0, @@ -2849,10 +2857,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2050, + "commentStart": 2057, "end": 0, "name": { - "commentStart": 2050, + "commentStart": 2057, "end": 0, "name": "startSketchOn", "start": 0, @@ -2862,7 +2870,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2050, + "commentStart": 2057, "end": 0, "start": 0, "type": "CallExpression", @@ -2871,14 +2879,14 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 2105, + "commentStart": 2112, "elements": [ { "abs_path": false, - "commentStart": 2114, + "commentStart": 2121, "end": 0, "name": { - "commentStart": 2114, + "commentStart": 2121, "end": 0, "name": "slateWidthHalf", "start": 0, @@ -2890,18 +2898,18 @@ description: Result of parsing router-template-slate.kcl "type": "Name" }, { - "commentStart": 2137, + "commentStart": 2144, "end": 0, "left": { - "commentStart": 2137, + "commentStart": 2144, "end": 0, "left": { "argument": { "abs_path": false, - "commentStart": 2138, + "commentStart": 2145, "end": 0, "name": { - "commentStart": 2138, + "commentStart": 2145, "end": 0, "name": "templateGap", "start": 0, @@ -2912,7 +2920,7 @@ description: Result of parsing router-template-slate.kcl "type": "Name", "type": "Name" }, - "commentStart": 2137, + "commentStart": 2144, "end": 0, "operator": "-", "start": 0, @@ -2921,7 +2929,7 @@ description: Result of parsing router-template-slate.kcl }, "operator": "*", "right": { - "commentStart": 2152, + "commentStart": 2159, "end": 0, "raw": "2", "start": 0, @@ -2938,14 +2946,14 @@ description: Result of parsing router-template-slate.kcl }, "operator": "-", "right": { - "commentStart": 2157, + "commentStart": 2164, "end": 0, "left": { "abs_path": false, - "commentStart": 2157, + "commentStart": 2164, "end": 0, "name": { - "commentStart": 2157, + "commentStart": 2164, "end": 0, "name": "templateDiameter", "start": 0, @@ -2958,7 +2966,7 @@ description: Result of parsing router-template-slate.kcl }, "operator": "/", "right": { - "commentStart": 2176, + "commentStart": 2183, "end": 0, "raw": "2", "start": 0, @@ -2984,7 +2992,7 @@ description: Result of parsing router-template-slate.kcl "type": "ArrayExpression" }, { - "commentStart": 2187, + "commentStart": 2194, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -2993,10 +3001,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2090, + "commentStart": 2097, "end": 0, "name": { - "commentStart": 2090, + "commentStart": 2097, "end": 0, "name": "startProfileAt", "start": 0, @@ -3006,7 +3014,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2090, + "commentStart": 2097, "end": 0, "start": 0, "type": "CallExpression", @@ -3017,14 +3025,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 2201, + "commentStart": 2208, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2210, + "commentStart": 2217, "end": 0, "raw": "7", "start": 0, @@ -3039,14 +3047,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 2213, + "commentStart": 2220, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2219, + "commentStart": 2226, "end": 0, "start": 0, "type": "TagDeclarator", @@ -3057,10 +3065,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2195, + "commentStart": 2202, "end": 0, "name": { - "commentStart": 2195, + "commentStart": 2202, "end": 0, "name": "xLine", "start": 0, @@ -3070,7 +3078,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2195, + "commentStart": 2202, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -3080,19 +3088,19 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 2258, + "commentStart": 2265, "elements": [ { - "commentStart": 2267, + "commentStart": 2274, "end": 0, "left": { "arguments": [ { "abs_path": false, - "commentStart": 2274, + "commentStart": 2281, "end": 0, "name": { - "commentStart": 2274, + "commentStart": 2281, "end": 0, "name": "rectangleSegmentA002", "start": 0, @@ -3106,10 +3114,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2267, + "commentStart": 2274, "end": 0, "name": { - "commentStart": 2267, + "commentStart": 2274, "end": 0, "name": "segAng", "start": 0, @@ -3119,7 +3127,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2267, + "commentStart": 2274, "end": 0, "start": 0, "type": "CallExpression", @@ -3127,7 +3135,7 @@ description: Result of parsing router-template-slate.kcl }, "operator": "-", "right": { - "commentStart": 2298, + "commentStart": 2305, "end": 0, "raw": "90", "start": 0, @@ -3144,10 +3152,10 @@ description: Result of parsing router-template-slate.kcl }, { "abs_path": false, - "commentStart": 2309, + "commentStart": 2316, "end": 0, "name": { - "commentStart": 2309, + "commentStart": 2316, "end": 0, "name": "minClampingDistance", "start": 0, @@ -3165,7 +3173,7 @@ description: Result of parsing router-template-slate.kcl "type": "ArrayExpression" }, { - "commentStart": 2337, + "commentStart": 2344, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3174,10 +3182,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2247, + "commentStart": 2254, "end": 0, "name": { - "commentStart": 2247, + "commentStart": 2254, "end": 0, "name": "angledLine", "start": 0, @@ -3187,7 +3195,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2247, + "commentStart": 2254, "end": 0, "start": 0, "type": "CallExpression", @@ -3196,16 +3204,16 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 2356, + "commentStart": 2363, "elements": [ { "arguments": [ { "abs_path": false, - "commentStart": 2372, + "commentStart": 2379, "end": 0, "name": { - "commentStart": 2372, + "commentStart": 2379, "end": 0, "name": "rectangleSegmentA002", "start": 0, @@ -3219,10 +3227,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2365, + "commentStart": 2372, "end": 0, "name": { - "commentStart": 2365, + "commentStart": 2372, "end": 0, "name": "segAng", "start": 0, @@ -3232,7 +3240,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2365, + "commentStart": 2372, "end": 0, "start": 0, "type": "CallExpression", @@ -3243,10 +3251,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [ { "abs_path": false, - "commentStart": 2410, + "commentStart": 2417, "end": 0, "name": { - "commentStart": 2410, + "commentStart": 2417, "end": 0, "name": "rectangleSegmentA002", "start": 0, @@ -3260,10 +3268,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2403, + "commentStart": 2410, "end": 0, "name": { - "commentStart": 2403, + "commentStart": 2410, "end": 0, "name": "segLen", "start": 0, @@ -3273,13 +3281,13 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2403, + "commentStart": 2410, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, - "commentStart": 2402, + "commentStart": 2409, "end": 0, "operator": "-", "start": 0, @@ -3293,7 +3301,7 @@ description: Result of parsing router-template-slate.kcl "type": "ArrayExpression" }, { - "commentStart": 2440, + "commentStart": 2447, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3302,10 +3310,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2345, + "commentStart": 2352, "end": 0, "name": { - "commentStart": 2345, + "commentStart": 2352, "end": 0, "name": "angledLine", "start": 0, @@ -3315,7 +3323,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2345, + "commentStart": 2352, "end": 0, "start": 0, "type": "CallExpression", @@ -3326,19 +3334,19 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 2453, + "commentStart": 2460, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2467, + "commentStart": 2474, "elements": [ { "arguments": [ { - "commentStart": 2482, + "commentStart": 2489, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3347,10 +3355,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2468, + "commentStart": 2475, "end": 0, "name": { - "commentStart": 2468, + "commentStart": 2475, "end": 0, "name": "profileStartX", "start": 0, @@ -3360,7 +3368,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2468, + "commentStart": 2475, "end": 0, "start": 0, "type": "CallExpression", @@ -3369,7 +3377,7 @@ description: Result of parsing router-template-slate.kcl { "arguments": [ { - "commentStart": 2500, + "commentStart": 2507, "end": 0, "start": 0, "type": "PipeSubstitution", @@ -3378,10 +3386,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2486, + "commentStart": 2493, "end": 0, "name": { - "commentStart": 2486, + "commentStart": 2493, "end": 0, "name": "profileStartY", "start": 0, @@ -3391,7 +3399,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2486, + "commentStart": 2493, "end": 0, "start": 0, "type": "CallExpression", @@ -3407,10 +3415,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2448, + "commentStart": 2455, "end": 0, "name": { - "commentStart": 2448, + "commentStart": 2455, "end": 0, "name": "line", "start": 0, @@ -3420,7 +3428,7 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2448, + "commentStart": 2455, "end": 0, "start": 0, "type": "CallExpressionKw", @@ -3431,10 +3439,10 @@ description: Result of parsing router-template-slate.kcl "arguments": [], "callee": { "abs_path": false, - "commentStart": 2510, + "commentStart": 2517, "end": 0, "name": { - "commentStart": 2510, + "commentStart": 2517, "end": 0, "name": "close", "start": 0, @@ -3444,20 +3452,20 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2510, + "commentStart": 2517, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], - "commentStart": 2050, + "commentStart": 2057, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "6": [ { - "commentStart": 2517, + "commentStart": 2524, "end": 0, "start": 0, "type": "NonCodeNode", @@ -3490,12 +3498,12 @@ description: Result of parsing router-template-slate.kcl "type": "VariableDeclaration" }, { - "commentStart": 2547, + "commentStart": 2554, "declaration": { - "commentStart": 2547, + "commentStart": 2554, "end": 0, "id": { - "commentStart": 2547, + "commentStart": 2554, "end": 0, "name": "extrude003", "start": 0, @@ -3506,14 +3514,14 @@ description: Result of parsing router-template-slate.kcl { "type": "LabeledArg", "label": { - "commentStart": 2579, + "commentStart": 2586, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { - "commentStart": 2588, + "commentStart": 2595, "end": 0, "raw": "7.5", "start": 0, @@ -3528,10 +3536,10 @@ description: Result of parsing router-template-slate.kcl ], "callee": { "abs_path": false, - "commentStart": 2560, + "commentStart": 2567, "end": 0, "name": { - "commentStart": 2560, + "commentStart": 2567, "end": 0, "name": "extrude", "start": 0, @@ -3541,17 +3549,17 @@ description: Result of parsing router-template-slate.kcl "start": 0, "type": "Name" }, - "commentStart": 2560, + "commentStart": 2567, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, - "commentStart": 2568, + "commentStart": 2575, "end": 0, "name": { - "commentStart": 2568, + "commentStart": 2575, "end": 0, "name": "sketch003", "start": 0, diff --git a/rust/kcl-lib/tests/kcl_samples/router-template-slate/program_memory.snap b/rust/kcl-lib/tests/kcl_samples/router-template-slate/program_memory.snap index 11024462b..983a21638 100644 --- a/rust/kcl-lib/tests/kcl_samples/router-template-slate/program_memory.snap +++ b/rust/kcl-lib/tests/kcl_samples/router-template-slate/program_memory.snap @@ -264,9 +264,9 @@ description: Variables in memory after executing router-template-slate.kcl -122.4938 ], "tag": { - "commentStart": 940, - "end": 946, - "start": 940, + "commentStart": 947, + "end": 953, + "start": 947, "type": "TagDeclarator", "value": "seg02" }, @@ -514,9 +514,9 @@ description: Variables in memory after executing router-template-slate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1589, - "end": 1610, - "start": 1589, + "commentStart": 1596, + "end": 1617, + "start": 1596, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -527,9 +527,9 @@ description: Variables in memory after executing router-template-slate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1710, - "end": 1731, - "start": 1710, + "commentStart": 1717, + "end": 1738, + "start": 1717, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -540,9 +540,9 @@ description: Variables in memory after executing router-template-slate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1836, - "end": 1857, - "start": 1836, + "commentStart": 1843, + "end": 1864, + "start": 1843, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -570,9 +570,9 @@ description: Variables in memory after executing router-template-slate.kcl -12.4937 ], "tag": { - "commentStart": 1589, - "end": 1610, - "start": 1589, + "commentStart": 1596, + "end": 1617, + "start": 1596, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -595,9 +595,9 @@ description: Variables in memory after executing router-template-slate.kcl -12.4937 ], "tag": { - "commentStart": 1710, - "end": 1731, - "start": 1710, + "commentStart": 1717, + "end": 1738, + "start": 1717, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -620,9 +620,9 @@ description: Variables in memory after executing router-template-slate.kcl -92.4938 ], "tag": { - "commentStart": 1836, - "end": 1857, - "start": 1836, + "commentStart": 1843, + "end": 1864, + "start": 1843, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -940,9 +940,9 @@ description: Variables in memory after executing router-template-slate.kcl -122.4938 ], "tag": { - "commentStart": 940, - "end": 946, - "start": 940, + "commentStart": 947, + "end": 953, + "start": 947, "type": "TagDeclarator", "value": "seg02" }, @@ -1239,9 +1239,9 @@ description: Variables in memory after executing router-template-slate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 2219, - "end": 2240, - "start": 2219, + "commentStart": 2226, + "end": 2247, + "start": 2226, "type": "TagDeclarator", "value": "rectangleSegmentA002" }, @@ -1283,9 +1283,9 @@ description: Variables in memory after executing router-template-slate.kcl -12.4937 ], "tag": { - "commentStart": 2219, - "end": 2240, - "start": 2219, + "commentStart": 2226, + "end": 2247, + "start": 2226, "type": "TagDeclarator", "value": "rectangleSegmentA002" }, @@ -1641,9 +1641,9 @@ description: Variables in memory after executing router-template-slate.kcl -122.4938 ], "tag": { - "commentStart": 940, - "end": 946, - "start": 940, + "commentStart": 947, + "end": 953, + "start": 947, "type": "TagDeclarator", "value": "seg02" }, @@ -2165,9 +2165,9 @@ description: Variables in memory after executing router-template-slate.kcl -122.4938 ], "tag": { - "commentStart": 940, - "end": 946, - "start": 940, + "commentStart": 947, + "end": 953, + "start": 947, "type": "TagDeclarator", "value": "seg02" }, @@ -2412,9 +2412,9 @@ description: Variables in memory after executing router-template-slate.kcl -12.4937 ], "tag": { - "commentStart": 1589, - "end": 1610, - "start": 1589, + "commentStart": 1596, + "end": 1617, + "start": 1596, "type": "TagDeclarator", "value": "rectangleSegmentA001" }, @@ -2437,9 +2437,9 @@ description: Variables in memory after executing router-template-slate.kcl -12.4937 ], "tag": { - "commentStart": 1710, - "end": 1731, - "start": 1710, + "commentStart": 1717, + "end": 1738, + "start": 1717, "type": "TagDeclarator", "value": "rectangleSegmentB001" }, @@ -2462,9 +2462,9 @@ description: Variables in memory after executing router-template-slate.kcl -92.4938 ], "tag": { - "commentStart": 1836, - "end": 1857, - "start": 1836, + "commentStart": 1843, + "end": 1864, + "start": 1843, "type": "TagDeclarator", "value": "rectangleSegmentC001" }, @@ -2782,9 +2782,9 @@ description: Variables in memory after executing router-template-slate.kcl -122.4938 ], "tag": { - "commentStart": 940, - "end": 946, - "start": 940, + "commentStart": 947, + "end": 953, + "start": 947, "type": "TagDeclarator", "value": "seg02" }, @@ -3078,9 +3078,9 @@ description: Variables in memory after executing router-template-slate.kcl -12.4937 ], "tag": { - "commentStart": 2219, - "end": 2240, - "start": 2219, + "commentStart": 2226, + "end": 2247, + "start": 2226, "type": "TagDeclarator", "value": "rectangleSegmentA002" }, @@ -3436,9 +3436,9 @@ description: Variables in memory after executing router-template-slate.kcl -122.4938 ], "tag": { - "commentStart": 940, - "end": 946, - "start": 940, + "commentStart": 947, + "end": 953, + "start": 947, "type": "TagDeclarator", "value": "seg02" }, diff --git a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_graph_flowchart.snap.md index 5460744d6..5705ab3a9 100644 --- a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/artifact_graph_flowchart.snap.md @@ -1,186 +1,186 @@ ```mermaid flowchart LR subgraph path2 [Path] - 2["Path
[458, 501, 5]"] - 3["Segment
[509, 547, 5]"] - 4["Segment
[555, 595, 5]"] - 5["Segment
[603, 642, 5]"] - 6["Segment
[650, 672, 5]"] + 2["Path
[458, 501, 6]"] + 3["Segment
[509, 547, 6]"] + 4["Segment
[555, 595, 6]"] + 5["Segment
[603, 642, 6]"] + 6["Segment
[650, 672, 6]"] 7[Solid2d] end subgraph path27 [Path] - 27["Path
[1082, 1213, 5]"] - 28["Segment
[1221, 1279, 5]"] - 29["Segment
[1287, 1418, 5]"] - 30["Segment
[1426, 1484, 5]"] - 31["Segment
[1492, 1626, 5]"] - 32["Segment
[1634, 1720, 5]"] - 33["Segment
[1728, 1863, 5]"] - 34["Segment
[1871, 1956, 5]"] - 35["Segment
[1964, 1971, 5]"] + 27["Path
[1082, 1213, 6]"] + 28["Segment
[1221, 1279, 6]"] + 29["Segment
[1287, 1418, 6]"] + 30["Segment
[1426, 1484, 6]"] + 31["Segment
[1492, 1626, 6]"] + 32["Segment
[1634, 1720, 6]"] + 33["Segment
[1728, 1863, 6]"] + 34["Segment
[1871, 1956, 6]"] + 35["Segment
[1964, 1971, 6]"] 36[Solid2d] end subgraph path63 [Path] - 63["Path
[2119, 2173, 5]"] - 64["Segment
[2181, 2222, 5]"] - 65["Segment
[2230, 2259, 5]"] - 66["Segment
[2267, 2297, 5]"] - 67["Segment
[2305, 2361, 5]"] - 68["Segment
[2369, 2376, 5]"] + 63["Path
[2119, 2173, 6]"] + 64["Segment
[2181, 2222, 6]"] + 65["Segment
[2230, 2259, 6]"] + 66["Segment
[2267, 2297, 6]"] + 67["Segment
[2305, 2361, 6]"] + 68["Segment
[2369, 2376, 6]"] 69[Solid2d] end subgraph path84 [Path] - 84["Path
[2518, 2555, 5]"] - 85["Segment
[2563, 2594, 5]"] - 86["Segment
[2602, 2635, 5]"] - 87["Segment
[2643, 2675, 5]"] - 88["Segment
[2683, 2690, 5]"] + 84["Path
[2518, 2555, 6]"] + 85["Segment
[2563, 2594, 6]"] + 86["Segment
[2602, 2635, 6]"] + 87["Segment
[2643, 2675, 6]"] + 88["Segment
[2683, 2690, 6]"] 89[Solid2d] end subgraph path105 [Path] - 105["Path
[346, 371, 8]"] - 106["Segment
[379, 412, 8]"] - 107["Segment
[420, 455, 8]"] - 108["Segment
[463, 497, 8]"] - 109["Segment
[505, 512, 8]"] + 105["Path
[346, 371, 9]"] + 106["Segment
[379, 412, 9]"] + 107["Segment
[420, 455, 9]"] + 108["Segment
[463, 497, 9]"] + 109["Segment
[505, 512, 9]"] 110[Solid2d] end subgraph path112 [Path] - 112["Path
[649, 781, 8]"] + 112["Path
[649, 781, 9]"] 117[Solid2d] end subgraph path130 [Path] - 130["Path
[551, 605, 6]"] - 131["Segment
[613, 640, 6]"] - 132["Segment
[648, 677, 6]"] - 133["Segment
[685, 713, 6]"] - 134["Segment
[721, 777, 6]"] - 135["Segment
[785, 792, 6]"] + 130["Path
[551, 605, 7]"] + 131["Segment
[613, 640, 7]"] + 132["Segment
[648, 677, 7]"] + 133["Segment
[685, 713, 7]"] + 134["Segment
[721, 777, 7]"] + 135["Segment
[785, 792, 7]"] 136[Solid2d] end subgraph path138 [Path] - 138["Path
[1098, 1145, 6]"] - 139["Segment
[1153, 1194, 6]"] - 140["Segment
[1202, 1244, 6]"] - 141["Segment
[1252, 1294, 6]"] - 142["Segment
[1302, 1309, 6]"] + 138["Path
[1098, 1145, 7]"] + 139["Segment
[1153, 1194, 7]"] + 140["Segment
[1202, 1244, 7]"] + 141["Segment
[1252, 1294, 7]"] + 142["Segment
[1302, 1309, 7]"] 143[Solid2d] end subgraph path145 [Path] - 145["Path
[1597, 1762, 6]"] - 146["Segment
[1770, 1871, 6]"] - 147["Segment
[1879, 2046, 6]"] - 148["Segment
[2054, 2155, 6]"] - 149["Segment
[2163, 2333, 6]"] - 150["Segment
[2341, 2443, 6]"] - 151["Segment
[2451, 2620, 6]"] - 152["Segment
[2628, 2729, 6]"] - 153["Segment
[2737, 2744, 6]"] + 145["Path
[1597, 1762, 7]"] + 146["Segment
[1770, 1871, 7]"] + 147["Segment
[1879, 2046, 7]"] + 148["Segment
[2054, 2155, 7]"] + 149["Segment
[2163, 2333, 7]"] + 150["Segment
[2341, 2443, 7]"] + 151["Segment
[2451, 2620, 7]"] + 152["Segment
[2628, 2729, 7]"] + 153["Segment
[2737, 2744, 7]"] 154[Solid2d] end subgraph path156 [Path] - 156["Path
[123, 210, 7]"] - 157["Segment
[218, 247, 7]"] - 158["Segment
[255, 283, 7]"] - 159["Segment
[291, 388, 7]"] - 160["Segment
[396, 443, 7]"] - 161["Segment
[451, 479, 7]"] - 162["Segment
[487, 516, 7]"] - 163["Segment
[524, 553, 7]"] - 164["Segment
[561, 652, 7]"] - 165["Segment
[660, 688, 7]"] - 166["Segment
[696, 725, 7]"] - 167["Segment
[733, 821, 7]"] - 168["Segment
[829, 857, 7]"] - 169["Segment
[865, 899, 7]"] - 170["Segment
[907, 937, 7]"] - 171["Segment
[945, 1054, 7]"] - 172["Segment
[1062, 1069, 7]"] + 156["Path
[123, 210, 8]"] + 157["Segment
[218, 247, 8]"] + 158["Segment
[255, 283, 8]"] + 159["Segment
[291, 388, 8]"] + 160["Segment
[396, 443, 8]"] + 161["Segment
[451, 479, 8]"] + 162["Segment
[487, 516, 8]"] + 163["Segment
[524, 553, 8]"] + 164["Segment
[561, 652, 8]"] + 165["Segment
[660, 688, 8]"] + 166["Segment
[696, 725, 8]"] + 167["Segment
[733, 821, 8]"] + 168["Segment
[829, 857, 8]"] + 169["Segment
[865, 899, 8]"] + 170["Segment
[907, 937, 8]"] + 171["Segment
[945, 1054, 8]"] + 172["Segment
[1062, 1069, 8]"] 173[Solid2d] end subgraph path175 [Path] - 175["Path
[1203, 1301, 7]"] - 176["Segment
[1309, 1428, 7]"] - 177["Segment
[1436, 1490, 7]"] - 178["Segment
[1498, 1619, 7]"] - 179["Segment
[1627, 1634, 7]"] + 175["Path
[1203, 1301, 8]"] + 176["Segment
[1309, 1428, 8]"] + 177["Segment
[1436, 1490, 8]"] + 178["Segment
[1498, 1619, 8]"] + 179["Segment
[1627, 1634, 8]"] 180[Solid2d] end subgraph path182 [Path] - 182["Path
[1731, 1828, 7]"] - 183["Segment
[1836, 1955, 7]"] - 184["Segment
[1963, 2018, 7]"] - 185["Segment
[2026, 2147, 7]"] - 186["Segment
[2155, 2162, 7]"] + 182["Path
[1731, 1828, 8]"] + 183["Segment
[1836, 1955, 8]"] + 184["Segment
[1963, 2018, 8]"] + 185["Segment
[2026, 2147, 8]"] + 186["Segment
[2155, 2162, 8]"] 187[Solid2d] end subgraph path189 [Path] - 189["Path
[1203, 1301, 7]"] - 190["Segment
[1309, 1428, 7]"] - 191["Segment
[1436, 1490, 7]"] - 192["Segment
[1498, 1619, 7]"] - 193["Segment
[1627, 1634, 7]"] + 189["Path
[1203, 1301, 8]"] + 190["Segment
[1309, 1428, 8]"] + 191["Segment
[1436, 1490, 8]"] + 192["Segment
[1498, 1619, 8]"] + 193["Segment
[1627, 1634, 8]"] 194[Solid2d] end subgraph path196 [Path] - 196["Path
[1731, 1828, 7]"] - 197["Segment
[1836, 1955, 7]"] - 198["Segment
[1963, 2018, 7]"] - 199["Segment
[2026, 2147, 7]"] - 200["Segment
[2155, 2162, 7]"] + 196["Path
[1731, 1828, 8]"] + 197["Segment
[1836, 1955, 8]"] + 198["Segment
[1963, 2018, 8]"] + 199["Segment
[2026, 2147, 8]"] + 200["Segment
[2155, 2162, 8]"] 201[Solid2d] end subgraph path230 [Path] - 230["Path
[288, 387, 9]"] - 231["Segment
[395, 444, 9]"] - 232["Segment
[452, 502, 9]"] - 233["Segment
[510, 560, 9]"] - 234["Segment
[568, 586, 9]"] + 230["Path
[288, 387, 10]"] + 231["Segment
[395, 444, 10]"] + 232["Segment
[452, 502, 10]"] + 233["Segment
[510, 560, 10]"] + 234["Segment
[568, 586, 10]"] 235[Solid2d] end subgraph path256 [Path] - 256["Path
[377, 407, 10]"] - 257["Segment
[415, 447, 10]"] - 258["Segment
[455, 488, 10]"] - 259["Segment
[496, 585, 10]"] - 260["Segment
[593, 620, 10]"] - 261["Segment
[628, 635, 10]"] + 256["Path
[377, 407, 11]"] + 257["Segment
[415, 447, 11]"] + 258["Segment
[455, 488, 11]"] + 259["Segment
[496, 585, 11]"] + 260["Segment
[593, 620, 11]"] + 261["Segment
[628, 635, 11]"] 262[Solid2d] end subgraph path274 [Path] - 274["Path
[311, 336, 11]"] - 275["Segment
[344, 403, 11]"] - 276["Segment
[411, 471, 11]"] - 277["Segment
[479, 529, 11]"] - 278["Segment
[537, 544, 11]"] + 274["Path
[311, 336, 12]"] + 275["Segment
[344, 403, 12]"] + 276["Segment
[411, 471, 12]"] + 277["Segment
[479, 529, 12]"] + 278["Segment
[537, 544, 12]"] 279[Solid2d] end subgraph path298 [Path] - 298["Path
[311, 336, 11]"] - 299["Segment
[344, 403, 11]"] - 300["Segment
[411, 471, 11]"] - 301["Segment
[479, 529, 11]"] - 302["Segment
[537, 544, 11]"] + 298["Path
[311, 336, 12]"] + 299["Segment
[344, 403, 12]"] + 300["Segment
[411, 471, 12]"] + 301["Segment
[479, 529, 12]"] + 302["Segment
[537, 544, 12]"] 303[Solid2d] end subgraph path322 [Path] - 322["Path
[311, 336, 11]"] - 323["Segment
[344, 403, 11]"] - 324["Segment
[411, 471, 11]"] - 325["Segment
[479, 529, 11]"] - 326["Segment
[537, 544, 11]"] + 322["Path
[311, 336, 12]"] + 323["Segment
[344, 403, 12]"] + 324["Segment
[411, 471, 12]"] + 325["Segment
[479, 529, 12]"] + 326["Segment
[537, 544, 12]"] 327[Solid2d] end subgraph path346 [Path] - 346["Path
[311, 336, 11]"] - 347["Segment
[344, 403, 11]"] - 348["Segment
[411, 471, 11]"] - 349["Segment
[479, 529, 11]"] - 350["Segment
[537, 544, 11]"] + 346["Path
[311, 336, 12]"] + 347["Segment
[344, 403, 12]"] + 348["Segment
[411, 471, 12]"] + 349["Segment
[479, 529, 12]"] + 350["Segment
[537, 544, 12]"] 351[Solid2d] end - 1["Plane
[433, 450, 5]"] - 8["Sweep Extrusion
[689, 728, 5]"] + 1["Plane
[433, 450, 6]"] + 8["Sweep Extrusion
[689, 728, 6]"] 9[Wall] 10[Wall] 11[Wall] @@ -195,11 +195,11 @@ flowchart LR 20["SweepEdge Adjacent"] 21["SweepEdge Opposite"] 22["SweepEdge Adjacent"] - 23["EdgeCut Chamfer
[736, 983, 5]"] - 24["EdgeCut Chamfer
[736, 983, 5]"] - 25["EdgeCut Chamfer
[736, 983, 5]"] - 26["EdgeCut Chamfer
[736, 983, 5]"] - 37["Sweep Extrusion
[1987, 2023, 5]"] + 23["EdgeCut Chamfer
[736, 983, 6]"] + 24["EdgeCut Chamfer
[736, 983, 6]"] + 25["EdgeCut Chamfer
[736, 983, 6]"] + 26["EdgeCut Chamfer
[736, 983, 6]"] + 37["Sweep Extrusion
[1987, 2023, 6]"] 38[Wall] 39[Wall] 40[Wall] @@ -225,7 +225,7 @@ flowchart LR 60["SweepEdge Adjacent"] 61["SweepEdge Opposite"] 62["SweepEdge Adjacent"] - 70["Sweep Extrusion
[2392, 2432, 5]"] + 70["Sweep Extrusion
[2392, 2432, 6]"] 71[Wall] 72[Wall] 73[Wall] @@ -239,7 +239,7 @@ flowchart LR 81["SweepEdge Adjacent"] 82["SweepEdge Opposite"] 83["SweepEdge Adjacent"] - 90["Sweep Extrusion
[2701, 2733, 5]"] + 90["Sweep Extrusion
[2701, 2733, 6]"] 91[Wall] 92[Wall] 93[Wall] @@ -253,13 +253,13 @@ flowchart LR 101["SweepEdge Adjacent"] 102["SweepEdge Opposite"] 103["SweepEdge Adjacent"] - 104["Plane
[321, 338, 8]"] - 111["Plane
[563, 602, 8]"] + 104["Plane
[321, 338, 9]"] + 111["Plane
[563, 602, 9]"] 113["SweepEdge Opposite"] 114["SweepEdge Opposite"] 115["SweepEdge Opposite"] 116["SweepEdge Opposite"] - 118["Sweep Loft
[967, 995, 8]"] + 118["Sweep Loft
[967, 995, 9]"] 119[Wall] 120[Wall] 121[Wall] @@ -270,15 +270,15 @@ flowchart LR 126["SweepEdge Adjacent"] 127["SweepEdge Adjacent"] 128["SweepEdge Adjacent"] - 129["Plane
[525, 542, 6]"] - 137["Plane
[1072, 1089, 6]"] - 144["Plane
[1571, 1588, 6]"] - 155["Plane
[2857, 2874, 6]"] - 174["Plane
[2919, 2936, 6]"] - 181["Plane
[2983, 3000, 6]"] - 188["Plane
[3046, 3063, 6]"] - 195["Plane
[3109, 3126, 6]"] - 202["Sweep Extrusion
[3162, 3198, 6]"] + 129["Plane
[525, 542, 7]"] + 137["Plane
[1072, 1089, 7]"] + 144["Plane
[1571, 1588, 7]"] + 155["Plane
[2857, 2874, 7]"] + 174["Plane
[2919, 2936, 7]"] + 181["Plane
[2983, 3000, 7]"] + 188["Plane
[3046, 3063, 7]"] + 195["Plane
[3109, 3126, 7]"] + 202["Sweep Extrusion
[3162, 3198, 7]"] 203[Wall] 204[Wall] 205[Wall] @@ -305,8 +305,8 @@ flowchart LR 226["SweepEdge Adjacent"] 227["SweepEdge Opposite"] 228["SweepEdge Adjacent"] - 229["Plane
[263, 280, 9]"] - 236["Sweep Extrusion
[649, 701, 9]"] + 229["Plane
[263, 280, 10]"] + 236["Sweep Extrusion
[649, 701, 10]"] 237[Wall] 238[Wall] 239[Wall] @@ -321,12 +321,12 @@ flowchart LR 248["SweepEdge Adjacent"] 249["SweepEdge Opposite"] 250["SweepEdge Adjacent"] - 251["EdgeCut Fillet
[709, 931, 9]"] - 252["EdgeCut Fillet
[709, 931, 9]"] - 253["EdgeCut Fillet
[709, 931, 9]"] - 254["EdgeCut Fillet
[709, 931, 9]"] - 255["Plane
[352, 369, 10]"] - 263["Sweep Revolve
[643, 662, 10]"] + 251["EdgeCut Fillet
[709, 931, 10]"] + 252["EdgeCut Fillet
[709, 931, 10]"] + 253["EdgeCut Fillet
[709, 931, 10]"] + 254["EdgeCut Fillet
[709, 931, 10]"] + 255["Plane
[352, 369, 11]"] + 263["Sweep Revolve
[643, 662, 11]"] 264[Wall] 265[Wall] 266[Wall] @@ -336,8 +336,8 @@ flowchart LR 270["SweepEdge Adjacent"] 271["SweepEdge Adjacent"] 272["SweepEdge Adjacent"] - 273["Plane
[286, 303, 11]"] - 280["Sweep Extrusion
[563, 610, 11]"] + 273["Plane
[286, 303, 12]"] + 280["Sweep Extrusion
[563, 610, 12]"] 281[Wall] 282[Wall] 283[Wall] @@ -352,10 +352,10 @@ flowchart LR 292["SweepEdge Adjacent"] 293["SweepEdge Opposite"] 294["SweepEdge Adjacent"] - 295["EdgeCut Chamfer
[618, 764, 11]"] - 296["EdgeCut Chamfer
[618, 764, 11]"] - 297["Plane
[286, 303, 11]"] - 304["Sweep Extrusion
[563, 610, 11]"] + 295["EdgeCut Chamfer
[618, 764, 12]"] + 296["EdgeCut Chamfer
[618, 764, 12]"] + 297["Plane
[286, 303, 12]"] + 304["Sweep Extrusion
[563, 610, 12]"] 305[Wall] 306[Wall] 307[Wall] @@ -370,10 +370,10 @@ flowchart LR 316["SweepEdge Adjacent"] 317["SweepEdge Opposite"] 318["SweepEdge Adjacent"] - 319["EdgeCut Chamfer
[618, 764, 11]"] - 320["EdgeCut Chamfer
[618, 764, 11]"] - 321["Plane
[286, 303, 11]"] - 328["Sweep Extrusion
[563, 610, 11]"] + 319["EdgeCut Chamfer
[618, 764, 12]"] + 320["EdgeCut Chamfer
[618, 764, 12]"] + 321["Plane
[286, 303, 12]"] + 328["Sweep Extrusion
[563, 610, 12]"] 329[Wall] 330[Wall] 331[Wall] @@ -388,10 +388,10 @@ flowchart LR 340["SweepEdge Adjacent"] 341["SweepEdge Opposite"] 342["SweepEdge Adjacent"] - 343["EdgeCut Chamfer
[618, 764, 11]"] - 344["EdgeCut Chamfer
[618, 764, 11]"] - 345["Plane
[286, 303, 11]"] - 352["Sweep Extrusion
[563, 610, 11]"] + 343["EdgeCut Chamfer
[618, 764, 12]"] + 344["EdgeCut Chamfer
[618, 764, 12]"] + 345["Plane
[286, 303, 12]"] + 352["Sweep Extrusion
[563, 610, 12]"] 353[Wall] 354[Wall] 355[Wall] @@ -406,18 +406,18 @@ flowchart LR 364["SweepEdge Adjacent"] 365["SweepEdge Opposite"] 366["SweepEdge Adjacent"] - 367["EdgeCut Chamfer
[618, 764, 11]"] - 368["EdgeCut Chamfer
[618, 764, 11]"] - 369["StartSketchOnFace
[1041, 1074, 5]"] - 370["StartSketchOnFace
[2077, 2111, 5]"] - 371["StartSketchOnFace
[2476, 2510, 5]"] - 372["StartSketchOnFace
[1041, 1074, 5]"] - 373["StartSketchOnFace
[2077, 2111, 5]"] - 374["StartSketchOnFace
[2476, 2510, 5]"] - 375["StartSketchOnPlane
[617, 641, 8]"] - 376["StartSketchOnPlane
[511, 543, 6]"] - 377["StartSketchOnPlane
[1058, 1090, 6]"] - 378["StartSketchOnPlane
[1557, 1589, 6]"] + 367["EdgeCut Chamfer
[618, 764, 12]"] + 368["EdgeCut Chamfer
[618, 764, 12]"] + 369["StartSketchOnFace
[1041, 1074, 6]"] + 370["StartSketchOnFace
[2077, 2111, 6]"] + 371["StartSketchOnFace
[2476, 2510, 6]"] + 372["StartSketchOnFace
[1041, 1074, 6]"] + 373["StartSketchOnFace
[2077, 2111, 6]"] + 374["StartSketchOnFace
[2476, 2510, 6]"] + 375["StartSketchOnPlane
[617, 641, 9]"] + 376["StartSketchOnPlane
[511, 543, 7]"] + 377["StartSketchOnPlane
[1058, 1090, 7]"] + 378["StartSketchOnPlane
[1557, 1589, 7]"] 1 --- 2 2 --- 3 2 --- 4 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 d420379e4..959b9886b 100644 --- a/rust/kcl-lib/tests/kcl_samples/walkie-talkie/ops.snap +++ b/rust/kcl-lib/tests/kcl_samples/walkie-talkie/ops.snap @@ -9,7 +9,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 359, 2786, - 5 + 6 ], "unlabeledArg": null, "labeledArgs": {}, @@ -355,7 +355,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 359, 2786, - 5 + 6 ], "unlabeledArg": null, "labeledArgs": {}, @@ -701,7 +701,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 266, 1051, - 8 + 9 ], "unlabeledArg": null, "labeledArgs": {}, @@ -804,7 +804,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 454, 3283, - 6 + 7 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1890,7 +1890,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 69, 1088, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, @@ -1946,7 +1946,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 1146, 1656, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2002,7 +2002,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 1674, 2184, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2058,7 +2058,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 1146, 1656, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2114,7 +2114,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 1674, 2184, - 7 + 8 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2190,7 +2190,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 202, 1023, - 9 + 10 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2308,7 +2308,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 298, 748, - 10 + 11 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2361,7 +2361,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 221, 827, - 11 + 12 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2471,7 +2471,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 221, 827, - 11 + 12 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2581,7 +2581,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 221, 827, - 11 + 12 ], "unlabeledArg": null, "labeledArgs": {}, @@ -2691,7 +2691,7 @@ description: Operations executed walkie-talkie.kcl "functionSourceRange": [ 221, 827, - 11 + 12 ], "unlabeledArg": null, "labeledArgs": {}, diff --git a/src/components/Toolbar/SetAbsDistance.tsx b/src/components/Toolbar/SetAbsDistance.tsx index 57ed0609a..441a45775 100644 --- a/src/components/Toolbar/SetAbsDistance.tsx +++ b/src/components/Toolbar/SetAbsDistance.tsx @@ -14,7 +14,7 @@ import { createSetAngleLengthModal, } from '../SetAngleLengthModal' import { - createLocalName, + createName, createVariableDeclaration, } from '../../lang/modifyAst' import { removeDoubleNegatives } from '../AvailableVarsHelpers' @@ -169,7 +169,7 @@ export function applyConstraintAxisAlign({ if (err(info)) return info const transformInfos = info.transforms - let finalValue = createLocalName('ZERO') + let finalValue = createName(['turns'], 'ZERO') return transformAstSketchLines({ ast: structuredClone(kclManager.ast), diff --git a/src/components/Toolbar/setAngleLength.tsx b/src/components/Toolbar/setAngleLength.tsx index 30d72b7f4..ac04f093c 100644 --- a/src/components/Toolbar/setAngleLength.tsx +++ b/src/components/Toolbar/setAngleLength.tsx @@ -16,6 +16,7 @@ import { import { createBinaryExpressionWithUnary, createLocalName, + createName, createVariableDeclaration, } from '../../lang/modifyAst' import { removeDoubleNegatives } from '../AvailableVarsHelpers' @@ -167,14 +168,16 @@ export async function applyConstraintAngleLength({ isReferencingXAxis && angleOrLength === 'setAngle' let forceVal = valueUsedInTransform || 0 - let calcIdentifier = createLocalName('ZERO') + let calcIdentifier = createName(['turns'], 'ZERO') if (isReferencingYAxisAngle) { - calcIdentifier = createLocalName( + calcIdentifier = createName( + ['turns'], forceVal < 0 ? 'THREE_QUARTER_TURN' : 'QUARTER_TURN' ) forceVal = normaliseAngle(forceVal + (forceVal < 0 ? 90 : -90)) } else if (isReferencingXAxisAngle) { - calcIdentifier = createLocalName( + calcIdentifier = createName( + ['turns'], Math.abs(forceVal) > 90 ? 'HALF_TURN' : 'ZERO' ) forceVal = diff --git a/src/lang/modifyAst.ts b/src/lang/modifyAst.ts index 550bc4794..f7423c95a 100644 --- a/src/lang/modifyAst.ts +++ b/src/lang/modifyAst.ts @@ -1087,6 +1087,22 @@ export function createLocalName(name: string): Node { } } +export function createName(path: [string], name: string): Node { + return { + type: 'Name', + start: 0, + end: 0, + moduleId: 0, + outerAttrs: [], + preComments: [], + commentStart: 0, + + abs_path: false, + path: path.map(createIdentifier), + name: createIdentifier(name), + } +} + export function createPipeSubstitution(): Node { return { type: 'PipeSubstitution', diff --git a/src/lang/std/sketchcombos.ts b/src/lang/std/sketchcombos.ts index ff750387b..a5ba6029a 100644 --- a/src/lang/std/sketchcombos.ts +++ b/src/lang/std/sketchcombos.ts @@ -35,6 +35,7 @@ import { createLabeledArg, createLiteral, createLocalName, + createName, createObjectExpression, createPipeSubstitution, createUnaryExpression, @@ -612,7 +613,7 @@ const setAngledIntersectLineForLines: CreateStdLibSketchCallExpr = ({ 270: 'THREE_QUARTER_TURN', } const angleVal = [0, 90, 180, 270].includes(angle) - ? createLocalName(varNamMap[angle]) + ? createName(['turns'], varNamMap[angle]) : createLiteral(angle) return intersectCallWrapper({ fnName: 'angledLineThatIntersects', @@ -665,7 +666,7 @@ const setAngleBetweenCreateNode = firstHalfValue = createBinaryExpression([ firstHalfValue, '+', - createLocalName('HALF_TURN'), + createName(['turns'], 'HALF_TURN'), ]) valueUsedInTransform = normaliseAngle(valueUsedInTransform - 180) }