yaml-unist-parser
Version:
A YAML parser that produces output compatible with unist
11 lines (10 loc) • 342 B
JavaScript
import { createLeadingCommentAttachable } from "./leading-comment-attachable.js";
import { createNode } from "./node.js";
export function createMapping(position, content, children) {
return {
...createNode("mapping", position),
...createLeadingCommentAttachable(),
...content,
children,
};
}