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

Method GetPrevSibling

LuaParser/src/Ast/LuaSyntaxTree.cpp:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279std::size_t LuaSyntaxTree::GetPrevSibling(std::size_t index) const {
280 if (index < _nodeOrTokens.size()) {
281 return _nodeOrTokens[index].PrevSibling;
282 }
283 return 0;
284}
285
286std::size_t LuaSyntaxTree::GetFirstChild(std::size_t index) const {
287 if (index < _nodeOrTokens.size()) {

Callers 3

AnalyzeMethod · 0.45
QueryMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected