# AstGen: improve 'file cannot be a tuple' source location · gitcafe/zig

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

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

Visibility: public

Requested revision: 3fcb4408a55f3d0fb27f69555c62da81b6e9339c

Requested commit: 3fcb4408a55f3d0fb27f69555c62da81b6e9339c

Commit: 3fcb4408a55f3d0fb27f69555c62da81b6e9339c

Tree: 07fa531571e4b330c19457c878840376f3c68a89

Author: mlugg

Committer: Matthew Lugg

## Message

```
AstGen: improve 'file cannot be a tuple' source location

Instead of just reporting this on token 0, report it on the first
tuple-like field.

```

## Parents

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

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