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

Method LocalAttribute

LuaParser/src/Parse/LuaParser.cpp:924–936  ·  view source on GitHub ↗

ATTRIB -> ['<' Name '>'] */

Source from the content-addressed store, hash-verified

922
923/* ATTRIB -> ['<' Name '>'] */
924void LuaParser::LocalAttribute() {
925 auto m = Mark();
926 if (TestAndNext('<')) {
927 auto attributeName = CheckName();
928 CheckAndNext('>');
929 if (attributeName != "const" && attributeName != "close") {
930 LuaExpectedError(util::format("unknown attribute {}", attributeName));
931 }
932 m.Complete(*this, LuaSyntaxNodeKind::Attribute);
933 return;
934 }
935 m.Undo(*this);
936}
937
938void LuaParser::Check(LuaTokenKind c) {
939 if (Current() != c) {

Callers

nothing calls this directly

Calls 3

CompleteMethod · 0.80
UndoMethod · 0.80
formatFunction · 0.50

Tested by

no test coverage detected