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

Method Parse

LuaParser/src/Parse/LuaParser.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool LuaParser::Parse() {
35 try {
36 Block();
37 } catch (LuaParseException &e) {
38 auto text = _file->GetSource();
39 _errors.emplace_back(e.what(), TextRange(text.size(), 0));
40 }
41
42 if (_tokenIndex < _tokens.size()) {
43 _errors.emplace_back("parsing did not complete",
44 _tokens[_tokenIndex].Range);
45 }
46
47 return true;
48}
49
50Marker LuaParser::Mark() {
51 auto pos = _events.size();

Callers

nothing calls this directly

Calls 4

TextRangeClass · 0.85
GetSourceMethod · 0.80
whatMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected