One namespace block: kids[from, to) are its statements. Its use imports * are read first: a supertype is qualified with all of them. */
| 795 | /* One namespace block: kids[from, to) are its statements. Its use imports |
| 796 | * are read first: a supertype is qualified with all of them. */ |
| 797 | static void php_block(php_walk_t *w, const TSNode *kids, int from, int to) { |
| 798 | w->nuses = 0; |
| 799 | for (int i = from; i < to; i++) { |
| 800 | if (php_kind(kids[i], "namespace_use_declaration")) { |
| 801 | php_use_decl(w, kids[i]); |
| 802 | } |
| 803 | } |
| 804 | for (int i = from; i < to && !w->sb->oom; i++) { |
| 805 | if (php_is_type_decl(kids[i])) { |
| 806 | php_type(w, kids[i]); |
| 807 | } else if (php_kind(kids[i], "function_definition")) { |
| 808 | php_function(w, kids[i]); |
| 809 | } else if (php_kind(kids[i], "if_statement")) { |
| 810 | php_cond_decls(w, kids[i], 0, false); |
| 811 | } |
| 812 | } |
| 813 | } |
| 814 | |
| 815 | static void php_count_name(php_walk_t *w, TSNode decl) { |
| 816 | size_t nl = 0; |
no test coverage detected