From 9c8436af1f80f4bebc332595260fc4831af9c67d Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 11 Dec 2021 17:06:50 +0100 Subject: [PATCH] Repair silly mistake in codegen --- packages/compiler/src/compiler/codegen.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler/src/compiler/codegen.ts b/packages/compiler/src/compiler/codegen.ts index 5c745c7..af19e89 100644 --- a/packages/compiler/src/compiler/codegen.ts +++ b/packages/compiler/src/compiler/codegen.ts @@ -174,10 +174,10 @@ ${joinItems(sa.captureBinders.map(binderTypeGuard(ctx, t)), '\n')} : ``; */ const n = spawn.name === void 0 ? '' : t` __SYNDICATE__.Turn.activeFacet.actor.name = ${walk(spawn.name)};`; - return t`_spawn${spawn.linkedToken ? 'Link': ''}(() => {${n} ${walk(spawn.body)} });`; + return t`__SYNDICATE__.Turn.active._spawn${spawn.linkedToken ? 'Link': ''}(() => {${n} ${walk(spawn.body)} });`; } - xf(ctx.parser.spawn, expandSpawn); + x(ctx.parser.spawn, expandSpawn); x(ctx.parser.fieldDeclarationStatement, (s, t) => { const ft = ctx.typescript ? t`<${s.field.type ?? '__SYNDICATE__.AnyValue'}>` : '';