Skip to content

Commit

Permalink
fix some recast shit
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jun 25, 2024
1 parent ff92137 commit da25fd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lang/queryAst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ export function traverse(
// do nothing
} else if (_node.type === 'Literal') {
// do nothing
} else if (_node.type === 'TagDeclarator') {
// do nothing
} else if (_node.type === 'ArrayExpression') {
_node.elements.forEach((el, index) =>
_traverse(el, [
Expand Down
4 changes: 3 additions & 1 deletion src/lang/std/sketch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,7 @@ export const angledLineThatIntersects: SketchLineHelper = {
const { node: pipe } = nodeMeta

const angle = createLiteral(roundOff(getAngle(from, to), 0))
console.log('referencedSegment', referencedSegment)
if (!referencedSegment) {
return new Error('referencedSegment must be provided')
}
Expand Down Expand Up @@ -1508,7 +1509,8 @@ export const angledLineThatIntersects: SketchLineHelper = {
returnVal.push(
constrainInfo(
'intersectionTag',
isNotLiteralArrayOrStatic(tag),
// This will always be a tag identifier.
false,
code.slice(tag.start, tag.end),
'angledLineThatIntersects',
'intersectTag',
Expand Down

0 comments on commit da25fd6

Please sign in to comment.