UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

13 lines (12 loc) 461 B
import { createEndCommentAttachable } from "./end-comment-attachable.js"; import { createLeadingCommentAttachable } from "./leading-comment-attachable.js"; import { createNode } from "./node.js"; export function createSequence(position, content, children) { return { ...createNode("sequence", position), ...createLeadingCommentAttachable(), ...createEndCommentAttachable(), ...content, children, }; }