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

Function prefixexp

lua/lparser.c:706–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704
705
706static void prefixexp (LexState *ls, expdesc *v) {
707 /* prefixexp -> NAME | '(' expr ')' */
708 switch (ls->t.token) {
709 case '(': {
710 int line = ls->linenumber;
711 luaX_next(ls);
712 expr(ls, v);
713 check_match(ls, ')', '(', line);
714 luaK_dischargevars(ls->fs, v);
715 return;
716 }
717 case TK_NAME: {
718 singlevar(ls, v);
719 return;
720 }
721 default: {
722 luaX_syntaxerror(ls, "unexpected symbol");
723 return;
724 }
725 }
726}
727
728
729static void primaryexp (LexState *ls, expdesc *v) {

Callers 1

primaryexpFunction · 0.85

Calls 6

luaX_nextFunction · 0.85
exprFunction · 0.85
check_matchFunction · 0.85
luaK_dischargevarsFunction · 0.85
singlevarFunction · 0.85
luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected