| 1756 | |
| 1757 | |
| 1758 | static int funcname (LexState *ls, expdesc *v) { |
| 1759 | /* funcname -> NAME {fieldsel} [':' NAME] */ |
| 1760 | int ismethod = 0; |
| 1761 | singlevar(ls, v); |
| 1762 | while (ls->t.token == '.') |
| 1763 | fieldsel(ls, v); |
| 1764 | if (ls->t.token == ':') { |
| 1765 | ismethod = 1; |
| 1766 | fieldsel(ls, v); |
| 1767 | } |
| 1768 | return ismethod; |
| 1769 | } |
| 1770 | |
| 1771 | |
| 1772 | static void funcstat (LexState *ls, int line) { |