yaml-unist-parser
Version:
A YAML parser that produces output compatible with unist
14 lines (13 loc) • 441 B
JavaScript
import { createLeadingCommentAttachable } from "./leading-comment-attachable.js";
import { createNode } from "./node.js";
export function createBlockValue(position, content, chomping, indent, value, indicatorComment) {
return {
...createNode("blockValue", position),
...createLeadingCommentAttachable(),
...content,
chomping,
indent,
value,
indicatorComment,
};
}