MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / NextAs

Method NextAs

LuaParser/src/Parse/LuaParser.cpp:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void LuaParser::NextAs(LuaTokenKind kind) {
67 auto me = MarkEvent(MarkEventType::EatToken);
68 me.U.Token.Kind = kind;
69 me.U.Token.Index = _tokenIndex;
70 _events.push_back(me);
71 _tokenIndex++;
72 _invalid = true;
73}
74
75LuaTokenKind LuaParser::LookAhead() {
76 std::size_t nextIndex = _tokenIndex + 1;

Callers

nothing calls this directly

Calls 2

MarkEventClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected