Skip to content

Instantly share code, notes, and snippets.

@lmcarreiro
Created March 19, 2018 15:04
Show Gist options
  • Select an option

  • Save lmcarreiro/6d5ec78b4d79ac526a08b3c289062743 to your computer and use it in GitHub Desktop.

Select an option

Save lmcarreiro/6d5ec78b4d79ac526a08b3c289062743 to your computer and use it in GitHub Desktop.
Indented vs Not Indented
function Node(this: Node, kind: SyntaxKind, pos: number, end: number) {
this.pos = pos;
this.end = end;
this.kind = kind;
this.id = 0;
this.flags = NodeFlags.None;
this.modifierFlagsCache = ModifierFlags.None;
this.transformFlags = TransformFlags.None;
this.parent = undefined;
this.original = undefined;
}
function Node(this: Node, kind: SyntaxKind, pos: number, end: number) {
this.pos = pos ;
this.end = end ;
this.kind = kind ;
this.id = 0 ;
this.flags = NodeFlags.None ;
this.modifierFlagsCache = ModifierFlags.None ;
this.transformFlags = TransformFlags.None;
this.parent = undefined ;
this.original = undefined ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment