KCL parser: Allow .prop or [index] to follow any expression (#7371)

Previously in a member expression like `foo.x` or `foo[3]`, `foo` had to be an identifier. You could not do something like `f().x` (and if you tried, you got a cryptic error). Rather than make the error better, we should just accept any expression to be the LHS of a member expression (aka its 'object').

This does knock our "parse lots of function calls" from 58 to 55 calls before it stack overflows. But I think it's fine, we'll address this in https://github.com/KittyCAD/modeling-app/pull/6226 when I get back to it.

Closes https://github.com/KittyCAD/modeling-app/issues/7273
This commit is contained in:
Adam Chalmers
2025-06-05 08:23:48 -05:00
committed by GitHub
parent 9136fb0d1b
commit 4575b32dbc
77 changed files with 3397 additions and 1987 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -19,8 +19,8 @@ use crate::{
parsing::ast::types::{
Annotation, ArrayExpression, ArrayRangeExpression, AscribedExpression, BinaryExpression, BinaryOperator,
BinaryPart, BodyItem, Expr, IfExpression, ImportPath, ImportSelector, ItemVisibility, LiteralIdentifier,
LiteralValue, MemberExpression, MemberObject, Name, Node, NodeRef, ObjectExpression, PipeExpression, Program,
TagDeclarator, Type, UnaryExpression, UnaryOperator,
LiteralValue, MemberExpression, Name, Node, NodeRef, ObjectExpression, PipeExpression, Program, TagDeclarator,
Type, UnaryExpression, UnaryOperator,
},
source_range::SourceRange,
std::args::TyF64,
@ -739,7 +739,7 @@ impl ExecutorContext {
Expr::ArrayExpression(array_expression) => array_expression.execute(exec_state, self).await?,
Expr::ArrayRangeExpression(range_expression) => range_expression.execute(exec_state, self).await?,
Expr::ObjectExpression(object_expression) => object_expression.execute(exec_state, self).await?,
Expr::MemberExpression(member_expression) => member_expression.get_result(exec_state)?,
Expr::MemberExpression(member_expression) => member_expression.get_result(exec_state, self).await?,
Expr::UnaryExpression(unary_expression) => unary_expression.get_result(exec_state, self).await?,
Expr::IfExpression(expr) => expr.get_result(exec_state, self).await?,
Expr::LabelledExpression(expr) => {
@ -825,7 +825,7 @@ impl BinaryPart {
BinaryPart::BinaryExpression(binary_expression) => binary_expression.get_result(exec_state, ctx).await,
BinaryPart::CallExpressionKw(call_expression) => call_expression.execute(exec_state, ctx).await,
BinaryPart::UnaryExpression(unary_expression) => unary_expression.get_result(exec_state, ctx).await,
BinaryPart::MemberExpression(member_expression) => member_expression.get_result(exec_state),
BinaryPart::MemberExpression(member_expression) => member_expression.get_result(exec_state, ctx).await,
BinaryPart::IfExpression(e) => e.get_result(exec_state, ctx).await,
BinaryPart::AscribedExpression(e) => e.get_result(exec_state, ctx).await,
}
@ -942,16 +942,14 @@ impl Node<Name> {
}
impl Node<MemberExpression> {
fn get_result(&self, exec_state: &mut ExecState) -> Result<KclValue, KclError> {
async fn get_result(&self, exec_state: &mut ExecState, ctx: &ExecutorContext) -> Result<KclValue, KclError> {
let property = Property::try_from(self.computed, self.property.clone(), exec_state, self.into())?;
let object = match &self.object {
// TODO: Don't use recursion here, use a loop.
MemberObject::MemberExpression(member_expr) => member_expr.get_result(exec_state)?,
MemberObject::Identifier(identifier) => {
let value = exec_state.stack().get(&identifier.name, identifier.into())?;
value.clone()
}
let meta = Metadata {
source_range: SourceRange::from(self),
};
let object = ctx
.execute_expr(&self.object, exec_state, &meta, &[], StatementKind::Expression)
.await?;
// Check the property and object match -- e.g. ints for arrays, strs for objects.
match (object, property, self.computed) {

View File

@ -1949,7 +1949,7 @@ notPipeSub = 1 |> identity(!%))";
// a runtime error instead.
parse_execute(code11).await.unwrap_err(),
KclError::new_syntax(KclErrorDetails::new(
"There was an unexpected !. Try removing it.".to_owned(),
"There was an unexpected `!`. Try removing it.".to_owned(),
vec![SourceRange::new(56, 57, ModuleId::default())],
))
);

View File

@ -247,17 +247,6 @@ impl ObjectProperty {
}
}
impl MemberObject {
fn get_hover_value_for_position(&self, pos: usize, code: &str, opts: &HoverOpts) -> Option<Hover> {
match self {
MemberObject::MemberExpression(member_expression) => {
member_expression.get_hover_value_for_position(pos, code, opts)
}
MemberObject::Identifier(_identifier) => None,
}
}
}
impl MemberExpression {
fn get_hover_value_for_position(&self, pos: usize, code: &str, opts: &HoverOpts) -> Option<Hover> {
let object_source_range: SourceRange = self.object.clone().into();

View File

@ -4,7 +4,7 @@ use crate::parsing::ast::types::{
Annotation, ArrayExpression, ArrayRangeExpression, AscribedExpression, BinaryExpression, BinaryPart, BodyItem,
CallExpressionKw, DefaultParamVal, ElseIf, Expr, ExpressionStatement, FunctionExpression, FunctionType, Identifier,
IfExpression, ImportItem, ImportSelector, ImportStatement, ItemVisibility, KclNone, LabelledExpression, Literal,
LiteralIdentifier, LiteralValue, MemberExpression, MemberObject, Name, ObjectExpression, ObjectProperty, Parameter,
LiteralIdentifier, LiteralValue, MemberExpression, Name, ObjectExpression, ObjectProperty, Parameter,
PipeExpression, PipeSubstitution, PrimitiveType, Program, ReturnStatement, TagDeclarator, Type, TypeDeclaration,
UnaryExpression, VariableDeclaration, VariableDeclarator, VariableKind,
};
@ -167,15 +167,6 @@ impl BinaryPart {
}
}
impl MemberObject {
pub fn compute_digest(&mut self) -> Digest {
match self {
MemberObject::MemberExpression(me) => me.compute_digest(),
MemberObject::Identifier(id) => id.compute_digest(),
}
}
}
impl LiteralIdentifier {
pub fn compute_digest(&mut self) -> Digest {
match self {

View File

@ -2,7 +2,7 @@ pub(crate) mod digest;
pub mod types;
use crate::{
parsing::ast::types::{BinaryPart, BodyItem, Expr, LiteralIdentifier, MemberObject},
parsing::ast::types::{BinaryPart, BodyItem, Expr, LiteralIdentifier},
ModuleId,
};
@ -57,15 +57,6 @@ impl BinaryPart {
}
}
impl MemberObject {
pub fn module_id(&self) -> ModuleId {
match self {
MemberObject::MemberExpression(member_expression) => member_expression.module_id,
MemberObject::Identifier(identifier) => identifier.module_id,
}
}
}
impl LiteralIdentifier {
pub fn module_id(&self) -> ModuleId {
match self {

View File

@ -2756,47 +2756,6 @@ impl ObjectProperty {
}
}
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
#[ts(export)]
#[serde(tag = "type")]
pub enum MemberObject {
MemberExpression(BoxNode<MemberExpression>),
Identifier(BoxNode<Identifier>),
}
impl MemberObject {
pub fn start(&self) -> usize {
match self {
MemberObject::MemberExpression(member_expression) => member_expression.start,
MemberObject::Identifier(identifier) => identifier.start,
}
}
pub fn end(&self) -> usize {
match self {
MemberObject::MemberExpression(member_expression) => member_expression.end,
MemberObject::Identifier(identifier) => identifier.end,
}
}
pub(crate) fn contains_range(&self, range: &SourceRange) -> bool {
let sr = SourceRange::from(self);
sr.contains_range(range)
}
}
impl From<MemberObject> for SourceRange {
fn from(obj: MemberObject) -> Self {
Self::new(obj.start(), obj.end(), obj.module_id())
}
}
impl From<&MemberObject> for SourceRange {
fn from(obj: &MemberObject) -> Self {
Self::new(obj.start(), obj.end(), obj.module_id())
}
}
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
#[ts(export)]
#[serde(tag = "type")]
@ -2842,7 +2801,7 @@ impl From<&LiteralIdentifier> for SourceRange {
#[ts(export)]
#[serde(tag = "type")]
pub struct MemberExpression {
pub object: MemberObject,
pub object: Expr,
pub property: LiteralIdentifier,
pub computed: bool,
@ -2864,12 +2823,7 @@ impl Node<MemberExpression> {
impl MemberExpression {
/// Rename all identifiers that have the old name to the new given name.
fn rename_identifiers(&mut self, old_name: &str, new_name: &str) {
match &mut self.object {
MemberObject::MemberExpression(ref mut member_expression) => {
member_expression.rename_identifiers(old_name, new_name)
}
MemberObject::Identifier(ref mut identifier) => identifier.rename(old_name, new_name),
}
self.object.rename_identifiers(old_name, new_name);
match &mut self.property {
LiteralIdentifier::Identifier(ref mut identifier) => identifier.rename(old_name, new_name),

View File

@ -1,6 +1,6 @@
use serde::Serialize;
use super::{BodyItem, Expr, MemberObject, Node, Program};
use super::{BodyItem, Expr, Node, Program};
use crate::SourceRange;
/// A traversal path through the AST to a node.
@ -248,7 +248,7 @@ impl NodePath {
Expr::MemberExpression(node) => {
if node.object.contains_range(&range) {
path.push(Step::MemberExpressionObject);
return Self::from_member_expr_object(&node.object, range, path);
return NodePath::from_expr(&node.object, range, path);
}
if node.property.contains_range(&range) {
path.push(Step::MemberExpressionProperty);
@ -313,18 +313,6 @@ impl NodePath {
Some(path)
}
fn from_member_expr_object(mut expr: &MemberObject, range: SourceRange, mut path: NodePath) -> Option<NodePath> {
while let MemberObject::MemberExpression(node) = expr {
if !node.object.contains_range(&range) {
break;
}
path.push(Step::MemberExpressionObject);
expr = &node.object;
}
Some(path)
}
pub fn is_empty(&self) -> bool {
self.steps.is_empty()
}

View File

@ -26,8 +26,8 @@ use crate::{
Annotation, ArrayExpression, ArrayRangeExpression, BinaryExpression, BinaryOperator, BinaryPart, BodyItem,
BoxNode, CallExpressionKw, CommentStyle, DefaultParamVal, ElseIf, Expr, ExpressionStatement,
FunctionExpression, FunctionType, Identifier, IfExpression, ImportItem, ImportSelector, ImportStatement,
ItemVisibility, LabeledArg, Literal, LiteralIdentifier, LiteralValue, MemberExpression, MemberObject, Name,
Node, NodeList, NonCodeMeta, NonCodeNode, NonCodeValue, ObjectExpression, ObjectProperty, Parameter,
ItemVisibility, LabeledArg, Literal, LiteralIdentifier, LiteralValue, MemberExpression, Name, Node,
NodeList, NonCodeMeta, NonCodeNode, NonCodeValue, ObjectExpression, ObjectProperty, Parameter,
PipeExpression, PipeSubstitution, PrimitiveType, Program, ReturnStatement, Shebang, TagDeclarator, Type,
TypeDeclaration, UnaryExpression, UnaryOperator, VariableDeclaration, VariableDeclarator, VariableKind,
},
@ -1326,10 +1326,7 @@ fn member_expression_subscript(i: &mut TokenSlice) -> ModalResult<(LiteralIdenti
/// Get a property of an object, or an index of an array, or a member of a collection.
/// Can be arbitrarily nested, e.g. `people[i]['adam'].age`.
fn member_expression(i: &mut TokenSlice) -> ModalResult<Node<MemberExpression>> {
// This is an identifier, followed by a sequence of members (aka properties)
// First, the identifier.
let id = nameable_identifier.context(expected("the identifier of the object whose property you're trying to access, e.g. in 'shape.size.width', 'shape' is the identifier")).parse_next(i)?;
fn build_member_expression(object: Expr, i: &mut TokenSlice) -> ModalResult<Node<MemberExpression>> {
// Now a sequence of members.
let member = alt((member_expression_dot, member_expression_subscript)).context(expected("a member/property, e.g. size.x and size['height'] and size[0] are all different ways to access a member/property of 'size'"));
let mut members: Vec<_> = repeat(1.., member)
@ -1340,11 +1337,11 @@ fn member_expression(i: &mut TokenSlice) -> ModalResult<Node<MemberExpression>>
// It's safe to call remove(0), because the vec is created from repeat(1..),
// which is guaranteed to have >=1 elements.
let (property, end, computed) = members.remove(0);
let start = id.start;
let module_id = id.module_id;
let start = object.start();
let module_id = object.module_id();
let initial_member_expression = Node::new(
MemberExpression {
object: MemberObject::Identifier(Box::new(id)),
object,
computed,
property,
digest: None,
@ -1362,7 +1359,7 @@ fn member_expression(i: &mut TokenSlice) -> ModalResult<Node<MemberExpression>>
.fold(initial_member_expression, |accumulated, (property, end, computed)| {
Node::new(
MemberExpression {
object: MemberObject::MemberExpression(Box::new(accumulated)),
object: Expr::MemberExpression(Box::new(accumulated)),
computed,
property,
digest: None,
@ -2085,8 +2082,7 @@ fn unnecessarily_bracketed(i: &mut TokenSlice) -> ModalResult<Expr> {
}
fn expr_allowed_in_pipe_expr(i: &mut TokenSlice) -> ModalResult<Expr> {
alt((
member_expression.map(Box::new).map(Expr::MemberExpression),
let parsed_expr = alt((
bool_value.map(Box::new).map(Expr::Literal),
tag.map(Box::new).map(Expr::TagDeclarator),
literal.map(Expr::Literal),
@ -2100,14 +2096,19 @@ fn expr_allowed_in_pipe_expr(i: &mut TokenSlice) -> ModalResult<Expr> {
unnecessarily_bracketed,
))
.context(expected("a KCL expression (but not a pipe expression)"))
.parse_next(i)
.parse_next(i)?;
let maybe_member = build_member_expression(parsed_expr.clone(), i);
if let Ok(mem) = maybe_member {
return Ok(Expr::MemberExpression(Box::new(mem)));
}
Ok(parsed_expr)
}
fn possible_operands(i: &mut TokenSlice) -> ModalResult<Expr> {
let mut expr = alt((
unary_expression.map(Box::new).map(Expr::UnaryExpression),
bool_value.map(Box::new).map(Expr::Literal),
member_expression.map(Box::new).map(Expr::MemberExpression),
literal.map(Expr::Literal),
fn_call_kw.map(Box::new).map(Expr::CallExpressionKw),
name.map(Box::new).map(Expr::Name),
@ -2118,6 +2119,10 @@ fn possible_operands(i: &mut TokenSlice) -> ModalResult<Expr> {
"a KCL value which can be used as an argument/operand to an operator",
))
.parse_next(i)?;
let maybe_member = build_member_expression(expr.clone(), i);
if let Ok(mem) = maybe_member {
expr = Expr::MemberExpression(Box::new(mem));
}
let ty = opt((colon, opt(whitespace), type_)).parse_next(i)?;
if let Some((_, _, ty)) = ty {
@ -3258,7 +3263,7 @@ fn fn_call_kw(i: &mut TokenSlice) -> ModalResult<Node<CallExpressionKw>> {
return Err(ErrMode::Cut(
CompilationError::fatal(
SourceRange::from(&tok),
format!("There was an unexpected {}. Try removing it.", tok.value),
format!("There was an unexpected `{}`. Try removing it.", tok.value),
)
.into(),
));
@ -4427,7 +4432,7 @@ z(-[["#,
assert_err(
r#"z
(--#"#,
"There was an unexpected -. Try removing it.",
"There was an unexpected `-`. Try removing it.",
[3, 4],
);
}
@ -4997,6 +5002,17 @@ type foo = fn(fn, f: fn(number(_))): [fn([any]): string]
assert_no_err(some_program_string);
}
#[test]
fn test_parse_fn_call_then_field() {
let some_program_string = "myFunction().field";
let module_id = ModuleId::default();
let tokens = crate::parsing::token::lex(some_program_string, module_id).unwrap(); // Updated import path
let actual = expression.parse(tokens.as_slice()).unwrap();
let Expr::MemberExpression(_expr) = actual else {
panic!("expected member expression")
};
}
#[test]
fn test_parse_array_missing_closing_bracket() {
let some_program_string = r#"
@ -5185,7 +5201,7 @@ bar = 1
.cause
.as_ref()
.expect("Found an error, but there was no cause. Add a cause.");
assert_eq!(cause.message, "There was an unexpected }. Try removing it.",);
assert_eq!(cause.message, "There was an unexpected `}`. Try removing it.",);
assert_eq!(cause.source_range.start(), expected_src_start);
}

View File

@ -117,13 +117,21 @@ expression: actual
"computed": false,
"end": 45,
"object": {
"abs_path": false,
"commentStart": 40,
"end": 43,
"name": {
"commentStart": 40,
"end": 43,
"name": "obj",
"start": 40,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 40,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 44,
"end": 45,

View File

@ -117,13 +117,21 @@ expression: actual
"computed": false,
"end": 49,
"object": {
"abs_path": false,
"commentStart": 41,
"end": 44,
"name": {
"commentStart": 41,
"end": 44,
"name": "obj",
"start": 41,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 41,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 45,
"end": 48,

View File

@ -104,13 +104,21 @@ expression: actual
"computed": false,
"end": 44,
"object": {
"abs_path": false,
"commentStart": 36,
"end": 39,
"name": {
"commentStart": 36,
"end": 39,
"name": "obj",
"start": 36,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 36,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 40,
"end": 43,

View File

@ -120,13 +120,21 @@ expression: actual
"computed": false,
"end": 49,
"object": {
"abs_path": false,
"commentStart": 41,
"end": 44,
"name": {
"commentStart": 41,
"end": 44,
"name": "obj",
"start": 41,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 41,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 45,
"end": 48,

View File

@ -107,13 +107,21 @@ expression: actual
"computed": false,
"end": 45,
"object": {
"abs_path": false,
"commentStart": 37,
"end": 40,
"name": {
"commentStart": 37,
"end": 40,
"name": "obj",
"start": 37,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 37,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 41,
"end": 44,

View File

@ -107,13 +107,21 @@ expression: actual
"computed": false,
"end": 44,
"object": {
"abs_path": false,
"commentStart": 36,
"end": 39,
"name": {
"commentStart": 36,
"end": 39,
"name": "obj",
"start": 36,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 36,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 40,
"end": 43,

View File

@ -37,13 +37,21 @@ expression: actual
"computed": false,
"end": 18,
"object": {
"abs_path": false,
"commentStart": 13,
"end": 16,
"name": {
"commentStart": 13,
"end": 16,
"name": "obj",
"start": 13,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 13,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 17,
"end": 18,

View File

@ -24,13 +24,21 @@ expression: actual
"computed": false,
"end": 19,
"object": {
"abs_path": false,
"commentStart": 11,
"end": 14,
"name": {
"commentStart": 11,
"end": 14,
"name": "obj",
"start": 11,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 11,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 15,
"end": 18,

View File

@ -101,13 +101,21 @@ expression: actual
"computed": false,
"end": 44,
"object": {
"abs_path": false,
"commentStart": 36,
"end": 39,
"name": {
"commentStart": 36,
"end": 39,
"name": "obj",
"start": 36,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 36,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 40,
"end": 43,

View File

@ -25,13 +25,21 @@ expression: actual
"computed": false,
"end": 16,
"object": {
"abs_path": false,
"commentStart": 7,
"end": 9,
"name": {
"commentStart": 7,
"end": 9,
"name": "yo",
"start": 7,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 7,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 10,
"end": 15,

View File

@ -21,13 +21,21 @@ expression: actual
"computed": true,
"end": 11,
"object": {
"abs_path": false,
"commentStart": 6,
"end": 8,
"name": {
"commentStart": 6,
"end": 8,
"name": "b1",
"start": 6,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 6,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 9,
"end": 10,

View File

@ -33,13 +33,21 @@ expression: actual
"computed": false,
"end": 13,
"object": {
"abs_path": false,
"commentStart": 7,
"end": 9,
"name": {
"commentStart": 7,
"end": 9,
"name": "yo",
"start": 7,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 7,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 10,
"end": 13,

View File

@ -21,13 +21,21 @@ expression: actual
"computed": false,
"end": 11,
"object": {
"abs_path": false,
"commentStart": 6,
"end": 8,
"name": {
"commentStart": 6,
"end": 8,
"name": "b1",
"start": 6,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 6,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 9,
"end": 10,

View File

@ -21,13 +21,21 @@ expression: actual
"computed": false,
"end": 16,
"object": {
"abs_path": false,
"commentStart": 6,
"end": 8,
"name": {
"commentStart": 6,
"end": 8,
"name": "b1",
"start": 6,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 6,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 9,
"end": 15,

View File

@ -21,13 +21,21 @@ expression: actual
"computed": false,
"end": 13,
"object": {
"abs_path": false,
"commentStart": 6,
"end": 8,
"name": {
"commentStart": 6,
"end": 8,
"name": "b1",
"start": 6,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 6,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 9,
"end": 13,

View File

@ -5,8 +5,8 @@ use crate::parsing::{
Annotation, ArrayExpression, ArrayRangeExpression, AscribedExpression, BinaryExpression, BinaryOperator,
BinaryPart, BodyItem, CallExpressionKw, CommentStyle, DefaultParamVal, Expr, FormatOptions, FunctionExpression,
IfExpression, ImportSelector, ImportStatement, ItemVisibility, LabeledArg, Literal, LiteralIdentifier,
LiteralValue, MemberExpression, MemberObject, Node, NonCodeNode, NonCodeValue, ObjectExpression, Parameter,
PipeExpression, Program, TagDeclarator, TypeDeclaration, UnaryExpression, VariableDeclaration, VariableKind,
LiteralValue, MemberExpression, Node, NonCodeNode, NonCodeValue, ObjectExpression, Parameter, PipeExpression,
Program, TagDeclarator, TypeDeclaration, UnaryExpression, VariableDeclaration, VariableKind,
},
deprecation, DeprecationKind, PIPE_OPERATOR,
};
@ -278,11 +278,11 @@ impl Expr {
ctxt = ExprContext::Other;
}
match &self {
Expr::BinaryExpression(bin_exp) => bin_exp.recast(options),
Expr::BinaryExpression(bin_exp) => bin_exp.recast(options, indentation_level, ctxt),
Expr::ArrayExpression(array_exp) => array_exp.recast(options, indentation_level, ctxt),
Expr::ArrayRangeExpression(range_exp) => range_exp.recast(options, indentation_level, ctxt),
Expr::ObjectExpression(ref obj_exp) => obj_exp.recast(options, indentation_level, ctxt),
Expr::MemberExpression(mem_exp) => mem_exp.recast(),
Expr::MemberExpression(mem_exp) => mem_exp.recast(options, indentation_level, ctxt),
Expr::Literal(literal) => literal.recast(),
Expr::FunctionExpression(func_exp) => {
let mut result = if is_decl { String::new() } else { "fn".to_owned() };
@ -299,7 +299,7 @@ impl Expr {
}
Expr::TagDeclarator(tag) => tag.recast(),
Expr::PipeExpression(pipe_exp) => pipe_exp.recast(options, indentation_level),
Expr::UnaryExpression(unary_exp) => unary_exp.recast(options),
Expr::UnaryExpression(unary_exp) => unary_exp.recast(options, indentation_level, ctxt),
Expr::IfExpression(e) => e.recast(options, indentation_level, ctxt),
Expr::PipeSubstitution(_) => crate::parsing::PIPE_SUBSTITUTION_OPERATOR.to_string(),
Expr::LabelledExpression(e) => {
@ -332,7 +332,7 @@ impl AscribedExpression {
}
impl BinaryPart {
fn recast(&self, options: &FormatOptions, indentation_level: usize) -> String {
fn recast(&self, options: &FormatOptions, indentation_level: usize, ctxt: ExprContext) -> String {
match &self {
BinaryPart::Literal(literal) => literal.recast(),
BinaryPart::Name(name) => {
@ -342,12 +342,16 @@ impl BinaryPart {
None => result,
}
}
BinaryPart::BinaryExpression(binary_expression) => binary_expression.recast(options),
BinaryPart::BinaryExpression(binary_expression) => {
binary_expression.recast(options, indentation_level, ctxt)
}
BinaryPart::CallExpressionKw(call_expression) => {
call_expression.recast(options, indentation_level, ExprContext::Other)
}
BinaryPart::UnaryExpression(unary_expression) => unary_expression.recast(options),
BinaryPart::MemberExpression(member_expression) => member_expression.recast(),
BinaryPart::UnaryExpression(unary_expression) => unary_expression.recast(options, indentation_level, ctxt),
BinaryPart::MemberExpression(member_expression) => {
member_expression.recast(options, indentation_level, ctxt)
}
BinaryPart::IfExpression(e) => e.recast(options, indentation_level, ExprContext::Other),
BinaryPart::AscribedExpression(e) => e.recast(options, indentation_level, ExprContext::Other),
}
@ -670,7 +674,7 @@ impl ObjectExpression {
}
impl MemberExpression {
fn recast(&self) -> String {
fn recast(&self, options: &FormatOptions, indentation_level: usize, ctxt: ExprContext) -> String {
let key_str = match &self.property {
LiteralIdentifier::Identifier(identifier) => {
if self.computed {
@ -682,15 +686,12 @@ impl MemberExpression {
LiteralIdentifier::Literal(lit) => format!("[{}]", &(*lit.raw)),
};
match &self.object {
MemberObject::MemberExpression(member_exp) => member_exp.recast() + key_str.as_str(),
MemberObject::Identifier(identifier) => identifier.name.to_string() + key_str.as_str(),
}
self.object.recast(options, indentation_level, ctxt) + key_str.as_str()
}
}
impl BinaryExpression {
fn recast(&self, options: &FormatOptions) -> String {
fn recast(&self, options: &FormatOptions, _indentation_level: usize, ctxt: ExprContext) -> String {
let maybe_wrap_it = |a: String, doit: bool| -> String {
if doit {
format!("({})", a)
@ -715,15 +716,15 @@ impl BinaryExpression {
format!(
"{} {} {}",
maybe_wrap_it(self.left.recast(options, 0), should_wrap_left),
maybe_wrap_it(self.left.recast(options, 0, ctxt), should_wrap_left),
self.operator,
maybe_wrap_it(self.right.recast(options, 0), should_wrap_right)
maybe_wrap_it(self.right.recast(options, 0, ctxt), should_wrap_right)
)
}
}
impl UnaryExpression {
fn recast(&self, options: &FormatOptions) -> String {
fn recast(&self, options: &FormatOptions, _indentation_level: usize, ctxt: ExprContext) -> String {
match self.argument {
BinaryPart::Literal(_)
| BinaryPart::Name(_)
@ -731,10 +732,10 @@ impl UnaryExpression {
| BinaryPart::IfExpression(_)
| BinaryPart::AscribedExpression(_)
| BinaryPart::CallExpressionKw(_) => {
format!("{}{}", &self.operator, self.argument.recast(options, 0))
format!("{}{}", &self.operator, self.argument.recast(options, 0, ctxt))
}
BinaryPart::BinaryExpression(_) | BinaryPart::UnaryExpression(_) => {
format!("{}({})", &self.operator, self.argument.recast(options, 0))
format!("{}({})", &self.operator, self.argument.recast(options, 0, ctxt))
}
}
}

View File

@ -226,15 +226,6 @@ impl<'tree> From<&'tree types::BinaryPart> for Node<'tree> {
}
}
impl<'tree> From<&'tree types::MemberObject> for Node<'tree> {
fn from(node: &'tree types::MemberObject) -> Self {
match node {
types::MemberObject::MemberExpression(me) => me.as_ref().into(),
types::MemberObject::Identifier(id) => id.as_ref().into(),
}
}
}
impl<'tree> From<&'tree types::LiteralIdentifier> for Node<'tree> {
fn from(node: &'tree types::LiteralIdentifier) -> Self {
match node {

View File

@ -264,15 +264,6 @@ description: Result of parsing add_lots.kcl
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
@ -2461,123 +2452,6 @@ description: Result of parsing add_lots.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "f",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"raw": "56",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 56.0,
"suffix": "None"
}
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "f",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"raw": "57",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 57.0,
"suffix": "None"
}
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "f",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"raw": "58",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 58.0,
"suffix": "None"
}
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
@ -2604,12 +2478,12 @@ description: Result of parsing add_lots.kcl
"arg": {
"commentStart": 0,
"end": 0,
"raw": "3422",
"raw": "3080",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3422.0,
"value": 3080.0,
"suffix": "None"
}
}

View File

@ -2,6 +2,6 @@ fn f(@i) {
return i * 2
}
x = f(0) + f(1) + f(2) + f(3) + f(4) + f(5) + f(6) + f(7) + f(8) + f(9) + f(10) + f(11) + f(12) + f(13) + f(14) + f(15) + f(16) + f(17) + f(18) + f(19) + f(20) + f(21) + f(22) + f(23) + f(24) + f(25) + f(26) + f(27) + f(28) + f(29) + f(30) + f(31) + f(32) + f(33) + f(34) + f(35) + f(36) + f(37) + f(38) + f(39) + f(40) + f(41) + f(42) + f(43) + f(44) + f(45) + f(46) + f(47) + f(48) + f(49) + f(50) + f(51) + f(52) + f(53) + f(54) + f(55) + f(56) + f(57) + f(58)
x = f(0) + f(1) + f(2) + f(3) + f(4) + f(5) + f(6) + f(7) + f(8) + f(9) + f(10) + f(11) + f(12) + f(13) + f(14) + f(15) + f(16) + f(17) + f(18) + f(19) + f(20) + f(21) + f(22) + f(23) + f(24) + f(25) + f(26) + f(27) + f(28) + f(29) + f(30) + f(31) + f(32) + f(33) + f(34) + f(35) + f(36) + f(37) + f(38) + f(39) + f(40) + f(41) + f(42) + f(43) + f(44) + f(45) + f(46) + f(47) + f(48) + f(49) + f(50) + f(51) + f(52) + f(53) + f(54) + f(55)
assert(x, isEqualTo = 3422, error = "Big sum")
assert(x, isEqualTo = 3080, error = "Big sum")

View File

@ -1459,93 +1459,6 @@ description: Operations executed add_lots.kcl
},
"sourceRange": []
},
{
"type": "GroupBegin",
"group": {
"type": "FunctionCall",
"name": "f",
"functionSourceRange": [],
"unlabeledArg": {
"value": {
"type": "Number",
"value": 56.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"labeledArgs": {}
},
"sourceRange": []
},
{
"type": "GroupBegin",
"group": {
"type": "FunctionCall",
"name": "f",
"functionSourceRange": [],
"unlabeledArg": {
"value": {
"type": "Number",
"value": 57.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"labeledArgs": {}
},
"sourceRange": []
},
{
"type": "GroupBegin",
"group": {
"type": "FunctionCall",
"name": "f",
"functionSourceRange": [],
"unlabeledArg": {
"value": {
"type": "Number",
"value": 58.0,
"ty": {
"type": "Default",
"len": {
"type": "Mm"
},
"angle": {
"type": "Degrees"
}
}
},
"sourceRange": []
},
"labeledArgs": {}
},
"sourceRange": []
},
{
"type": "GroupEnd"
},
{
"type": "GroupEnd"
},
{
"type": "GroupEnd"
},
{
"type": "GroupEnd"
},

View File

@ -9,7 +9,7 @@ description: Variables in memory after executing add_lots.kcl
},
"x": {
"type": "Number",
"value": 3422.0,
"value": 3080.0,
"ty": {
"type": "Default",
"len": {

View File

@ -6,6 +6,6 @@ fn f(@i) {
return i * 2
}
x = f(0) + f(1) + f(2) + f(3) + f(4) + f(5) + f(6) + f(7) + f(8) + f(9) + f(10) + f(11) + f(12) + f(13) + f(14) + f(15) + f(16) + f(17) + f(18) + f(19) + f(20) + f(21) + f(22) + f(23) + f(24) + f(25) + f(26) + f(27) + f(28) + f(29) + f(30) + f(31) + f(32) + f(33) + f(34) + f(35) + f(36) + f(37) + f(38) + f(39) + f(40) + f(41) + f(42) + f(43) + f(44) + f(45) + f(46) + f(47) + f(48) + f(49) + f(50) + f(51) + f(52) + f(53) + f(54) + f(55) + f(56) + f(57) + f(58)
x = f(0) + f(1) + f(2) + f(3) + f(4) + f(5) + f(6) + f(7) + f(8) + f(9) + f(10) + f(11) + f(12) + f(13) + f(14) + f(15) + f(16) + f(17) + f(18) + f(19) + f(20) + f(21) + f(22) + f(23) + f(24) + f(25) + f(26) + f(27) + f(28) + f(29) + f(30) + f(31) + f(32) + f(33) + f(34) + f(35) + f(36) + f(37) + f(38) + f(39) + f(40) + f(41) + f(42) + f(43) + f(44) + f(45) + f(46) + f(47) + f(48) + f(49) + f(50) + f(51) + f(52) + f(53) + f(54) + f(55)
assert(x, isEqualTo = 3422, error = "Big sum")
assert(x, isEqualTo = 3080, error = "Big sum")

View File

@ -320,13 +320,21 @@ description: Result of parsing array_elem_pop.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -420,13 +428,21 @@ description: Result of parsing array_elem_pop.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -520,13 +536,21 @@ description: Result of parsing array_elem_pop.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -147,13 +147,21 @@ description: Result of parsing array_elem_pop_fail.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pushedArr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -309,13 +309,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -409,13 +417,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -509,13 +525,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -609,13 +633,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -709,13 +741,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -809,13 +849,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -909,13 +957,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1009,13 +1065,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1109,13 +1173,21 @@ description: Result of parsing array_elem_push.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "new_arr2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -171,13 +171,21 @@ description: Result of parsing array_elem_push_fail.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -51,13 +51,21 @@ description: Result of parsing array_index_oob.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -233,13 +233,21 @@ description: Result of parsing array_push_item_wrong_type.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arrPrime",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -130,13 +130,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -357,13 +365,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -575,13 +591,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r3",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -675,13 +699,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r3",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -876,13 +908,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -976,13 +1016,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1076,13 +1124,21 @@ description: Result of parsing array_range_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -146,13 +146,21 @@ description: Result of parsing array_range_negative_expr.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "xs",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -111,13 +111,21 @@ description: Result of parsing array_range_with_units.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "a",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -192,13 +200,21 @@ description: Result of parsing array_range_with_units.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "a",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -273,13 +289,21 @@ description: Result of parsing array_range_with_units.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "a",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -133,13 +133,21 @@ description: Result of parsing computed_var.kcl
"computed": true,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -346,13 +354,21 @@ description: Result of parsing computed_var.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "obj",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -94,13 +94,21 @@ description: Result of parsing cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -143,13 +151,21 @@ description: Result of parsing cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -94,13 +94,21 @@ description: Result of parsing cube_with_error.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -143,13 +151,21 @@ description: Result of parsing cube_with_error.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -109,13 +109,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -138,13 +146,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -171,13 +187,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -204,13 +228,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -810,13 +842,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2359,13 +2399,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2388,13 +2436,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2421,13 +2477,21 @@ description: Result of parsing i_shape.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "d_wrist_circumference",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -88,13 +88,21 @@ description: Result of parsing index_of_array.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -366,13 +374,21 @@ description: Result of parsing index_of_array.kcl
"computed": true,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -83,13 +83,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -135,13 +143,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -231,13 +247,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -283,13 +307,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -379,13 +411,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -431,13 +471,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -527,13 +575,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -579,13 +635,21 @@ description: Result of parsing intersect_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -88,13 +88,21 @@ description: Result of parsing invalid_index_fractional.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -129,13 +129,21 @@ description: Result of parsing invalid_index_negative.kcl
"computed": true,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -88,13 +88,21 @@ description: Result of parsing invalid_index_str.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arr",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -55,13 +55,21 @@ description: Result of parsing invalid_member_object.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "num",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -52,13 +52,21 @@ description: Result of parsing invalid_member_object_prop.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "b",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -132,13 +132,21 @@ description: Result of parsing invalid_member_object_using_string.kcl
"computed": true,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "obj",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -653,19 +653,19 @@ flowchart LR
84 --- 144
84 --- 238
86 --- 168
86 x--> 188
86 x--> 189
86 --- 212
86 --- 257
88 --- 169
88 x--> 188
88 x--> 189
88 --- 213
88 --- 258
90 --- 167
90 x--> 188
90 x--> 189
90 --- 214
90 --- 259
92 --- 170
92 x--> 188
92 x--> 189
92 --- 215
92 --- 260
119 --- 133
@ -950,10 +950,10 @@ flowchart LR
218 <--x 186
219 <--x 186
194 <--x 187
212 <--x 189
213 <--x 189
214 <--x 189
215 <--x 189
212 <--x 188
213 <--x 188
214 <--x 188
215 <--x 188
220 <--x 269
223 <--x 268
```

View File

@ -850,13 +850,21 @@ description: Result of parsing ball-joint-rod-end.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pointOnRingPolar",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -91,20 +91,20 @@ flowchart LR
8 --- 37
9 --- 21
9 x--> 25
9 --- 33
9 --- 39
9 --- 30
9 --- 36
10 --- 22
10 x--> 25
10 --- 29
10 --- 35
10 --- 32
10 --- 38
11 --- 23
11 x--> 25
11 --- 30
11 --- 36
11 --- 33
11 --- 39
12 --- 24
12 x--> 25
12 --- 32
12 --- 38
12 --- 29
12 --- 35
14 --- 19
14 x--> 27
14 --- 28
@ -135,18 +135,18 @@ flowchart LR
20 --- 31
20 --- 37
38 <--x 20
21 --- 33
35 <--x 21
21 --- 39
22 --- 29
22 --- 35
36 <--x 22
23 --- 30
23 --- 36
37 <--x 23
24 --- 32
24 --- 38
39 <--x 24
21 --- 30
21 --- 36
37 <--x 21
22 --- 32
22 --- 38
39 <--x 22
23 --- 33
35 <--x 23
23 --- 39
24 --- 29
24 --- 35
36 <--x 24
28 <--x 26
29 <--x 27
30 <--x 27

File diff suppressed because it is too large Load Diff

View File

@ -366,114 +366,114 @@ flowchart LR
11 ---- 74
26 --- 75
26 x--> 108
26 --- 139
26 --- 171
26 --- 117
26 --- 149
27 --- 76
27 x--> 108
27 --- 114
27 --- 146
27 --- 116
27 --- 148
28 --- 77
28 x--> 108
28 --- 115
28 --- 147
28 --- 134
28 --- 166
29 --- 78
29 x--> 108
29 --- 132
29 --- 164
29 --- 114
29 --- 146
30 --- 79
30 x--> 108
30 --- 124
30 --- 156
30 --- 118
30 --- 150
31 --- 80
31 x--> 108
31 --- 138
31 --- 170
31 --- 139
31 --- 171
32 --- 81
32 x--> 108
32 --- 129
32 --- 161
32 --- 115
32 --- 147
33 --- 82
33 x--> 108
33 --- 119
33 --- 151
33 --- 126
33 --- 158
34 --- 83
34 x--> 108
34 --- 123
34 --- 155
34 --- 127
34 --- 159
35 --- 84
35 x--> 108
35 --- 135
35 --- 167
35 --- 138
35 --- 170
36 --- 85
36 x--> 108
36 --- 125
36 --- 157
36 --- 133
36 --- 165
37 --- 86
37 x--> 108
37 --- 116
37 --- 148
37 --- 119
37 --- 151
38 --- 87
38 x--> 108
38 --- 131
38 --- 163
38 --- 125
38 --- 157
39 --- 88
39 x--> 108
39 --- 127
39 --- 159
39 --- 124
39 --- 156
40 --- 89
40 x--> 108
40 --- 134
40 --- 166
40 --- 120
40 --- 152
41 --- 90
41 x--> 108
41 --- 130
41 --- 162
41 --- 131
41 --- 163
42 --- 91
42 x--> 108
42 --- 136
42 --- 168
42 --- 128
42 --- 160
43 --- 92
43 x--> 108
43 --- 126
43 --- 158
43 --- 130
43 --- 162
44 --- 93
44 x--> 108
44 --- 113
44 --- 145
44 --- 136
44 --- 168
45 --- 94
45 x--> 108
45 --- 133
45 --- 165
45 --- 135
45 --- 167
46 --- 95
46 x--> 108
46 --- 137
46 --- 169
46 --- 123
46 --- 155
47 --- 96
47 x--> 108
47 --- 128
47 --- 160
47 --- 122
47 --- 154
48 --- 97
48 x--> 108
48 --- 118
48 --- 150
48 --- 132
48 --- 164
49 --- 98
49 x--> 108
49 --- 121
49 --- 153
49 --- 129
49 --- 161
50 --- 99
50 x--> 108
50 --- 120
50 --- 152
50 --- 137
50 --- 169
51 --- 100
51 x--> 108
51 --- 117
51 --- 149
51 --- 113
51 --- 145
52 --- 101
52 x--> 108
52 --- 122
52 --- 154
52 --- 121
52 --- 153
61 --- 102
61 x--> 109
61 x--> 110
61 --- 140
61 --- 172
63 --- 103
@ -594,87 +594,87 @@ flowchart LR
74 --- 174
74 --- 175
74 --- 176
75 --- 139
145 <--x 75
75 --- 171
76 --- 114
76 --- 146
147 <--x 76
77 --- 115
77 --- 147
148 <--x 77
78 --- 132
78 --- 164
165 <--x 78
79 --- 124
79 --- 156
157 <--x 79
80 --- 138
80 --- 170
171 <--x 80
81 --- 129
81 --- 161
162 <--x 81
82 --- 119
82 --- 151
152 <--x 82
83 --- 123
83 --- 155
156 <--x 83
84 --- 135
84 --- 167
168 <--x 84
85 --- 125
85 --- 157
158 <--x 85
86 --- 116
86 --- 148
149 <--x 86
87 --- 131
87 --- 163
164 <--x 87
88 --- 127
88 --- 159
160 <--x 88
89 --- 134
89 --- 166
167 <--x 89
90 --- 130
90 --- 162
163 <--x 90
91 --- 136
91 --- 168
169 <--x 91
92 --- 126
92 --- 158
159 <--x 92
93 --- 113
93 --- 145
146 <--x 93
94 --- 133
94 --- 165
166 <--x 94
95 --- 137
95 --- 169
170 <--x 95
96 --- 128
96 --- 160
161 <--x 96
97 --- 118
97 --- 150
151 <--x 97
98 --- 121
98 --- 153
154 <--x 98
99 --- 120
99 --- 152
153 <--x 99
100 --- 117
100 --- 149
150 <--x 100
101 --- 122
101 --- 154
155 <--x 101
75 --- 117
75 --- 149
150 <--x 75
76 --- 116
76 --- 148
149 <--x 76
77 --- 134
77 --- 166
167 <--x 77
78 --- 114
78 --- 146
147 <--x 78
79 --- 118
79 --- 150
151 <--x 79
80 --- 139
145 <--x 80
80 --- 171
81 --- 115
81 --- 147
148 <--x 81
82 --- 126
82 --- 158
159 <--x 82
83 --- 127
83 --- 159
160 <--x 83
84 --- 138
84 --- 170
171 <--x 84
85 --- 133
85 --- 165
166 <--x 85
86 --- 119
86 --- 151
152 <--x 86
87 --- 125
87 --- 157
158 <--x 87
88 --- 124
88 --- 156
157 <--x 88
89 --- 120
89 --- 152
153 <--x 89
90 --- 131
90 --- 163
164 <--x 90
91 --- 128
91 --- 160
161 <--x 91
92 --- 130
92 --- 162
163 <--x 92
93 --- 136
93 --- 168
169 <--x 93
94 --- 135
94 --- 167
168 <--x 94
95 --- 123
95 --- 155
156 <--x 95
96 --- 122
96 --- 154
155 <--x 96
97 --- 132
97 --- 164
165 <--x 97
98 --- 129
98 --- 161
162 <--x 98
99 --- 137
99 --- 169
170 <--x 99
100 --- 113
100 --- 145
146 <--x 100
101 --- 121
101 --- 153
154 <--x 101
102 --- 140
102 --- 172
103 --- 144
@ -689,7 +689,7 @@ flowchart LR
106 --- 141
106 --- 173
174 <--x 106
140 <--x 110
140 <--x 109
141 <--x 111
142 <--x 111
143 <--x 111

View File

@ -2038,13 +2038,21 @@ description: Result of parsing dodecahedron.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "rotation",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2078,13 +2086,21 @@ description: Result of parsing dodecahedron.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "rotation",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2116,13 +2132,21 @@ description: Result of parsing dodecahedron.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "rotation",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2154,13 +2178,21 @@ description: Result of parsing dodecahedron.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "rotation",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2756,13 +2788,21 @@ description: Result of parsing dodecahedron.kcl
"computed": true,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "solids",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -1636,13 +1636,21 @@ description: Result of parsing enclosure.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1664,13 +1672,21 @@ description: Result of parsing enclosure.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1797,13 +1813,21 @@ description: Result of parsing enclosure.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1825,13 +1849,21 @@ description: Result of parsing enclosure.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -2440,13 +2440,21 @@ description: Result of parsing focusrite-scarlett-mounting-bracket.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "bs",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2502,13 +2510,21 @@ description: Result of parsing focusrite-scarlett-mounting-bracket.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "bs",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2564,13 +2580,21 @@ description: Result of parsing focusrite-scarlett-mounting-bracket.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "bs",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2626,13 +2650,21 @@ description: Result of parsing focusrite-scarlett-mounting-bracket.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "bs",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -375,13 +375,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -404,13 +412,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -449,13 +465,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -478,13 +502,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -574,13 +606,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -603,13 +643,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -639,13 +687,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -668,13 +724,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -780,13 +844,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -809,13 +881,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -845,13 +925,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -874,13 +962,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -961,13 +1057,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -990,13 +1094,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1186,13 +1298,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1215,13 +1335,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1297,13 +1425,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1326,13 +1462,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1491,13 +1635,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1650,13 +1802,21 @@ description: Result of parsing food-service-spatula.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -6500,13 +6500,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetHolesExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -6578,13 +6586,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetHolesExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -6656,13 +6672,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetHolesExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -6734,13 +6758,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetHolesExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -7145,13 +7177,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetCutoutExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -7223,13 +7263,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetCutoutExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -7301,13 +7349,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetCutoutExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -7379,13 +7435,21 @@ description: Result of parsing gridfinity-baseplate-magnets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "magnetCutoutExtrude",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -582,48 +582,48 @@ flowchart LR
46 --- 226
72 --- 112
72 x--> 151
72 --- 164
72 --- 198
72 --- 166
72 --- 200
73 --- 113
73 x--> 151
73 --- 160
73 --- 194
73 --- 164
73 --- 198
74 --- 114
74 x--> 151
74 --- 163
74 --- 197
74 --- 162
74 --- 196
75 --- 115
75 x--> 151
75 --- 166
75 --- 200
75 --- 165
75 --- 199
76 --- 116
76 x--> 151
76 --- 165
76 --- 199
76 --- 160
76 --- 194
77 --- 117
77 x--> 151
77 --- 170
77 --- 204
77 --- 168
77 --- 202
78 --- 118
78 x--> 151
78 --- 169
78 --- 203
79 --- 119
79 x--> 151
79 --- 161
79 --- 195
79 --- 163
79 --- 197
80 --- 120
80 x--> 151
80 --- 167
80 --- 201
80 --- 170
80 --- 204
81 --- 121
81 x--> 151
81 --- 162
81 --- 196
81 --- 161
81 --- 195
82 --- 122
82 x--> 151
82 --- 168
82 --- 202
82 --- 167
82 --- 201
84 --- 123
84 x--> 145
84 --- 171
@ -756,39 +756,39 @@ flowchart LR
109 --- 107
111 --- 159
111 --- 193
112 --- 164
112 --- 198
199 <--x 112
113 --- 160
113 --- 194
195 <--x 113
114 --- 163
114 --- 197
198 <--x 114
115 --- 166
115 --- 200
201 <--x 115
116 --- 165
116 --- 199
200 <--x 116
117 --- 170
194 <--x 117
117 --- 204
112 --- 166
112 --- 200
201 <--x 112
113 --- 164
113 --- 198
199 <--x 113
114 --- 162
114 --- 196
197 <--x 114
115 --- 165
115 --- 199
200 <--x 115
116 --- 160
116 --- 194
195 <--x 116
117 --- 168
117 --- 202
203 <--x 117
118 --- 169
118 --- 203
204 <--x 118
119 --- 161
119 --- 195
196 <--x 119
120 --- 167
120 --- 201
202 <--x 120
121 --- 162
121 --- 196
197 <--x 121
122 --- 168
122 --- 202
203 <--x 122
119 --- 163
119 --- 197
198 <--x 119
120 --- 170
194 <--x 120
120 --- 204
121 --- 161
121 --- 195
196 <--x 121
122 --- 167
122 --- 201
202 <--x 122
123 --- 171
123 --- 205
124 --- 186

View File

@ -204,13 +204,21 @@ description: Result of parsing hex-nut.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -253,13 +261,21 @@ description: Result of parsing hex-nut.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -744,13 +760,21 @@ description: Result of parsing hex-nut.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -772,13 +796,21 @@ description: Result of parsing hex-nut.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "start",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -177,72 +177,72 @@ flowchart LR
2 ---- 34
17 --- 35
17 x--> 52
17 --- 67
17 --- 84
17 --- 66
17 --- 83
18 --- 36
18 x--> 52
18 --- 58
18 --- 75
18 --- 54
18 --- 71
19 --- 37
19 x--> 52
19 --- 56
19 --- 73
19 --- 61
19 --- 78
20 --- 38
20 x--> 52
20 --- 68
20 --- 85
20 --- 67
20 --- 84
21 --- 39
21 x--> 52
21 --- 63
21 --- 80
21 --- 57
21 --- 74
22 --- 40
22 x--> 52
22 --- 54
22 --- 71
22 --- 64
22 --- 81
23 --- 41
23 x--> 52
23 --- 60
23 --- 77
23 --- 62
23 --- 79
24 --- 42
24 x--> 52
24 --- 57
24 --- 74
24 --- 68
24 --- 85
25 --- 43
25 x--> 52
25 --- 64
25 --- 81
25 --- 70
25 --- 87
26 --- 44
26 x--> 52
26 --- 59
26 --- 76
26 --- 56
26 --- 73
27 --- 45
27 x--> 52
27 --- 69
27 --- 86
28 --- 46
28 x--> 52
28 --- 66
28 --- 83
28 --- 65
28 --- 82
29 --- 47
29 x--> 52
29 --- 55
29 --- 72
30 --- 48
30 x--> 52
30 --- 61
30 --- 78
30 --- 58
30 --- 75
31 --- 49
31 x--> 52
31 --- 70
31 --- 87
31 --- 60
31 --- 77
32 --- 50
32 x--> 52
32 --- 65
32 --- 82
32 --- 63
32 --- 80
33 --- 51
33 x--> 52
33 --- 62
33 --- 79
33 --- 59
33 --- 76
34 --- 35
34 --- 36
34 --- 37
@ -296,57 +296,57 @@ flowchart LR
34 --- 85
34 --- 86
34 --- 87
35 --- 67
83 <--x 35
35 --- 84
36 --- 58
74 <--x 36
36 --- 75
37 --- 56
72 <--x 37
37 --- 73
38 --- 68
84 <--x 38
38 --- 85
39 --- 63
79 <--x 39
39 --- 80
40 --- 54
40 --- 71
87 <--x 40
41 --- 60
76 <--x 41
41 --- 77
42 --- 57
73 <--x 42
42 --- 74
43 --- 64
80 <--x 43
43 --- 81
44 --- 59
75 <--x 44
44 --- 76
35 --- 66
82 <--x 35
35 --- 83
36 --- 54
36 --- 71
87 <--x 36
37 --- 61
77 <--x 37
37 --- 78
38 --- 67
83 <--x 38
38 --- 84
39 --- 57
73 <--x 39
39 --- 74
40 --- 64
80 <--x 40
40 --- 81
41 --- 62
78 <--x 41
41 --- 79
42 --- 68
84 <--x 42
42 --- 85
43 --- 70
86 <--x 43
43 --- 87
44 --- 56
72 <--x 44
44 --- 73
45 --- 69
85 <--x 45
45 --- 86
46 --- 66
82 <--x 46
46 --- 83
46 --- 65
81 <--x 46
46 --- 82
47 --- 55
71 <--x 47
47 --- 72
48 --- 61
77 <--x 48
48 --- 78
49 --- 70
86 <--x 49
49 --- 87
50 --- 65
81 <--x 50
50 --- 82
51 --- 62
78 <--x 51
51 --- 79
48 --- 58
74 <--x 48
48 --- 75
49 --- 60
76 <--x 49
49 --- 77
50 --- 63
79 <--x 50
50 --- 80
51 --- 59
75 <--x 51
51 --- 76
54 <--x 53
55 <--x 53
56 <--x 53

View File

@ -2745,13 +2745,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -2773,13 +2781,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -9147,13 +9163,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -9219,13 +9243,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -9504,13 +9536,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -9605,13 +9645,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -9973,13 +10021,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -10400,13 +10456,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -10980,13 +11044,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -11052,13 +11124,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -11812,13 +11892,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -11884,13 +11972,21 @@ description: Result of parsing keyboard.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "origin",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -113,8 +113,8 @@ flowchart LR
8 --- 20
8 ---- 25
12 <--x 32
12 --- 33
12 <--x 34
12 <--x 33
12 --- 34
13 --- 31
13 x--> 35
13 --- 39

View File

@ -77,13 +77,21 @@ description: Result of parsing non_string_key_of_object.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "obj",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -51,13 +51,21 @@ description: Result of parsing object_prop_not_found.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "obj",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -1220,13 +1220,21 @@ description: Result of parsing pentagon_fillet_sugar.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "c1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1281,13 +1289,21 @@ description: Result of parsing pentagon_fillet_sugar.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "c1",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1579,13 +1595,21 @@ description: Result of parsing pentagon_fillet_sugar.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "c2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -1640,13 +1664,21 @@ description: Result of parsing pentagon_fillet_sugar.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "c2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -1036,13 +1036,21 @@ description: Result of parsing sketch_in_object.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "x2",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -83,13 +83,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -131,13 +139,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -223,13 +239,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -271,13 +295,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -363,13 +395,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -411,13 +451,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -503,13 +551,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -551,13 +607,21 @@ description: Result of parsing subtract_cylinder_from_cube.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

View File

@ -83,13 +83,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -135,13 +143,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -231,13 +247,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -283,13 +307,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -379,13 +411,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -431,13 +471,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -527,13 +575,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -579,13 +635,21 @@ description: Result of parsing subtract_doesnt_need_brackets.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -83,13 +83,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -135,13 +143,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -231,13 +247,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -283,13 +307,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -379,13 +411,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -431,13 +471,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -527,13 +575,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,
@ -579,13 +635,21 @@ description: Result of parsing union_cubes.kcl
"computed": false,
"end": 0,
"object": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 0,
"end": 0,