---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing flange.kcl
---
{
  "Ok": {
    "body": [
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "mountingHoleDia",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": ".625",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 0.625,
              "suffix": "None"
            }
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "preComments": [
          "// Define parameters"
        ],
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "baseDia",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "4.625",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 4.625,
              "suffix": "None"
            }
          },
          "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": "pipeDia",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "1.25",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 1.25,
              "suffix": "None"
            }
          },
          "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": "totalThickness",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "0.813",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 0.813,
              "suffix": "None"
            }
          },
          "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": "topTotalDiameter",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "2.313",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 2.313,
              "suffix": "None"
            }
          },
          "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": "bottomThickness",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "0.06",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 0.06,
              "suffix": "None"
            }
          },
          "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": "bottomTotalDiameter",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "2.5",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 2.5,
              "suffix": "None"
            }
          },
          "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": "mountingHolePlacementDiameter",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "3.5",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 3.5,
              "suffix": "None"
            }
          },
          "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": "baseThickness",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": ".625",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 0.625,
              "suffix": "None"
            }
          },
          "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": "topTotalThickness",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "left": {
              "abs_path": false,
              "commentStart": 0,
              "end": 0,
              "name": {
                "commentStart": 0,
                "end": 0,
                "name": "totalThickness",
                "start": 0,
                "type": "Identifier"
              },
              "path": [],
              "start": 0,
              "type": "Name",
              "type": "Name"
            },
            "operator": "-",
            "right": {
              "commentStart": 0,
              "end": 0,
              "left": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "bottomThickness",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              },
              "operator": "+",
              "right": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "baseThickness",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              },
              "start": 0,
              "type": "BinaryExpression",
              "type": "BinaryExpression"
            },
            "start": 0,
            "type": "BinaryExpression",
            "type": "BinaryExpression"
          },
          "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": "nHoles",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "4",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 4.0,
              "suffix": "None"
            }
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "isGreaterThan",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "1",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": {
                  "value": 1.0,
                  "suffix": "None"
                }
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "error",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "\"nHoles must be greater than 1\"",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "nHoles must be greater than 1"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "assert",
              "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": "nHoles",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name",
            "type": "Name"
          }
        },
        "preComments": [
          "",
          "",
          "// Add assertion so nHoles are always greater than 1"
        ],
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      },
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "circles",
            "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": "center",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "elements": [
                        {
                          "commentStart": 0,
                          "end": 0,
                          "left": {
                            "abs_path": false,
                            "commentStart": 0,
                            "end": 0,
                            "name": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "mountingHolePlacementDiameter",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "path": [],
                            "start": 0,
                            "type": "Name",
                            "type": "Name"
                          },
                          "operator": "/",
                          "right": {
                            "commentStart": 0,
                            "end": 0,
                            "raw": "2",
                            "start": 0,
                            "type": "Literal",
                            "type": "Literal",
                            "value": {
                              "value": 2.0,
                              "suffix": "None"
                            }
                          },
                          "start": 0,
                          "type": "BinaryExpression",
                          "type": "BinaryExpression"
                        },
                        {
                          "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"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "radius",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "left": {
                        "abs_path": false,
                        "commentStart": 0,
                        "end": 0,
                        "name": {
                          "commentStart": 0,
                          "end": 0,
                          "name": "mountingHoleDia",
                          "start": 0,
                          "type": "Identifier"
                        },
                        "path": [],
                        "start": 0,
                        "type": "Name",
                        "type": "Name"
                      },
                      "operator": "/",
                      "right": {
                        "commentStart": 0,
                        "end": 0,
                        "raw": "2",
                        "start": 0,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 2.0,
                          "suffix": "None"
                        }
                      },
                      "start": 0,
                      "type": "BinaryExpression",
                      "type": "BinaryExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "circle",
                    "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": "arcDegrees",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "raw": "360",
                      "start": 0,
                      "type": "Literal",
                      "type": "Literal",
                      "value": {
                        "value": 360.0,
                        "suffix": "None"
                      }
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "center",
                      "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"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "instances",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "nHoles",
                        "start": 0,
                        "type": "Identifier"
                      },
                      "path": [],
                      "start": 0,
                      "type": "Name",
                      "type": "Name"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "rotateDuplicates",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "raw": "true",
                      "start": 0,
                      "type": "Literal",
                      "type": "Literal",
                      "value": true
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "patternCircular2d",
                    "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,
            "nonCodeMeta": {
              "nonCodeNodes": {
                "2": [
                  {
                    "commentStart": 0,
                    "end": 0,
                    "start": 0,
                    "type": "NonCodeNode",
                    "value": {
                      "type": "newLineBlockComment",
                      "value": "Create the base of the flange and add the mounting holes",
                      "style": "line"
                    }
                  }
                ]
              },
              "startNodes": []
            },
            "start": 0,
            "type": "PipeExpression",
            "type": "PipeExpression"
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "preComments": [
          "",
          "",
          "// Create the circular pattern for the mounting holes"
        ],
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "flangeBase",
            "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": "center",
                      "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"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "radius",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "left": {
                        "abs_path": false,
                        "commentStart": 0,
                        "end": 0,
                        "name": {
                          "commentStart": 0,
                          "end": 0,
                          "name": "baseDia",
                          "start": 0,
                          "type": "Identifier"
                        },
                        "path": [],
                        "start": 0,
                        "type": "Name",
                        "type": "Name"
                      },
                      "operator": "/",
                      "right": {
                        "commentStart": 0,
                        "end": 0,
                        "raw": "2",
                        "start": 0,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 2.0,
                          "suffix": "None"
                        }
                      },
                      "start": 0,
                      "type": "BinaryExpression",
                      "type": "BinaryExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "circle",
                    "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": "tool",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "circles",
                        "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": "subtract2d",
                    "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": "length",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "baseThickness",
                        "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": "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,
            "nonCodeMeta": {
              "nonCodeNodes": {
                "3": [
                  {
                    "commentStart": 0,
                    "end": 0,
                    "start": 0,
                    "type": "NonCodeNode",
                    "value": {
                      "type": "newLineBlockComment",
                      "value": "Create the extrusion on the top of the flange base",
                      "style": "line"
                    }
                  }
                ]
              },
              "startNodes": []
            },
            "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": "topExtrusion",
            "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": "END",
                        "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": "flangeBase",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name",
                  "type": "Name"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "center",
                      "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"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "radius",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "left": {
                        "abs_path": false,
                        "commentStart": 0,
                        "end": 0,
                        "name": {
                          "commentStart": 0,
                          "end": 0,
                          "name": "topTotalDiameter",
                          "start": 0,
                          "type": "Identifier"
                        },
                        "path": [],
                        "start": 0,
                        "type": "Name",
                        "type": "Name"
                      },
                      "operator": "/",
                      "right": {
                        "commentStart": 0,
                        "end": 0,
                        "raw": "2",
                        "start": 0,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 2.0,
                          "suffix": "None"
                        }
                      },
                      "start": 0,
                      "type": "BinaryExpression",
                      "type": "BinaryExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "circle",
                    "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": "length",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "topTotalThickness",
                        "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": "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,
            "nonCodeMeta": {
              "nonCodeNodes": {
                "2": [
                  {
                    "commentStart": 0,
                    "end": 0,
                    "start": 0,
                    "type": "NonCodeNode",
                    "value": {
                      "type": "newLineBlockComment",
                      "value": "Create the extrusion on the bottom of the flange base",
                      "style": "line"
                    }
                  }
                ]
              },
              "startNodes": []
            },
            "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": "bottomExtrusion",
            "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": "START",
                        "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": "flangeBase",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name",
                  "type": "Name"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "center",
                      "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"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "radius",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "left": {
                        "abs_path": false,
                        "commentStart": 0,
                        "end": 0,
                        "name": {
                          "commentStart": 0,
                          "end": 0,
                          "name": "bottomTotalDiameter",
                          "start": 0,
                          "type": "Identifier"
                        },
                        "path": [],
                        "start": 0,
                        "type": "Name",
                        "type": "Name"
                      },
                      "operator": "/",
                      "right": {
                        "commentStart": 0,
                        "end": 0,
                        "raw": "2",
                        "start": 0,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 2.0,
                          "suffix": "None"
                        }
                      },
                      "start": 0,
                      "type": "BinaryExpression",
                      "type": "BinaryExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "circle",
                    "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": "length",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "bottomThickness",
                        "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": "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,
            "nonCodeMeta": {
              "nonCodeNodes": {
                "2": [
                  {
                    "commentStart": 0,
                    "end": 0,
                    "start": 0,
                    "type": "NonCodeNode",
                    "value": {
                      "type": "newLineBlockComment",
                      "value": "Cut a hole through the entire body",
                      "style": "line"
                    }
                  }
                ]
              },
              "startNodes": []
            },
            "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": "pipeHole",
            "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": "END",
                        "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": "topExtrusion",
                    "start": 0,
                    "type": "Identifier"
                  },
                  "path": [],
                  "start": 0,
                  "type": "Name",
                  "type": "Name"
                }
              },
              {
                "arguments": [
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "center",
                      "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"
                    }
                  },
                  {
                    "type": "LabeledArg",
                    "label": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "radius",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "commentStart": 0,
                      "end": 0,
                      "left": {
                        "abs_path": false,
                        "commentStart": 0,
                        "end": 0,
                        "name": {
                          "commentStart": 0,
                          "end": 0,
                          "name": "pipeDia",
                          "start": 0,
                          "type": "Identifier"
                        },
                        "path": [],
                        "start": 0,
                        "type": "Name",
                        "type": "Name"
                      },
                      "operator": "/",
                      "right": {
                        "commentStart": 0,
                        "end": 0,
                        "raw": "2",
                        "start": 0,
                        "type": "Literal",
                        "type": "Literal",
                        "value": {
                          "value": 2.0,
                          "suffix": "None"
                        }
                      },
                      "start": 0,
                      "type": "BinaryExpression",
                      "type": "BinaryExpression"
                    }
                  }
                ],
                "callee": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "circle",
                    "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": "length",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "arg": {
                      "argument": {
                        "commentStart": 0,
                        "end": 0,
                        "left": {
                          "commentStart": 0,
                          "end": 0,
                          "left": {
                            "abs_path": false,
                            "commentStart": 0,
                            "end": 0,
                            "name": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "topTotalThickness",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "path": [],
                            "start": 0,
                            "type": "Name",
                            "type": "Name"
                          },
                          "operator": "+",
                          "right": {
                            "abs_path": false,
                            "commentStart": 0,
                            "end": 0,
                            "name": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "baseThickness",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "path": [],
                            "start": 0,
                            "type": "Name",
                            "type": "Name"
                          },
                          "start": 0,
                          "type": "BinaryExpression",
                          "type": "BinaryExpression"
                        },
                        "operator": "+",
                        "right": {
                          "abs_path": false,
                          "commentStart": 0,
                          "end": 0,
                          "name": {
                            "commentStart": 0,
                            "end": 0,
                            "name": "bottomThickness",
                            "start": 0,
                            "type": "Identifier"
                          },
                          "path": [],
                          "start": 0,
                          "type": "Name",
                          "type": "Name"
                        },
                        "start": 0,
                        "type": "BinaryExpression",
                        "type": "BinaryExpression"
                      },
                      "commentStart": 0,
                      "end": 0,
                      "operator": "-",
                      "start": 0,
                      "type": "UnaryExpression",
                      "type": "UnaryExpression"
                    }
                  }
                ],
                "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": {
                  "commentStart": 0,
                  "end": 0,
                  "start": 0,
                  "type": "PipeSubstitution",
                  "type": "PipeSubstitution"
                }
              }
            ],
            "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,
    "innerAttrs": [
      {
        "commentStart": 0,
        "end": 0,
        "name": {
          "commentStart": 0,
          "end": 0,
          "name": "settings",
          "start": 0,
          "type": "Identifier"
        },
        "preComments": [
          "// Flange",
          "// A flange is a flat rim, collar, or rib, typically forged or cast, that is used to strengthen an object, guide it, or attach it to another object. Flanges are known for their use in various applications, including piping, plumbing, and mechanical engineering, among others.",
          "",
          "",
          "// Set units"
        ],
        "properties": [
          {
            "commentStart": 0,
            "end": 0,
            "key": {
              "commentStart": 0,
              "end": 0,
              "name": "defaultLengthUnit",
              "start": 0,
              "type": "Identifier"
            },
            "start": 0,
            "type": "ObjectProperty",
            "value": {
              "abs_path": false,
              "commentStart": 0,
              "end": 0,
              "name": {
                "commentStart": 0,
                "end": 0,
                "name": "in",
                "start": 0,
                "type": "Identifier"
              },
              "path": [],
              "start": 0,
              "type": "Name",
              "type": "Name"
            }
          },
          {
            "commentStart": 0,
            "end": 0,
            "key": {
              "commentStart": 0,
              "end": 0,
              "name": "kclVersion",
              "start": 0,
              "type": "Identifier"
            },
            "start": 0,
            "type": "ObjectProperty",
            "value": {
              "commentStart": 0,
              "end": 0,
              "raw": "1.0",
              "start": 0,
              "type": "Literal",
              "type": "Literal",
              "value": {
                "value": 1.0,
                "suffix": "None"
              }
            }
          }
        ],
        "start": 0,
        "type": "Annotation"
      }
    ],
    "nonCodeMeta": {
      "nonCodeNodes": {},
      "startNodes": [
        {
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "NonCodeNode",
          "value": {
            "type": "newLine"
          }
        }
      ]
    },
    "start": 0
  }
}
