fn parsePtrIndexPayload(p: *Parse) Error!OptionalTokenIndex p: *Parse2749
2750
2751
2752
2753
2754
2755
2756
2757
2758fn parsePtrIndexPayload(p: *Parse) Error!OptionalTokenIndex {
_ = p.eatToken(.pipe) orelse return .none;
_ = p.eatToken(.asterisk);
const identifier = try p.expectToken(.identifier);
if (p.eatToken(.comma) != null) {
_ = try p.expectToken(.identifier);
}
_ = try p.expectToken(.pipe);
return .fromToken(identifier);
}
Returns the first identifier token, if any.