Skip to content

Commit

Permalink
generator
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 26, 2021
1 parent c13e528 commit d7e8868
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
8 changes: 4 additions & 4 deletions packages/babel-generator/src/generators/typescript.ts
Expand Up @@ -649,10 +649,6 @@ export function tsPrintClassMemberModifiers(this: Printer, node: any, isField) {
this.word("declare");
this.space();
}
if (node.override) {
this.word("override");
this.space();
}
if (node.accessibility) {
this.word(node.accessibility);
this.space();
Expand All @@ -661,6 +657,10 @@ export function tsPrintClassMemberModifiers(this: Printer, node: any, isField) {
this.word("static");
this.space();
}
if (node.override) {
this.word("override");
this.space();
}
if (node.abstract) {
this.word("abstract");
this.space();
Expand Down
@@ -1,8 +1,6 @@
class MyClass extends BaseClass {
override show() {}
override public show() {}
public override show() {}
override size = 5;
override readonly size = 5;
readonly override size = 5;
public static override readonly size = 5;
}
@@ -1,11 +1,8 @@
class MyClass extends BaseClass {
override show() {}

override public show() {}

override public show() {}
public override show() {}

override size = 5;
override readonly size = 5;
override readonly size = 5;
}
public static override readonly size = 5;
}

0 comments on commit d7e8868

Please sign in to comment.