| 1970 | |
| 1971 | |
| 1972 | static int funcname (LexState *ls, expdesc *v) { |
| 1973 | /* funcname -> NAME {fieldsel} [':' NAME] */ |
| 1974 | int ismethod = 0; |
| 1975 | singlevar(ls, v); |
| 1976 | while (ls->t.token == '.') |
| 1977 | fieldsel(ls, v); |
| 1978 | if (ls->t.token == ':') { |
| 1979 | ismethod = 1; |
| 1980 | fieldsel(ls, v); |
| 1981 | } |
| 1982 | return ismethod; |
| 1983 | } |
| 1984 | |
| 1985 | |
| 1986 | static void funcstat (LexState *ls, int line) { |