diff --git a/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_graph_flowchart.snap.md index c1f5261cc..6b429b3cb 100644 --- a/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/axial-fan/artifact_graph_flowchart.snap.md @@ -661,19 +661,19 @@ flowchart LR 84 --- 144 84 --- 237 86 --- 168 - 86 x--> 188 + 86 x--> 189 86 --- 212 86 --- 256 88 --- 169 - 88 x--> 188 + 88 x--> 189 88 --- 213 88 --- 257 90 --- 167 - 90 x--> 188 + 90 x--> 189 90 --- 214 90 --- 258 92 --- 170 - 92 x--> 188 + 92 x--> 189 92 --- 215 92 --- 259 119 --- 133 @@ -955,10 +955,10 @@ flowchart LR 218 <--x 186 219 <--x 186 194 <--x 187 - 212 <--x 189 - 213 <--x 189 - 214 <--x 189 - 215 <--x 189 + 212 <--x 188 + 213 <--x 188 + 214 <--x 188 + 215 <--x 188 220 <--x 275 223 <--x 270 224 <--x 274 diff --git a/rust/kcl-lib/tests/kcl_samples/bottle/ast.snap b/rust/kcl-lib/tests/kcl_samples/bottle/ast.snap index 37c8e5712..a76a80114 100644 --- a/rust/kcl-lib/tests/kcl_samples/bottle/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/bottle/ast.snap @@ -1283,13 +1283,7 @@ description: Result of parsing bottle.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, diff --git a/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md index 9bd6f00b8..447308acc 100644 --- a/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/bracket/artifact_graph_flowchart.snap.md @@ -20,38 +20,38 @@ flowchart LR 17[Solid2d] end subgraph path5 [Path] - 5["Path
[2601, 2791, 0]"] + 5["Path
[2598, 2788, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 14["Segment
[2601, 2791, 0]"] + 14["Segment
[2598, 2788, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 18[Solid2d] end subgraph path6 [Path] - 6["Path
[3225, 3427, 0]"] + 6["Path
[3219, 3421, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 15["Segment
[3225, 3427, 0]"] + 15["Segment
[3219, 3421, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 16[Solid2d] end 1["Plane
[2060, 2077, 0]"] %% [ProgramBodyItem { index: 20 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 2["StartSketchOnFace
[2555, 2595, 0]"] + 2["StartSketchOnFace
[2552, 2592, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 3["StartSketchOnFace
[3179, 3219, 0]"] + 3["StartSketchOnFace
[3173, 3213, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 19["Sweep Extrusion
[2462, 2488, 0]"] + 19["Sweep Extrusion
[2462, 2485, 0]"] %% [ProgramBodyItem { index: 20 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] - 20["Sweep Extrusion
[3077, 3114, 0]"] + 20["Sweep Extrusion
[3074, 3108, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 21["Sweep Extrusion
[3077, 3114, 0]"] + 21["Sweep Extrusion
[3074, 3108, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 22["Sweep Extrusion
[3077, 3114, 0]"] + 22["Sweep Extrusion
[3074, 3108, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 23["Sweep Extrusion
[3077, 3114, 0]"] + 23["Sweep Extrusion
[3074, 3108, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 24["Sweep Extrusion
[3542, 3579, 0]"] + 24["Sweep Extrusion
[3536, 3570, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 25["Sweep Extrusion
[3542, 3579, 0]"] + 25["Sweep Extrusion
[3536, 3570, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 26[Wall] %% face_code_ref=Missing NodePath @@ -89,17 +89,17 @@ flowchart LR 49["SweepEdge Adjacent"] 50["SweepEdge Adjacent"] 51["SweepEdge Adjacent"] - 52["EdgeCut Fillet
[3596, 3676, 0]"] + 52["EdgeCut Fillet
[3587, 3667, 0]"] %% [ProgramBodyItem { index: 23 }, ExpressionStatementExpr] - 53["EdgeCut Fillet
[3677, 3754, 0]"] + 53["EdgeCut Fillet
[3668, 3745, 0]"] %% [ProgramBodyItem { index: 24 }, ExpressionStatementExpr] - 54["EdgeCut Fillet
[3780, 3922, 0]"] + 54["EdgeCut Fillet
[3771, 3913, 0]"] %% [ProgramBodyItem { index: 25 }, ExpressionStatementExpr] - 55["EdgeCut Fillet
[3780, 3922, 0]"] + 55["EdgeCut Fillet
[3771, 3913, 0]"] %% [ProgramBodyItem { index: 25 }, ExpressionStatementExpr] - 56["EdgeCut Fillet
[3780, 3922, 0]"] + 56["EdgeCut Fillet
[3771, 3913, 0]"] %% [ProgramBodyItem { index: 25 }, ExpressionStatementExpr] - 57["EdgeCut Fillet
[3780, 3922, 0]"] + 57["EdgeCut Fillet
[3771, 3913, 0]"] %% [ProgramBodyItem { index: 25 }, ExpressionStatementExpr] 1 --- 4 32 x--> 2 diff --git a/rust/kcl-lib/tests/kcl_samples/bracket/ast.snap b/rust/kcl-lib/tests/kcl_samples/bracket/ast.snap index deee1685d..597c8e27e 100644 --- a/rust/kcl-lib/tests/kcl_samples/bracket/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/bracket/ast.snap @@ -1913,13 +1913,7 @@ description: Result of parsing bracket.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -2635,13 +2629,7 @@ description: Result of parsing bracket.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -3164,13 +3152,7 @@ description: Result of parsing bracket.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, 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 8cd88f8bd..b2ac339be 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 @@ -110,41 +110,41 @@ flowchart LR 161[Solid2d] end subgraph path25 [Path] - 25["Path
[1457, 1497, 3]"] - 87["Segment
[1457, 1497, 3]"] + 25["Path
[1454, 1491, 3]"] + 87["Segment
[1454, 1491, 3]"] 151[Solid2d] end subgraph path26 [Path] - 26["Path
[1606, 1657, 3]"] - 88["Segment
[1606, 1657, 3]"] + 26["Path
[1597, 1648, 3]"] + 88["Segment
[1597, 1648, 3]"] 149[Solid2d] end subgraph path27 [Path] - 27["Path
[1795, 1847, 3]"] - 89["Segment
[1795, 1847, 3]"] + 27["Path
[1786, 1838, 3]"] + 89["Segment
[1786, 1838, 3]"] 162[Solid2d] end subgraph path28 [Path] - 28["Path
[2095, 2167, 3]"] - 90["Segment
[2095, 2167, 3]"] + 28["Path
[2086, 2158, 3]"] + 90["Segment
[2086, 2158, 3]"] 160[Solid2d] end subgraph path29 [Path] - 29["Path
[2429, 2460, 3]"] - 91["Segment
[2466, 2486, 3]"] - 92["Segment
[2492, 2512, 3]"] - 93["Segment
[2518, 2539, 3]"] - 94["Segment
[2545, 2601, 3]"] - 95["Segment
[2607, 2614, 3]"] + 29["Path
[2420, 2451, 3]"] + 91["Segment
[2457, 2477, 3]"] + 92["Segment
[2483, 2503, 3]"] + 93["Segment
[2509, 2530, 3]"] + 94["Segment
[2536, 2592, 3]"] + 95["Segment
[2598, 2605, 3]"] 144[Solid2d] end subgraph path30 [Path] - 30["Path
[2921, 2953, 3]"] - 96["Segment
[2959, 2980, 3]"] - 97["Segment
[2986, 3006, 3]"] - 98["Segment
[3012, 3032, 3]"] - 99["Segment
[3038, 3094, 3]"] - 100["Segment
[3100, 3107, 3]"] + 30["Path
[2912, 2944, 3]"] + 96["Segment
[2950, 2971, 3]"] + 97["Segment
[2977, 2997, 3]"] + 98["Segment
[3003, 3023, 3]"] + 99["Segment
[3029, 3085, 3]"] + 100["Segment
[3091, 3098, 3]"] 143[Solid2d] end subgraph path31 [Path] @@ -228,44 +228,44 @@ flowchart LR 180["Sweep Revolve
[5666, 5683, 1]"] 181["Sweep Extrusion
[649, 705, 3]"] 182["Sweep Extrusion
[899, 961, 3]"] - 183["Sweep Extrusion
[1216, 1295, 3]"] - 184["Sweep Extrusion
[1216, 1295, 3]"] - 185["Sweep Extrusion
[1216, 1295, 3]"] - 186["Sweep Extrusion
[1216, 1295, 3]"] - 187["Sweep Extrusion
[1216, 1295, 3]"] - 188["Sweep Extrusion
[1503, 1536, 3]"] - 189["Sweep Extrusion
[1672, 1737, 3]"] - 190["Sweep Extrusion
[1994, 2038, 3]"] - 191["Sweep Extrusion
[1994, 2038, 3]"] - 192["Sweep Extrusion
[1994, 2038, 3]"] - 193["Sweep Extrusion
[1994, 2038, 3]"] - 194["Sweep Extrusion
[1994, 2038, 3]"] - 195["Sweep Extrusion
[2322, 2366, 3]"] - 196["Sweep Extrusion
[2322, 2366, 3]"] - 197["Sweep Extrusion
[2322, 2366, 3]"] - 198["Sweep Extrusion
[2322, 2366, 3]"] - 199["Sweep Extrusion
[2322, 2366, 3]"] - 200["Sweep Extrusion
[2322, 2366, 3]"] - 201["Sweep Extrusion
[2322, 2366, 3]"] - 202["Sweep Extrusion
[2322, 2366, 3]"] - 203["Sweep Extrusion
[2322, 2366, 3]"] - 204["Sweep Extrusion
[2322, 2366, 3]"] - 205["Sweep Extrusion
[2322, 2366, 3]"] - 206["Sweep Extrusion
[2322, 2366, 3]"] - 207["Sweep Extrusion
[2322, 2366, 3]"] - 208["Sweep Extrusion
[2322, 2366, 3]"] - 209["Sweep Extrusion
[2322, 2366, 3]"] - 210["Sweep Extrusion
[2322, 2366, 3]"] - 211["Sweep Extrusion
[2780, 2848, 3]"] - 212["Sweep Extrusion
[2780, 2848, 3]"] - 213["Sweep Extrusion
[2780, 2848, 3]"] - 214["Sweep Extrusion
[2780, 2848, 3]"] - 215["Sweep Extrusion
[2780, 2848, 3]"] - 216["Sweep Extrusion
[3270, 3344, 3]"] - 217["Sweep Extrusion
[3270, 3344, 3]"] - 218["Sweep Extrusion
[3270, 3344, 3]"] - 219["Sweep Extrusion
[3270, 3344, 3]"] - 220["Sweep Extrusion
[3270, 3344, 3]"] + 183["Sweep Extrusion
[1216, 1292, 3]"] + 184["Sweep Extrusion
[1216, 1292, 3]"] + 185["Sweep Extrusion
[1216, 1292, 3]"] + 186["Sweep Extrusion
[1216, 1292, 3]"] + 187["Sweep Extrusion
[1216, 1292, 3]"] + 188["Sweep Extrusion
[1497, 1527, 3]"] + 189["Sweep Extrusion
[1663, 1728, 3]"] + 190["Sweep Extrusion
[1985, 2029, 3]"] + 191["Sweep Extrusion
[1985, 2029, 3]"] + 192["Sweep Extrusion
[1985, 2029, 3]"] + 193["Sweep Extrusion
[1985, 2029, 3]"] + 194["Sweep Extrusion
[1985, 2029, 3]"] + 195["Sweep Extrusion
[2313, 2357, 3]"] + 196["Sweep Extrusion
[2313, 2357, 3]"] + 197["Sweep Extrusion
[2313, 2357, 3]"] + 198["Sweep Extrusion
[2313, 2357, 3]"] + 199["Sweep Extrusion
[2313, 2357, 3]"] + 200["Sweep Extrusion
[2313, 2357, 3]"] + 201["Sweep Extrusion
[2313, 2357, 3]"] + 202["Sweep Extrusion
[2313, 2357, 3]"] + 203["Sweep Extrusion
[2313, 2357, 3]"] + 204["Sweep Extrusion
[2313, 2357, 3]"] + 205["Sweep Extrusion
[2313, 2357, 3]"] + 206["Sweep Extrusion
[2313, 2357, 3]"] + 207["Sweep Extrusion
[2313, 2357, 3]"] + 208["Sweep Extrusion
[2313, 2357, 3]"] + 209["Sweep Extrusion
[2313, 2357, 3]"] + 210["Sweep Extrusion
[2313, 2357, 3]"] + 211["Sweep Extrusion
[2771, 2839, 3]"] + 212["Sweep Extrusion
[2771, 2839, 3]"] + 213["Sweep Extrusion
[2771, 2839, 3]"] + 214["Sweep Extrusion
[2771, 2839, 3]"] + 215["Sweep Extrusion
[2771, 2839, 3]"] + 216["Sweep Extrusion
[3261, 3335, 3]"] + 217["Sweep Extrusion
[3261, 3335, 3]"] + 218["Sweep Extrusion
[3261, 3335, 3]"] + 219["Sweep Extrusion
[3261, 3335, 3]"] + 220["Sweep Extrusion
[3261, 3335, 3]"] 221["Sweep Revolve
[2049, 2099, 4]"] 222["Sweep Revolve
[1125, 1142, 5]"] 223["Sweep Revolve
[1502, 1531, 6]"] diff --git a/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md index 98222a695..28c9ebab9 100644 --- a/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/cold-plate/artifact_graph_flowchart.snap.md @@ -61,24 +61,24 @@ flowchart LR 43[Solid2d] end subgraph path10 [Path] - 10["Path
[2264, 2355, 0]"] + 10["Path
[2261, 2352, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, CallKwArg { index: 0 }] - 35["Segment
[2264, 2355, 0]"] + 35["Segment
[2261, 2352, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }, CallKwArg { index: 0 }] 41[Solid2d] end subgraph path11 [Path] - 11["Path
[2552, 2584, 0]"] + 11["Path
[2549, 2581, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 36["Segment
[2590, 2680, 0]"] + 36["Segment
[2587, 2677, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 37["Segment
[2686, 2723, 0]"] + 37["Segment
[2683, 2720, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 38["Segment
[2729, 2882, 0]"] + 38["Segment
[2726, 2879, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 39["Segment
[2888, 2944, 0]"] + 39["Segment
[2885, 2941, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 40["Segment
[2950, 2957, 0]"] + 40["Segment
[2947, 2954, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 42[Solid2d] end @@ -88,7 +88,7 @@ flowchart LR %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] 3["Plane
[2124, 2155, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 4["Plane
[2529, 2546, 0]"] + 4["Plane
[2526, 2543, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 5["StartSketchOnPlane
[1458, 1511, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] @@ -96,9 +96,9 @@ flowchart LR %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 45["Sweep Extrusion
[1352, 1390, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 18 }] - 46["Sweep Sweep
[2362, 2390, 0]"] + 46["Sweep Sweep
[2359, 2387, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 47["Sweep Extrusion
[2963, 3001, 0]"] + 47["Sweep Extrusion
[2960, 2998, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 48[Wall] %% face_code_ref=Missing NodePath @@ -172,7 +172,7 @@ flowchart LR 11 --- 42 11 ---- 47 34 --- 48 - 34 x--> 54 + 34 x--> 55 34 --- 57 34 --- 62 36 --- 49 @@ -224,7 +224,7 @@ flowchart LR 52 --- 58 52 --- 63 64 <--x 52 - 57 <--x 55 + 57 <--x 54 58 <--x 56 59 <--x 56 60 <--x 56 diff --git a/rust/kcl-lib/tests/kcl_samples/cold-plate/ast.snap b/rust/kcl-lib/tests/kcl_samples/cold-plate/ast.snap index a7a20025a..239854f8b 100644 --- a/rust/kcl-lib/tests/kcl_samples/cold-plate/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/cold-plate/ast.snap @@ -2984,13 +2984,7 @@ description: Result of parsing cold-plate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ diff --git a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ast.snap b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ast.snap index 075238f8f..ed9554d19 100644 --- a/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/countersunk-plate/ast.snap @@ -1860,13 +1860,7 @@ description: Result of parsing countersunk-plate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, diff --git a/rust/kcl-lib/tests/kcl_samples/engine-valve/ast.snap b/rust/kcl-lib/tests/kcl_samples/engine-valve/ast.snap index b1e7a0782..2128b16c7 100644 --- a/rust/kcl-lib/tests/kcl_samples/engine-valve/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/engine-valve/ast.snap @@ -2121,13 +2121,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -2198,13 +2192,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -2434,13 +2422,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -2491,13 +2473,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -2727,13 +2703,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -2784,13 +2754,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -3020,13 +2984,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3077,13 +3035,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -3313,13 +3265,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3370,13 +3316,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -3606,13 +3546,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3663,13 +3597,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -4012,13 +3940,7 @@ description: Result of parsing engine-valve.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ diff --git a/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md index e03230fb2..c862f89ba 100644 --- a/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/flange/artifact_graph_flowchart.snap.md @@ -51,7 +51,7 @@ flowchart LR %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 23["Sweep Extrusion
[1711, 1744, 0]"] %% [ProgramBodyItem { index: 15 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 24["Sweep Extrusion
[1891, 1966, 0]"] + 24["Sweep Extrusion
[1891, 1963, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 25[Wall] %% face_code_ref=Missing NodePath diff --git a/rust/kcl-lib/tests/kcl_samples/flange/ast.snap b/rust/kcl-lib/tests/kcl_samples/flange/ast.snap index 112fee018..d1e8e8887 100644 --- a/rust/kcl-lib/tests/kcl_samples/flange/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/flange/ast.snap @@ -2039,13 +2039,7 @@ description: Result of parsing flange.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, diff --git a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/artifact_graph_flowchart.snap.md index 8037d5f98..80813a399 100644 --- a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/artifact_graph_flowchart.snap.md @@ -1,238 +1,238 @@ ```mermaid flowchart LR subgraph path14 [Path] - 14["Path
[831, 892, 0]"] + 14["Path
[831, 889, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 26["Segment
[898, 930, 0]"] + 26["Segment
[895, 927, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 27["Segment
[936, 964, 0]"] + 27["Segment
[933, 961, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 28["Segment
[970, 1019, 0]"] + 28["Segment
[967, 1016, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 29["Segment
[1025, 1055, 0]"] + 29["Segment
[1022, 1052, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 30["Segment
[1061, 1110, 0]"] + 30["Segment
[1058, 1107, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] - 31["Segment
[1116, 1144, 0]"] + 31["Segment
[1113, 1141, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 32["Segment
[1150, 1183, 0]"] + 32["Segment
[1147, 1180, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] - 33["Segment
[1189, 1259, 0]"] + 33["Segment
[1186, 1256, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] - 34["Segment
[1265, 1272, 0]"] + 34["Segment
[1262, 1269, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 10 }] 92[Solid2d] end subgraph path15 [Path] - 15["Path
[1627, 1698, 0]"] + 15["Path
[1624, 1695, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 35["Segment
[1704, 1729, 0]"] + 35["Segment
[1701, 1726, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 36["Segment
[1735, 1762, 0]"] + 36["Segment
[1732, 1759, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 37["Segment
[1768, 1794, 0]"] + 37["Segment
[1765, 1791, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 38["Segment
[1800, 1856, 0]"] + 38["Segment
[1797, 1853, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 39["Segment
[1862, 1869, 0]"] + 39["Segment
[1859, 1866, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 89[Solid2d] end subgraph path16 [Path] - 16["Path
[2226, 2278, 0]"] + 16["Path
[2223, 2272, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 43["Segment
[2286, 2307, 0]"] + 43["Segment
[2280, 2301, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 48["Segment
[2315, 2344, 0]"] + 48["Segment
[2309, 2338, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 50["Segment
[2352, 2374, 0]"] + 50["Segment
[2346, 2368, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 59["Segment
[2382, 2438, 0]"] + 59["Segment
[2376, 2432, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 62["Segment
[2446, 2453, 0]"] + 62["Segment
[2440, 2447, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 83[Solid2d] end subgraph path17 [Path] - 17["Path
[2226, 2278, 0]"] + 17["Path
[2223, 2272, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 44["Segment
[2286, 2307, 0]"] + 44["Segment
[2280, 2301, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 49["Segment
[2315, 2344, 0]"] + 49["Segment
[2309, 2338, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 51["Segment
[2352, 2374, 0]"] + 51["Segment
[2346, 2368, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 58["Segment
[2382, 2438, 0]"] + 58["Segment
[2376, 2432, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 61["Segment
[2446, 2453, 0]"] + 61["Segment
[2440, 2447, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 84[Solid2d] end subgraph path18 [Path] - 18["Path
[2226, 2278, 0]"] + 18["Path
[2223, 2272, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 41["Segment
[2286, 2307, 0]"] + 41["Segment
[2280, 2301, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 46["Segment
[2315, 2344, 0]"] + 46["Segment
[2309, 2338, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 52["Segment
[2352, 2374, 0]"] + 52["Segment
[2346, 2368, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 55["Segment
[2382, 2438, 0]"] + 55["Segment
[2376, 2432, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 63["Segment
[2446, 2453, 0]"] + 63["Segment
[2440, 2447, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 85[Solid2d] end subgraph path19 [Path] - 19["Path
[2226, 2278, 0]"] + 19["Path
[2223, 2272, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 42["Segment
[2286, 2307, 0]"] + 42["Segment
[2280, 2301, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 45["Segment
[2315, 2344, 0]"] + 45["Segment
[2309, 2338, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 53["Segment
[2352, 2374, 0]"] + 53["Segment
[2346, 2368, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 56["Segment
[2382, 2438, 0]"] + 56["Segment
[2376, 2432, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 60["Segment
[2446, 2453, 0]"] + 60["Segment
[2440, 2447, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 88[Solid2d] end subgraph path20 [Path] - 20["Path
[2226, 2278, 0]"] + 20["Path
[2223, 2272, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 40["Segment
[2286, 2307, 0]"] + 40["Segment
[2280, 2301, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 47["Segment
[2315, 2344, 0]"] + 47["Segment
[2309, 2338, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 54["Segment
[2352, 2374, 0]"] + 54["Segment
[2346, 2368, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 57["Segment
[2382, 2438, 0]"] + 57["Segment
[2376, 2432, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 64["Segment
[2446, 2453, 0]"] + 64["Segment
[2440, 2447, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 93[Solid2d] end subgraph path21 [Path] - 21["Path
[3049, 3167, 0]"] + 21["Path
[3043, 3161, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 65["Segment
[3173, 3206, 0]"] + 65["Segment
[3167, 3200, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 66["Segment
[3212, 3244, 0]"] + 66["Segment
[3206, 3238, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 67["Segment
[3250, 3284, 0]"] + 67["Segment
[3244, 3278, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 68["Segment
[3290, 3346, 0]"] + 68["Segment
[3284, 3340, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 69["Segment
[3352, 3359, 0]"] + 69["Segment
[3346, 3353, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 86[Solid2d] end subgraph path22 [Path] - 22["Path
[3678, 3795, 0]"] + 22["Path
[3672, 3789, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 70["Segment
[3801, 3820, 0]"] + 70["Segment
[3795, 3814, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 71["Segment
[3826, 3880, 0]"] + 71["Segment
[3820, 3874, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 72["Segment
[3886, 3974, 0]"] + 72["Segment
[3880, 3968, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 73["Segment
[3980, 4036, 0]"] + 73["Segment
[3974, 4030, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 74["Segment
[4042, 4049, 0]"] + 74["Segment
[4036, 4043, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 82[Solid2d] end subgraph path23 [Path] - 23["Path
[5215, 5254, 0]"] + 23["Path
[5206, 5242, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 75["Segment
[5215, 5254, 0]"] + 75["Segment
[5206, 5242, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 90[Solid2d] end subgraph path24 [Path] - 24["Path
[5476, 5534, 0]"] + 24["Path
[5464, 5519, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 76["Segment
[5476, 5534, 0]"] + 76["Segment
[5464, 5519, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 87[Solid2d] end subgraph path25 [Path] - 25["Path
[6520, 6652, 0]"] + 25["Path
[6505, 6637, 0]"] %% [ProgramBodyItem { index: 54 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 77["Segment
[6658, 6693, 0]"] + 77["Segment
[6643, 6678, 0]"] %% [ProgramBodyItem { index: 54 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 78["Segment
[6699, 6793, 0]"] + 78["Segment
[6684, 6778, 0]"] %% [ProgramBodyItem { index: 54 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 79["Segment
[6799, 6835, 0]"] + 79["Segment
[6784, 6820, 0]"] %% [ProgramBodyItem { index: 54 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 80["Segment
[6841, 6906, 0]"] + 80["Segment
[6826, 6891, 0]"] %% [ProgramBodyItem { index: 54 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 81["Segment
[6912, 6919, 0]"] + 81["Segment
[6897, 6904, 0]"] %% [ProgramBodyItem { index: 54 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 91[Solid2d] end 1["Plane
[778, 824, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 2["Plane
[2201, 2218, 0]"] + 2["Plane
[2198, 2215, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 3["Plane
[2201, 2218, 0]"] + 3["Plane
[2198, 2215, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 4["Plane
[2201, 2218, 0]"] + 4["Plane
[2198, 2215, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 5["Plane
[2201, 2218, 0]"] + 5["Plane
[2198, 2215, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 6["Plane
[2201, 2218, 0]"] + 6["Plane
[2198, 2215, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 7["Plane
[3622, 3671, 0]"] + 7["Plane
[3616, 3665, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 8["StartSketchOnPlane
[3608, 3672, 0]"] + 8["StartSketchOnPlane
[3602, 3666, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 9["StartSketchOnPlane
[764, 825, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 10["StartSketchOnFace
[3006, 3043, 0]"] + 10["StartSketchOnFace
[3000, 3037, 0]"] %% [ProgramBodyItem { index: 27 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 11["StartSketchOnFace
[1360, 1402, 0]"] + 11["StartSketchOnFace
[1357, 1399, 0]"] %% [ProgramBodyItem { index: 7 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 12["StartSketchOnFace
[5169, 5209, 0]"] + 12["StartSketchOnFace
[5160, 5200, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 13["StartSketchOnFace
[5433, 5470, 0]"] + 13["StartSketchOnFace
[5421, 5458, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 94["Sweep Extrusion
[1289, 1338, 0]"] + 94["Sweep Extrusion
[1286, 1335, 0]"] %% [ProgramBodyItem { index: 6 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 95["Sweep Extrusion
[1881, 1920, 0]"] + 95["Sweep Extrusion
[1878, 1917, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 96["Sweep Extrusion
[2463, 2500, 0]"] + 96["Sweep Extrusion
[2457, 2494, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 97["Sweep Extrusion
[2463, 2500, 0]"] + 97["Sweep Extrusion
[2457, 2494, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 98["Sweep Extrusion
[2463, 2500, 0]"] + 98["Sweep Extrusion
[2457, 2494, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 99["Sweep Extrusion
[2463, 2500, 0]"] + 99["Sweep Extrusion
[2457, 2494, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 100["Sweep Extrusion
[2463, 2500, 0]"] + 100["Sweep Extrusion
[2457, 2494, 0]"] %% [ProgramBodyItem { index: 19 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 101["Sweep Extrusion
[3378, 3434, 0]"] + 101["Sweep Extrusion
[3372, 3428, 0]"] %% [ProgramBodyItem { index: 28 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 102["Sweep Extrusion
[4069, 4123, 0]"] + 102["Sweep Extrusion
[4063, 4117, 0]"] %% [ProgramBodyItem { index: 32 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 103["Sweep Extrusion
[5362, 5394, 0]"] + 103["Sweep Extrusion
[5350, 5382, 0]"] %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 104["Sweep Extrusion
[5765, 5800, 0]"] + 104["Sweep Extrusion
[5750, 5785, 0]"] %% [ProgramBodyItem { index: 46 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 105["Sweep Extrusion
[5765, 5800, 0]"] + 105["Sweep Extrusion
[5750, 5785, 0]"] %% [ProgramBodyItem { index: 46 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 106["Sweep Extrusion
[7320, 7367, 0]"] + 106["Sweep Extrusion
[7305, 7352, 0]"] %% [ProgramBodyItem { index: 55 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 107["Sweep Extrusion
[7320, 7367, 0]"] + 107["Sweep Extrusion
[7305, 7352, 0]"] %% [ProgramBodyItem { index: 55 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 108["Sweep Extrusion
[7320, 7367, 0]"] + 108["Sweep Extrusion
[7305, 7352, 0]"] %% [ProgramBodyItem { index: 55 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 109["Sweep Extrusion
[7320, 7367, 0]"] + 109["Sweep Extrusion
[7305, 7352, 0]"] %% [ProgramBodyItem { index: 55 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 110["Sweep Extrusion
[7320, 7367, 0]"] + 110["Sweep Extrusion
[7305, 7352, 0]"] %% [ProgramBodyItem { index: 55 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 111["Sweep Extrusion
[7320, 7367, 0]"] + 111["Sweep Extrusion
[7305, 7352, 0]"] %% [ProgramBodyItem { index: 55 }, VariableDeclarationDeclaration, VariableDeclarationInit] 112[Wall] %% face_code_ref=Missing NodePath diff --git a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ast.snap b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ast.snap index 0dff157e8..843498e08 100644 --- a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/ast.snap @@ -429,13 +429,7 @@ description: Result of parsing pdu-faceplate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -2470,13 +2464,7 @@ description: Result of parsing pdu-faceplate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -5185,13 +5173,7 @@ description: Result of parsing pdu-faceplate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -6331,13 +6313,7 @@ description: Result of parsing pdu-faceplate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -6780,13 +6756,7 @@ description: Result of parsing pdu-faceplate.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ diff --git a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/program_memory.snap b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/program_memory.snap index cca7dee93..d46c1f3b2 100644 --- a/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/program_memory.snap +++ b/rust/kcl-lib/tests/kcl_samples/pdu-faceplate/program_memory.snap @@ -68,9 +68,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -224,9 +224,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -422,9 +422,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -578,9 +578,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -848,9 +848,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -1178,9 +1178,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -1334,9 +1334,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -1658,9 +1658,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -1814,9 +1814,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -2138,9 +2138,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -2294,9 +2294,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -2618,9 +2618,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -2774,9 +2774,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -3098,9 +3098,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -3254,9 +3254,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -3578,9 +3578,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -3734,9 +3734,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -4123,9 +4123,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -4279,9 +4279,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -4645,9 +4645,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -4801,9 +4801,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -5167,9 +5167,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -5323,9 +5323,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -5689,9 +5689,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -5845,9 +5845,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -6211,9 +6211,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -6367,9 +6367,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -6733,9 +6733,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -6889,9 +6889,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -7529,9 +7529,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -7685,9 +7685,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -8033,9 +8033,9 @@ description: Variables in memory after executing pdu-faceplate.kcl "id": "[uuid]", "sourceRange": [], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, @@ -8189,9 +8189,9 @@ description: Variables in memory after executing pdu-faceplate.kcl 0.0 ], "tag": { - "commentStart": 1252, - "end": 1258, - "start": 1252, + "commentStart": 1249, + "end": 1255, + "start": 1249, "type": "TagDeclarator", "value": "seg01" }, diff --git a/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_graph_flowchart.snap.md index 169974da5..ec11af52f 100644 --- a/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pillow-block-bearing/artifact_graph_flowchart.snap.md @@ -31,20 +31,20 @@ flowchart LR 71[Solid2d] end subgraph path10 [Path] - 10["Path
[2347, 2411, 2]"] - 35["Segment
[2417, 2437, 2]"] - 36["Segment
[2443, 2494, 2]"] - 37["Segment
[2500, 2520, 2]"] - 38["Segment
[2526, 2573, 2]"] - 39["Segment
[2579, 2624, 2]"] - 40["Segment
[2630, 2660, 2]"] - 41["Segment
[2666, 2687, 2]"] - 42["Segment
[2693, 2756, 2]"] - 43["Segment
[2762, 2805, 2]"] - 44["Segment
[2811, 2871, 2]"] - 45["Segment
[2877, 2914, 2]"] - 46["Segment
[2920, 2976, 2]"] - 47["Segment
[2982, 2989, 2]"] + 10["Path
[2344, 2408, 2]"] + 35["Segment
[2414, 2434, 2]"] + 36["Segment
[2440, 2491, 2]"] + 37["Segment
[2497, 2517, 2]"] + 38["Segment
[2523, 2570, 2]"] + 39["Segment
[2576, 2621, 2]"] + 40["Segment
[2627, 2657, 2]"] + 41["Segment
[2663, 2684, 2]"] + 42["Segment
[2690, 2753, 2]"] + 43["Segment
[2759, 2802, 2]"] + 44["Segment
[2808, 2868, 2]"] + 45["Segment
[2874, 2911, 2]"] + 46["Segment
[2917, 2973, 2]"] + 47["Segment
[2979, 2986, 2]"] 65[Solid2d] end subgraph path11 [Path] @@ -62,43 +62,43 @@ flowchart LR 72[Solid2d] end subgraph path13 [Path] - 13["Path
[1933, 1996, 3]"] - 54["Segment
[1933, 1996, 3]"] + 13["Path
[1930, 1993, 3]"] + 54["Segment
[1930, 1993, 3]"] 62[Solid2d] end subgraph path14 [Path] - 14["Path
[1933, 1996, 3]"] - 57["Segment
[1933, 1996, 3]"] + 14["Path
[1930, 1993, 3]"] + 57["Segment
[1930, 1993, 3]"] 64[Solid2d] end subgraph path15 [Path] - 15["Path
[1933, 1996, 3]"] - 55["Segment
[1933, 1996, 3]"] + 15["Path
[1930, 1993, 3]"] + 55["Segment
[1930, 1993, 3]"] 70[Solid2d] end subgraph path16 [Path] - 16["Path
[1933, 1996, 3]"] - 56["Segment
[1933, 1996, 3]"] + 16["Path
[1930, 1993, 3]"] + 56["Segment
[1930, 1993, 3]"] 76[Solid2d] end subgraph path17 [Path] - 17["Path
[2094, 2165, 3]"] - 58["Segment
[2094, 2165, 3]"] + 17["Path
[2091, 2162, 3]"] + 58["Segment
[2091, 2162, 3]"] 67[Solid2d] end subgraph path18 [Path] - 18["Path
[2094, 2165, 3]"] - 59["Segment
[2094, 2165, 3]"] + 18["Path
[2091, 2162, 3]"] + 59["Segment
[2091, 2162, 3]"] 68[Solid2d] end subgraph path19 [Path] - 19["Path
[2094, 2165, 3]"] - 61["Segment
[2094, 2165, 3]"] + 19["Path
[2091, 2162, 3]"] + 61["Segment
[2091, 2162, 3]"] 74[Solid2d] end subgraph path20 [Path] - 20["Path
[2094, 2165, 3]"] - 60["Segment
[2094, 2165, 3]"] + 20["Path
[2091, 2162, 3]"] + 60["Segment
[2091, 2162, 3]"] 75[Solid2d] end 1["Plane
[359, 403, 2]"] @@ -109,17 +109,17 @@ flowchart LR 77["Sweep Revolve
[627, 657, 2]"] 78["Sweep Revolve
[1271, 1301, 2]"] 79["Sweep Revolve
[2262, 2292, 2]"] - 80["Sweep Revolve
[2995, 3025, 2]"] - 81["Sweep Revolve
[3092, 3139, 2]"] + 80["Sweep Revolve
[2992, 3022, 2]"] + 81["Sweep Revolve
[3086, 3133, 2]"] 82["Sweep Extrusion
[1219, 1264, 3]"] - 83["Sweep Extrusion
[2004, 2039, 3]"] - 84["Sweep Extrusion
[2004, 2039, 3]"] - 85["Sweep Extrusion
[2004, 2039, 3]"] - 86["Sweep Extrusion
[2004, 2039, 3]"] - 87["Sweep Extrusion
[2173, 2225, 3]"] - 88["Sweep Extrusion
[2173, 2225, 3]"] - 89["Sweep Extrusion
[2173, 2225, 3]"] - 90["Sweep Extrusion
[2173, 2225, 3]"] + 83["Sweep Extrusion
[2001, 2036, 3]"] + 84["Sweep Extrusion
[2001, 2036, 3]"] + 85["Sweep Extrusion
[2001, 2036, 3]"] + 86["Sweep Extrusion
[2001, 2036, 3]"] + 87["Sweep Extrusion
[2170, 2222, 3]"] + 88["Sweep Extrusion
[2170, 2222, 3]"] + 89["Sweep Extrusion
[2170, 2222, 3]"] + 90["Sweep Extrusion
[2170, 2222, 3]"] 91[Wall] %% face_code_ref=Missing NodePath 92[Wall] @@ -259,10 +259,10 @@ flowchart LR 182["SweepEdge Adjacent"] 183["SweepEdge Adjacent"] 184["SweepEdge Adjacent"] - 185["EdgeCut Fillet
[1308, 1593, 3]"] - 186["EdgeCut Fillet
[1308, 1593, 3]"] - 187["EdgeCut Fillet
[1308, 1593, 3]"] - 188["EdgeCut Fillet
[1308, 1593, 3]"] + 185["EdgeCut Fillet
[1305, 1590, 3]"] + 186["EdgeCut Fillet
[1305, 1590, 3]"] + 187["EdgeCut Fillet
[1305, 1590, 3]"] + 188["EdgeCut Fillet
[1305, 1590, 3]"] 1 --- 6 2 --- 7 3 --- 8 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 fc2a74c8e..ed8c63a34 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,63 +1,63 @@ ```mermaid flowchart LR subgraph path23 [Path] - 23["Path
[440, 502, 2]"] - 46["Segment
[440, 502, 2]"] + 23["Path
[440, 499, 2]"] + 46["Segment
[440, 499, 2]"] 97[Solid2d] end subgraph path24 [Path] - 24["Path
[640, 700, 2]"] - 47["Segment
[640, 700, 2]"] + 24["Path
[634, 691, 2]"] + 47["Segment
[634, 691, 2]"] 80[Solid2d] end subgraph path25 [Path] - 25["Path
[613, 706, 3]"] - 49["Segment
[613, 706, 3]"] + 25["Path
[613, 703, 3]"] + 49["Segment
[613, 703, 3]"] 90[Solid2d] end subgraph path26 [Path] - 26["Path
[613, 706, 3]"] - 48["Segment
[613, 706, 3]"] + 26["Path
[613, 703, 3]"] + 48["Segment
[613, 703, 3]"] 98[Solid2d] end subgraph path27 [Path] - 27["Path
[935, 990, 3]"] - 51["Segment
[935, 990, 3]"] + 27["Path
[932, 984, 3]"] + 51["Segment
[932, 984, 3]"] 84[Solid2d] end subgraph path28 [Path] - 28["Path
[935, 990, 3]"] - 50["Segment
[935, 990, 3]"] + 28["Path
[932, 984, 3]"] + 50["Segment
[932, 984, 3]"] 88[Solid2d] end subgraph path29 [Path] - 29["Path
[1220, 1279, 3]"] - 53["Segment
[1220, 1279, 3]"] + 29["Path
[1211, 1267, 3]"] + 53["Segment
[1211, 1267, 3]"] 83[Solid2d] end subgraph path30 [Path] - 30["Path
[1220, 1279, 3]"] - 52["Segment
[1220, 1279, 3]"] + 30["Path
[1211, 1267, 3]"] + 52["Segment
[1211, 1267, 3]"] 87[Solid2d] end subgraph path31 [Path] - 31["Path
[1386, 1446, 3]"] - 54["Segment
[1386, 1446, 3]"] + 31["Path
[1371, 1428, 3]"] + 54["Segment
[1371, 1428, 3]"] 91[Solid2d] end subgraph path32 [Path] - 32["Path
[1386, 1446, 3]"] - 55["Segment
[1386, 1446, 3]"] + 32["Path
[1371, 1428, 3]"] + 55["Segment
[1371, 1428, 3]"] 95[Solid2d] end subgraph path33 [Path] - 33["Path
[1608, 1661, 3]"] - 56["Segment
[1608, 1661, 3]"] + 33["Path
[1587, 1637, 3]"] + 56["Segment
[1587, 1637, 3]"] 86[Solid2d] end subgraph path34 [Path] - 34["Path
[1608, 1661, 3]"] - 57["Segment
[1608, 1661, 3]"] + 34["Path
[1587, 1637, 3]"] + 57["Segment
[1587, 1637, 3]"] 93[Solid2d] end subgraph path35 [Path] @@ -106,68 +106,68 @@ flowchart LR 101[Solid2d] end subgraph path42 [Path] - 42["Path
[343, 401, 7]"] - 75["Segment
[343, 401, 7]"] + 42["Path
[343, 398, 7]"] + 75["Segment
[343, 398, 7]"] 89[Solid2d] end subgraph path43 [Path] - 43["Path
[343, 401, 7]"] - 76["Segment
[343, 401, 7]"] + 43["Path
[343, 398, 7]"] + 76["Segment
[343, 398, 7]"] 94[Solid2d] end subgraph path44 [Path] - 44["Path
[545, 600, 7]"] - 77["Segment
[545, 600, 7]"] + 44["Path
[539, 594, 7]"] + 77["Segment
[539, 594, 7]"] 85[Solid2d] end subgraph path45 [Path] - 45["Path
[545, 600, 7]"] - 78["Segment
[545, 600, 7]"] + 45["Path
[539, 594, 7]"] + 78["Segment
[539, 594, 7]"] 92[Solid2d] end 1["Plane
[417, 434, 2]"] 2["Plane
[588, 605, 3]"] 3["Plane
[588, 605, 3]"] - 4["Plane
[910, 927, 3]"] - 5["Plane
[910, 927, 3]"] + 4["Plane
[907, 924, 3]"] + 5["Plane
[907, 924, 3]"] 6["Plane
[404, 421, 4]"] 7["Plane
[432, 449, 5]"] 8["Plane
[418, 435, 6]"] 9["Plane
[318, 335, 7]"] 10["Plane
[318, 335, 7]"] 11["StartSketchOnFace
[940, 977, 6]"] - 12["StartSketchOnFace
[1341, 1378, 3]"] - 13["StartSketchOnFace
[502, 537, 7]"] - 14["StartSketchOnFace
[502, 537, 7]"] - 15["StartSketchOnFace
[1173, 1212, 3]"] + 12["StartSketchOnFace
[1326, 1363, 3]"] + 13["StartSketchOnFace
[496, 531, 7]"] + 14["StartSketchOnFace
[496, 531, 7]"] + 15["StartSketchOnFace
[1164, 1203, 3]"] 16["StartSketchOnFace
[574, 611, 4]"] 17["StartSketchOnFace
[751, 788, 5]"] - 18["StartSketchOnFace
[1562, 1600, 3]"] - 19["StartSketchOnFace
[1562, 1600, 3]"] - 20["StartSketchOnFace
[1341, 1378, 3]"] + 18["StartSketchOnFace
[1541, 1579, 3]"] + 19["StartSketchOnFace
[1541, 1579, 3]"] + 20["StartSketchOnFace
[1326, 1363, 3]"] 21["StartSketchOnFace
[1287, 1322, 5]"] - 22["StartSketchOnFace
[1173, 1212, 3]"] - 102["Sweep Extrusion
[508, 544, 2]"] - 103["Sweep Extrusion
[706, 743, 2]"] - 104["Sweep Extrusion
[1038, 1078, 3]"] - 105["Sweep Extrusion
[1038, 1078, 3]"] - 106["Sweep Extrusion
[1287, 1324, 3]"] - 107["Sweep Extrusion
[1287, 1324, 3]"] - 108["Sweep Extrusion
[1454, 1492, 3]"] - 109["Sweep Extrusion
[1454, 1492, 3]"] - 110["Sweep Extrusion
[1669, 1711, 3]"] - 111["Sweep Extrusion
[1669, 1711, 3]"] + 22["StartSketchOnFace
[1164, 1203, 3]"] + 102["Sweep Extrusion
[505, 538, 2]"] + 103["Sweep Extrusion
[697, 731, 2]"] + 104["Sweep Extrusion
[1032, 1069, 3]"] + 105["Sweep Extrusion
[1032, 1069, 3]"] + 106["Sweep Extrusion
[1275, 1309, 3]"] + 107["Sweep Extrusion
[1275, 1309, 3]"] + 108["Sweep Extrusion
[1436, 1471, 3]"] + 109["Sweep Extrusion
[1436, 1471, 3]"] + 110["Sweep Extrusion
[1645, 1684, 3]"] + 111["Sweep Extrusion
[1645, 1684, 3]"] 112["Sweep Extrusion
[489, 522, 4]"] - 113["Sweep Extrusion
[679, 716, 4]"] + 113["Sweep Extrusion
[679, 713, 4]"] 114["Sweep Extrusion
[535, 568, 5]"] 115["Sweep Extrusion
[1199, 1239, 5]"] 116["Sweep Extrusion
[1407, 1435, 5]"] 117["Sweep Extrusion
[844, 877, 6]"] - 118["Sweep Extrusion
[1045, 1082, 6]"] - 119["Sweep Extrusion
[409, 440, 7]"] - 120["Sweep Extrusion
[409, 440, 7]"] - 121["Sweep Extrusion
[608, 640, 7]"] - 122["Sweep Extrusion
[608, 640, 7]"] + 118["Sweep Extrusion
[1045, 1079, 6]"] + 119["Sweep Extrusion
[406, 434, 7]"] + 120["Sweep Extrusion
[406, 434, 7]"] + 121["Sweep Extrusion
[602, 631, 7]"] + 122["Sweep Extrusion
[602, 631, 7]"] 123[Wall] %% face_code_ref=Missing NodePath 124[Wall] diff --git a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md index d17484575..04421ca93 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/pipe/artifact_graph_flowchart.snap.md @@ -1,26 +1,26 @@ ```mermaid flowchart LR subgraph path3 [Path] - 3["Path
[259, 317, 0]"] + 3["Path
[259, 314, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 5["Segment
[259, 317, 0]"] + 5["Segment
[259, 314, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 8[Solid2d] end subgraph path4 [Path] - 4["Path
[453, 508, 0]"] + 4["Path
[447, 502, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 6["Segment
[453, 508, 0]"] + 6["Segment
[447, 502, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 7[Solid2d] end 1["Plane
[236, 253, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 2["StartSketchOnFace
[412, 447, 0]"] + 2["StartSketchOnFace
[406, 441, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 9["Sweep Extrusion
[323, 354, 0]"] + 9["Sweep Extrusion
[320, 348, 0]"] %% [ProgramBodyItem { index: 3 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 10["Sweep Extrusion
[514, 546, 0]"] + 10["Sweep Extrusion
[508, 537, 0]"] %% [ProgramBodyItem { index: 4 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] 11[Wall] %% face_code_ref=Missing NodePath diff --git a/rust/kcl-lib/tests/kcl_samples/pipe/ast.snap b/rust/kcl-lib/tests/kcl_samples/pipe/ast.snap index 2cfd4ff4c..c14b06ece 100644 --- a/rust/kcl-lib/tests/kcl_samples/pipe/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/pipe/ast.snap @@ -271,13 +271,7 @@ description: Result of parsing pipe.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -328,13 +322,7 @@ description: Result of parsing pipe.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -626,13 +614,7 @@ description: Result of parsing pipe.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ diff --git a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md index 430456459..87ffc3469 100644 --- a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/artifact_graph_flowchart.snap.md @@ -103,59 +103,59 @@ flowchart LR 78[Solid2d] end subgraph path17 [Path] - 17["Path
[3998, 4023, 0]"] + 17["Path
[3995, 4020, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 56["Segment
[4029, 4048, 0]"] + 56["Segment
[4026, 4045, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 57["Segment
[4054, 4091, 0]"] + 57["Segment
[4051, 4088, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 58["Segment
[4097, 4134, 0]"] + 58["Segment
[4094, 4131, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 59["Segment
[4140, 4158, 0]"] + 59["Segment
[4137, 4155, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 60["Segment
[4164, 4202, 0]"] + 60["Segment
[4161, 4199, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] - 61["Segment
[4208, 4273, 0]"] + 61["Segment
[4205, 4270, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 62["Segment
[4279, 4286, 0]"] + 62["Segment
[4276, 4283, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 81[Solid2d] end subgraph path18 [Path] - 18["Path
[4515, 4543, 0]"] + 18["Path
[4512, 4540, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 63["Segment
[4549, 4568, 0]"] + 63["Segment
[4546, 4565, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 64["Segment
[4574, 4592, 0]"] + 64["Segment
[4571, 4589, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 65["Segment
[4598, 4639, 0]"] + 65["Segment
[4595, 4636, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 66["Segment
[4645, 4666, 0]"] + 66["Segment
[4642, 4663, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 67["Segment
[4672, 4692, 0]"] + 67["Segment
[4669, 4689, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] - 68["Segment
[4698, 4763, 0]"] + 68["Segment
[4695, 4760, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 69["Segment
[4769, 4776, 0]"] + 69["Segment
[4766, 4773, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 82[Solid2d] end subgraph path19 [Path] - 19["Path
[4999, 5029, 0]"] + 19["Path
[4996, 5026, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 70["Segment
[5035, 5052, 0]"] + 70["Segment
[5032, 5049, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 71["Segment
[5058, 5076, 0]"] + 71["Segment
[5055, 5073, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 72["Segment
[5082, 5120, 0]"] + 72["Segment
[5079, 5117, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 73["Segment
[5126, 5152, 0]"] + 73["Segment
[5123, 5149, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 74["Segment
[5158, 5177, 0]"] + 74["Segment
[5155, 5174, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] - 75["Segment
[5183, 5248, 0]"] + 75["Segment
[5180, 5245, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 76["Segment
[5254, 5261, 0]"] + 76["Segment
[5251, 5258, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 8 }] 83[Solid2d] end @@ -171,25 +171,25 @@ flowchart LR %% [ProgramBodyItem { index: 23 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["Plane
[3144, 3167, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 7["Plane
[3975, 3992, 0]"] + 7["Plane
[3972, 3989, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 8["Plane
[4492, 4509, 0]"] + 8["Plane
[4489, 4506, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 9["Plane
[4976, 4993, 0]"] + 9["Plane
[4973, 4990, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 10["StartSketchOnPlane
[767, 810, 0]"] %% [ProgramBodyItem { index: 5 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 86["Sweep Extrusion
[3616, 3638, 0]"] + 86["Sweep Extrusion
[3616, 3635, 0]"] %% [ProgramBodyItem { index: 30 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 87["Sweep Loft
[3698, 3786, 0]"] + 87["Sweep Loft
[3695, 3783, 0]"] %% [ProgramBodyItem { index: 31 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 88["Sweep Loft
[3827, 3902, 0]"] + 88["Sweep Loft
[3824, 3899, 0]"] %% [ProgramBodyItem { index: 32 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 89["Sweep Revolve
[4292, 4322, 0]"] + 89["Sweep Revolve
[4289, 4319, 0]"] %% [ProgramBodyItem { index: 33 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] - 90["Sweep Revolve
[4782, 4812, 0]"] + 90["Sweep Revolve
[4779, 4809, 0]"] %% [ProgramBodyItem { index: 34 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] - 91["Sweep Revolve
[5267, 5297, 0]"] + 91["Sweep Revolve
[5264, 5294, 0]"] %% [ProgramBodyItem { index: 35 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 9 }] 92[Wall] %% face_code_ref=Missing NodePath diff --git a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ast.snap b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ast.snap index 65efbca90..54dff10a9 100644 --- a/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/prosthetic-hip/ast.snap @@ -6387,13 +6387,7 @@ description: Result of parsing prosthetic-hip.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, diff --git a/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/artifact_graph_flowchart.snap.md index 14423dc23..566a5a944 100644 --- a/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/shepherds-hook-bolt/artifact_graph_flowchart.snap.md @@ -112,8 +112,8 @@ flowchart LR 8 --- 20 8 ---- 25 12 <--x 32 - 12 <--x 33 - 12 --- 34 + 12 --- 33 + 12 <--x 34 13 --- 31 13 x--> 35 13 --- 39 diff --git a/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/artifact_graph_flowchart.snap.md index f6665ddfe..c91ed8950 100644 --- a/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/artifact_graph_flowchart.snap.md @@ -1,92 +1,92 @@ ```mermaid flowchart LR subgraph path9 [Path] - 9["Path
[973, 1019, 0]"] + 9["Path
[973, 1016, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 18["Segment
[1027, 1052, 0]"] + 18["Segment
[1024, 1046, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 19["Segment
[1060, 1085, 0]"] + 19["Segment
[1054, 1076, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 26["Segment
[1093, 1119, 0]"] + 26["Segment
[1084, 1107, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 29["Segment
[1127, 1183, 0]"] + 29["Segment
[1115, 1171, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 33["Segment
[1191, 1199, 0]"] + 33["Segment
[1179, 1187, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 46[Solid2d] end subgraph path10 [Path] - 10["Path
[973, 1019, 0]"] + 10["Path
[973, 1016, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 17["Segment
[1027, 1052, 0]"] + 17["Segment
[1024, 1046, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 21["Segment
[1060, 1085, 0]"] + 21["Segment
[1054, 1076, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 23["Segment
[1093, 1119, 0]"] + 23["Segment
[1084, 1107, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 30["Segment
[1127, 1183, 0]"] + 30["Segment
[1115, 1171, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 32["Segment
[1191, 1199, 0]"] + 32["Segment
[1179, 1187, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 47[Solid2d] end subgraph path11 [Path] - 11["Path
[973, 1019, 0]"] + 11["Path
[973, 1016, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 15["Segment
[1027, 1052, 0]"] + 15["Segment
[1024, 1046, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 20["Segment
[1060, 1085, 0]"] + 20["Segment
[1054, 1076, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 24["Segment
[1093, 1119, 0]"] + 24["Segment
[1084, 1107, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 28["Segment
[1127, 1183, 0]"] + 28["Segment
[1115, 1171, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 31["Segment
[1191, 1199, 0]"] + 31["Segment
[1179, 1187, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 48[Solid2d] end subgraph path12 [Path] - 12["Path
[973, 1019, 0]"] + 12["Path
[973, 1016, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 16["Segment
[1027, 1052, 0]"] + 16["Segment
[1024, 1046, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 22["Segment
[1060, 1085, 0]"] + 22["Segment
[1054, 1076, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 25["Segment
[1093, 1119, 0]"] + 25["Segment
[1084, 1107, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 27["Segment
[1127, 1183, 0]"] + 27["Segment
[1115, 1171, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 34["Segment
[1191, 1199, 0]"] + 34["Segment
[1179, 1187, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 50[Solid2d] end subgraph path13 [Path] - 13["Path
[2227, 2279, 0]"] + 13["Path
[2209, 2258, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 35["Segment
[2285, 2318, 0]"] + 35["Segment
[2264, 2294, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 36["Segment
[2324, 2357, 0]"] + 36["Segment
[2300, 2330, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 37["Segment
[2363, 2397, 0]"] + 37["Segment
[2336, 2367, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 38["Segment
[2403, 2459, 0]"] + 38["Segment
[2373, 2429, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 39["Segment
[2465, 2473, 0]"] + 39["Segment
[2435, 2443, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 49[Solid2d] end subgraph path14 [Path] - 14["Path
[2803, 2858, 0]"] + 14["Path
[2770, 2822, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 40["Segment
[2864, 2893, 0]"] + 40["Segment
[2828, 2854, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 41["Segment
[2899, 2929, 0]"] + 41["Segment
[2860, 2887, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 42["Segment
[2935, 2969, 0]"] + 42["Segment
[2893, 2924, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 43["Segment
[2975, 3031, 0]"] + 43["Segment
[2930, 2986, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 44["Segment
[3037, 3045, 0]"] + 44["Segment
[2992, 3000, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 6 }] 45[Solid2d] end @@ -94,29 +94,29 @@ flowchart LR %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 2["Plane
[945, 965, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 3["Plane
[1713, 1753, 0]"] + 3["Plane
[1698, 1738, 0]"] %% [ProgramBodyItem { index: 21 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwArg { index: 0 }] - 4["Plane
[1937, 1990, 0]"] + 4["Plane
[1919, 1972, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwArg { index: 0 }] - 5["Plane
[2780, 2797, 0]"] + 5["Plane
[2747, 2764, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 6["StartSketchOnPlane
[945, 965, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 7["StartSketchOnPlane
[945, 965, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 8["StartSketchOnFace
[2171, 2221, 0]"] + 8["StartSketchOnFace
[2153, 2203, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 51["Sweep Extrusion
[1209, 1240, 0]"] + 51["Sweep Extrusion
[1197, 1228, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 52["Sweep Extrusion
[1209, 1240, 0]"] + 52["Sweep Extrusion
[1197, 1228, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 53["Sweep Extrusion
[1209, 1240, 0]"] + 53["Sweep Extrusion
[1197, 1228, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 54["Sweep Extrusion
[1209, 1240, 0]"] + 54["Sweep Extrusion
[1197, 1228, 0]"] %% [ProgramBodyItem { index: 16 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 1 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 55["Sweep Extrusion
[2545, 2593, 0]"] + 55["Sweep Extrusion
[2515, 2563, 0]"] %% [ProgramBodyItem { index: 26 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 56["Sweep Extrusion
[3051, 3082, 0]"] + 56["Sweep Extrusion
[3006, 3034, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 57[Wall] %% face_code_ref=Missing NodePath diff --git a/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ast.snap b/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ast.snap index 454cbefdf..0662b7ace 100644 --- a/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/spinning-highrise-tower/ast.snap @@ -948,13 +948,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -1026,13 +1020,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -1104,13 +1092,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -1190,13 +1172,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -1947,13 +1923,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -2243,13 +2213,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -2831,13 +2795,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -2909,13 +2867,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -2987,13 +2939,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3073,13 +3019,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3453,13 +3393,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -3743,13 +3677,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3821,13 +3749,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3899,13 +3821,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -3993,13 +3909,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -4181,13 +4091,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, @@ -4516,13 +4420,7 @@ description: Result of parsing spinning-highrise-tower.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null } ], "commentStart": 0, diff --git a/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/artifact_graph_flowchart.snap.md index 2d4c9027d..f9f212b57 100644 --- a/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/artifact_graph_flowchart.snap.md @@ -1,7 +1,7 @@ ```mermaid flowchart LR subgraph path3 [Path] - 3["Path
[1364, 1426, 0]"] + 3["Path
[1364, 1423, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 6["Segment
[922, 950, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] @@ -13,16 +13,16 @@ flowchart LR %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 13["Segment
[1228, 1256, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 15["Segment
[1453, 1489, 0]"] + 15["Segment
[1450, 1486, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 16["Segment
[1495, 1524, 0]"] + 16["Segment
[1492, 1521, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 17["Segment
[1530, 1538, 0]"] + 17["Segment
[1527, 1535, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 21[Solid2d] end subgraph path4 [Path] - 4["Path
[1640, 1766, 0]"] + 4["Path
[1637, 1763, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 5["Segment
[922, 950, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] @@ -34,21 +34,21 @@ flowchart LR %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] 14["Segment
[1228, 1256, 0]"] %% [ProgramBodyItem { index: 11 }, VariableDeclarationDeclaration, VariableDeclarationInit, FunctionExpressionBody, FunctionExpressionBodyItem { index: 0 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] - 18["Segment
[1793, 1842, 0]"] + 18["Segment
[1790, 1839, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 19["Segment
[1848, 1877, 0]"] + 19["Segment
[1845, 1874, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 20["Segment
[1883, 1891, 0]"] + 20["Segment
[1880, 1888, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 22[Solid2d] end 1["Plane
[1341, 1358, 0]"] %% [ProgramBodyItem { index: 12 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 2["Plane
[1617, 1634, 0]"] + 2["Plane
[1614, 1631, 0]"] %% [ProgramBodyItem { index: 13 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 23["Sweep Extrusion
[1989, 2047, 0]"] + 23["Sweep Extrusion
[1986, 2044, 0]"] %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 24["Sweep Extrusion
[1989, 2047, 0]"] + 24["Sweep Extrusion
[1986, 2044, 0]"] %% [ProgramBodyItem { index: 14 }, VariableDeclarationDeclaration, VariableDeclarationInit] 25[Wall] %% face_code_ref=Missing NodePath diff --git a/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ast.snap b/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ast.snap index c0a92b23c..dfb47a69d 100644 --- a/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/thermal-block-insert/ast.snap @@ -1389,13 +1389,7 @@ description: Result of parsing thermal-block-insert.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "callee": { diff --git a/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md index d24a5db2e..897bc5099 100644 --- a/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/kcl_samples/utility-sink/artifact_graph_flowchart.snap.md @@ -136,81 +136,81 @@ flowchart LR 111[Solid2d] end subgraph path34 [Path] - 34["Path
[5487, 5553, 0]"] + 34["Path
[5487, 5550, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 87["Segment
[5487, 5553, 0]"] + 87["Segment
[5487, 5550, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 120[Solid2d] end subgraph path35 [Path] - 35["Path
[5732, 5798, 0]"] + 35["Path
[5729, 5792, 0]"] %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 88["Segment
[5732, 5798, 0]"] + 88["Segment
[5729, 5792, 0]"] %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 117[Solid2d] end subgraph path36 [Path] - 36["Path
[5981, 6049, 0]"] + 36["Path
[5975, 6040, 0]"] %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 89["Segment
[5981, 6049, 0]"] + 89["Segment
[5975, 6040, 0]"] %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 118[Solid2d] end subgraph path37 [Path] - 37["Path
[6246, 6313, 0]"] + 37["Path
[6237, 6301, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 90["Segment
[6246, 6313, 0]"] + 90["Segment
[6237, 6301, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] 116[Solid2d] end subgraph path38 [Path] - 38["Path
[6837, 6881, 0]"] + 38["Path
[6825, 6869, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 91["Segment
[6887, 6919, 0]"] + 91["Segment
[6875, 6907, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 92["Segment
[6925, 6950, 0]"] + 92["Segment
[6913, 6938, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 93["Segment
[6956, 6989, 0]"] + 93["Segment
[6944, 6977, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 94["Segment
[6995, 7051, 0]"] + 94["Segment
[6983, 7039, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 95["Segment
[7057, 7064, 0]"] + 95["Segment
[7045, 7052, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 109[Solid2d] end subgraph path39 [Path] - 39["Path
[7467, 7511, 0]"] + 39["Path
[7455, 7499, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 96["Segment
[7517, 7543, 0]"] + 96["Segment
[7505, 7531, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 97["Segment
[7549, 7581, 0]"] + 97["Segment
[7537, 7569, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 98["Segment
[7587, 7614, 0]"] + 98["Segment
[7575, 7602, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 99["Segment
[7620, 7676, 0]"] + 99["Segment
[7608, 7664, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 100["Segment
[7682, 7689, 0]"] + 100["Segment
[7670, 7677, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] 122[Solid2d] end subgraph path40 [Path] - 40["Path
[8166, 8219, 0]"] + 40["Path
[8154, 8207, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 101["Segment
[8225, 8262, 0]"] + 101["Segment
[8213, 8250, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 1 }] - 102["Segment
[8268, 8361, 0]"] + 102["Segment
[8256, 8349, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 2 }] - 103["Segment
[8367, 8403, 0]"] + 103["Segment
[8355, 8391, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 104["Segment
[8409, 8510, 0]"] + 104["Segment
[8397, 8498, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 4 }] - 105["Segment
[8516, 8552, 0]"] + 105["Segment
[8504, 8540, 0]"] %% [ProgramBodyItem { index: 66 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 5 }] end subgraph path41 [Path] - 41["Path
[8615, 8726, 0]"] + 41["Path
[8603, 8714, 0]"] %% [ProgramBodyItem { index: 68 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 106["Segment
[8615, 8726, 0]"] + 106["Segment
[8603, 8714, 0]"] %% [ProgramBodyItem { index: 68 }, VariableDeclarationDeclaration, VariableDeclarationInit] 108[Solid2d] end @@ -226,33 +226,33 @@ flowchart LR %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] 6["Plane
[5443, 5480, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 7["Plane
[5688, 5725, 0]"] + 7["Plane
[5685, 5722, 0]"] %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 8["Plane
[5933, 5974, 0]"] + 8["Plane
[5927, 5968, 0]"] %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 9["Plane
[6198, 6239, 0]"] + 9["Plane
[6189, 6230, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }, CallKwUnlabeledArg] - 10["Plane
[6775, 6824, 0]"] + 10["Plane
[6763, 6812, 0]"] %% [ProgramBodyItem { index: 52 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] - 11["Plane
[8092, 8143, 0]"] + 11["Plane
[8080, 8131, 0]"] %% [ProgramBodyItem { index: 65 }, VariableDeclarationDeclaration, VariableDeclarationInit, CallKwUnlabeledArg] - 12["Plane
[8574, 8591, 0]"] + 12["Plane
[8562, 8579, 0]"] %% [ProgramBodyItem { index: 67 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 13["StartSketchOnPlane
[6761, 6825, 0]"] + 13["StartSketchOnPlane
[6749, 6813, 0]"] %% [ProgramBodyItem { index: 52 }, VariableDeclarationDeclaration, VariableDeclarationInit] 14["StartSketchOnPlane
[2317, 2383, 0]"] %% [ProgramBodyItem { index: 22 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 15["StartSketchOnPlane
[5919, 5975, 0]"] + 15["StartSketchOnPlane
[5913, 5969, 0]"] %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 16["StartSketchOnPlane
[6184, 6240, 0]"] + 16["StartSketchOnPlane
[6175, 6231, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 17["StartSketchOnPlane
[2956, 3008, 0]"] %% [ProgramBodyItem { index: 25 }, VariableDeclarationDeclaration, VariableDeclarationInit] 18["StartSketchOnPlane
[3841, 3893, 0]"] %% [ProgramBodyItem { index: 29 }, VariableDeclarationDeclaration, VariableDeclarationInit] - 19["StartSketchOnPlane
[5674, 5726, 0]"] + 19["StartSketchOnPlane
[5671, 5723, 0]"] %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] - 20["StartSketchOnPlane
[8078, 8144, 0]"] + 20["StartSketchOnPlane
[8066, 8132, 0]"] %% [ProgramBodyItem { index: 65 }, VariableDeclarationDeclaration, VariableDeclarationInit] 21["StartSketchOnPlane
[1237, 1306, 0]"] %% [ProgramBodyItem { index: 17 }, VariableDeclarationDeclaration, VariableDeclarationInit] @@ -296,23 +296,23 @@ flowchart LR %% [ProgramBodyItem { index: 39 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] 139["Sweep Extrusion
[5381, 5409, 0]"] %% [ProgramBodyItem { index: 41 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 140["Sweep Extrusion
[5642, 5661, 0]"] + 140["Sweep Extrusion
[5639, 5658, 0]"] %% [ProgramBodyItem { index: 42 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 141["Sweep Extrusion
[5887, 5908, 0]"] + 141["Sweep Extrusion
[5881, 5902, 0]"] %% [ProgramBodyItem { index: 43 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 142["Sweep Extrusion
[6138, 6171, 0]"] + 142["Sweep Extrusion
[6129, 6162, 0]"] %% [ProgramBodyItem { index: 44 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 143["Sweep Extrusion
[6402, 6422, 0]"] + 143["Sweep Extrusion
[6390, 6410, 0]"] %% [ProgramBodyItem { index: 45 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 3 }] - 144["Sweep Extrusion
[7163, 7191, 0]"] + 144["Sweep Extrusion
[7151, 7179, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 145["Sweep Extrusion
[7163, 7191, 0]"] + 145["Sweep Extrusion
[7151, 7179, 0]"] %% [ProgramBodyItem { index: 53 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 146["Sweep Extrusion
[7771, 7799, 0]"] + 146["Sweep Extrusion
[7759, 7787, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 147["Sweep Extrusion
[7771, 7799, 0]"] + 147["Sweep Extrusion
[7759, 7787, 0]"] %% [ProgramBodyItem { index: 57 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 7 }] - 148["Sweep Sweep
[8740, 8793, 0]"] + 148["Sweep Sweep
[8728, 8781, 0]"] %% [ProgramBodyItem { index: 69 }, VariableDeclarationDeclaration, VariableDeclarationInit, PipeBodyItem { index: 0 }] 149[Wall] %% face_code_ref=Missing NodePath @@ -889,7 +889,7 @@ flowchart LR 99 --- 265 99 --- 314 106 --- 181 - 106 x--> 213 + 106 x--> 212 106 --- 260 106 --- 309 126 --- 194 @@ -1227,7 +1227,7 @@ flowchart LR 251 <--x 209 252 <--x 209 253 <--x 209 - 260 <--x 212 + 260 <--x 213 261 <--x 214 262 <--x 214 263 <--x 214 diff --git a/rust/kcl-lib/tests/kcl_samples/utility-sink/ast.snap b/rust/kcl-lib/tests/kcl_samples/utility-sink/ast.snap index 964d9de00..781a99f0f 100644 --- a/rust/kcl-lib/tests/kcl_samples/utility-sink/ast.snap +++ b/rust/kcl-lib/tests/kcl_samples/utility-sink/ast.snap @@ -8079,13 +8079,7 @@ description: Result of parsing utility-sink.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -8508,13 +8502,7 @@ description: Result of parsing utility-sink.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -8957,13 +8945,7 @@ description: Result of parsing utility-sink.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ @@ -9430,13 +9412,7 @@ description: Result of parsing utility-sink.kcl "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", - "unlabeled": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } + "unlabeled": null }, { "arguments": [ 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 18a34d945..e8edeab26 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 @@ -9,32 +9,32 @@ flowchart LR 149[Solid2d] end subgraph path19 [Path] - 19["Path
[986, 1103, 2]"] - 42["Segment
[1109, 1167, 2]"] - 43["Segment
[1173, 1290, 2]"] - 44["Segment
[1296, 1354, 2]"] - 45["Segment
[1360, 1480, 2]"] - 46["Segment
[1486, 1547, 2]"] - 47["Segment
[1553, 1674, 2]"] - 48["Segment
[1680, 1740, 2]"] - 49["Segment
[1746, 1753, 2]"] + 19["Path
[983, 1100, 2]"] + 42["Segment
[1106, 1164, 2]"] + 43["Segment
[1170, 1287, 2]"] + 44["Segment
[1293, 1351, 2]"] + 45["Segment
[1357, 1477, 2]"] + 46["Segment
[1483, 1544, 2]"] + 47["Segment
[1550, 1671, 2]"] + 48["Segment
[1677, 1737, 2]"] + 49["Segment
[1743, 1750, 2]"] 137[Solid2d] end subgraph path20 [Path] - 20["Path
[1908, 1962, 2]"] - 50["Segment
[1968, 2009, 2]"] - 51["Segment
[2015, 2044, 2]"] - 52["Segment
[2050, 2080, 2]"] - 53["Segment
[2086, 2142, 2]"] - 54["Segment
[2148, 2155, 2]"] + 20["Path
[1905, 1959, 2]"] + 50["Segment
[1965, 2006, 2]"] + 51["Segment
[2012, 2041, 2]"] + 52["Segment
[2047, 2077, 2]"] + 53["Segment
[2083, 2139, 2]"] + 54["Segment
[2145, 2152, 2]"] 148[Solid2d] end subgraph path21 [Path] - 21["Path
[2298, 2335, 2]"] - 55["Segment
[2341, 2372, 2]"] - 56["Segment
[2378, 2411, 2]"] - 57["Segment
[2417, 2449, 2]"] - 58["Segment
[2455, 2462, 2]"] + 21["Path
[2295, 2332, 2]"] + 55["Segment
[2338, 2369, 2]"] + 56["Segment
[2375, 2408, 2]"] + 57["Segment
[2414, 2446, 2]"] + 58["Segment
[2452, 2459, 2]"] 138[Solid2d] end subgraph path22 [Path] @@ -192,14 +192,14 @@ flowchart LR 15["Plane
[391, 408, 8]"] 16["Plane
[391, 408, 8]"] 17["Plane
[391, 408, 8]"] - 153["Sweep Extrusion
[621, 651, 2]"] - 154["Sweep Extrusion
[1767, 1810, 2]"] - 155["Sweep Extrusion
[2169, 2212, 2]"] - 156["Sweep Extrusion
[2464, 2497, 2]"] + 153["Sweep Extrusion
[621, 648, 2]"] + 154["Sweep Extrusion
[1764, 1807, 2]"] + 155["Sweep Extrusion
[2166, 2209, 2]"] + 156["Sweep Extrusion
[2461, 2494, 2]"] 157["Sweep Extrusion
[3037, 3068, 3]"] 158["Sweep Loft
[994, 1037, 5]"] 159["Sweep Extrusion
[609, 661, 6]"] - 160["Sweep Extrusion
[406, 437, 7]"] + 160["Sweep Extrusion
[406, 434, 7]"] 161["Sweep Extrusion
[652, 699, 8]"] 162["Sweep Extrusion
[652, 699, 8]"] 163["Sweep Extrusion
[652, 699, 8]"] @@ -458,15 +458,15 @@ flowchart LR 342["SweepEdge Adjacent"] 343["SweepEdge Adjacent"] 344["SweepEdge Adjacent"] - 345["EdgeCut Chamfer
[657, 888, 2]"] - 346["EdgeCut Chamfer
[657, 888, 2]"] - 347["EdgeCut Chamfer
[657, 888, 2]"] - 348["EdgeCut Chamfer
[657, 888, 2]"] + 345["EdgeCut Chamfer
[654, 885, 2]"] + 346["EdgeCut Chamfer
[654, 885, 2]"] + 347["EdgeCut Chamfer
[654, 885, 2]"] + 348["EdgeCut Chamfer
[654, 885, 2]"] 349["EdgeCut Fillet
[667, 873, 6]"] 350["EdgeCut Fillet
[667, 873, 6]"] 351["EdgeCut Fillet
[667, 873, 6]"] 352["EdgeCut Fillet
[667, 873, 6]"] - 353["EdgeCut Fillet
[443, 512, 7]"] + 353["EdgeCut Fillet
[440, 509, 7]"] 354["EdgeCut Chamfer
[707, 853, 8]"] 355["EdgeCut Chamfer
[707, 853, 8]"] 356["EdgeCut Chamfer
[707, 853, 8]"] diff --git a/rust/kcl-lib/tests/subtract_regression08/artifact_graph_flowchart.snap.md b/rust/kcl-lib/tests/subtract_regression08/artifact_graph_flowchart.snap.md index e4de2e966..33dcb9388 100644 --- a/rust/kcl-lib/tests/subtract_regression08/artifact_graph_flowchart.snap.md +++ b/rust/kcl-lib/tests/subtract_regression08/artifact_graph_flowchart.snap.md @@ -87,11 +87,11 @@ flowchart LR 8 ---- 20 8 --- 21 12 <--x 22 - 12 --- 23 - 12 <--x 24 + 12 <--x 23 + 12 --- 24 16 <--x 25 - 16 <--x 26 - 16 --- 27 + 16 --- 26 + 16 <--x 27 19 --- 22 19 --- 23 19 --- 24