-
The Other rules return What is the meaning of the return value? |
Beta Was this translation helpful? Give feedback.
Answered by
yoheimuta
Mar 23, 2024
Replies: 1 comment
-
@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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dduugg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.