(nodeOrProperties = {})
| 17 | parent; |
| 18 | |
| 19 | constructor(nodeOrProperties = {}) { |
| 20 | for (const property of new Set([ |
| 21 | ...NON_ENUMERABLE_PROPERTIES, |
| 22 | ...Object.keys(nodeOrProperties), |
| 23 | ])) { |
| 24 | this.setProperty(property, nodeOrProperties[property]); |
| 25 | } |
| 26 | |
| 27 | if (isFrontMatter(nodeOrProperties)) { |
| 28 | for (const property of Object.getOwnPropertySymbols(nodeOrProperties)) { |
| 29 | this.setProperty(property, nodeOrProperties[property]); |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | setProperty(property, value) { |
| 35 | if (this[property] === value) { |
nothing calls this directly
no test coverage detected