| 283 | } |
| 284 | |
| 285 | std::size_t LuaSyntaxNode::CountNodeChild(LuaSyntaxNodeKind kind, const LuaSyntaxTree &t) { |
| 286 | auto count = 0; |
| 287 | for (auto child = GetFirstChild(t); !child.IsNull(t); child.ToNext(t)) { |
| 288 | if (child.GetSyntaxKind(t) == kind) { |
| 289 | count++; |
| 290 | } |
| 291 | } |
| 292 | return count; |
| 293 | } |
| 294 | |
| 295 | bool LuaSyntaxNode::IsEmpty(const LuaSyntaxTree &t) const { |
| 296 | return t.GetFirstChild(_index) == 0; |
nothing calls this directly
no test coverage detected