Lines Matching refs:children
28146 state.children = null; // State
28164 state.children = [];
28189 state.children.push(clone);
28200 state.children = state.children.filter(function (child) {
28203 assert.equal(state.children.length, 1, 'Root node can have only one child');
28209 var children = args.filter(function (arg) {
28216 if (children.length !== 0) {
28217 assert(state.children === null);
28218 state.children = children; // Replace parent to maintain backward link
28220 children.forEach(function (child) {
28348 if (state.parent === null) return input.wrapResult(state.children[0]._decode(input, options));
28414 if (!state.any && state.choice === null && state.children !== null) {
28415 state.children.forEach(function decodeChildren(child) {
28453 state.useDecoder = state.useDecoder._baseState.children[0];
28512 if (state.parent === null) return state.children[0]._encode(data, reporter || new Reporter());
28533 } else if (state.children) {
28534 content = state.children.map(function (child) {