fix(es/codegen): Emit ; for TsImportEqualsDecl (#7464)

This commit is contained in:
David Sherret 2023-05-29 23:22:07 -04:00 committed by GitHub
parent 81a413b332
commit 3935d02e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 4 deletions

View File

@ -295,6 +295,7 @@ where
formatting_space!();
emit!(n.module_ref);
formatting_semi!();
}
#[emitter]

View File

@ -0,0 +1,2 @@
import Test1 = MyNamespace.Test1;
import Test2 = Test1;

View File

@ -0,0 +1,2 @@
import Test1 = MyNamespace.Test1;
import Test2 = Test1;

View File

@ -0,0 +1 @@
import Test1=MyNamespace.Test1;import Test2=Test1;

View File

@ -5,10 +5,10 @@ module A__2 {
export var Origin__3 = new Point__3(0, 0);
}
module B__2 {
import a__5 = A__2
import a__5 = A__2;
}
module C__2 {
import a__6 = A__2
import a__6 = A__2;
var m__6: typeof a__6;
var p__6: a__6.Point;
var p__6 = {
@ -17,11 +17,11 @@ module C__2 {
};
}
module D__2 {
import a__7 = A__2
import a__7 = A__2;
var p__7 = new a__7.Point(1, 1);
}
module E__2 {
import a__8 = A__2
import a__8 = A__2;
export function xDist__8(x__9: a__8.Point) {
return a__8.Origin.x - x__9.x;
}