source: node_modules/@swagger-api/apidom-ast/es/Error.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: 308 bytes
RevLine 
[d24f17c]1import Node from "./Node.mjs";
2class Error extends Node {
3 static type = 'error';
4 value;
5 isUnexpected;
6 constructor({
7 value,
8 isUnexpected = false,
9 ...rest
10 } = {}) {
11 super({
12 ...rest
13 });
14 this.value = value;
15 this.isUnexpected = isUnexpected;
16 }
17}
18export default Error;
Note: See TracBrowser for help on using the repository browser.