# rangeOfPath (/docs/api/functions/rangeOfPath)



```ts
function rangeOfPath(ctx, path): Range | undefined;
```

Defined in: [packages/core/src/parser.ts:197](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/parser.ts#L197)

Resolve the source range of a node addressed by `path` in the original document.

## Parameters [#parameters]

### ctx [#ctx]

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

### path [#path]

[`Path`](../type-aliases/Path.mdx)

## Returns [#returns]

[`Range`](../interfaces/Range.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)