# stage2: breaking AST memory layout modifications · gitcafe/zig

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

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

Visibility: public

Requested revision: f11909227312882f29dbfc484dc79ab622792787

Requested commit: f11909227312882f29dbfc484dc79ab622792787

Commit: f11909227312882f29dbfc484dc79ab622792787

Tree: 3f327f4d16c32034cb1eea79dfaeadfef6303d9b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: breaking AST memory layout modifications

ast.Node.Id => ast.Node.Tag, matching recent style conventions.

Now multiple different AST node tags can map to the same AST node data
structures. In this commit, simple prefix operators now all map top
SimplePrefixOp.

`ast.Node.castTag` is now preferred over `ast.Node.cast`.

Upcoming: InfixOp flattened out.

```

## Parents

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

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