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

Method GetParent

LuaParser/src/Ast/LuaSyntaxTree.cpp:390–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390std::size_t LuaSyntaxTree::GetParent(std::size_t index) const {
391 if (index < _nodeOrTokens.size()) {
392 return _nodeOrTokens[index].Parent;
393 }
394 return 0;
395}
396
397LuaSyntaxNodeKind LuaSyntaxTree::GetNodeKind(std::size_t index) const {
398 if (!IsNode(index)) {

Callers 12

CompleteMissTokenMethod · 0.45
FormatLineMethod · 0.45
AnalyzeMethod · 0.45
ComplexAnalyzeMethod · 0.45
AnalyzeChainExprMethod · 0.45
AnalyzeTableFieldMethod · 0.45
AnalyzeDocFormatMethod · 0.45
MarkIndentMethod · 0.45
AnalyzeMethod · 0.45
ComplexAnalyzeMethod · 0.45
AnalyzeTableExprMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected