MCPcopy Create free account
hub / github.com/F-Stack/f-stack / body

Function body

app/redis-6.2.6/deps/lua/src/lparser.c:580–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579
580static void body (LexState *ls, expdesc *e, int needself, int line) {
581 /* body -> `(' parlist `)' chunk END */
582 FuncState new_fs;
583 open_func(ls, &new_fs);
584 new_fs.f->linedefined = line;
585 checknext(ls, '(');
586 if (needself) {
587 new_localvarliteral(ls, "self", 0);
588 adjustlocalvars(ls, 1);
589 }
590 parlist(ls);
591 checknext(ls, ')');
592 chunk(ls);
593 new_fs.f->lastlinedefined = ls->linenumber;
594 check_match(ls, TK_END, TK_FUNCTION, line);
595 close_func(ls);
596 pushclosure(ls, &new_fs, e);
597}
598
599
600static int explist1 (LexState *ls, expdesc *v) {

Callers 3

simpleexpFunction · 0.70
localfuncFunction · 0.70
funcstatFunction · 0.70

Calls 8

chunkFunction · 0.85
open_funcFunction · 0.70
checknextFunction · 0.70
adjustlocalvarsFunction · 0.70
parlistFunction · 0.70
check_matchFunction · 0.70
close_funcFunction · 0.70
pushclosureFunction · 0.70

Tested by

no test coverage detected