source: node_modules/@swagger-api/apidom-ast/es/yaml/nodes/YamlMapping.mjs

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 382 bytes
Line 
1import YamlCollection from "./YamlCollection.mjs";
2import { isKeyValuePair } from "./predicates.mjs";
3class YamlMapping extends YamlCollection {
4 static type = 'mapping';
5}
6Object.defineProperty(YamlMapping.prototype, 'content', {
7 get() {
8 return Array.isArray(this.children) ? this.children.filter(isKeyValuePair) : [];
9 },
10 enumerable: true
11});
12export default YamlMapping;
Note: See TracBrowser for help on using the repository browser.