def _parse_enumerator(self) -> ASTEnumerator:
    name = self._parse_nested_name()
    self.skip_ws()
    init = None
    if self.skip_string('='):
        self.skip_ws()

        def parser() -> ASTExpression:
            return self._parse_constant_expression(inTemplate=False)
        initVal = self._parse_expression_fallback([], parser)
        init = ASTInitializer(initVal)
    return ASTEnumerator(name, init)
def _parse_enumerator(self) -> ASTEnumerator:
    name = self._parse_nested_name()
    self.skip_ws()
    init = None
    if self.skip_string('='):
        self.skip_ws()

        def parser() -> ASTExpression:
            return self._parse_constant_expression(inTemplate=False)
        initVal = self._parse_expression_fallback([], parser)
        init = ASTInitializer(initVal)
    return ASTEnumerator(name, init)