MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / anchor_token

Function anchor_token

third-party/lua-5.2.4/src/lparser.c:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60static void anchor_token (LexState *ls) {
61 /* last token from outer function must be EOS */
62 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS);
63 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) {
64 TString *ts = ls->t.seminfo.ts;
65 luaX_newstring(ls, getstr(ts), ts->tsv.len);
66 }
67}
68
69
70/* semantic error */

Callers 1

close_funcFunction · 0.70

Calls 1

luaX_newstringFunction · 0.70

Tested by

no test coverage detected