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