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

Method LocalFunctionStatement

LuaParser/src/Parse/LuaParser.cpp:384–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void LuaParser::LocalFunctionStatement() {
385 auto m = Mark();
386
387 CheckAndNext(TK_LOCAL);
388
389 CheckAndNext(TK_FUNCTION);
390
391 CheckName();
392
393 FunctionBody();
394
395 TestAndNext(';');
396
397 m.Complete(*this, LuaSyntaxNodeKind::LocalFunctionStatement);
398}
399
400/* stat -> LOCAL ATTRIB NAME {',' ATTRIB NAME} ['=' explist] */
401void LuaParser::LocalStatement() {

Callers

nothing calls this directly

Calls 1

CompleteMethod · 0.80

Tested by

no test coverage detected