use more generic variable names for parts
This commit is contained in:
@ -1267,7 +1267,7 @@ export function addSketchTo(
|
|||||||
): { modifiedAst: Program; id: string; pathToNode: (string | number)[] } {
|
): { modifiedAst: Program; id: string; pathToNode: (string | number)[] } {
|
||||||
const _node = { ...node }
|
const _node = { ...node }
|
||||||
const dumbyStartend = { start: 0, end: 0 }
|
const dumbyStartend = { start: 0, end: 0 }
|
||||||
const _name = name || findUniqueName(node, 'mySketch')
|
const _name = name || findUniqueName(node, 'part')
|
||||||
const sketchBody: BlockStatement = {
|
const sketchBody: BlockStatement = {
|
||||||
type: 'BlockStatement',
|
type: 'BlockStatement',
|
||||||
...dumbyStartend,
|
...dumbyStartend,
|
||||||
|
Reference in New Issue
Block a user