Remove CallExpression support (#6639)
Users MUST use keyword call syntax now. Closes https://github.com/KittyCAD/modeling-app/issues/4600
This commit is contained in:
@ -44,7 +44,6 @@ export function absDistanceInfo({
|
||||
: 'yAbs'
|
||||
const _nodes = selectionRanges.graphSelections.map(({ codeRef }) => {
|
||||
const tmp = getNodeFromPath<Expr>(kclManager.ast, codeRef.pathToNode, [
|
||||
'CallExpression',
|
||||
'CallExpressionKw',
|
||||
])
|
||||
if (err(tmp)) return tmp
|
||||
@ -56,7 +55,7 @@ export function absDistanceInfo({
|
||||
|
||||
const isAllTooltips = nodes.every(
|
||||
(node) =>
|
||||
(node?.type === 'CallExpression' || node?.type === 'CallExpressionKw') &&
|
||||
node?.type === 'CallExpressionKw' &&
|
||||
toolTips.includes(node.callee.name.name as any)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user