source: node_modules/@swagger-api/apidom-ast/es/yaml/schemas/json/Null.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: 375 bytes
Line 
1import Tag from "../Tag.mjs";
2/* eslint-disable class-methods-use-this */
3class Null extends Tag {
4 static uri = 'tag:yaml.org,2002:null';
5 test(node) {
6 return /^null$/.test(node.content);
7 }
8 resolve(node) {
9 const nodeClone = node.clone();
10 nodeClone.content = null;
11 return nodeClone;
12 }
13}
14/* eslint-enable class-methods-use-this */
15
16export default Null;
Note: See TracBrowser for help on using the repository browser.