Skip to content

Commit a453618

Browse files
dependabot[bot]github-actions[bot]buke
authored
deps(deps): bump microsoft/typescript-go from d1be94b to ea6a3dc (#32)
* deps(deps): bump microsoft/typescript-go from `d1be94b` to `ea6a3dc` Bumps [microsoft/typescript-go](https://github.com/microsoft/typescript-go) from `d1be94b` to `ea6a3dc`. - [Commits](microsoft/typescript-go@d1be94b...ea6a3dc) --- updated-dependencies: - dependency-name: microsoft/typescript-go dependency-version: ea6a3dc055cfcac80fecf12264b01d62bfd7a094 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * chore(sync): mirror internal packages into pkg/ (auto) (#33) Co-authored-by: buke <1013738+buke@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: buke <1013738+buke@users.noreply.github.com>
1 parent cd74263 commit a453618

File tree

9 files changed

+10
-42
lines changed

9 files changed

+10
-42
lines changed

pkg/printer/printer.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4272,9 +4272,10 @@ func (p *Printer) emitPropertyAssignment(node *ast.PropertyAssignment) {
42724272
// "comment1" is not considered to be leading comment for node.initializer
42734273
// but rather a trailing comment on the previous node.
42744274
initializer := node.Initializer
4275-
4276-
// !!! emit trailing comments of initializer
4277-
4275+
if p.emitContext.EmitFlags(initializer)&EFNoLeadingComments == 0 {
4276+
commentRange := getCommentRange(initializer)
4277+
p.emitTrailingComments(commentRange.Pos(), commentSeparatorAfter)
4278+
}
42784279
p.emitExpression(initializer, ast.OperatorPrecedenceDisallowComma)
42794280
p.exitNode(node.AsNode(), state)
42804281
}

testdata/baselines/reference/submodule/compiler/commentsBeforeFunctionExpression1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ var v = {
88

99
//// [commentsBeforeFunctionExpression1.js]
1010
var v = {
11-
f: (a) => 0
11+
f: /**own f*/ (a) => 0
1212
};

testdata/baselines/reference/submodule/compiler/commentsBeforeFunctionExpression1.js.diff

Lines changed: 0 additions & 9 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/commentsInterface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var i2_i_nc_fnfoo = i2_i.nc_fnfoo;
9191
var i2_i_nc_fnfoo_r = i2_i.nc_fnfoo(10);
9292
var i3_i;
9393
i3_i = {
94-
f: (/**i3_i a*/ a) => "Hello" + a,
94+
f: /**own f*/ (/**i3_i a*/ a) => "Hello" + a,
9595
l: this.f,
9696
/** own x*/
9797
x: this.f(10),

testdata/baselines/reference/submodule/compiler/commentsInterface.js.diff

Lines changed: 0 additions & 11 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/commentsOnPropertyOfObjectLiteral1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ var resolve = {
1717

1818
//// [commentsOnPropertyOfObjectLiteral1.js]
1919
var resolve = {
20-
id: (details) => details.id,
21-
id1: "hello",
20+
id: /*! @ngInject */ (details) => details.id,
21+
id1: /* c1 */ "hello",
2222
id2:
2323
/*! @ngInject */ (details) => details.id,
2424
id3:

testdata/baselines/reference/submodule/compiler/commentsOnPropertyOfObjectLiteral1.js.diff

Lines changed: 0 additions & 13 deletions
This file was deleted.

testdata/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
207207
exports.getVar = getVar;
208208
const index_1 = require("../sub-project/index");
209209
const variable = {
210-
key: 'value',
210+
key: /** @type {MyNominal} */ 'value',
211211
};
212212
/**
213213
* @return {keyof typeof variable}

0 commit comments

Comments
 (0)