---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing sketch_on_face.kcl
---
{
  "Ok": {
    "body": [
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "part001",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "body": [
              {
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "startSketchOn",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "XY",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name",
                  "type": "Name"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "at",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "11.19",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 11.19,
                            "suffix": "None"
                          }
                        },
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "28.35",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 28.35,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "startProfile",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "end",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "28.67",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 28.67,
                            "suffix": "None"
                          }
                        },
                        {
                          "argument": {
                            "commentStart": 0,
                            "end": 0,
                            "raw": "13.25",
                            "start": 0,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 13.25,
                              "suffix": "None"
                            }
                          },
                          "commentStart": 0,
                          "end": 0,
                          "operator": "-",
                          "start": 0,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "tag",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "start": 0,
                      "type": "TagDeclarator",
                      "type": "TagDeclarator",
                      "value": "here"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "line",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "end",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "argument": {
                            "commentStart": 0,
                            "end": 0,
                            "raw": "4.12",
                            "start": 0,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 4.12,
                              "suffix": "None"
                            }
                          },
                          "commentStart": 0,
                          "end": 0,
                          "operator": "-",
                          "start": 0,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        },
                        {
                          "argument": {
                            "commentStart": 0,
                            "end": 0,
                            "raw": "22.81",
                            "start": 0,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 22.81,
                              "suffix": "None"
                            }
                          },
                          "commentStart": 0,
                          "end": 0,
                          "operator": "-",
                          "start": 0,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "line",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "end",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "argument": {
                            "commentStart": 0,
                            "end": 0,
                            "raw": "33.24",
                            "start": 0,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 33.24,
                              "suffix": "None"
                            }
                          },
                          "commentStart": 0,
                          "end": 0,
                          "operator": "-",
                          "start": 0,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        },
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "14.55",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 14.55,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "line",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "close",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": {
                  "commentStart": 0,
                  "end": 0,
                  "start": 0,
                  "type": "PipeSubstitution",
                  "type": "PipeSubstitution"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "length",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "raw": "5",
                      "start": 0,
                      "type": "Literal",
                      "type": "Literal",
                      "value": {
                        "value": 5.0,
                        "suffix": "None"
                      }
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "extrude",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              }
            ],
            "commentStart": 0,
            "end": 0,
            "start": 0,
            "type": "PipeExpression",
            "type": "PipeExpression"
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "part002",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "body": [
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "face",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "here",
                        "start": 0,
                        "type": "Identifier"
                      },
                      "path": [],
                      "start": 0,
                      "type": "Name",
                      "type": "Name"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "startSketchOn",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "part001",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name",
                  "type": "Name"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "at",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "0",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "0",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "startProfile",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "end",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "0",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "10",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 10.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "line",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "end",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "10",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 10.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "0",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "line",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "end",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "raw": "0",
                          "start": 0,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "argument": {
                            "commentStart": 0,
                            "end": 0,
                            "raw": "10",
                            "start": 0,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 10.0,
                              "suffix": "None"
                            }
                          },
                          "commentStart": 0,
                          "end": 0,
                          "operator": "-",
                          "start": 0,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      ],
                      "end": 0,
                      "start": 0,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "line",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "close",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": {
                  "commentStart": 0,
                  "end": 0,
                  "start": 0,
                  "type": "PipeSubstitution",
                  "type": "PipeSubstitution"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "length",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "raw": "5",
                      "start": 0,
                      "type": "Literal",
                      "type": "Literal",
                      "value": {
                        "value": 5.0,
                        "suffix": "None"
                      }
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "extrude",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name"
                },
                "commentStart": 0,
                "end": 0,
                "start": 0,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              }
            ],
            "commentStart": 0,
            "end": 0,
            "start": 0,
            "type": "PipeExpression",
            "type": "PipeExpression"
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      }
    ],
    "commentStart": 0,
    "end": 0,
    "nonCodeMeta": {
      "nonCodeNodes": {
        "0": [
          {
            "commentStart": 0,
            "end": 0,
            "start": 0,
            "type": "NonCodeNode",
            "value": {
              "type": "newLine"
            }
          }
        ]
      },
      "startNodes": []
    },
    "start": 0
  }
}
