---
source: kcl/src/simulation_tests.rs
description: Result of parsing basic_fillet_cube_close_opposite.kcl
---
{
  "Ok": {
    "body": [
      {
        "declaration": {
          "end": 309,
          "id": {
            "end": 7,
            "name": "part001",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "body": [
              {
                "arguments": [
                  {
                    "end": 28,
                    "raw": "'XY'",
                    "start": 24,
                    "type": "Literal",
                    "type": "Literal",
                    "value": "XY"
                  }
                ],
                "callee": {
                  "end": 23,
                  "name": "startSketchOn",
                  "start": 10,
                  "type": "Identifier"
                },
                "end": 29,
                "start": 10,
                "type": "CallExpression",
                "type": "CallExpression"
              },
              {
                "arguments": [
                  {
                    "elements": [
                      {
                        "end": 52,
                        "raw": "0",
                        "start": 51,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 0.0,
                          "suffix": "None"
                        }
                      },
                      {
                        "end": 55,
                        "raw": "0",
                        "start": 54,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 0.0,
                          "suffix": "None"
                        }
                      }
                    ],
                    "end": 56,
                    "start": 50,
                    "type": "ArrayExpression",
                    "type": "ArrayExpression"
                  },
                  {
                    "end": 59,
                    "start": 58,
                    "type": "PipeSubstitution",
                    "type": "PipeSubstitution"
                  }
                ],
                "callee": {
                  "end": 49,
                  "name": "startProfileAt",
                  "start": 35,
                  "type": "Identifier"
                },
                "end": 60,
                "start": 35,
                "type": "CallExpression",
                "type": "CallExpression"
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 79,
                          "raw": "0",
                          "start": 78,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "end": 83,
                          "raw": "10",
                          "start": 81,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 10.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 84,
                      "start": 77,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "tag"
                    },
                    "arg": {
                      "end": 98,
                      "start": 92,
                      "type": "TagDeclarator",
                      "type": "TagDeclarator",
                      "value": "thing"
                    }
                  }
                ],
                "callee": {
                  "end": 70,
                  "name": "line",
                  "start": 66,
                  "type": "Identifier"
                },
                "end": 99,
                "start": 66,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 119,
                          "raw": "10",
                          "start": 117,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 10.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "end": 122,
                          "raw": "0",
                          "start": 121,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        }
                      ],
                      "end": 123,
                      "start": 116,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  }
                ],
                "callee": {
                  "end": 109,
                  "name": "line",
                  "start": 105,
                  "type": "Identifier"
                },
                "end": 124,
                "start": 105,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "end"
                    },
                    "arg": {
                      "elements": [
                        {
                          "end": 143,
                          "raw": "0",
                          "start": 142,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 0.0,
                            "suffix": "None"
                          }
                        },
                        {
                          "argument": {
                            "end": 148,
                            "raw": "10",
                            "start": 146,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 10.0,
                              "suffix": "None"
                            }
                          },
                          "end": 148,
                          "operator": "-",
                          "start": 145,
                          "type": "UnaryExpression",
                          "type": "UnaryExpression"
                        }
                      ],
                      "end": 149,
                      "start": 141,
                      "type": "ArrayExpression",
                      "type": "ArrayExpression"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "tag"
                    },
                    "arg": {
                      "end": 164,
                      "start": 157,
                      "type": "TagDeclarator",
                      "type": "TagDeclarator",
                      "value": "thing2"
                    }
                  }
                ],
                "callee": {
                  "end": 134,
                  "name": "line",
                  "start": 130,
                  "type": "Identifier"
                },
                "end": 165,
                "start": 130,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "tag"
                    },
                    "arg": {
                      "end": 190,
                      "start": 183,
                      "type": "TagDeclarator",
                      "type": "TagDeclarator",
                      "value": "thing3"
                    }
                  }
                ],
                "callee": {
                  "end": 176,
                  "name": "close",
                  "start": 171,
                  "type": "Identifier"
                },
                "end": 191,
                "start": 171,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "type": "Identifier",
                      "name": "length"
                    },
                    "arg": {
                      "end": 216,
                      "raw": "10",
                      "start": 214,
                      "type": "Literal",
                      "type": "Literal",
                      "value": {
                        "value": 10.0,
                        "suffix": "None"
                      }
                    }
                  }
                ],
                "callee": {
                  "end": 204,
                  "name": "extrude",
                  "start": 197,
                  "type": "Identifier"
                },
                "end": 217,
                "start": 197,
                "type": "CallExpressionKw",
                "type": "CallExpressionKw",
                "unlabeled": null
              },
              {
                "arguments": [
                  {
                    "end": 305,
                    "properties": [
                      {
                        "end": 249,
                        "key": {
                          "end": 245,
                          "name": "radius",
                          "start": 239,
                          "type": "Identifier"
                        },
                        "start": 239,
                        "type": "ObjectProperty",
                        "value": {
                          "end": 249,
                          "raw": "2",
                          "start": 248,
                          "type": "Literal",
                          "type": "Literal",
                          "value": {
                            "value": 2.0,
                            "suffix": "None"
                          }
                        }
                      },
                      {
                        "end": 298,
                        "key": {
                          "end": 262,
                          "name": "tags",
                          "start": 258,
                          "type": "Identifier"
                        },
                        "start": 258,
                        "type": "ObjectProperty",
                        "value": {
                          "elements": [
                            {
                              "end": 272,
                              "name": "thing3",
                              "start": 266,
                              "type": "Identifier",
                              "type": "Identifier"
                            },
                            {
                              "arguments": [
                                {
                                  "end": 296,
                                  "name": "thing3",
                                  "start": 290,
                                  "type": "Identifier",
                                  "type": "Identifier"
                                }
                              ],
                              "callee": {
                                "end": 289,
                                "name": "getOppositeEdge",
                                "start": 274,
                                "type": "Identifier"
                              },
                              "end": 297,
                              "start": 274,
                              "type": "CallExpression",
                              "type": "CallExpression"
                            }
                          ],
                          "end": 298,
                          "start": 265,
                          "type": "ArrayExpression",
                          "type": "ArrayExpression"
                        }
                      }
                    ],
                    "start": 230,
                    "type": "ObjectExpression",
                    "type": "ObjectExpression"
                  },
                  {
                    "end": 308,
                    "start": 307,
                    "type": "PipeSubstitution",
                    "type": "PipeSubstitution"
                  }
                ],
                "callee": {
                  "end": 229,
                  "name": "fillet",
                  "start": 223,
                  "type": "Identifier"
                },
                "end": 309,
                "start": 223,
                "type": "CallExpression",
                "type": "CallExpression"
              }
            ],
            "end": 309,
            "start": 10,
            "type": "PipeExpression",
            "type": "PipeExpression"
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 309,
        "kind": "const",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      }
    ],
    "end": 310,
    "start": 0
  }
}
