It's a bit of a hack, but it works. Is there any way to create some sort of alias for __traits(getMember, ir.ops, memberName) so that I don't have to write it out in full twice? Made some attempts but only got the compiler to complain.
alias Alias(alias Sym) = Sym; alias member = Alias!(__traits(getMember, ir.ops, memberName);
It does not work with normal alias because of grammar limitation afaik.