| 58 | |
| 59 | |
| 60 | static 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 */ |
no test coverage detected