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

Method CheckName

LuaParser/src/Parse/LuaParser.cpp:912–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910}
911
912std::string_view LuaParser::CheckName() {
913 if (Current() == TK_NAME) {
914 auto range = _tokens[_tokenIndex].Range;
915 Next();
916 return _file->GetSource().substr(range.StartOffset, range.GetEndOffset() - range.StartOffset + 1);
917 }
918
919 LuaExpectedError("expected <name>");
920 return "";
921}
922
923/* ATTRIB -> ['<' Name '>'] */
924void LuaParser::LocalAttribute() {

Callers

nothing calls this directly

Calls 2

GetSourceMethod · 0.80
GetEndOffsetMethod · 0.45

Tested by

no test coverage detected