| 273 | } |
| 274 | |
| 275 | std::size_t LuaSyntaxNode::CountTokenChild(LuaTokenKind kind, const LuaSyntaxTree &t) { |
| 276 | auto count = 0; |
| 277 | for (auto child = GetFirstChild(t); !child.IsNull(t); child.ToNext(t)) { |
| 278 | if (child.GetTokenKind(t) == kind) { |
| 279 | count++; |
| 280 | } |
| 281 | } |
| 282 | return count; |
| 283 | } |
| 284 | |
| 285 | std::size_t LuaSyntaxNode::CountNodeChild(LuaSyntaxNodeKind kind, const LuaSyntaxTree &t) { |
| 286 | auto count = 0; |
nothing calls this directly
no test coverage detected