# deriveNode (/docs/api/functions/deriveNode)



```ts
function deriveNode<T>(
   ctx, 
   from, 
   node): T;
```

Defined in: [packages/core/src/ir.ts:160](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/ir.ts#L160)

Make a freshly built `node` map back to `from`'s source (synthetic nodes).

## Type Parameters [#type-parameters]

### T [#t]

`T` *extends* `object`

## Parameters [#parameters]

### ctx [#ctx]

[`ParseContext`](../interfaces/ParseContext.mdx)

### from [#from]

`object`

### node [#node]

`T`

## Returns [#returns]

`T`


## Sitemap

Browse the full documentation: [Markdown sitemap](https://austenstone.github.io/actio/sitemap.md) · [XML sitemap](https://austenstone.github.io/actio/sitemap.xml)