Repair silly mistake in codegen

This commit is contained in:
Tony Garnock-Jones 2021-12-11 17:06:50 +01:00
parent 89d340cfc8
commit 9c8436af1f
1 changed files with 2 additions and 2 deletions

View File

@ -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'}>` : '';