# Zcu: remove \`\*\_loaded\` fields on \`File\` · gitcafe/zig

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

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

Visibility: public

Requested revision: d3ca10d5d8bc92280a14f9e40dc41d6accc1b4c2

Requested commit: d3ca10d5d8bc92280a14f9e40dc41d6accc1b4c2

Commit: d3ca10d5d8bc92280a14f9e40dc41d6accc1b4c2

Tree: 20306667045b1136e12399d5fe13612925f0677c

Author: mlugg

Committer: mlugg

## Message

```
Zcu: remove `*_loaded` fields on `File`

Instead, `source`, `tree`, and `zir` should all be optional. This is
precisely what we're actually trying to model here; and `File` isn't
optimized for memory consumption or serializability anyway, so it's fine
to use a couple of extra bytes on actual optionals here.

```

## Parents

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

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