MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / body

Function body

lua/lparser.c:610–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608
609
610static void body (LexState *ls, expdesc *e, int needself, int line) {
611 /* body -> `(' parlist `)' chunk END */
612 FuncState new_fs;
613 open_func(ls, &new_fs);
614 new_fs.f->linedefined = line;
615 checknext(ls, '(');
616 if (needself) {
617 new_localvarliteral(ls, "self", 0);
618 adjustlocalvars(ls, 1);
619 }
620 parlist(ls);
621 checknext(ls, ')');
622 chunk(ls);
623 new_fs.f->lastlinedefined = ls->linenumber;
624 check_match(ls, TK_END, TK_FUNCTION, line);
625 close_func(ls);
626 pushclosure(ls, &new_fs, e);
627}
628
629
630static int explist1 (LexState *ls, expdesc *v) {

Callers 3

simpleexpFunction · 0.85
localfuncFunction · 0.85
funcstatFunction · 0.85

Calls 8

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

Tested by

no test coverage detected