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

Method WhileStatement

LuaParser/src/Parse/LuaParser.cpp:242–258  ·  view source on GitHub ↗

whilestat -> WHILE cond DO block END */

Source from the content-addressed store, hash-verified

240
241/* whilestat -> WHILE cond DO block END */
242void LuaParser::WhileStatement() {
243 auto m = Mark();
244
245 CheckAndNext(TK_WHILE);
246
247 Condition();
248
249 CheckAndNext(TK_DO);
250
251 Block();
252
253 CheckAndNext(TK_END);
254
255 TestAndNext(';');
256
257 m.Complete(*this, LuaSyntaxNodeKind::WhileStatement);
258}
259
260void LuaParser::DoStatement() {
261 auto m = Mark();

Callers

nothing calls this directly

Calls 1

CompleteMethod · 0.80

Tested by

no test coverage detected