| 283 | } |
| 284 | |
| 285 | std::size_t FindKeywordOwnerLevel(cm::string_view arg) const |
| 286 | { |
| 287 | for (std::size_t i = Stack.size(); i--;) { |
| 288 | if (this->Stack[i].Bindings.Keywords.Find(arg) != |
| 289 | this->Stack[i].Bindings.Keywords.end()) { |
| 290 | return (this->Stack.size() - 1) - i; |
| 291 | } |
| 292 | } |
| 293 | return 0; |
| 294 | } |
| 295 | |
| 296 | private: |
| 297 | std::vector<ParserState> Stack; |