(self)
return FunctionName(namepath, methodname, start=pos, end=self._pos)
Parse a funcname.

        funcname ::= Name {'.' Name} [':' Name]

        Returns:
          FunctionName(namepath, methodname)
Parse a funcname.
Parse a funcname .
def _funcname(self):
        """Parse a funcname.

        funcname ::= Name {'.' Name} [':' Name]

        Returns:
          FunctionName(namepath, methodname)
        """
        pos = self._pos
        namepath = []
        methodname = None

        name = self._accept(lexer.TokName)
        if name is None:
            return None
        namepath.append(name)
        while self._accept(lexer.TokSymbol(b'.')) is not None:
            namepath.append(self._expect(lexer.TokName))
        if self._accept(lexer.TokSymbol(b':')) is not None:
            methodname = self._expect(lexer.TokName)

        return FunctionName(namepath, methodname, start=pos, end=self._pos)
def _funcname ( self ) : pos = self . _pos namepath = [ ] methodname = None name = self . _accept ( lexer . TokName ) if name is None : return None namepath . append ( name ) while self . _accept ( lexer . TokSymbol ( b'.' ) ) is not None : namepath . append ( self . _expect ( lexer . TokName ) ) if self . _accept ( lexer . TokSymbol ( b':' ) ) is not None : methodname = self . _expect ( lexer . TokName ) return FunctionName ( namepath , methodname , start = pos , end = self . _pos )