<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-parser-algorithms](./css-parser-algorithms.md) &gt; [sourceIndices](./css-parser-algorithms.sourceindices.md)

## sourceIndices() function

Returns the start and end index of a node in the CSS source string.

**Signature:**

```typescript
export declare function sourceIndices(x: {
    tokens(): Array<CSSToken>;
} | Array<{
    tokens(): Array<CSSToken>;
}>): [number, number];
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

x


</td><td>

{ tokens(): Array&lt;CSSToken&gt;; } \| Array&lt;{ tokens(): Array&lt;CSSToken&gt;; }&gt;


</td><td>


</td></tr>
</tbody></table>

**Returns:**

\[number, number\]

