# setOrigin (/docs/api/functions/setOrigin)



```ts
function setOrigin(
   ctx, 
   node, 
   origin): void;
```

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

Attach an explicit origin to `node`.

## Parameters [#parameters]

### ctx [#ctx]

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

### node [#node]

`object`

### origin [#origin]

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

## Returns [#returns]

`void`


## Sitemap

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