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