| 1461 | |
| 1462 | |
| 1463 | static int funcname (LexState *ls, expdesc *v) { |
| 1464 | /* funcname -> NAME {fieldsel} [':' NAME] */ |
| 1465 | int ismethod = 0; |
| 1466 | singlevar(ls, v); |
| 1467 | while (ls->t.token == '.') |
| 1468 | fieldsel(ls, v); |
| 1469 | if (ls->t.token == ':') { |
| 1470 | ismethod = 1; |
| 1471 | fieldsel(ls, v); |
| 1472 | } |
| 1473 | return ismethod; |
| 1474 | } |
| 1475 | |
| 1476 | |
| 1477 | static void funcstat (LexState *ls, int line) { |