MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / funcname

Function funcname

3rd/lua-5.4.3/src/lparser.c:1758–1769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1756
1757
1758static 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
1772static void funcstat (LexState *ls, int line) {

Callers 1

funcstatFunction · 0.85

Calls 2

singlevarFunction · 0.85
fieldselFunction · 0.85

Tested by

no test coverage detected