| 1452 | |
| 1453 | |
| 1454 | static int funcname (LexState *ls, expdesc *v) { |
| 1455 | /* funcname -> NAME {fieldsel} [`:' NAME] */ |
| 1456 | int ismethod = 0; |
| 1457 | singlevar(ls, v); |
| 1458 | while (ls->t.token == '.') |
| 1459 | fieldsel(ls, v); |
| 1460 | if (ls->t.token == ':') { |
| 1461 | ismethod = 1; |
| 1462 | fieldsel(ls, v); |
| 1463 | } |
| 1464 | return ismethod; |
| 1465 | } |
| 1466 | |
| 1467 | |
| 1468 | static void funcstat (LexState *ls, int line) { |