UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

13 lines (12 loc) 451 B
import { createCommentAttachable } from "./comment-attachable.js"; import { createEndCommentAttachable } from "./end-comment-attachable.js"; import { createNode } from "./node.js"; export function createFlowCollection(position, content, children) { return { ...createNode("flowCollection", position), ...createCommentAttachable(), ...createEndCommentAttachable(), ...content, children, }; }