Replace plane strings with literals (#6592)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[55, 80, 0]"]
|
||||
3["Segment<br>[88, 106, 0]"]
|
||||
4["Segment<br>[114, 132, 0]"]
|
||||
5["Segment<br>[140, 159, 0]"]
|
||||
6["Segment<br>[167, 175, 0]"]
|
||||
2["Path<br>[53, 78, 0]"]
|
||||
3["Segment<br>[86, 104, 0]"]
|
||||
4["Segment<br>[112, 130, 0]"]
|
||||
5["Segment<br>[138, 157, 0]"]
|
||||
6["Segment<br>[165, 173, 0]"]
|
||||
7[Solid2d]
|
||||
end
|
||||
1["Plane<br>[28, 47, 0]"]
|
||||
8["Sweep Extrusion<br>[183, 202, 0]"]
|
||||
1["Plane<br>[28, 45, 0]"]
|
||||
8["Sweep Extrusion<br>[181, 200, 0]"]
|
||||
9[Wall]
|
||||
10[Wall]
|
||||
11[Wall]
|
||||
|
||||
@ -37,13 +37,20 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"raw": "'XY'",
|
||||
"name": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": "XY",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "XY"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
fn box(h, l, w) {
|
||||
myBox = startSketchOn('XY')
|
||||
myBox = startSketchOn(XY)
|
||||
|> startProfile(at = [0, 0])
|
||||
|> line(end = [0, l])
|
||||
|> line(end = [w, 0])
|
||||
|
||||
@ -7,8 +7,8 @@ description: Operations executed function_sketch.kcl
|
||||
"labeledArgs": {
|
||||
"planeOrSolid": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user