# ProgramLocation

`import { ProgramLocation } from "destack:compute";`

Source location for a compute program diagnostic.

```ds title="ProgramLocation"
export struct ProgramLocation {
    offset: usize;
    line: uint32;
    column: uint32;
    length: usize;
}
```

[language/library/src/compute/program.ds:84:96](https://github.com/destack-sh/destack/blob/main/language/library/src/compute/program.ds#L84-L96)

## Members

### `offset: usize`

Zero-based byte offset.

### `line: uint32`

One-based line number.

### `column: uint32`

One-based column number.

### `length: usize`

Byte length covered by the diagnostic.
