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

Method GetChildSyntaxNodes

LuaParser/src/Ast/LuaSyntaxNode.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190std::vector<LuaSyntaxNode> LuaSyntaxNode::GetChildSyntaxNodes(LuaSyntaxNodeKind kind, const LuaSyntaxTree &t) const {
191 std::vector<LuaSyntaxNode> results;
192 auto child = GetFirstChild(t);
193 for (; !child.IsNull(t); child.ToNext(t)) {
194 if (child.GetSyntaxKind(t) == kind) {
195 results.push_back(child);
196 }
197 }
198 return results;
199}
200
201std::vector<LuaSyntaxNode> LuaSyntaxNode::GetChildSyntaxNodes(LuaSyntaxMultiKind kind, const LuaSyntaxTree &t) const {
202 std::vector<LuaSyntaxNode> results;

Callers 15

CheckInBodyMethod · 0.80
ComplexAnalyzeMethod · 0.80
CollectBinaryOperatorMethod · 0.80
AnalyzeMethod · 0.80
AnalyzeExpressionListMethod · 0.80
AnalyzeChainExprMethod · 0.80
IsSingleTableOrStringArgFunction · 0.80
AnalyzeMethod · 0.80

Calls 4

ToNextMethod · 0.80
GetSyntaxKindMethod · 0.80
IsNullMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected