# AstGen: remove unneeded field ref_start_index · gitcafe/zig

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

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

Visibility: public

Requested revision: 9918a5fbe3dc910f90f2c60ad74edb51de53e0cf

Requested commit: 9918a5fbe3dc910f90f2c60ad74edb51de53e0cf

Commit: 9918a5fbe3dc910f90f2c60ad74edb51de53e0cf

Tree: e46e46583051c8e9aa27347d91bafe193b2f0da2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: remove unneeded field ref_start_index

Previously, this field was used because the Zir.Inst.Ref encoding
supported the concept of references to function parameters. However now
thanks to whole-file-astgen, the implementations of indexToRef and
refToIndex are trivial addition/subtraction of a comptime const integer.

```

## Parents

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

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