Skip to content

Commit

Permalink
Revert "set some properties in AST Node ctor - workaround microsoft/T…
Browse files Browse the repository at this point in the history
…ypeScript#26811"

This reverts commit 5a7292e.
  • Loading branch information
Christopher J. Brody committed Aug 11, 2020
1 parent 3fda76b commit 0959428
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/language-html/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,6 @@ const NODES_KEYS = {

class Node {
constructor(props = {}) {
/**
* define some class properties here, to work around
* https://github.com/microsoft/TypeScript/issues/26811
*/
this.index = undefined;
this.siblings = undefined;
this.prev = undefined;
this.next = undefined;
this.parent = undefined;

this.name = undefined;
this.namespace = undefined;
this.hasExplicitNamespace = undefined;
this.children = undefined;

for (const key of Object.keys(props)) {
const value = props[key];
if (key in NODES_KEYS) {
Expand Down

0 comments on commit 0959428

Please sign in to comment.