| 1765 | |
| 1766 | |
| 1767 | static int funcname (LexState *ls, expdesc *v) { |
| 1768 | /* funcname -> NAME {fieldsel} [':' NAME] */ |
| 1769 | int ismethod = 0; |
| 1770 | singlevar(ls, v); |
| 1771 | while (ls->t.token == '.') |
| 1772 | fieldsel(ls, v); |
| 1773 | if (ls->t.token == ':') { |
| 1774 | ismethod = 1; |
| 1775 | fieldsel(ls, v); |
| 1776 | } |
| 1777 | return ismethod; |
| 1778 | } |
| 1779 | |
| 1780 | |
| 1781 | static void funcstat (LexState *ls, int line) { |