---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing color-cube.kcl
---
{
  "Ok": {
    "body": [
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "size",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "100",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 100.0,
              "suffix": "None"
            }
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "preComments": [
          "// Parameters referenced in drawRectangle"
        ],
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "halfSize",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "left": {
              "abs_path": false,
              "commentStart": 0,
              "end": 0,
              "name": {
                "commentStart": 0,
                "end": 0,
                "name": "size",
                "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"
          },
          "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": "extrudeLength",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "1.0",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 1.0,
              "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": "metalConstant",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "50",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 50.0,
              "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": "roughnessConstant",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "commentStart": 0,
            "end": 0,
            "raw": "50",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 50.0,
              "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": "bluePlane",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "type": "LabeledArg",
                "label": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "offset",
                  "start": 0,
                  "type": "Identifier"
                },
                "arg": {
                  "abs_path": false,
                  "commentStart": 0,
                  "end": 0,
                  "name": {
                    "commentStart": 0,
                    "end": 0,
                    "name": "halfSize",
                    "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": "offsetPlane",
                "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"
            }
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "const",
        "preComments": [
          "",
          "",
          "// Create planes for 6 sides of a cube"
        ],
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "yellowPlane",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "type": "LabeledArg",
                "label": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "offset",
                  "start": 0,
                  "type": "Identifier"
                },
                "arg": {
                  "argument": {
                    "abs_path": false,
                    "commentStart": 0,
                    "end": 0,
                    "name": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "halfSize",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "path": [],
                    "start": 0,
                    "type": "Name",
                    "type": "Name"
                  },
                  "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": "offsetPlane",
                "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"
            }
          },
          "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": "greenPlane",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "type": "LabeledArg",
                "label": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "offset",
                  "start": 0,
                  "type": "Identifier"
                },
                "arg": {
                  "argument": {
                    "abs_path": false,
                    "commentStart": 0,
                    "end": 0,
                    "name": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "halfSize",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "path": [],
                    "start": 0,
                    "type": "Name",
                    "type": "Name"
                  },
                  "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": "offsetPlane",
                "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": "XZ",
                "start": 0,
                "type": "Identifier"
              },
              "path": [],
              "start": 0,
              "type": "Name",
              "type": "Name"
            }
          },
          "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": "purplePlane",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "type": "LabeledArg",
                "label": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "offset",
                  "start": 0,
                  "type": "Identifier"
                },
                "arg": {
                  "argument": {
                    "abs_path": false,
                    "commentStart": 0,
                    "end": 0,
                    "name": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "halfSize",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "path": [],
                    "start": 0,
                    "type": "Name",
                    "type": "Name"
                  },
                  "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": "offsetPlane",
                "start": 0,
                "type": "Identifier"
              },
              "path": [],
              "start": 0,
              "type": "Name"
            },
            "commentStart": 0,
            "end": 0,
            "start": 0,
            "type": "CallExpressionKw",
            "type": "CallExpressionKw",
            "unlabeled": {
              "argument": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "XZ",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              },
              "commentStart": 0,
              "end": 0,
              "operator": "-",
              "start": 0,
              "type": "UnaryExpression",
              "type": "UnaryExpression"
            }
          },
          "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": "redPlane",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "type": "LabeledArg",
                "label": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "offset",
                  "start": 0,
                  "type": "Identifier"
                },
                "arg": {
                  "commentStart": 0,
                  "end": 0,
                  "left": {
                    "abs_path": false,
                    "commentStart": 0,
                    "end": 0,
                    "name": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "halfSize",
                      "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": "extrudeLength",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "path": [],
                    "start": 0,
                    "type": "Name",
                    "type": "Name"
                  },
                  "start": 0,
                  "type": "BinaryExpression",
                  "type": "BinaryExpression"
                }
              }
            ],
            "callee": {
              "abs_path": false,
              "commentStart": 0,
              "end": 0,
              "name": {
                "commentStart": 0,
                "end": 0,
                "name": "offsetPlane",
                "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": "YZ",
                "start": 0,
                "type": "Identifier"
              },
              "path": [],
              "start": 0,
              "type": "Name",
              "type": "Name"
            }
          },
          "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": "tealPlane",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "arguments": [
              {
                "type": "LabeledArg",
                "label": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "offset",
                  "start": 0,
                  "type": "Identifier"
                },
                "arg": {
                  "argument": {
                    "abs_path": false,
                    "commentStart": 0,
                    "end": 0,
                    "name": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "halfSize",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "path": [],
                    "start": 0,
                    "type": "Name",
                    "type": "Name"
                  },
                  "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": "offsetPlane",
                "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": "YZ",
                "start": 0,
                "type": "Identifier"
              },
              "path": [],
              "start": 0,
              "type": "Name",
              "type": "Name"
            }
          },
          "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": "sketchRectangle",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "body": {
              "body": [
                {
                  "argument": {
                    "body": [
                      {
                        "abs_path": false,
                        "commentStart": 0,
                        "end": 0,
                        "name": {
                          "commentStart": 0,
                          "end": 0,
                          "name": "profile",
                          "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": [
                                {
                                  "argument": {
                                    "abs_path": false,
                                    "commentStart": 0,
                                    "end": 0,
                                    "name": {
                                      "commentStart": 0,
                                      "end": 0,
                                      "name": "halfSize",
                                      "start": 0,
                                      "type": "Identifier"
                                    },
                                    "path": [],
                                    "start": 0,
                                    "type": "Name",
                                    "type": "Name"
                                  },
                                  "commentStart": 0,
                                  "end": 0,
                                  "operator": "-",
                                  "start": 0,
                                  "type": "UnaryExpression",
                                  "type": "UnaryExpression"
                                },
                                {
                                  "abs_path": false,
                                  "commentStart": 0,
                                  "end": 0,
                                  "name": {
                                    "commentStart": 0,
                                    "end": 0,
                                    "name": "halfSize",
                                    "start": 0,
                                    "type": "Identifier"
                                  },
                                  "path": [],
                                  "start": 0,
                                  "type": "Name",
                                  "type": "Name"
                                }
                              ],
                              "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": "angle",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "commentStart": 0,
                              "end": 0,
                              "raw": "0",
                              "start": 0,
                              "type": "Literal",
                              "type": "Literal",
                              "value": {
                                "value": 0.0,
                                "suffix": "None"
                              }
                            }
                          },
                          {
                            "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": "size",
                                "start": 0,
                                "type": "Identifier"
                              },
                              "path": [],
                              "start": 0,
                              "type": "Name",
                              "type": "Name"
                            }
                          },
                          {
                            "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": "rectangleSegmentA001"
                            }
                          }
                        ],
                        "callee": {
                          "abs_path": false,
                          "commentStart": 0,
                          "end": 0,
                          "name": {
                            "commentStart": 0,
                            "end": 0,
                            "name": "angledLine",
                            "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": "angle",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "commentStart": 0,
                              "end": 0,
                              "left": {
                                "callee": {
                                  "abs_path": false,
                                  "commentStart": 0,
                                  "end": 0,
                                  "name": {
                                    "commentStart": 0,
                                    "end": 0,
                                    "name": "segAng",
                                    "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": "rectangleSegmentA001",
                                    "start": 0,
                                    "type": "Identifier"
                                  },
                                  "path": [],
                                  "start": 0,
                                  "type": "Name",
                                  "type": "Name"
                                }
                              },
                              "operator": "-",
                              "right": {
                                "commentStart": 0,
                                "end": 0,
                                "raw": "90",
                                "start": 0,
                                "type": "Literal",
                                "type": "Literal",
                                "value": {
                                  "value": 90.0,
                                  "suffix": "None"
                                }
                              },
                              "start": 0,
                              "type": "BinaryExpression",
                              "type": "BinaryExpression"
                            }
                          },
                          {
                            "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": "size",
                                "start": 0,
                                "type": "Identifier"
                              },
                              "path": [],
                              "start": 0,
                              "type": "Name",
                              "type": "Name"
                            }
                          },
                          {
                            "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": "rectangleSegmentB001"
                            }
                          }
                        ],
                        "callee": {
                          "abs_path": false,
                          "commentStart": 0,
                          "end": 0,
                          "name": {
                            "commentStart": 0,
                            "end": 0,
                            "name": "angledLine",
                            "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": "angle",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "callee": {
                                "abs_path": false,
                                "commentStart": 0,
                                "end": 0,
                                "name": {
                                  "commentStart": 0,
                                  "end": 0,
                                  "name": "segAng",
                                  "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": "rectangleSegmentA001",
                                  "start": 0,
                                  "type": "Identifier"
                                },
                                "path": [],
                                "start": 0,
                                "type": "Name",
                                "type": "Name"
                              }
                            }
                          },
                          {
                            "type": "LabeledArg",
                            "label": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "length",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "argument": {
                                "callee": {
                                  "abs_path": false,
                                  "commentStart": 0,
                                  "end": 0,
                                  "name": {
                                    "commentStart": 0,
                                    "end": 0,
                                    "name": "segLen",
                                    "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": "rectangleSegmentA001",
                                    "start": 0,
                                    "type": "Identifier"
                                  },
                                  "path": [],
                                  "start": 0,
                                  "type": "Name",
                                  "type": "Name"
                                }
                              },
                              "commentStart": 0,
                              "end": 0,
                              "operator": "-",
                              "start": 0,
                              "type": "UnaryExpression",
                              "type": "UnaryExpression"
                            }
                          },
                          {
                            "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": "rectangleSegmentC001"
                            }
                          }
                        ],
                        "callee": {
                          "abs_path": false,
                          "commentStart": 0,
                          "end": 0,
                          "name": {
                            "commentStart": 0,
                            "end": 0,
                            "name": "angledLine",
                            "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": "endAbsolute",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "commentStart": 0,
                              "elements": [
                                {
                                  "callee": {
                                    "abs_path": false,
                                    "commentStart": 0,
                                    "end": 0,
                                    "name": {
                                      "commentStart": 0,
                                      "end": 0,
                                      "name": "profileStartX",
                                      "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"
                                  }
                                },
                                {
                                  "callee": {
                                    "abs_path": false,
                                    "commentStart": 0,
                                    "end": 0,
                                    "name": {
                                      "commentStart": 0,
                                      "end": 0,
                                      "name": "profileStartY",
                                      "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"
                                  }
                                }
                              ],
                              "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": 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": "extrudeLength",
                                "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
                      },
                      {
                        "arguments": [
                          {
                            "type": "LabeledArg",
                            "label": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "color",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "abs_path": false,
                              "commentStart": 0,
                              "end": 0,
                              "name": {
                                "commentStart": 0,
                                "end": 0,
                                "name": "color",
                                "start": 0,
                                "type": "Identifier"
                              },
                              "path": [],
                              "start": 0,
                              "type": "Name",
                              "type": "Name"
                            }
                          },
                          {
                            "type": "LabeledArg",
                            "label": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "metalness",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "abs_path": false,
                              "commentStart": 0,
                              "end": 0,
                              "name": {
                                "commentStart": 0,
                                "end": 0,
                                "name": "metalConstant",
                                "start": 0,
                                "type": "Identifier"
                              },
                              "path": [],
                              "start": 0,
                              "type": "Name",
                              "type": "Name"
                            }
                          },
                          {
                            "type": "LabeledArg",
                            "label": {
                              "commentStart": 0,
                              "end": 0,
                              "name": "roughness",
                              "start": 0,
                              "type": "Identifier"
                            },
                            "arg": {
                              "abs_path": false,
                              "commentStart": 0,
                              "end": 0,
                              "name": {
                                "commentStart": 0,
                                "end": 0,
                                "name": "roughnessConstant",
                                "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": "appearance",
                            "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"
                  },
                  "commentStart": 0,
                  "end": 0,
                  "start": 0,
                  "type": "ReturnStatement",
                  "type": "ReturnStatement"
                }
              ],
              "commentStart": 0,
              "end": 0,
              "start": 0
            },
            "commentStart": 0,
            "end": 0,
            "params": [
              {
                "type": "Parameter",
                "identifier": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "profile",
                  "start": 0,
                  "type": "Identifier"
                }
              },
              {
                "type": "Parameter",
                "identifier": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "color",
                  "start": 0,
                  "type": "Identifier"
                }
              }
            ],
            "start": 0,
            "type": "FunctionExpression",
            "type": "FunctionExpression"
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "fn",
        "preComments": [
          "",
          "",
          "// Sketch a rectangle centered at the origin of the profile"
        ],
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "profile",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "bluePlane",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "color",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "'#0000FF'",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "#0000FF"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "sketchRectangle",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "preComments": [
          "",
          "",
          "// Sketch each side of the cube"
        ],
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "profile",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "yellowPlane",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "color",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "'#FFFF00'",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "#FFFF00"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "sketchRectangle",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "profile",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "greenPlane",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "color",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "'#00FF00'",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "#00FF00"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "sketchRectangle",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "profile",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "redPlane",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "color",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "'#FF0000'",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "#FF0000"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "sketchRectangle",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "profile",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "tealPlane",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "color",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "'#00FFFF'",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "#00FFFF"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "sketchRectangle",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "arguments": [
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "profile",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "abs_path": false,
                "commentStart": 0,
                "end": 0,
                "name": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "purplePlane",
                  "start": 0,
                  "type": "Identifier"
                },
                "path": [],
                "start": 0,
                "type": "Name",
                "type": "Name"
              }
            },
            {
              "type": "LabeledArg",
              "label": {
                "commentStart": 0,
                "end": 0,
                "name": "color",
                "start": 0,
                "type": "Identifier"
              },
              "arg": {
                "commentStart": 0,
                "end": 0,
                "raw": "'#FF00FF'",
                "start": 0,
                "type": "Literal",
                "type": "Literal",
                "value": "#FF00FF"
              }
            }
          ],
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "sketchRectangle",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      }
    ],
    "commentStart": 0,
    "end": 0,
    "innerAttrs": [
      {
        "commentStart": 0,
        "end": 0,
        "name": {
          "commentStart": 0,
          "end": 0,
          "name": "settings",
          "start": 0,
          "type": "Identifier"
        },
        "preComments": [
          "// Color Cube",
          "// This is a color cube centered about the origin. It is used to help determine orientation in the scene.",
          "",
          "",
          "// 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": "mm",
                "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
  }
}
