* Iterate over this node's named children. * * See also Node#children.
()
| 939 | * See also {@link Node#children}. |
| 940 | */ |
| 941 | get namedChildren() { |
| 942 | if (!this._namedChildren) { |
| 943 | marshalNode(this); |
| 944 | C._ts_node_named_children_wasm(this.tree[0]); |
| 945 | const count = C.getValue(TRANSFER_BUFFER, "i32"); |
| 946 | const buffer = C.getValue(TRANSFER_BUFFER + SIZE_OF_INT, "i32"); |
| 947 | this._namedChildren = new Array(count); |
| 948 | if (count > 0) { |
| 949 | let address = buffer; |
| 950 | for (let i2 = 0; i2 < count; i2++) { |
| 951 | this._namedChildren[i2] = unmarshalNode(this.tree, address); |
| 952 | address += SIZE_OF_NODE; |
| 953 | } |
| 954 | C._free(buffer); |
| 955 | } |
| 956 | } |
| 957 | return this._namedChildren; |
| 958 | } |
| 959 | /** |
| 960 | * Get the descendants of this node that are the given type, or in the given types array. |
| 961 | * |
nothing calls this directly
no test coverage detected