replace(parent, prop, index, node) {
		if (parent) {
			if (index !== null) {
				parent[prop][index] = node;
			} else {
				parent[prop] = node;
			}
		}
	}
@param {any} parent
@param {string} prop
@param {number} index
@param {BaseNode} node