Skip to content

Commit 381e609

Browse files
TypeScript Botiisaduan
TypeScript Bot
andauthored
🤖 Pick PR #59137 (visitNodesWithoutCopyingPositions...) into release-5.5 (#59179)
Co-authored-by: Isabel Duan <[email protected]>
1 parent a0a3a79 commit 381e609

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

‎src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8969,7 +8969,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
89698969
if (result) {
89708970
if (result.pos !== -1 || result.end !== -1) {
89718971
if (result === nodes) {
8972-
result = factory.createNodeArray(nodes, nodes.hasTrailingComma);
8972+
result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma);
89738973
}
89748974
setTextRangePosEnd(result, -1, -1);
89758975
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
// @module: preserve
4+
5+
// @Filename: /TLLineShape.ts
6+
//// import { createShapePropsMigrationIds } from "./TLShape";
7+
//// createShapePropsMigrationIds/**/
8+
9+
// @Filename: /TLShape.ts
10+
//// import { T } from "@tldraw/validate";
11+
////
12+
//// /**
13+
//// * @public
14+
//// */
15+
//// export function createShapePropsMigrationIds<T>(): { [k in keyof T]: any } {
16+
//// return;
17+
//// }
18+
19+
verify.completions({
20+
marker: "",
21+
includes: [
22+
{
23+
name: "createShapePropsMigrationIds",
24+
text: "(alias) function createShapePropsMigrationIds<T>(): { [k in keyof T]: any; }\nimport createShapePropsMigrationIds",
25+
tags: [{ name: "public", text: undefined }]
26+
}
27+
]
28+
});
29+
30+
goTo.file("/TLShape.ts");
31+
verify.organizeImports(
32+
`
33+
/**
34+
* @public
35+
*/
36+
export function createShapePropsMigrationIds<T>(): { [k in keyof T]: any } {
37+
return;
38+
}`);

0 commit comments

Comments
 (0)