This commit is contained in:
Adam Chalmers
2025-04-27 07:25:20 -05:00
parent 58a13b8cfc
commit c1a249d125
3 changed files with 10 additions and 18 deletions

View File

@ -224,8 +224,7 @@ const Overlay = ({
}
const callExpression = _node1.node
const constraints =
getConstraintInfoKw(
const constraints = getConstraintInfoKw(
callExpression,
codeManager.code,
overlay.pathToNode,

View File

@ -670,12 +670,6 @@ export const hasValidEdgeTreatmentSelection = ({
return true
}
type EdgeTypes =
| 'baseEdge'
| 'getNextAdjacentEdge'
| 'getPreviousAdjacentEdge'
| 'getOppositeEdge'
// Delete Edge Treatment
export async function deleteEdgeTreatment(
ast: Node<Program>,

View File

@ -16,7 +16,6 @@
import type {
ArtifactGraph,
CallExpression,
CallExpressionKw,
Expr,
PathToNode,
@ -312,10 +311,10 @@ function modifyAstWithTagsForEdgeSelection(
)
if (err(pathToSegmentNode)) return pathToSegmentNode
const segmentNode = getNodeFromPath<CallExpression | CallExpressionKw>(
const segmentNode = getNodeFromPath<CallExpressionKw>(
astClone,
pathToSegmentNode,
['CallExpression', 'CallExpressionKw']
['CallExpressionKw']
)
if (err(segmentNode)) return segmentNode
@ -534,10 +533,10 @@ function modifyAstWithTagForSketchSegment(
// Clone AST
const astClone = structuredClone(ast)
const segmentNode = getNodeFromPath<CallExpression | CallExpressionKw>(
const segmentNode = getNodeFromPath<CallExpressionKw>(
astClone,
pathToSegmentNode,
['CallExpression', 'CallExpressionKw']
['CallExpressionKw']
)
if (err(segmentNode)) return segmentNode