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

Method GetChildren

LuaParser/src/Ast/LuaSyntaxNode.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113std::vector<LuaSyntaxNode> LuaSyntaxNode::GetChildren(const LuaSyntaxTree &t) const {
114 std::vector<LuaSyntaxNode> results;
115 for (auto child = GetFirstChild(t); !child.IsNull(t); child.ToNext(t)) {
116 results.push_back(child);
117 }
118 return results;
119}
120
121bool LuaSyntaxNode::IsToken(const LuaSyntaxTree &t) const {
122 return t.IsToken(_index);

Callers 15

CheckInNodeMethod · 0.80
CheckInBodyMethod · 0.80
DfsForeachMethod · 0.80
ComplexAnalyzeMethod · 0.80
AnalyzeParamListMethod · 0.80
IsSingleTableOrStringArgFunction · 0.80
AnalyzeMethod · 0.80

Calls 3

ToNextMethod · 0.80
IsNullMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected