# originOf (/docs/api/functions/originOf)



```ts
function originOf(ctx, node): Origin | undefined;
```

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

The origin recorded for `node`, if any.

## Parameters [#parameters]

### ctx [#ctx]

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

### node [#node]

`object`

## Returns [#returns]

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


## Sitemap

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