From 3384acbd62e84b7fb4650336c653e6c513ce0137 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 28 Apr 2023 10:23:57 +0200 Subject: [PATCH] Cosmetic --- packages/ts-plugin/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ts-plugin/src/index.ts b/packages/ts-plugin/src/index.ts index 9c3dfae..92f4853 100644 --- a/packages/ts-plugin/src/index.ts +++ b/packages/ts-plugin/src/index.ts @@ -57,7 +57,8 @@ const boot: tslib.server.PluginModuleFactory = ({ typescript: ts }) => { span(s: ts.TextSpan | undefined): ts.TextSpan | undefined { if (s !== void 0 && !('__syndicate_translated__' in s)) { const newStart = this.loc(s.start); - if (newStart === void 0) throw new Error("Source position unavailable for TextSpan " + JSON.stringify(s)); + if (newStart === void 0) throw new Error( + "Source position unavailable for TextSpan " + JSON.stringify(s)); s.start = newStart; (s as any).__syndicate_translated__ = true; }