public function parseChoice(ChoiceNode $choiceNode) { $tag = $this->parse($choiceNode->getTag()); return $this->parse($choiceNode->getChoices()[$tag]); }
public function parseChoice(ChoiceNode $choiceNode) { $this->expectSkip(3); $tag = $this->parseVersionedInt(); $field = $this->tree->getNode($choiceNode->getChoices()[$tag]); if ($field === NULL) { $this->skip(); return NULL; } return $this->parse($field); }