Skip to content

Return value of a Visit* function? #375

Answered by yoheimuta
dduugg asked this question in Q&A
Discussion options

You must be logged in to vote

@dduugg The return value determines if the parser will continue to delve deeper into the enum. You can see this in action at https://github.com/yoheimuta/go-protoparser/blob/e4248a911a58f09fabca602fb643a4839ad12cc4/parser/enum.go#L86-L88.

In this scenario, there's no need to examine the contents of the enum since the rule only concerns the enum's name.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dduugg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants