This should be redone to be:
```
if (v->ident == Id::gate)
```