Index: lib/base.ts |
diff --git a/lib/base.ts b/lib/base.ts |
index d49b56826d2ecd98b2b089999db2c8175595d55c..2f5b793e8a13473e1cdc54b2de9fc59e9a8e2d0f 100644 |
--- a/lib/base.ts |
+++ b/lib/base.ts |
@@ -249,7 +249,13 @@ export function isCallable(decl: ClassLike): boolean { |
}); |
} |
-export function copyLocation(src: ts.TextRange, dest: ts.TextRange) { |
+export function copyLocation(src: ts.Node, dest: ts.Node) { |
+ dest.pos = src.pos; |
+ dest.end = src.end; |
+ dest.parent = src.parent; |
+} |
+ |
+export function copyNodeArrayLocation(src: ts.TextRange, dest: ts.NodeArray<any>) { |
dest.pos = src.pos; |
dest.end = src.end; |
} |