| 402 | } |
| 403 | |
| 404 | LuaTokenKind LuaSyntaxTree::GetTokenKind(std::size_t index) const { |
| 405 | if (!IsToken(index)) { |
| 406 | return LuaTokenKind(0); |
| 407 | } |
| 408 | return _tokens[_nodeOrTokens[index].Data.TokenIndex].Kind; |
| 409 | } |
| 410 | |
| 411 | bool LuaSyntaxTree::IsNode(std::size_t index) const { |
| 412 | if (index == 0 || (_nodeOrTokens.size() <= index)) { |
no outgoing calls
no test coverage detected