Post-kwargs cleanup (#6571)

* Remove dead code
* Stop creating CallExpression and instead create CallExpressionKw
This commit is contained in:
Adam Chalmers
2025-04-29 16:05:45 -05:00
committed by GitHub
parent 1fa6e1eccc
commit fa51b4bbbc
6 changed files with 46 additions and 145 deletions

View File

@ -140,23 +140,6 @@ export function createPipeSubstitution(): Node<PipeSubstitution> {
}
}
export function createCallExpressionStdLib(
name: string,
args: CallExpression['arguments']
): Node<CallExpression> {
return {
type: 'CallExpression',
start: 0,
end: 0,
moduleId: 0,
outerAttrs: [],
preComments: [],
commentStart: 0,
callee: createLocalName(name),
arguments: args,
}
}
export const nonCodeMetaEmpty = () => {
return { nonCodeNodes: {}, startNodes: [], start: 0, end: 0 }
}