| 910 | } |
| 911 | |
| 912 | std::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 '>'] */ |
| 924 | void LuaParser::LocalAttribute() { |
nothing calls this directly
no test coverage detected