# stage2: compile log stores node offset · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5769ed2d4428305e4478cf4e425f5df2469a7ffd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5769ed2d4428305e4478cf4e425f5df2469a7ffd

Requested commit: 5769ed2d4428305e4478cf4e425f5df2469a7ffd

Commit: 5769ed2d4428305e4478cf4e425f5df2469a7ffd

Tree: cb36433e95ccf98a2bc97c930f46248250869837

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: compile log stores node offset

Previously, compile log stored full SrcLoc info, which included absolute
AST node index. This becomes invalid after an incremental compilation.
To make it survive incremental compilation, store an offset from parent
Decl instead.

```

## Parents

- [b4692c9a7808caabdf474c2acc6d6d3754e5e2e4](https://git.cafe/gitcafe/zig/commit/b4692c9a7808caabdf474c2acc6d6d3754e5e2e4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5769ed2d4428305e4478cf4e425f5df2469a7ffd?format=markdown)
