# Autodoc: report syntax errors to user · gitcafe/zig

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

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

Visibility: public

Requested revision: 293603f04029e2b1edf235a80417f3bb9651482f

Requested commit: 293603f04029e2b1edf235a80417f3bb9651482f

Commit: 293603f04029e2b1edf235a80417f3bb9651482f

Tree: 9bb0c7a86fc06915823ebcd7366a00231b95d2ba

Author: Ian Johnson

Committer: Ian Johnson

## Message

```
Autodoc: report syntax errors to user

Additionally, this commit streamlines the way unparseable files are handled, by giving them the AST of an empty file. This avoids bugs in the rest of the Autodoc logic trying to work with invalid ASTs.

```

## Parents

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

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