Closed makenowjust closed 4 weeks ago
Discussed in https://github.com/cloudspannerecosystem/memefish/pull/111#discussion_r1804685005
This PR introduces a new function parseCommaSeparatedList. This function is a replacement of the following idiom to parse comma separated list:
parseCommaSeparatedList
xxxs := []*ast.XXX{p.parseXXX()} for p.Token.Kind == "," { p.nextToken() xxxs = append(xxxs, p.parseXXX()) }
In fact, this PR reduces about 60 lines of code.
Discussed in https://github.com/cloudspannerecosystem/memefish/pull/111#discussion_r1804685005
This PR introduces a new function
parseCommaSeparatedList
. This function is a replacement of the following idiom to parse comma separated list:In fact, this PR reduces about 60 lines of code.