"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require("../../../../../Class/$");
const Functional_1 = require("../../../../../Class/Functional");
const MethodNotImplementedError_1 = require("../../../../../exception/MethodNotImplementedError");
const _ids_1 = require("../../../../_ids");
class Children extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['parent'],
            o: ['children'],
        }, {
            input: {
                parent: {
                    ref: true,
                },
            },
            output: {
                children: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_CHILDREN);
    }
    f({ parent }, done) {
        const _children = parent.refChildren();
        const children = new (class Children_ extends _1.$ {
            async append(a) {
                throw new MethodNotImplementedError_1.MethodNotImplementedError();
            }
            async put(i, data) {
                throw new MethodNotImplementedError_1.MethodNotImplementedError();
            }
            async at(i) {
                throw new MethodNotImplementedError_1.MethodNotImplementedError();
            }
            async length() {
                return _children.length;
            }
            async indexOf(a) {
                throw new MethodNotImplementedError_1.MethodNotImplementedError();
            }
            async pop() {
                throw new MethodNotImplementedError_1.MethodNotImplementedError();
            }
            shift() {
                throw new MethodNotImplementedError_1.MethodNotImplementedError();
            }
        })(this.__system);
        done({
            children,
        });
    }
}
exports.default = Children;
//# sourceMappingURL=index.js.map