@shopify/cli 3.72.2 → 3.73.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/hydrogen/starter/CHANGELOG.md +814 -0
- package/dist/assets/hydrogen/starter/app/components/Aside.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +3 -4
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +113 -44
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +8 -3
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +6 -5
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +3 -3
- package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +9 -16
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -10
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -10
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +50 -119
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +42 -38
- package/dist/assets/hydrogen/starter/app/styles/app.css +25 -1
- package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +23 -20
- package/dist/assets/hydrogen/starter/guides/search/search.md +27 -25
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +177 -194
- package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
- package/dist/{chokidar-OESTCX4H.js → chokidar-5LLC6S6D.js} +47 -90
- package/dist/{chunk-VSLR7ET4.js → chunk-25IMI7TH.js} +8 -46
- package/dist/{chunk-NCKQIOV4.js → chunk-3HBRMIPY.js} +28 -50
- package/dist/{chunk-NXHZX3WR.js → chunk-3UQTWISO.js} +9 -9
- package/dist/{chunk-GVNIHXMX.js → chunk-4SP4IRCQ.js} +38 -60
- package/dist/{chunk-QDPQB6WU.js → chunk-4UAFBJXJ.js} +5 -5
- package/dist/{chunk-L2J5VM7R.js → chunk-5YYJVU2L.js} +41 -68
- package/dist/{chunk-I6R52HNI.js → chunk-6NZVGPSV.js} +39 -68
- package/dist/{chunk-XVNW332R.js → chunk-75LV6AQS.js} +6 -10
- package/dist/{chunk-N2V4IFX3.js → chunk-7JQIHXLD.js} +3 -3
- package/dist/{chunk-2HGYYNE5.js → chunk-B5EXYCV3.js} +5 -9
- package/dist/{chunk-NB4NLOEJ.js → chunk-BUFIEXZ5.js} +11 -20
- package/dist/{chunk-522OB3EU.js → chunk-CFIKVUNW.js} +2 -2
- package/dist/{chunk-KYB6A4PE.js → chunk-CRHXI6PS.js} +13 -23
- package/dist/{chunk-SO2RZ6TZ.js → chunk-CXHISGHD.js} +5 -5
- package/dist/{chunk-2YCRDHPC.js → chunk-DZHO64DX.js} +4 -4
- package/dist/{chunk-KGKTCQ7H.js → chunk-EKIVYQZC.js} +5 -5
- package/dist/{chunk-NUP5TATA.js → chunk-EZQWZ57B.js} +2 -2
- package/dist/{chunk-UBB7JKND.js → chunk-G2ZZKGSV.js} +2 -2
- package/dist/{chunk-CBBS4CV7.js → chunk-G5R6YD27.js} +8 -13
- package/dist/{chunk-ECWFBV2F.js → chunk-GLYEBL66.js} +5 -5
- package/dist/{chunk-E37RRDIH.js → chunk-HIQDOFZI.js} +4 -4
- package/dist/{chunk-HYGCZ6GV.js → chunk-HYVCBINV.js} +68 -49
- package/dist/{chunk-ZESD7DR7.js → chunk-I72O5WWR.js} +67 -104
- package/dist/{chunk-OXKHBIW7.js → chunk-IG5SOACB.js} +29 -34
- package/dist/{chunk-OWLPHMUA.js → chunk-J673ZU5S.js} +4 -4
- package/dist/{chunk-K6Y4FYT5.js → chunk-K7HGDAI4.js} +17 -20
- package/dist/{chunk-UIRMJZRW.js → chunk-KD7WMX4J.js} +4 -4
- package/dist/{chunk-BYPQXSAL.js → chunk-KUM3DVPF.js} +17 -13
- package/dist/{chunk-6IUL3QZW.js → chunk-LPBV67AA.js} +4 -4
- package/dist/{chunk-WNDN5FAY.js → chunk-MHUINF7I.js} +3 -3
- package/dist/{chunk-JDM5VOXB.js → chunk-MJWFXPPX.js} +3 -3
- package/dist/{chunk-NE43V3EI.js → chunk-MLL3JKVY.js} +6 -7
- package/dist/{chunk-QXIIXX7G.js → chunk-NHV2E73I.js} +16518 -24140
- package/dist/{chunk-HMUOOT55.js → chunk-NQZUE7SY.js} +6 -6
- package/dist/{chunk-PQQTBTYM.js → chunk-O72ZUVEA.js} +4 -5
- package/dist/{chunk-SNOECVP4.js → chunk-OAZFIMJ3.js} +2 -2
- package/dist/{chunk-UIAIRQSP.js → chunk-OFYEMT6X.js} +3 -3
- package/dist/{chunk-4HTVLK2H.js → chunk-OXS42VB7.js} +1402 -1989
- package/dist/{chunk-TAKO7LSJ.js → chunk-P63UVLRS.js} +7 -7
- package/dist/{chunk-GKEFW755.js → chunk-PBDGN4T2.js} +6 -6
- package/dist/{chunk-POZ5MGPT.js → chunk-PKR7KJ6P.js} +2 -3
- package/dist/{chunk-PKJLXLTR.js → chunk-PVMQM44E.js} +5 -5
- package/dist/{chunk-KCI6QCAV.js → chunk-PWMEMGZN.js} +4 -4
- package/dist/{chunk-KMZ5JSGS.js → chunk-QIM24FVT.js} +3 -3
- package/dist/{chunk-VJ7TIVX7.js → chunk-RBLSG22M.js} +6 -7
- package/dist/{chunk-K7B4JJLF.js → chunk-RDZJQNFU.js} +4 -4
- package/dist/{chunk-YKUYPSCY.js → chunk-RZOW7U2N.js} +3 -3
- package/dist/{chunk-OJOHMVV7.js → chunk-SBPFWO4S.js} +294 -448
- package/dist/{chunk-O5K4AU7Q.js → chunk-SHWOPMLQ.js} +3 -4
- package/dist/{chunk-KWLJTNRE.js → chunk-SNXQ36U2.js} +4 -4
- package/dist/{chunk-KVEY52WG.js → chunk-TIXENOYB.js} +4 -4
- package/dist/{chunk-RCRRAFH7.js → chunk-X4N2QZOS.js} +3 -3
- package/dist/{chunk-VWNWE4HG.js → chunk-X5WKMCE4.js} +111 -84
- package/dist/{chunk-PMUQTGZJ.js → chunk-X7YTIMNN.js} +4 -6
- package/dist/{chunk-7Q3MMWAC.js → chunk-XE5EOEBL.js} +2 -2
- package/dist/{chunk-YXJHYEP7.js → chunk-YVXC5Q6R.js} +4 -4
- package/dist/{chunk-HSTSRNLJ.js → chunk-ZX3L2JKV.js} +64 -86
- package/dist/cli/commands/auth/logout.js +28 -28
- package/dist/cli/commands/auth/logout.test.js +30 -30
- package/dist/cli/commands/cache/clear.js +27 -27
- package/dist/cli/commands/debug/command-flags.js +27 -27
- package/dist/cli/commands/docs/generate.js +27 -27
- package/dist/cli/commands/docs/generate.test.js +28 -28
- package/dist/cli/commands/help.js +27 -27
- package/dist/cli/commands/kitchen-sink/async.js +28 -28
- package/dist/cli/commands/kitchen-sink/async.test.js +29 -29
- package/dist/cli/commands/kitchen-sink/index.js +30 -30
- package/dist/cli/commands/kitchen-sink/index.test.js +31 -31
- package/dist/cli/commands/kitchen-sink/prompts.js +28 -28
- package/dist/cli/commands/kitchen-sink/prompts.test.js +29 -29
- package/dist/cli/commands/kitchen-sink/static.js +28 -28
- package/dist/cli/commands/kitchen-sink/static.test.js +29 -29
- package/dist/cli/commands/notifications/generate.js +28 -28
- package/dist/cli/commands/notifications/list.js +28 -28
- package/dist/cli/commands/search.js +28 -28
- package/dist/cli/commands/upgrade.js +28 -28
- package/dist/cli/commands/upgrade.test.js +3 -3
- package/dist/cli/commands/version.js +28 -28
- package/dist/cli/commands/version.test.js +29 -29
- package/dist/cli/services/commands/notifications.js +21 -21
- package/dist/cli/services/commands/search.js +15 -15
- package/dist/cli/services/commands/search.test.js +16 -16
- package/dist/cli/services/commands/version.js +16 -16
- package/dist/cli/services/commands/version.test.js +18 -18
- package/dist/cli/services/kitchen-sink/async.js +15 -15
- package/dist/cli/services/kitchen-sink/prompts.js +15 -15
- package/dist/cli/services/kitchen-sink/static.js +15 -15
- package/dist/cli/services/upgrade.js +17 -17
- package/dist/cli/services/upgrade.test.js +20 -20
- package/dist/configs/all.yml +12 -0
- package/dist/configs/recommended.yml +15 -0
- package/dist/configs/theme-app-extension.yml +3 -0
- package/dist/{custom-oclif-loader-G2DAJL7B.js → custom-oclif-loader-L4JT3EUD.js} +15 -15
- package/dist/data/latest.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/preset.json +66 -0
- package/dist/data/preset_blocks.json +20 -13
- package/dist/data/section.json +1 -15
- package/dist/data/setting.json +1 -1
- package/dist/data/theme_block.json +1 -15
- package/dist/{del-K5ZJEWTD.js → del-P2RS6GN2.js} +9 -9
- package/dist/{devtools-KYKGATNX.js → devtools-K7FXBBFZ.js} +3 -3
- package/dist/error-handler-4CU3ZOV7.js +38 -0
- package/dist/hooks/postrun.js +22 -22
- package/dist/hooks/prerun.js +22 -22
- package/dist/{http-proxy-GGTVQ6CU.js → http-proxy-FXWKYHZ3.js} +14 -24
- package/dist/index.js +7234 -7320
- package/dist/lib-JVEIEXYB.js +6 -0
- package/dist/lib-QZGSY5YB.js +13 -0
- package/dist/{local-Q5ZG2NHX.js → local-2K66O4X2.js} +15 -15
- package/dist/{magic-string.es-3RXPUXZF.js → magic-string.es-PJMYOE6F.js} +49 -96
- package/dist/{morph-SEECJQ2W.js → morph-OSHCID2F.js} +261 -347
- package/dist/{multipart-parser-QKUAJJP5.js → multipart-parser-WSNBP656.js} +8 -7
- package/dist/{node-S6CM3NTX.js → node-342GUJIM.js} +31 -31
- package/dist/{node-package-manager-GUY5IO3W.js → node-package-manager-RJSBCFD7.js} +19 -17
- package/dist/{npa-RLWNZ3BM.js → npa-TM76BGG3.js} +10 -16
- package/dist/{open-MZGVNFZO.js → open-BHIF7E3E.js} +3 -3
- package/dist/out-JR4DWQ2G.js +7 -0
- package/dist/{path-NDLRQPLA.js → path-2HZUSAGR.js} +3 -3
- package/dist/{source-map-7AAPWPHZ.js → source-map-QCVC46UY.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-AWSBLSD4.js → ui-YBLW4B72.js} +15 -15
- package/dist/{workerd-3HGLHQET.js → workerd-5KR5CP5F.js} +30 -30
- package/oclif.manifest.json +81 -1
- package/package.json +8 -8
- package/dist/error-handler-6HCFKLTC.js +0 -38
- package/dist/lib-PPXZBVZX.js +0 -6
- package/dist/lib-XYCLX35G.js +0 -13
- package/dist/out-MHEKZJWS.js +0 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_brace_expansion,
|
|
3
3
|
require_source_map_support
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-G5R6YD27.js";
|
|
5
|
+
import "./chunk-XE5EOEBL.js";
|
|
6
6
|
import {
|
|
7
7
|
require_out
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CRHXI6PS.js";
|
|
9
|
+
import "./chunk-BUFIEXZ5.js";
|
|
10
10
|
import {
|
|
11
11
|
__commonJS,
|
|
12
12
|
__require,
|
|
13
13
|
__toESM,
|
|
14
14
|
init_cjs_shims
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/.pnpm/@ts-morph+common@0.21.0/node_modules/@ts-morph/common/dist/typescript.js
|
|
18
18
|
var require_typescript = __commonJS({
|
|
@@ -892,8 +892,7 @@ var require_typescript = __commonJS({
|
|
|
892
892
|
for (let i = 0; i < arguments.length; i++)
|
|
893
893
|
args[i] = arguments[i];
|
|
894
894
|
return (t) => reduceLeft(args, (u, f) => f(u), t);
|
|
895
|
-
} else
|
|
896
|
-
return d ? (t) => d(c(b(a(t)))) : c ? (t) => c(b(a(t))) : b ? (t) => b(a(t)) : a ? (t) => a(t) : (t) => t;
|
|
895
|
+
} else return d ? (t) => d(c(b(a(t)))) : c ? (t) => c(b(a(t))) : b ? (t) => b(a(t)) : a ? (t) => a(t) : (t) => t;
|
|
897
896
|
}
|
|
898
897
|
function equateValues(a, b) {
|
|
899
898
|
return a === b;
|
|
@@ -1808,8 +1807,7 @@ m2: ${this.mapper2.__debugToString().split(`
|
|
|
1808
1807
|
if (links[id] = graphNode = { id, flowNode: flowNode2, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: !1 }, nodes.push(graphNode), hasAntecedents(flowNode2))
|
|
1809
1808
|
for (let antecedent of flowNode2.antecedents)
|
|
1810
1809
|
buildGraphEdge(graphNode, antecedent, seen);
|
|
1811
|
-
else
|
|
1812
|
-
hasAntecedent(flowNode2) && buildGraphEdge(graphNode, flowNode2.antecedent, seen);
|
|
1810
|
+
else hasAntecedent(flowNode2) && buildGraphEdge(graphNode, flowNode2.antecedent, seen);
|
|
1813
1811
|
return seen.delete(flowNode2), graphNode;
|
|
1814
1812
|
}
|
|
1815
1813
|
function buildGraphEdge(source, antecedent, seen) {
|
|
@@ -2069,37 +2067,36 @@ ${lanes.join(`
|
|
|
2069
2067
|
let { version: version2, major, minor, patch } = result;
|
|
2070
2068
|
if (isWildcard(major))
|
|
2071
2069
|
(operator === "<" || operator === ">") && comparators.push(createComparator("<", Version.zero));
|
|
2072
|
-
else
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
}
|
|
2070
|
+
else switch (operator) {
|
|
2071
|
+
case "~":
|
|
2072
|
+
comparators.push(createComparator(">=", version2)), comparators.push(createComparator("<", version2.increment(
|
|
2073
|
+
isWildcard(minor) ? "major" : "minor"
|
|
2074
|
+
)));
|
|
2075
|
+
break;
|
|
2076
|
+
case "^":
|
|
2077
|
+
comparators.push(createComparator(">=", version2)), comparators.push(createComparator("<", version2.increment(
|
|
2078
|
+
version2.major > 0 || isWildcard(minor) ? "major" : version2.minor > 0 || isWildcard(patch) ? "minor" : "patch"
|
|
2079
|
+
)));
|
|
2080
|
+
break;
|
|
2081
|
+
case "<":
|
|
2082
|
+
case ">=":
|
|
2083
|
+
comparators.push(
|
|
2084
|
+
isWildcard(minor) || isWildcard(patch) ? createComparator(operator, version2.with({ prerelease: "0" })) : createComparator(operator, version2)
|
|
2085
|
+
);
|
|
2086
|
+
break;
|
|
2087
|
+
case "<=":
|
|
2088
|
+
case ">":
|
|
2089
|
+
comparators.push(
|
|
2090
|
+
isWildcard(minor) ? createComparator(operator === "<=" ? "<" : ">=", version2.increment("major").with({ prerelease: "0" })) : isWildcard(patch) ? createComparator(operator === "<=" ? "<" : ">=", version2.increment("minor").with({ prerelease: "0" })) : createComparator(operator, version2)
|
|
2091
|
+
);
|
|
2092
|
+
break;
|
|
2093
|
+
case "=":
|
|
2094
|
+
case void 0:
|
|
2095
|
+
isWildcard(minor) || isWildcard(patch) ? (comparators.push(createComparator(">=", version2.with({ prerelease: "0" }))), comparators.push(createComparator("<", version2.increment(isWildcard(minor) ? "major" : "minor").with({ prerelease: "0" })))) : comparators.push(createComparator("=", version2));
|
|
2096
|
+
break;
|
|
2097
|
+
default:
|
|
2098
|
+
return !1;
|
|
2099
|
+
}
|
|
2103
2100
|
return !0;
|
|
2104
2101
|
}
|
|
2105
2102
|
function isWildcard(part) {
|
|
@@ -2886,8 +2883,7 @@ ${lanes.join(`
|
|
|
2886
2883
|
queue[pollIndex] = void 0;
|
|
2887
2884
|
continue;
|
|
2888
2885
|
}
|
|
2889
|
-
} else
|
|
2890
|
-
continue;
|
|
2886
|
+
} else continue;
|
|
2891
2887
|
chunkSize--;
|
|
2892
2888
|
let fileChanged = onWatchedFileStat(watchedFile, getModifiedTime(host, watchedFile.fileName));
|
|
2893
2889
|
if (watchedFile.isClosed) {
|
|
@@ -7351,8 +7347,7 @@ ${lanes.join(`
|
|
|
7351
7347
|
else if (ch === 47 && !inCharacterClass) {
|
|
7352
7348
|
p++;
|
|
7353
7349
|
break;
|
|
7354
|
-
} else
|
|
7355
|
-
ch === 91 ? inCharacterClass = !0 : ch === 92 ? inEscape = !0 : ch === 93 && (inCharacterClass = !1);
|
|
7350
|
+
} else ch === 91 ? inCharacterClass = !0 : ch === 92 ? inEscape = !0 : ch === 93 && (inCharacterClass = !1);
|
|
7356
7351
|
p++;
|
|
7357
7352
|
}
|
|
7358
7353
|
for (; p < end && isIdentifierPart(text.charCodeAt(p), languageVersion); )
|
|
@@ -8082,8 +8077,7 @@ ${lanes.join(`
|
|
|
8082
8077
|
return getElementOrPropertyAccessArgumentExpressionOrName(node.parent.left);
|
|
8083
8078
|
} else if (isVariableDeclaration(node.parent) && isIdentifier(node.parent.name))
|
|
8084
8079
|
return node.parent.name;
|
|
8085
|
-
} else
|
|
8086
|
-
return;
|
|
8080
|
+
} else return;
|
|
8087
8081
|
}
|
|
8088
8082
|
function getDecorators(node) {
|
|
8089
8083
|
if (hasDecorators(node))
|
|
@@ -10531,8 +10525,7 @@ ${lanes.join(`
|
|
|
10531
10525
|
traverse(node.name.expression);
|
|
10532
10526
|
return;
|
|
10533
10527
|
}
|
|
10534
|
-
} else
|
|
10535
|
-
isPartOfTypeNode(node) || forEachChild(node, traverse);
|
|
10528
|
+
} else isPartOfTypeNode(node) || forEachChild(node, traverse);
|
|
10536
10529
|
}
|
|
10537
10530
|
}
|
|
10538
10531
|
}
|
|
@@ -10877,8 +10870,7 @@ ${lanes.join(`
|
|
|
10877
10870
|
if (!firstAccessorWithDecorators || node !== firstAccessorWithDecorators)
|
|
10878
10871
|
return !1;
|
|
10879
10872
|
parameters = setAccessor?.parameters;
|
|
10880
|
-
} else
|
|
10881
|
-
isMethodDeclaration(node) && (parameters = node.parameters);
|
|
10873
|
+
} else isMethodDeclaration(node) && (parameters = node.parameters);
|
|
10882
10874
|
if (nodeIsDecorated(useLegacyDecorators, node, parent2))
|
|
10883
10875
|
return !0;
|
|
10884
10876
|
if (parameters) {
|
|
@@ -17307,8 +17299,7 @@ ${lanes.join(`
|
|
|
17307
17299
|
if (cooked === void 0)
|
|
17308
17300
|
return Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");
|
|
17309
17301
|
text = cooked;
|
|
17310
|
-
} else
|
|
17311
|
-
cooked !== void 0 && Debug.assert(text === cooked, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");
|
|
17302
|
+
} else cooked !== void 0 && Debug.assert(text === cooked, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");
|
|
17312
17303
|
return text;
|
|
17313
17304
|
}
|
|
17314
17305
|
function getTransformFlagsOfTemplateLiteralLike(templateFlags) {
|
|
@@ -22504,8 +22495,7 @@ ${lanes.join(`
|
|
|
22504
22495
|
else if (types) {
|
|
22505
22496
|
let parsed = parseResolutionMode(res, types.pos, types.end, reportDiagnostic);
|
|
22506
22497
|
typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {} });
|
|
22507
|
-
} else
|
|
22508
|
-
lib ? libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value }) : path ? referencedFiles.push({ pos: path.pos, end: path.end, fileName: path.value }) : reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax);
|
|
22498
|
+
} else lib ? libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value }) : path ? referencedFiles.push({ pos: path.pos, end: path.end, fileName: path.value }) : reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax);
|
|
22509
22499
|
});
|
|
22510
22500
|
break;
|
|
22511
22501
|
}
|
|
@@ -25943,11 +25933,10 @@ ${lanes.join(`
|
|
|
25943
25933
|
} else
|
|
25944
25934
|
closingElement = parseJsxClosingElement(opening, inExpressionContext), tagNamesAreEquivalent(opening.tagName, closingElement.tagName) || (openingTag && isJsxOpeningElement(openingTag) && tagNamesAreEquivalent(closingElement.tagName, openingTag.tagName) ? parseErrorAtRange(opening.tagName, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, opening.tagName)) : parseErrorAtRange(closingElement.tagName, Diagnostics.Expected_corresponding_JSX_closing_tag_for_0, getTextOfNodeFromSourceText(sourceText, opening.tagName)));
|
|
25945
25935
|
result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos);
|
|
25946
|
-
} else
|
|
25947
|
-
opening.kind ===
|
|
25948
|
-
|
|
25949
|
-
|
|
25950
|
-
), result = opening);
|
|
25936
|
+
} else opening.kind === 289 ? result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos) : (Debug.assert(
|
|
25937
|
+
opening.kind === 285
|
|
25938
|
+
/* JsxSelfClosingElement */
|
|
25939
|
+
), result = opening);
|
|
25951
25940
|
if (!mustBeUnary && inExpressionContext && token() === 30) {
|
|
25952
25941
|
let topBadPos = typeof topInvalidNodePosition > "u" ? result.pos : topInvalidNodePosition, invalidElement = tryParse(() => parseJsxElementOrSelfClosingElementOrFragment(
|
|
25953
25942
|
/*inExpressionContext*/
|
|
@@ -28057,10 +28046,8 @@ ${lanes.join(`
|
|
|
28057
28046
|
if (token() === 130) {
|
|
28058
28047
|
let secondAs = parseIdentifierName();
|
|
28059
28048
|
tokenIsIdentifierOrKeyword(token()) ? (isTypeOnly = !0, propertyName = firstAs, name = parseNameWithKeywordCheck(), canParseAsKeyword = !1) : (propertyName = name, name = secondAs, canParseAsKeyword = !1);
|
|
28060
|
-
} else
|
|
28061
|
-
|
|
28062
|
-
} else
|
|
28063
|
-
tokenIsIdentifierOrKeyword(token()) && (isTypeOnly = !0, name = parseNameWithKeywordCheck());
|
|
28049
|
+
} else tokenIsIdentifierOrKeyword(token()) ? (propertyName = name, canParseAsKeyword = !1, name = parseNameWithKeywordCheck()) : (isTypeOnly = !0, name = firstAs);
|
|
28050
|
+
} else tokenIsIdentifierOrKeyword(token()) && (isTypeOnly = !0, name = parseNameWithKeywordCheck());
|
|
28064
28051
|
canParseAsKeyword && token() === 130 && (propertyName = name, parseExpected(
|
|
28065
28052
|
130
|
|
28066
28053
|
/* AsKeyword */
|
|
@@ -29997,17 +29984,15 @@ ${lanes.join(`
|
|
|
29997
29984
|
if (option) {
|
|
29998
29985
|
let currentOption;
|
|
29999
29986
|
parentOption === compilerOptionsDeclaration ? currentOption = options : parentOption === watchOptionsDeclaration ? currentOption = watchOptions ?? (watchOptions = {}) : parentOption === typeAcquisitionDeclaration ? currentOption = typeAcquisition ?? (typeAcquisition = getDefaultTypeAcquisition(configFileName)) : Debug.fail("Unknown option"), currentOption[option.name] = value;
|
|
30000
|
-
} else
|
|
30001
|
-
keyText
|
|
30002
|
-
|
|
30003
|
-
|
|
30004
|
-
|
|
30005
|
-
|
|
30006
|
-
|
|
30007
|
-
|
|
30008
|
-
|
|
30009
|
-
else
|
|
30010
|
-
parentOption === rootOptions && (option === extendsOptionDeclaration ? extendedConfigPath = getExtendsConfigPathOrArray(value, host, basePath, configFileName, errors, propertyAssignment, propertyAssignment.initializer, sourceFile) : option || (keyText === "excludes" && errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)), find(commandOptionsWithoutBuild, (opt) => opt.name === keyText) && (rootCompilerOptions = append(rootCompilerOptions, propertyAssignment.name))));
|
|
29987
|
+
} else keyText && parentOption?.extraKeyDiagnostics && (parentOption.elementOptions ? errors.push(createUnknownOptionError(
|
|
29988
|
+
keyText,
|
|
29989
|
+
parentOption.extraKeyDiagnostics,
|
|
29990
|
+
/*unknownOptionErrorText*/
|
|
29991
|
+
void 0,
|
|
29992
|
+
propertyAssignment.name,
|
|
29993
|
+
sourceFile
|
|
29994
|
+
)) : errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText)));
|
|
29995
|
+
else parentOption === rootOptions && (option === extendsOptionDeclaration ? extendedConfigPath = getExtendsConfigPathOrArray(value, host, basePath, configFileName, errors, propertyAssignment, propertyAssignment.initializer, sourceFile) : option || (keyText === "excludes" && errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)), find(commandOptionsWithoutBuild, (opt) => opt.name === keyText) && (rootCompilerOptions = append(rootCompilerOptions, propertyAssignment.name))));
|
|
30011
29996
|
}
|
|
30012
29997
|
}
|
|
30013
29998
|
function getExtendsConfigPath(extendedConfig, host, basePath, errors, valueExpression, sourceFile) {
|
|
@@ -32164,8 +32149,7 @@ ${lanes.join(`
|
|
|
32164
32149
|
);
|
|
32165
32150
|
result2 = searchResult && searchResult.value;
|
|
32166
32151
|
}
|
|
32167
|
-
else
|
|
32168
|
-
traceEnabled && trace(host, Diagnostics.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);
|
|
32152
|
+
else traceEnabled && trace(host, Diagnostics.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);
|
|
32169
32153
|
return resolvedTypeScriptOnly(result2);
|
|
32170
32154
|
} else
|
|
32171
32155
|
traceEnabled && trace(host, Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder);
|
|
@@ -34129,8 +34113,7 @@ ${lanes.join(`
|
|
|
34129
34113
|
flags: 2
|
|
34130
34114
|
/* Start */
|
|
34131
34115
|
}), containerFlags & 144 && (currentFlow.node = node)), currentReturnTarget = isImmediatelyInvoked || node.kind === 176 || isInJSFile(node) && (node.kind === 262 || node.kind === 218) ? createBranchLabel() : void 0, currentExceptionTarget = void 0, currentBreakTarget = void 0, currentContinueTarget = void 0, activeLabelList = void 0, hasExplicitReturn = !1, bindChildren(node), node.flags &= -5633, !(currentFlow.flags & 1) && containerFlags & 8 && nodeIsPresent(node.body) && (node.flags |= 512, hasExplicitReturn && (node.flags |= 1024), node.endFlowNode = currentFlow), node.kind === 312 && (node.flags |= emitFlags, node.endFlowNode = currentFlow), currentReturnTarget && (addAntecedent(currentReturnTarget, currentFlow), currentFlow = finishFlowLabel(currentReturnTarget), (node.kind === 176 || node.kind === 175 || isInJSFile(node) && (node.kind === 262 || node.kind === 218)) && (node.returnFlowNode = currentFlow)), isImmediatelyInvoked || (currentFlow = saveCurrentFlow), currentBreakTarget = saveBreakTarget, currentContinueTarget = saveContinueTarget, currentReturnTarget = saveReturnTarget, currentExceptionTarget = saveExceptionTarget, activeLabelList = saveActiveLabelList, hasExplicitReturn = saveHasExplicitReturn;
|
|
34132
|
-
} else
|
|
34133
|
-
containerFlags & 64 ? (seenThisKeyword = !1, bindChildren(node), Debug.assertNotNode(node, isIdentifier), node.flags = seenThisKeyword ? node.flags | 256 : node.flags & -257) : bindChildren(node);
|
|
34116
|
+
} else containerFlags & 64 ? (seenThisKeyword = !1, bindChildren(node), Debug.assertNotNode(node, isIdentifier), node.flags = seenThisKeyword ? node.flags | 256 : node.flags & -257) : bindChildren(node);
|
|
34134
34117
|
container = saveContainer, thisParentContainer = saveThisParentContainer, blockScopeContainer = savedBlockScopeContainer;
|
|
34135
34118
|
}
|
|
34136
34119
|
function bindEachFunctionsFirst(nodes) {
|
|
@@ -34911,13 +34894,12 @@ ${lanes.join(`
|
|
|
34911
34894
|
/* TypeAliasExcludes */
|
|
34912
34895
|
), container = oldContainer;
|
|
34913
34896
|
}
|
|
34914
|
-
} else
|
|
34915
|
-
|
|
34916
|
-
|
|
34917
|
-
|
|
34918
|
-
|
|
34919
|
-
|
|
34920
|
-
)) : bind(typeAlias.fullName);
|
|
34897
|
+
} else isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === 80 ? (parent2 = typeAlias.parent, bindBlockScopedDeclaration(
|
|
34898
|
+
typeAlias,
|
|
34899
|
+
524288,
|
|
34900
|
+
788968
|
|
34901
|
+
/* TypeAliasExcludes */
|
|
34902
|
+
)) : bind(typeAlias.fullName);
|
|
34921
34903
|
}
|
|
34922
34904
|
container = saveContainer, lastContainer = saveLastContainer, blockScopeContainer = saveBlockScopeContainer, parent2 = saveParent, currentFlow = saveCurrentFlow;
|
|
34923
34905
|
}
|
|
@@ -38600,8 +38582,7 @@ ${lanes.join(`
|
|
|
38600
38582
|
Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,
|
|
38601
38583
|
compilerOptionName
|
|
38602
38584
|
));
|
|
38603
|
-
} else
|
|
38604
|
-
isImportClause(node) ? reportNonDefaultExport(moduleSymbol, node) : errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, isImportOrExportSpecifier(node) && node.propertyName || node.name);
|
|
38585
|
+
} else isImportClause(node) ? reportNonDefaultExport(moduleSymbol, node) : errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, isImportOrExportSpecifier(node) && node.propertyName || node.name);
|
|
38605
38586
|
else if (hasSyntheticDefault || hasDefaultOnly) {
|
|
38606
38587
|
let resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);
|
|
38607
38588
|
return markSymbolOfAliasDeclarationIfTypeOnly(
|
|
@@ -40999,8 +40980,7 @@ ${lanes.join(`
|
|
|
40999
40980
|
* ` + commentText.replace(/\n/g, `
|
|
41000
40981
|
* `) + `
|
|
41001
40982
|
`, pos: -1, end: -1, hasTrailingNewLine: !0 }]);
|
|
41002
|
-
} else
|
|
41003
|
-
propertySymbol.valueDeclaration && setCommentRange(node, propertySymbol.valueDeclaration);
|
|
40983
|
+
} else propertySymbol.valueDeclaration && setCommentRange(node, propertySymbol.valueDeclaration);
|
|
41004
40984
|
return node;
|
|
41005
40985
|
}
|
|
41006
40986
|
}
|
|
@@ -41018,12 +40998,11 @@ ${lanes.join(`
|
|
|
41018
40998
|
),
|
|
41019
40999
|
typeToTypeNodeHelper(types[types.length - 1], context)
|
|
41020
41000
|
];
|
|
41021
|
-
} else
|
|
41022
|
-
|
|
41023
|
-
|
|
41024
|
-
|
|
41025
|
-
|
|
41026
|
-
)];
|
|
41001
|
+
} else return [factory.createTypeReferenceNode(
|
|
41002
|
+
"...",
|
|
41003
|
+
/*typeArguments*/
|
|
41004
|
+
void 0
|
|
41005
|
+
)];
|
|
41027
41006
|
let seenNames = !(context.flags & 64) ? createMultiMap() : void 0, result = [], i = 0;
|
|
41028
41007
|
for (let type of types) {
|
|
41029
41008
|
if (i++, checkTruncationLength(context) && i + 2 < types.length - 1) {
|
|
@@ -43907,8 +43886,7 @@ ${lanes.join(`
|
|
|
43907
43886
|
declaration,
|
|
43908
43887
|
type
|
|
43909
43888
|
);
|
|
43910
|
-
else
|
|
43911
|
-
return type;
|
|
43889
|
+
else return type;
|
|
43912
43890
|
}
|
|
43913
43891
|
if ((_a = symbol.parent) != null && _a.valueDeclaration) {
|
|
43914
43892
|
let typeNode2 = getEffectiveTypeAnnotationNode(symbol.parent.valueDeclaration);
|
|
@@ -45708,8 +45686,7 @@ ${lanes.join(`
|
|
|
45708
45686
|
for (; constraint && constraint.flags & 21233664; )
|
|
45709
45687
|
constraint = getConstraintOfType(constraint);
|
|
45710
45688
|
constraint && (constraints = append(constraints, constraint), targetIsUnion && (constraints = append(constraints, t)));
|
|
45711
|
-
} else
|
|
45712
|
-
(t.flags & 469892092 || isEmptyAnonymousObjectType(t)) && (hasDisjointDomainType = !0);
|
|
45689
|
+
} else (t.flags & 469892092 || isEmptyAnonymousObjectType(t)) && (hasDisjointDomainType = !0);
|
|
45713
45690
|
if (constraints && (targetIsUnion || hasDisjointDomainType)) {
|
|
45714
45691
|
if (hasDisjointDomainType)
|
|
45715
45692
|
for (let t of types)
|
|
@@ -48302,20 +48279,19 @@ ${lanes.join(`
|
|
|
48302
48279
|
"[" + symbolName2 + "]",
|
|
48303
48280
|
typeToString(objectType)
|
|
48304
48281
|
);
|
|
48305
|
-
} else
|
|
48306
|
-
|
|
48307
|
-
|
|
48308
|
-
|
|
48309
|
-
|
|
48310
|
-
|
|
48311
|
-
|
|
48312
|
-
|
|
48313
|
-
|
|
48314
|
-
|
|
48315
|
-
|
|
48316
|
-
|
|
48317
|
-
|
|
48318
|
-
));
|
|
48282
|
+
} else indexType.flags & 128 || indexType.flags & 256 ? errorInfo = chainDiagnosticMessages(
|
|
48283
|
+
/*details*/
|
|
48284
|
+
void 0,
|
|
48285
|
+
Diagnostics.Property_0_does_not_exist_on_type_1,
|
|
48286
|
+
indexType.value,
|
|
48287
|
+
typeToString(objectType)
|
|
48288
|
+
) : indexType.flags & 12 && (errorInfo = chainDiagnosticMessages(
|
|
48289
|
+
/*details*/
|
|
48290
|
+
void 0,
|
|
48291
|
+
Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,
|
|
48292
|
+
typeToString(indexType),
|
|
48293
|
+
typeToString(objectType)
|
|
48294
|
+
));
|
|
48319
48295
|
errorInfo = chainDiagnosticMessages(
|
|
48320
48296
|
errorInfo,
|
|
48321
48297
|
Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,
|
|
@@ -51497,13 +51473,12 @@ ${lanes.join(`
|
|
|
51497
51473
|
/* WriteComputedProps */
|
|
51498
51474
|
);
|
|
51499
51475
|
reportError(Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName, ...getTypeNamesForErrorDisplay(source2, target2)), length(unmatchedProperty.declarations) && associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName)), shouldSkipElaboration && errorInfo && overrideNextErrorInfo++;
|
|
51500
|
-
} else
|
|
51501
|
-
|
|
51502
|
-
|
|
51503
|
-
|
|
51504
|
-
|
|
51505
|
-
|
|
51506
|
-
) && (props.length > 5 ? reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p) => symbolToString(p)).join(", "), props.length - 4) : reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p) => symbolToString(p)).join(", ")), shouldSkipElaboration && errorInfo && overrideNextErrorInfo++);
|
|
51476
|
+
} else tryElaborateArrayLikeErrors(
|
|
51477
|
+
source2,
|
|
51478
|
+
target2,
|
|
51479
|
+
/*reportErrors*/
|
|
51480
|
+
!1
|
|
51481
|
+
) && (props.length > 5 ? reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p) => symbolToString(p)).join(", "), props.length - 4) : reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p) => symbolToString(p)).join(", ")), shouldSkipElaboration && errorInfo && overrideNextErrorInfo++);
|
|
51507
51482
|
}
|
|
51508
51483
|
function propertiesRelatedTo(source2, target2, reportErrors2, excludedProperties, optionalsOnly, intersectionState) {
|
|
51509
51484
|
if (relation === identityRelation)
|
|
@@ -52498,8 +52473,7 @@ ${lanes.join(`
|
|
|
52498
52473
|
some(widenedTypes, isEmptyObjectType) ? 2 : 1
|
|
52499
52474
|
/* Literal */
|
|
52500
52475
|
);
|
|
52501
|
-
} else
|
|
52502
|
-
type.flags & 2097152 ? result = getIntersectionType(sameMap(type.types, getWidenedType)) : isArrayOrTupleType(type) && (result = createTypeReference(type.target, sameMap(getTypeArguments(type), getWidenedType)));
|
|
52476
|
+
} else type.flags & 2097152 ? result = getIntersectionType(sameMap(type.types, getWidenedType)) : isArrayOrTupleType(type) && (result = createTypeReference(type.target, sameMap(getTypeArguments(type), getWidenedType)));
|
|
52503
52477
|
return result && context === void 0 && (type.widened = result), result || type;
|
|
52504
52478
|
}
|
|
52505
52479
|
return type;
|
|
@@ -52957,8 +52931,7 @@ ${lanes.join(`
|
|
|
52957
52931
|
return;
|
|
52958
52932
|
source = getIntersectionType(sources), target = getIntersectionType(targets);
|
|
52959
52933
|
}
|
|
52960
|
-
} else
|
|
52961
|
-
target.flags & 41943040 && (target = getActualTypeVariable(target));
|
|
52934
|
+
} else target.flags & 41943040 && (target = getActualTypeVariable(target));
|
|
52962
52935
|
if (target.flags & 8650752) {
|
|
52963
52936
|
if (isFromInferenceBlockedSource(source))
|
|
52964
52937
|
return;
|
|
@@ -55652,8 +55625,7 @@ ${lanes.join(`
|
|
|
55652
55625
|
if (isInJS && className) {
|
|
55653
55626
|
let classSymbol = checkExpression(className).symbol;
|
|
55654
55627
|
classSymbol && classSymbol.members && classSymbol.flags & 16 && (thisType = getDeclaredTypeOfSymbol(classSymbol).thisType);
|
|
55655
|
-
} else
|
|
55656
|
-
isJSConstructor(container) && (thisType = getDeclaredTypeOfSymbol(getMergedSymbol(container.symbol)).thisType);
|
|
55628
|
+
} else isJSConstructor(container) && (thisType = getDeclaredTypeOfSymbol(getMergedSymbol(container.symbol)).thisType);
|
|
55657
55629
|
thisType || (thisType = getContextualThisParameterType(container));
|
|
55658
55630
|
}
|
|
55659
55631
|
if (thisType)
|
|
@@ -57772,8 +57744,7 @@ ${lanes.join(`
|
|
|
57772
57744
|
let flowContainer = getControlFlowContainer(node);
|
|
57773
57745
|
flowContainer.kind === 176 && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432) && (assumeUninitialized = !0);
|
|
57774
57746
|
}
|
|
57775
|
-
} else
|
|
57776
|
-
strictNullChecks && prop && prop.valueDeclaration && isPropertyAccessExpression(prop.valueDeclaration) && getAssignmentDeclarationPropertyAccessKind(prop.valueDeclaration) && getControlFlowContainer(node) === getControlFlowContainer(prop.valueDeclaration) && (assumeUninitialized = !0);
|
|
57747
|
+
} else strictNullChecks && prop && prop.valueDeclaration && isPropertyAccessExpression(prop.valueDeclaration) && getAssignmentDeclarationPropertyAccessKind(prop.valueDeclaration) && getControlFlowContainer(node) === getControlFlowContainer(prop.valueDeclaration) && (assumeUninitialized = !0);
|
|
57777
57748
|
let flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType);
|
|
57778
57749
|
return assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType) ? (error2(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)), propType) : assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
|
|
57779
57750
|
}
|
|
@@ -59527,8 +59498,7 @@ ${lanes.join(`
|
|
|
59527
59498
|
name = parentNode.left, decl = name;
|
|
59528
59499
|
else if ((parentNodeOperator === 57 || parentNodeOperator === 61) && (isVariableDeclaration(parentNode.parent) && parentNode.parent.initializer === parentNode ? (name = parentNode.parent.name, decl = parentNode.parent) : isBinaryExpression(parentNode.parent) && parentNode.parent.operatorToken.kind === 64 && (allowDeclaration || parentNode.parent.right === parentNode) && (name = parentNode.parent.left, decl = name), !name || !isBindableStaticNameExpression(name) || !isSameEntityName(name, parentNode.left)))
|
|
59529
59500
|
return;
|
|
59530
|
-
} else
|
|
59531
|
-
allowDeclaration && isFunctionDeclaration(node) && (name = node.name, decl = node);
|
|
59501
|
+
} else allowDeclaration && isFunctionDeclaration(node) && (name = node.name, decl = node);
|
|
59532
59502
|
if (!(!decl || !name || !allowDeclaration && !getExpandoInitializer(node, isPrototypeAccess(name))))
|
|
59533
59503
|
return getSymbolOfNode(decl);
|
|
59534
59504
|
}
|
|
@@ -59943,8 +59913,7 @@ ${lanes.join(`
|
|
|
59943
59913
|
let symbol = getSymbolOfDeclaration(container);
|
|
59944
59914
|
return getTypeOfSymbol(symbol);
|
|
59945
59915
|
}
|
|
59946
|
-
else
|
|
59947
|
-
return error2(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"), errorType;
|
|
59916
|
+
else return error2(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"), errorType;
|
|
59948
59917
|
}
|
|
59949
59918
|
function checkImportMetaProperty(node) {
|
|
59950
59919
|
moduleKind === 100 || moduleKind === 199 ? getSourceFileOfNode(node).impliedNodeFormat !== 99 && error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output) : moduleKind < 6 && moduleKind !== 4 && error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);
|
|
@@ -60562,8 +60531,7 @@ ${lanes.join(`
|
|
|
60562
60531
|
links.isExhaustive = 0;
|
|
60563
60532
|
let exhaustive = computeExhaustiveSwitchStatement(node);
|
|
60564
60533
|
links.isExhaustive === 0 && (links.isExhaustive = exhaustive);
|
|
60565
|
-
} else
|
|
60566
|
-
links.isExhaustive === 0 && (links.isExhaustive = !1);
|
|
60534
|
+
} else links.isExhaustive === 0 && (links.isExhaustive = !1);
|
|
60567
60535
|
return links.isExhaustive;
|
|
60568
60536
|
}
|
|
60569
60537
|
function computeExhaustiveSwitchStatement(node) {
|
|
@@ -62390,8 +62358,7 @@ ${lanes.join(`
|
|
|
62390
62358
|
let generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0, returnType, (functionFlags2 & 2) !== 0) || anyType, generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1, returnType, (functionFlags2 & 2) !== 0) || generatorYieldType, generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2, returnType, (functionFlags2 & 2) !== 0) || unknownType, generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2));
|
|
62391
62359
|
checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation);
|
|
62392
62360
|
}
|
|
62393
|
-
} else
|
|
62394
|
-
(functionFlags2 & 3) === 2 && checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation);
|
|
62361
|
+
} else (functionFlags2 & 3) === 2 && checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation);
|
|
62395
62362
|
}
|
|
62396
62363
|
node.kind !== 181 && node.kind !== 324 && registerForUnusedIdentifiersCheck(node);
|
|
62397
62364
|
}
|
|
@@ -62567,8 +62534,7 @@ ${lanes.join(`
|
|
|
62567
62534
|
}
|
|
62568
62535
|
superCallStatement === void 0 && error2(node, Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers);
|
|
62569
62536
|
}
|
|
62570
|
-
} else
|
|
62571
|
-
classExtendsNull || error2(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call);
|
|
62537
|
+
} else classExtendsNull || error2(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call);
|
|
62572
62538
|
}
|
|
62573
62539
|
}
|
|
62574
62540
|
}
|
|
@@ -64223,8 +64189,7 @@ ${lanes.join(`
|
|
|
64223
64189
|
2
|
|
64224
64190
|
/* Subtype */
|
|
64225
64191
|
));
|
|
64226
|
-
} else
|
|
64227
|
-
arrayType.flags & 402653316 && (arrayType = neverType);
|
|
64192
|
+
} else arrayType.flags & 402653316 && (arrayType = neverType);
|
|
64228
64193
|
if (hasStringConstituent = arrayType !== inputType, hasStringConstituent && (languageVersion < 1 && errorNode && (error2(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher), reportedError = !0), arrayType.flags & 131072))
|
|
64229
64194
|
return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType;
|
|
64230
64195
|
}
|
|
@@ -64728,8 +64693,7 @@ ${lanes.join(`
|
|
|
64728
64693
|
) : exprType;
|
|
64729
64694
|
unwrappedReturnType && checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);
|
|
64730
64695
|
}
|
|
64731
|
-
} else
|
|
64732
|
-
container.kind !== 176 && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType) && error2(node, Diagnostics.Not_all_code_paths_return_a_value);
|
|
64696
|
+
} else container.kind !== 176 && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType) && error2(node, Diagnostics.Not_all_code_paths_return_a_value);
|
|
64733
64697
|
}
|
|
64734
64698
|
function checkWithStatement(node) {
|
|
64735
64699
|
checkGrammarStatementInAmbientContext(node) || node.flags & 65536 && grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block), checkExpression(node.expression);
|
|
@@ -65341,8 +65305,7 @@ ${lanes.join(`
|
|
|
65341
65305
|
if (isPrototypeProperty(derived) || derived.flags & 4)
|
|
65342
65306
|
continue;
|
|
65343
65307
|
Debug.assert(!!(derived.flags & 98304)), errorMessage = Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor;
|
|
65344
|
-
} else
|
|
65345
|
-
base.flags & 98304 ? errorMessage = Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function : errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;
|
|
65308
|
+
} else base.flags & 98304 ? errorMessage = Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function : errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;
|
|
65346
65309
|
error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));
|
|
65347
65310
|
}
|
|
65348
65311
|
}
|
|
@@ -65688,8 +65651,7 @@ ${lanes.join(`
|
|
|
65688
65651
|
if ((isGlobalAugmentation || getSymbolOfDeclaration(node).flags & 33554432) && node.body)
|
|
65689
65652
|
for (let statement of node.body.statements)
|
|
65690
65653
|
checkModuleAugmentationElement(statement, isGlobalAugmentation);
|
|
65691
|
-
} else
|
|
65692
|
-
isGlobalSourceFile(node.parent) ? isGlobalAugmentation ? error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name)) && error2(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name) : isGlobalAugmentation ? error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : error2(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces);
|
|
65654
|
+
} else isGlobalSourceFile(node.parent) ? isGlobalAugmentation ? error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name)) && error2(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name) : isGlobalAugmentation ? error2(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations) : error2(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces);
|
|
65693
65655
|
}
|
|
65694
65656
|
}
|
|
65695
65657
|
function checkModuleAugmentationElement(node, isGlobalAugmentation) {
|
|
@@ -67937,8 +67899,7 @@ ${lanes.join(`
|
|
|
67937
67899
|
if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor)
|
|
67938
67900
|
return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name);
|
|
67939
67901
|
}
|
|
67940
|
-
} else
|
|
67941
|
-
return node.kind === 174 && !nodeIsPresent(node.body) ? grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload) : grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here);
|
|
67902
|
+
} else return node.kind === 174 && !nodeIsPresent(node.body) ? grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload) : grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here);
|
|
67942
67903
|
if (flags & -132098)
|
|
67943
67904
|
return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here);
|
|
67944
67905
|
if (hasLeadingDecorators && flags & 126975) {
|
|
@@ -68079,8 +68040,7 @@ ${lanes.join(`
|
|
|
68079
68040
|
if (flags & 1) {
|
|
68080
68041
|
if (sawExportBeforeDecorators)
|
|
68081
68042
|
return grammarErrorOnNode(firstDecorator, Diagnostics.Decorators_are_not_valid_here);
|
|
68082
|
-
} else
|
|
68083
|
-
return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default");
|
|
68043
|
+
} else return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default");
|
|
68084
68044
|
flags |= 1024;
|
|
68085
68045
|
break;
|
|
68086
68046
|
case 138:
|
|
@@ -86189,36 +86149,35 @@ ${lanes.join(`
|
|
|
86189
86149
|
);
|
|
86190
86150
|
} else
|
|
86191
86151
|
return setOriginalNode(setTextRange(factory2.createExpressionStatement(createRequireCall2(node)), node), node);
|
|
86192
|
-
else
|
|
86193
|
-
|
|
86194
|
-
|
|
86195
|
-
|
|
86196
|
-
|
|
86197
|
-
|
|
86198
|
-
|
|
86199
|
-
|
|
86200
|
-
|
|
86201
|
-
|
|
86202
|
-
factory2.
|
|
86203
|
-
|
|
86204
|
-
|
|
86205
|
-
|
|
86206
|
-
|
|
86207
|
-
|
|
86208
|
-
factory2.getGeneratedNameForNode(node)
|
|
86209
|
-
),
|
|
86210
|
-
/*location*/
|
|
86211
|
-
node
|
|
86152
|
+
else namespaceDeclaration && isDefaultImport(node) && (statements = append(
|
|
86153
|
+
statements,
|
|
86154
|
+
factory2.createVariableStatement(
|
|
86155
|
+
/*modifiers*/
|
|
86156
|
+
void 0,
|
|
86157
|
+
factory2.createVariableDeclarationList(
|
|
86158
|
+
[
|
|
86159
|
+
setOriginalNode(
|
|
86160
|
+
setTextRange(
|
|
86161
|
+
factory2.createVariableDeclaration(
|
|
86162
|
+
factory2.cloneNode(namespaceDeclaration.name),
|
|
86163
|
+
/*exclamationToken*/
|
|
86164
|
+
void 0,
|
|
86165
|
+
/*type*/
|
|
86166
|
+
void 0,
|
|
86167
|
+
factory2.getGeneratedNameForNode(node)
|
|
86212
86168
|
),
|
|
86213
|
-
/*
|
|
86169
|
+
/*location*/
|
|
86214
86170
|
node
|
|
86215
|
-
)
|
|
86216
|
-
|
|
86217
|
-
|
|
86218
|
-
|
|
86219
|
-
|
|
86171
|
+
),
|
|
86172
|
+
/*original*/
|
|
86173
|
+
node
|
|
86174
|
+
)
|
|
86175
|
+
],
|
|
86176
|
+
languageVersion >= 2 ? 2 : 0
|
|
86177
|
+
/* None */
|
|
86220
86178
|
)
|
|
86221
|
-
)
|
|
86179
|
+
)
|
|
86180
|
+
));
|
|
86222
86181
|
return statements = appendExportsOfImportDeclaration(statements, node), singleOrMany(statements);
|
|
86223
86182
|
}
|
|
86224
86183
|
function createRequireCall2(importNode) {
|
|
@@ -86612,8 +86571,7 @@ ${lanes.join(`
|
|
|
86612
86571
|
if (isBindingPattern(decl.name))
|
|
86613
86572
|
for (let element of decl.name.elements)
|
|
86614
86573
|
isOmittedExpression(element) || (statements = appendExportsOfBindingElement(statements, element, isForInOrOfInitializer));
|
|
86615
|
-
else
|
|
86616
|
-
!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer) && (statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl));
|
|
86574
|
+
else !isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer) && (statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl));
|
|
86617
86575
|
return statements;
|
|
86618
86576
|
}
|
|
86619
86577
|
function appendExportsOfHoistedDeclaration(statements, decl) {
|
|
@@ -94551,8 +94509,7 @@ ${lanes.join(`
|
|
|
94551
94509
|
if (lineContent = trimStringEnd(lineContent), lineContent = lineContent.replace(/\t/g, " "), context += indent2 + formatColorAndReset(padLeft(i + 1 + "", gutterWidth), gutterStyleSequence) + gutterSeparator, context += lineContent + host.getNewLine(), context += indent2 + formatColorAndReset(padLeft("", gutterWidth), gutterStyleSequence) + gutterSeparator, context += squiggleColor, i === firstLine) {
|
|
94552
94510
|
let lastCharForLine = i === lastLine ? lastLineChar : void 0;
|
|
94553
94511
|
context += lineContent.slice(0, firstLineChar).replace(/\S/g, " "), context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~");
|
|
94554
|
-
} else
|
|
94555
|
-
i === lastLine ? context += lineContent.slice(0, lastLineChar).replace(/./g, "~") : context += lineContent.replace(/./g, "~");
|
|
94512
|
+
} else i === lastLine ? context += lineContent.slice(0, lastLineChar).replace(/./g, "~") : context += lineContent.replace(/./g, "~");
|
|
94556
94513
|
context += resetEscapeSequence;
|
|
94557
94514
|
}
|
|
94558
94515
|
return context;
|
|
@@ -96159,8 +96116,7 @@ ${lanes.join(`
|
|
|
96159
96116
|
if (fileFromPackageId) {
|
|
96160
96117
|
let dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path, toPath3(fileName), originalFileName, sourceFileOptions);
|
|
96161
96118
|
return redirectTargetsMap.add(fileFromPackageId.path, fileName), addFileToFilesByName(dupFile, path, redirectedPath), addFileIncludeReason(dupFile, reason), sourceFileToPackageName.set(path, packageIdToPackageName(packageId)), processingOtherFiles.push(dupFile), dupFile;
|
|
96162
|
-
} else
|
|
96163
|
-
file && (packageIdToSourceFile.set(packageIdKey, file), sourceFileToPackageName.set(path, packageIdToPackageName(packageId)));
|
|
96119
|
+
} else file && (packageIdToSourceFile.set(packageIdKey, file), sourceFileToPackageName.set(path, packageIdToPackageName(packageId)));
|
|
96164
96120
|
}
|
|
96165
96121
|
if (addFileToFilesByName(file, path, redirectedPath), file) {
|
|
96166
96122
|
if (sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0), file.fileName = fileName, file.path = path, file.resolvedPath = toPath3(fileName), file.originalFileName = originalFileName, file.packageJsonLocations = (_a2 = sourceFileOptions.packageJsonLocations) != null && _a2.length ? sourceFileOptions.packageJsonLocations : void 0, file.packageJsonScope = sourceFileOptions.packageJsonScope, addFileIncludeReason(file, reason), host.useCaseSensitiveFileNames()) {
|
|
@@ -98301,8 +98257,7 @@ ${lanes.join(`
|
|
|
98301
98257
|
void 0,
|
|
98302
98258
|
cancellationToken
|
|
98303
98259
|
), state.changedFilesSet.clear(), state.programEmitPending = getBuilderFileEmit(state.compilerOptions);
|
|
98304
|
-
else
|
|
98305
|
-
return;
|
|
98260
|
+
else return;
|
|
98306
98261
|
return { result, affected };
|
|
98307
98262
|
}
|
|
98308
98263
|
}
|
|
@@ -99004,8 +98959,7 @@ ${lanes.join(`
|
|
|
99004
98959
|
for (let failedLookupLocation of failedLookupLocations)
|
|
99005
98960
|
removeAtRoot = stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot);
|
|
99006
98961
|
node10Result && (removeAtRoot = stopWatchFailedLookupLocation(node10Result, removeAtRoot)), removeAtRoot && removeDirectoryWatcher(rootPath);
|
|
99007
|
-
} else
|
|
99008
|
-
affectingLocations?.length && resolutionsWithOnlyAffectingLocations.delete(resolution);
|
|
98962
|
+
} else affectingLocations?.length && resolutionsWithOnlyAffectingLocations.delete(resolution);
|
|
99009
98963
|
if (affectingLocations)
|
|
99010
98964
|
for (let affectingLocation of affectingLocations) {
|
|
99011
98965
|
let watcher = fileWatchesOfAffectingLocations.get(affectingLocation);
|
|
@@ -102897,8 +102851,7 @@ ${lanes.join(`
|
|
|
102897
102851
|
if (remainingMatchingTokens === 0)
|
|
102898
102852
|
return token;
|
|
102899
102853
|
remainingMatchingTokens--;
|
|
102900
|
-
} else
|
|
102901
|
-
token.kind === tokenKind && remainingMatchingTokens++;
|
|
102854
|
+
} else token.kind === tokenKind && remainingMatchingTokens++;
|
|
102902
102855
|
}
|
|
102903
102856
|
}
|
|
102904
102857
|
function removeOptionality(type, isOptionalExpression, isOptionalChain2) {
|
|
@@ -106466,8 +106419,7 @@ ${lanes.join(`
|
|
|
106466
106419
|
for (token = nextToken(); token !== 20 && token !== 1; )
|
|
106467
106420
|
token = nextToken();
|
|
106468
106421
|
token === 20 && (token = nextToken(), token === 161 && (token = nextToken(), token === 11 && recordModuleName()));
|
|
106469
|
-
} else
|
|
106470
|
-
token === 42 && (token = nextToken(), token === 130 && (token = nextToken(), (token === 80 || isKeyword(token)) && (token = nextToken(), token === 161 && (token = nextToken(), token === 11 && recordModuleName()))));
|
|
106422
|
+
} else token === 42 && (token = nextToken(), token === 130 && (token = nextToken(), (token === 80 || isKeyword(token)) && (token = nextToken(), token === 161 && (token = nextToken(), token === 11 && recordModuleName()))));
|
|
106471
106423
|
}
|
|
106472
106424
|
return !0;
|
|
106473
106425
|
}
|
|
@@ -109015,8 +108967,7 @@ ${lanes.join(`
|
|
|
109015
108967
|
if (isInImport(decl)) {
|
|
109016
108968
|
let prevIsTypeOnly = oldImportsNeededByTargetFile.get(symbol);
|
|
109017
108969
|
oldImportsNeededByTargetFile.set(symbol, (prevIsTypeOnly === void 0 || prevIsTypeOnly) && isValidTypeOnlyUseSite);
|
|
109018
|
-
} else
|
|
109019
|
-
isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile && !movedSymbols.has(symbol) && targetFileImportsFromOldFile.add(symbol);
|
|
108970
|
+
} else isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile && !movedSymbols.has(symbol) && targetFileImportsFromOldFile.add(symbol);
|
|
109020
108971
|
});
|
|
109021
108972
|
let unusedImportsFromOldFile = new Set(oldImportsNeededByTargetFile.keys()), oldFileImportsFromTargetFile = /* @__PURE__ */ new Set();
|
|
109022
108973
|
for (let statement of oldFile.statements)
|
|
@@ -110612,8 +110563,7 @@ ${newComment.split(`
|
|
|
110612
110563
|
} else if (current.kind === 169) {
|
|
110613
110564
|
getContainingFunction(current).kind === 176 && (rangeFacts |= 32);
|
|
110614
110565
|
break;
|
|
110615
|
-
} else
|
|
110616
|
-
current.kind === 174 && isStatic(current) && (rangeFacts |= 32);
|
|
110566
|
+
} else current.kind === 174 && isStatic(current) && (rangeFacts |= 32);
|
|
110617
110567
|
current = current.parent;
|
|
110618
110568
|
}
|
|
110619
110569
|
}
|
|
@@ -111448,8 +111398,7 @@ ${newComment.split(`
|
|
|
111448
111398
|
if (expression === void 0) {
|
|
111449
111399
|
let statements = targetRange.range, start = first(statements).getStart(), end = last(statements).end;
|
|
111450
111400
|
expressionDiagnostic = createFileDiagnostic(sourceFile, start, end - start, Messages.expressionExpected);
|
|
111451
|
-
} else
|
|
111452
|
-
checker.getTypeAtLocation(expression).flags & 147456 && (expressionDiagnostic = createDiagnosticForNode(expression, Messages.uselessConstantType));
|
|
111401
|
+
} else checker.getTypeAtLocation(expression).flags & 147456 && (expressionDiagnostic = createDiagnosticForNode(expression, Messages.uselessConstantType));
|
|
111453
111402
|
for (let scope of scopes) {
|
|
111454
111403
|
usagesPerScope.push({ usages: /* @__PURE__ */ new Map(), typeParameterUsages: /* @__PURE__ */ new Map(), substitutions: /* @__PURE__ */ new Map() }), substitutionsPerScope.push(/* @__PURE__ */ new Map()), functionErrorsPerScope.push([]);
|
|
111455
111404
|
let constantErrors = [];
|
|
@@ -111924,8 +111873,7 @@ ${newComment.split(`
|
|
|
111924
111873
|
if (decl) {
|
|
111925
111874
|
let modifiers = getCombinedModifierFlags(decl), nodeFlags = getCombinedNodeFlags(decl);
|
|
111926
111875
|
modifiers & 32 && (modifierSet |= 2), modifiers & 512 && (modifierSet |= 4), typeIdx !== 0 && typeIdx !== 2 && (modifiers & 64 || nodeFlags & 2 || symbol.getFlags() & 8) && (modifierSet |= 8), (typeIdx === 7 || typeIdx === 10) && isLocalDeclaration(decl, sourceFile) && (modifierSet |= 32), program.isSourceFileDefaultLibrary(decl.getSourceFile()) && (modifierSet |= 16);
|
|
111927
|
-
} else
|
|
111928
|
-
symbol.declarations && symbol.declarations.some((d) => program.isSourceFileDefaultLibrary(d.getSourceFile())) && (modifierSet |= 16);
|
|
111876
|
+
} else symbol.declarations && symbol.declarations.some((d) => program.isSourceFileDefaultLibrary(d.getSourceFile())) && (modifierSet |= 16);
|
|
111929
111877
|
collector(node, typeIdx, modifierSet);
|
|
111930
111878
|
}
|
|
111931
111879
|
}
|
|
@@ -116021,8 +115969,7 @@ ${newComment.split(`
|
|
|
116021
115969
|
target: declaration
|
|
116022
115970
|
} : void 0;
|
|
116023
115971
|
}
|
|
116024
|
-
} else
|
|
116025
|
-
return;
|
|
115972
|
+
} else return;
|
|
116026
115973
|
}
|
|
116027
115974
|
function addUndefinedToOptionalProperty(changes, toAdd) {
|
|
116028
115975
|
for (let add of toAdd) {
|
|
@@ -116961,8 +116908,7 @@ ${newComment.split(`
|
|
|
116961
116908
|
let temp = transformExpression(node, node, transformer, hasContinuation, continuationArgName);
|
|
116962
116909
|
if (innerCbBody = innerCbBody.concat(temp), innerCbBody.length > 0)
|
|
116963
116910
|
return;
|
|
116964
|
-
} else
|
|
116965
|
-
isFunctionLike(node) || forEachChild(node, visit);
|
|
116911
|
+
} else isFunctionLike(node) || forEachChild(node, visit);
|
|
116966
116912
|
}), innerCbBody;
|
|
116967
116913
|
}
|
|
116968
116914
|
function getArgBindingName(funcNode, transformer) {
|
|
@@ -116972,8 +116918,7 @@ ${newComment.split(`
|
|
|
116972
116918
|
let param = funcNode.parameters[0].name;
|
|
116973
116919
|
name = getMappedBindingNameOrDefault(param);
|
|
116974
116920
|
}
|
|
116975
|
-
} else
|
|
116976
|
-
isIdentifier(funcNode) ? name = getMapEntryOrDefault(funcNode) : isPropertyAccessExpression(funcNode) && isIdentifier(funcNode.name) && (name = getMapEntryOrDefault(funcNode.name));
|
|
116921
|
+
} else isIdentifier(funcNode) ? name = getMapEntryOrDefault(funcNode) : isPropertyAccessExpression(funcNode) && isIdentifier(funcNode.name) && (name = getMapEntryOrDefault(funcNode.name));
|
|
116977
116922
|
if (!name || "identifier" in name && name.identifier.text === "undefined")
|
|
116978
116923
|
return;
|
|
116979
116924
|
return name;
|
|
@@ -117217,8 +117162,7 @@ ${newComment.split(`
|
|
|
117217
117162
|
) ? convertReExportAll(right.arguments[0], checker) : void 0;
|
|
117218
117163
|
return replacement ? (changes.replaceNodeWithNodes(sourceFile, assignment.parent, replacement[0]), replacement[1]) : (changes.replaceRangeWithText(sourceFile, createRange(left.getStart(sourceFile), right.pos), "export default"), !0);
|
|
117219
117164
|
}
|
|
117220
|
-
else
|
|
117221
|
-
isExportsOrModuleExportsOrAlias(sourceFile, left.expression) && convertNamedExport(sourceFile, assignment, changes, exports2);
|
|
117165
|
+
else isExportsOrModuleExportsOrAlias(sourceFile, left.expression) && convertNamedExport(sourceFile, assignment, changes, exports2);
|
|
117222
117166
|
return !1;
|
|
117223
117167
|
}
|
|
117224
117168
|
function tryChangeModuleExportsObject(object, useSitesToUnqualify) {
|
|
@@ -117869,8 +117813,7 @@ ${newComment.split(`
|
|
|
117869
117813
|
if (type && isJSDocTypeLiteral(type)) {
|
|
117870
117814
|
let signatures = createSignatureFromTypeLiteral(type);
|
|
117871
117815
|
typeReference = factory.createTypeLiteralNode(signatures);
|
|
117872
|
-
} else
|
|
117873
|
-
type && (typeReference = getSynthesizedDeepClone(type));
|
|
117816
|
+
} else type && (typeReference = getSynthesizedDeepClone(type));
|
|
117874
117817
|
if (typeReference && name) {
|
|
117875
117818
|
let questionToken = isOptional ? factory.createToken(
|
|
117876
117819
|
58
|
|
@@ -117924,8 +117867,8 @@ ${newComment.split(`
|
|
|
117924
117867
|
context,
|
|
117925
117868
|
errorCodes15,
|
|
117926
117869
|
(changes, diag2) => {
|
|
117927
|
-
let newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options), node = getTokenAtPosition(diag2.file, diag2.start)
|
|
117928
|
-
node && doChange12(changes, node, diag2.file, newLineCharacter,
|
|
117870
|
+
let newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options), node = getTokenAtPosition(diag2.file, diag2.start);
|
|
117871
|
+
node && doChange12(changes, node, diag2.file, newLineCharacter, !0);
|
|
117929
117872
|
}
|
|
117930
117873
|
)
|
|
117931
117874
|
});
|
|
@@ -118503,8 +118446,7 @@ ${newComment.split(`
|
|
|
118503
118446
|
return fix && [{ fix, symbolName: symbolName2, errorIdentifierText: symbolToken.text }];
|
|
118504
118447
|
} else
|
|
118505
118448
|
info = getFixesInfoForNonUMDImport(context, symbolToken, useAutoImportProvider);
|
|
118506
|
-
else
|
|
118507
|
-
return;
|
|
118449
|
+
else return;
|
|
118508
118450
|
let packageJsonImportFilter = createPackageJsonImportFilter(context.sourceFile, context.preferences, context.host);
|
|
118509
118451
|
return info && sortFixInfo(info, context.sourceFile, context.program, packageJsonImportFilter, context.host);
|
|
118510
118452
|
}
|
|
@@ -121034,8 +120976,7 @@ ${newComment.split(`
|
|
|
121034
120976
|
if (parameter.modifiers && parameter.modifiers.length > 0 && (!isIdentifier(parameter.name) || ts_FindAllReferences_exports.Core.isSymbolReferencedInFile(parameter.name, checker, sourceFile)))
|
|
121035
120977
|
for (let modifier of parameter.modifiers)
|
|
121036
120978
|
isModifier(modifier) && changes.deleteModifier(sourceFile, modifier);
|
|
121037
|
-
else
|
|
121038
|
-
!parameter.initializer && isNotProvidedArguments(parameter, checker, sourceFiles) && changes.delete(sourceFile, parameter);
|
|
120979
|
+
else !parameter.initializer && isNotProvidedArguments(parameter, checker, sourceFiles) && changes.delete(sourceFile, parameter);
|
|
121039
120980
|
}
|
|
121040
120981
|
function isNotProvidedArguments(parameter, checker, sourceFiles) {
|
|
121041
120982
|
let index = parameter.parent.parameters.indexOf(parameter);
|
|
@@ -121696,8 +121637,7 @@ ${newComment.split(`
|
|
|
121696
121637
|
void 0
|
|
121697
121638
|
);
|
|
121698
121639
|
changes.addJSDocTags(sourceFile, parent2, [typeTag]);
|
|
121699
|
-
} else
|
|
121700
|
-
tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, getEmitScriptTarget(program.getCompilerOptions())) || changes.tryInsertTypeAnnotation(sourceFile, declaration, typeNode);
|
|
121640
|
+
} else tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, getEmitScriptTarget(program.getCompilerOptions())) || changes.tryInsertTypeAnnotation(sourceFile, declaration, typeNode);
|
|
121701
121641
|
}
|
|
121702
121642
|
function tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, scriptTarget) {
|
|
121703
121643
|
let importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
|
|
@@ -124682,10 +124622,7 @@ ${newComment.split(`
|
|
|
124682
124622
|
};
|
|
124683
124623
|
}
|
|
124684
124624
|
function isClassLikeMemberCompletion(symbol, location, sourceFile) {
|
|
124685
|
-
|
|
124686
|
-
return !1;
|
|
124687
|
-
let memberFlags = 106500;
|
|
124688
|
-
return !!(symbol.flags & memberFlags) && (isClassLike(location) || location.parent && location.parent.parent && isClassElement(location.parent) && location === location.parent.name && location.parent.getLastToken(sourceFile) === location.parent.name && isClassLike(location.parent.parent) || location.parent && isSyntaxList(location) && isClassLike(location.parent));
|
|
124625
|
+
return isInJSFile(location) ? !1 : !!(symbol.flags & 106500) && (isClassLike(location) || location.parent && location.parent.parent && isClassElement(location.parent) && location === location.parent.name && location.parent.getLastToken(sourceFile) === location.parent.name && isClassLike(location.parent.parent) || location.parent && isSyntaxList(location) && isClassLike(location.parent));
|
|
124689
124626
|
}
|
|
124690
124627
|
function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) {
|
|
124691
124628
|
let classLikeDeclaration = findAncestor(location, isClassLike);
|
|
@@ -127863,8 +127800,7 @@ ${newComment.split(`
|
|
|
127863
127800
|
if (decl.qualifier) {
|
|
127864
127801
|
let firstIdentifier = getFirstIdentifier(decl.qualifier);
|
|
127865
127802
|
firstIdentifier.escapedText === symbolName(exportSymbol) && singleReferences.push(firstIdentifier);
|
|
127866
|
-
} else
|
|
127867
|
-
exportKind === 2 && singleReferences.push(decl.argument.literal);
|
|
127803
|
+
} else exportKind === 2 && singleReferences.push(decl.argument.literal);
|
|
127868
127804
|
return;
|
|
127869
127805
|
}
|
|
127870
127806
|
if (decl.moduleSpecifier.kind !== 11)
|
|
@@ -129352,8 +129288,7 @@ ${newComment.split(`
|
|
|
129352
129288
|
body.kind === 241 ? forEachReturnStatement(body, (returnStatement) => {
|
|
129353
129289
|
returnStatement.expression && addIfImplementation(returnStatement.expression);
|
|
129354
129290
|
}) : addIfImplementation(body);
|
|
129355
|
-
} else
|
|
129356
|
-
isAssertionExpression(typeHavingNode) && addIfImplementation(typeHavingNode.expression);
|
|
129291
|
+
} else isAssertionExpression(typeHavingNode) && addIfImplementation(typeHavingNode.expression);
|
|
129357
129292
|
function addIfImplementation(e) {
|
|
129358
129293
|
isImplementationExpression(e) && addReference2(e);
|
|
129359
129294
|
}
|
|
@@ -132623,11 +132558,10 @@ ${newComment.split(`
|
|
|
132623
132558
|
32
|
|
132624
132559
|
/* WriteTypeArgumentsOfSignature */
|
|
132625
132560
|
));
|
|
132626
|
-
} else
|
|
132627
|
-
|
|
132628
|
-
|
|
132629
|
-
|
|
132630
|
-
)), displayParts.push(spacePart()), addFullSymbolName(declaration.symbol), writeTypeParametersOfSymbol(declaration.symbol, sourceFile));
|
|
132561
|
+
} else isTypeAliasDeclaration(declaration) && (addInPrefix(), displayParts.push(keywordPart(
|
|
132562
|
+
156
|
|
132563
|
+
/* TypeKeyword */
|
|
132564
|
+
)), displayParts.push(spacePart()), addFullSymbolName(declaration.symbol), writeTypeParametersOfSymbol(declaration.symbol, sourceFile));
|
|
132631
132565
|
}
|
|
132632
132566
|
if (symbolFlags & 8) {
|
|
132633
132567
|
symbolKind = "enum member", addPrefixForAnyFunctionOrVar(symbol, "enum member");
|
|
@@ -139871,44 +139805,43 @@ var require_brace_expressions = __commonJS({
|
|
|
139871
139805
|
if (glob.charAt(pos) !== "[")
|
|
139872
139806
|
throw new Error("not in a brace expression");
|
|
139873
139807
|
let ranges = [], negs = [], i = pos + 1, sawStart = !1, uflag = !1, escaping = !1, negate = !1, endPos = pos, rangeStart = "";
|
|
139874
|
-
WHILE:
|
|
139875
|
-
|
|
139876
|
-
|
|
139877
|
-
|
|
139878
|
-
|
|
139879
|
-
|
|
139880
|
-
|
|
139881
|
-
|
|
139882
|
-
|
|
139883
|
-
|
|
139884
|
-
|
|
139885
|
-
|
|
139886
|
-
|
|
139887
|
-
|
|
139888
|
-
|
|
139889
|
-
|
|
139890
|
-
|
|
139891
|
-
if (
|
|
139892
|
-
|
|
139893
|
-
|
|
139894
|
-
|
|
139895
|
-
|
|
139896
|
-
|
|
139897
|
-
|
|
139898
|
-
|
|
139899
|
-
|
|
139900
|
-
continue;
|
|
139901
|
-
}
|
|
139902
|
-
if (glob.startsWith("-]", i + 1)) {
|
|
139903
|
-
ranges.push(braceEscape(c + "-")), i += 2;
|
|
139904
|
-
continue;
|
|
139905
|
-
}
|
|
139906
|
-
if (glob.startsWith("-", i + 1)) {
|
|
139907
|
-
rangeStart = c, i += 2;
|
|
139908
|
-
continue;
|
|
139909
|
-
}
|
|
139910
|
-
ranges.push(braceEscape(c)), i++;
|
|
139808
|
+
WHILE: for (; i < glob.length; ) {
|
|
139809
|
+
let c = glob.charAt(i);
|
|
139810
|
+
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
139811
|
+
negate = !0, i++;
|
|
139812
|
+
continue;
|
|
139813
|
+
}
|
|
139814
|
+
if (c === "]" && sawStart && !escaping) {
|
|
139815
|
+
endPos = i + 1;
|
|
139816
|
+
break;
|
|
139817
|
+
}
|
|
139818
|
+
if (sawStart = !0, c === "\\" && !escaping) {
|
|
139819
|
+
escaping = !0, i++;
|
|
139820
|
+
continue;
|
|
139821
|
+
}
|
|
139822
|
+
if (c === "[" && !escaping) {
|
|
139823
|
+
for (let [cls, [unip, u, neg]] of Object.entries(posixClasses))
|
|
139824
|
+
if (glob.startsWith(cls, i)) {
|
|
139825
|
+
if (rangeStart)
|
|
139826
|
+
return ["$.", !1, glob.length - pos, !0];
|
|
139827
|
+
i += cls.length, neg ? negs.push(unip) : ranges.push(unip), uflag = uflag || u;
|
|
139828
|
+
continue WHILE;
|
|
139829
|
+
}
|
|
139830
|
+
}
|
|
139831
|
+
if (escaping = !1, rangeStart) {
|
|
139832
|
+
c > rangeStart ? ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c)) : c === rangeStart && ranges.push(braceEscape(c)), rangeStart = "", i++;
|
|
139833
|
+
continue;
|
|
139911
139834
|
}
|
|
139835
|
+
if (glob.startsWith("-]", i + 1)) {
|
|
139836
|
+
ranges.push(braceEscape(c + "-")), i += 2;
|
|
139837
|
+
continue;
|
|
139838
|
+
}
|
|
139839
|
+
if (glob.startsWith("-", i + 1)) {
|
|
139840
|
+
rangeStart = c, i += 2;
|
|
139841
|
+
continue;
|
|
139842
|
+
}
|
|
139843
|
+
ranges.push(braceEscape(c)), i++;
|
|
139844
|
+
}
|
|
139912
139845
|
if (endPos < i)
|
|
139913
139846
|
return ["", !1, 0, !1];
|
|
139914
139847
|
if (!ranges.length && !negs.length)
|
|
@@ -140351,11 +140284,16 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
140351
140284
|
continue;
|
|
140352
140285
|
}
|
|
140353
140286
|
switch (c) {
|
|
140287
|
+
// Should already be path-split by now.
|
|
140288
|
+
/* c8 ignore start */
|
|
140354
140289
|
case "/":
|
|
140355
140290
|
return !1;
|
|
140291
|
+
/* c8 ignore stop */
|
|
140356
140292
|
case "\\":
|
|
140357
140293
|
clearStateChar(), escaping = !0;
|
|
140358
140294
|
continue;
|
|
140295
|
+
// the various stateChar values
|
|
140296
|
+
// for the "extglob" stuff.
|
|
140359
140297
|
case "?":
|
|
140360
140298
|
case "*":
|
|
140361
140299
|
case "+":
|
|
@@ -140396,6 +140334,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
140396
140334
|
clearStateChar(), re += "|", plEntry.start === 0 && plEntry.type !== "!" && (dotTravAllowed = !0, re += subPatternStart(pattern.slice(i + 1)));
|
|
140397
140335
|
continue;
|
|
140398
140336
|
}
|
|
140337
|
+
// these are mostly the same in regexp and glob
|
|
140399
140338
|
case "[":
|
|
140400
140339
|
clearStateChar();
|
|
140401
140340
|
let [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(pattern, i);
|
|
@@ -140822,8 +140761,7 @@ var require_path_browserify = __commonJS({
|
|
|
140822
140761
|
} else
|
|
140823
140762
|
res.length > 0 ? res += "/" + path.slice(lastSlash + 1, i) : res = path.slice(lastSlash + 1, i), lastSegmentLength = i - lastSlash - 1;
|
|
140824
140763
|
lastSlash = i, dots = 0;
|
|
140825
|
-
} else
|
|
140826
|
-
code === 46 && dots !== -1 ? ++dots : dots = -1;
|
|
140764
|
+
} else code === 46 && dots !== -1 ? ++dots : dots = -1;
|
|
140827
140765
|
}
|
|
140828
140766
|
return res;
|
|
140829
140767
|
}
|
|
@@ -140841,8 +140779,7 @@ var require_path_browserify = __commonJS({
|
|
|
140841
140779
|
return resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute), resolvedAbsolute ? resolvedPath.length > 0 ? "/" + resolvedPath : "/" : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
140842
140780
|
},
|
|
140843
140781
|
normalize: function(path) {
|
|
140844
|
-
if (assertPath(path), path.length === 0)
|
|
140845
|
-
return ".";
|
|
140782
|
+
if (assertPath(path), path.length === 0) return ".";
|
|
140846
140783
|
var isAbsolute = path.charCodeAt(0) === 47, trailingSeparator = path.charCodeAt(path.length - 1) === 47;
|
|
140847
140784
|
return path = normalizeStringPosix(path, !isAbsolute), path.length === 0 && !isAbsolute && (path = "."), path.length > 0 && trailingSeparator && (path += "/"), isAbsolute ? "/" + path : path;
|
|
140848
140785
|
},
|
|
@@ -140859,8 +140796,7 @@ var require_path_browserify = __commonJS({
|
|
|
140859
140796
|
return joined === void 0 ? "." : posix.normalize(joined);
|
|
140860
140797
|
},
|
|
140861
140798
|
relative: function(from, to) {
|
|
140862
|
-
if (assertPath(from), assertPath(to), from === to || (from = posix.resolve(from), to = posix.resolve(to), from === to))
|
|
140863
|
-
return "";
|
|
140799
|
+
if (assertPath(from), assertPath(to), from === to || (from = posix.resolve(from), to = posix.resolve(to), from === to)) return "";
|
|
140864
140800
|
for (var fromStart = 1; fromStart < from.length && from.charCodeAt(fromStart) === 47; ++fromStart)
|
|
140865
140801
|
;
|
|
140866
140802
|
for (var fromEnd = from.length, fromLen = fromEnd - fromStart, toStart = 1; toStart < to.length && to.charCodeAt(toStart) === 47; ++toStart)
|
|
@@ -140872,8 +140808,7 @@ var require_path_browserify = __commonJS({
|
|
|
140872
140808
|
return to.slice(toStart + i + 1);
|
|
140873
140809
|
if (i === 0)
|
|
140874
140810
|
return to.slice(toStart + i);
|
|
140875
|
-
} else
|
|
140876
|
-
fromLen > length && (from.charCodeAt(fromStart + i) === 47 ? lastCommonSep = i : i === 0 && (lastCommonSep = 0));
|
|
140811
|
+
} else fromLen > length && (from.charCodeAt(fromStart + i) === 47 ? lastCommonSep = i : i === 0 && (lastCommonSep = 0));
|
|
140877
140812
|
break;
|
|
140878
140813
|
}
|
|
140879
140814
|
var fromCode = from.charCodeAt(fromStart + i), toCode = to.charCodeAt(toStart + i);
|
|
@@ -140890,8 +140825,7 @@ var require_path_browserify = __commonJS({
|
|
|
140890
140825
|
return path;
|
|
140891
140826
|
},
|
|
140892
140827
|
dirname: function(path) {
|
|
140893
|
-
if (assertPath(path), path.length === 0)
|
|
140894
|
-
return ".";
|
|
140828
|
+
if (assertPath(path), path.length === 0) return ".";
|
|
140895
140829
|
for (var code = path.charCodeAt(0), hasRoot = code === 47, end = -1, matchedSlash = !0, i = path.length - 1; i >= 1; --i)
|
|
140896
140830
|
if (code = path.charCodeAt(i), code === 47) {
|
|
140897
140831
|
if (!matchedSlash) {
|
|
@@ -140903,13 +140837,11 @@ var require_path_browserify = __commonJS({
|
|
|
140903
140837
|
return end === -1 ? hasRoot ? "/" : "." : hasRoot && end === 1 ? "//" : path.slice(0, end);
|
|
140904
140838
|
},
|
|
140905
140839
|
basename: function(path, ext) {
|
|
140906
|
-
if (ext !== void 0 && typeof ext != "string")
|
|
140907
|
-
throw new TypeError('"ext" argument must be a string');
|
|
140840
|
+
if (ext !== void 0 && typeof ext != "string") throw new TypeError('"ext" argument must be a string');
|
|
140908
140841
|
assertPath(path);
|
|
140909
140842
|
var start = 0, end = -1, matchedSlash = !0, i;
|
|
140910
140843
|
if (ext !== void 0 && ext.length > 0 && ext.length <= path.length) {
|
|
140911
|
-
if (ext.length === path.length && ext === path)
|
|
140912
|
-
return "";
|
|
140844
|
+
if (ext.length === path.length && ext === path) return "";
|
|
140913
140845
|
var extIdx = ext.length - 1, firstNonSlashEnd = -1;
|
|
140914
140846
|
for (i = path.length - 1; i >= 0; --i) {
|
|
140915
140847
|
var code = path.charCodeAt(i);
|
|
@@ -140929,8 +140861,7 @@ var require_path_browserify = __commonJS({
|
|
|
140929
140861
|
start = i + 1;
|
|
140930
140862
|
break;
|
|
140931
140863
|
}
|
|
140932
|
-
} else
|
|
140933
|
-
end === -1 && (matchedSlash = !1, end = i + 1);
|
|
140864
|
+
} else end === -1 && (matchedSlash = !1, end = i + 1);
|
|
140934
140865
|
return end === -1 ? "" : path.slice(start, end);
|
|
140935
140866
|
}
|
|
140936
140867
|
},
|
|
@@ -140959,8 +140890,7 @@ var require_path_browserify = __commonJS({
|
|
|
140959
140890
|
parse: function(path) {
|
|
140960
140891
|
assertPath(path);
|
|
140961
140892
|
var ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
140962
|
-
if (path.length === 0)
|
|
140963
|
-
return ret;
|
|
140893
|
+
if (path.length === 0) return ret;
|
|
140964
140894
|
var code = path.charCodeAt(0), isAbsolute = code === 47, start;
|
|
140965
140895
|
isAbsolute ? (ret.root = "/", start = 1) : start = 0;
|
|
140966
140896
|
for (var startDot = -1, startPart = 0, end = -1, matchedSlash = !0, i = path.length - 1, preDotState = 0; i >= start; --i) {
|
|
@@ -140997,8 +140927,7 @@ var require_ts_morph_common = __commonJS({
|
|
|
140997
140927
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
140998
140928
|
}
|
|
140999
140929
|
function _interopNamespaceCompat(e) {
|
|
141000
|
-
if (e && typeof e == "object" && "default" in e)
|
|
141001
|
-
return e;
|
|
140930
|
+
if (e && typeof e == "object" && "default" in e) return e;
|
|
141002
140931
|
var n = /* @__PURE__ */ Object.create(null);
|
|
141003
140932
|
return e && Object.keys(e).forEach(function(k) {
|
|
141004
140933
|
if (k !== "default") {
|
|
@@ -173385,11 +173314,8 @@ interface CSSNumericArray{[Symbol.iterator]():IterableIterator<CSSNumericValue>;
|
|
|
173385
173314
|
};
|
|
173386
173315
|
function __decorate(decorators, target, key, desc) {
|
|
173387
173316
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
173388
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
173389
|
-
|
|
173390
|
-
else
|
|
173391
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
173392
|
-
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
173317
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
173318
|
+
else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
173393
173319
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
173394
173320
|
}
|
|
173395
173321
|
function readDirectory(fileSystemWrapper, useCaseSensitiveFileNames, rootDir, extensions, excludes, includes, depth) {
|
|
@@ -174952,8 +174878,7 @@ var require_ts_morph = __commonJS({
|
|
|
174952
174878
|
if (innerBody == null)
|
|
174953
174879
|
throw new common.errors.InvalidOperationError("This operation requires the module to have a body.");
|
|
174954
174880
|
return innerBody;
|
|
174955
|
-
} else
|
|
174956
|
-
return Node3.isBodied(parent) ? parent.getBody() : Node3.isBodyable(parent) ? parent.getBodyOrThrow() : parent;
|
|
174881
|
+
} else return Node3.isBodied(parent) ? parent.getBody() : Node3.isBodyable(parent) ? parent.getBodyOrThrow() : parent;
|
|
174957
174882
|
}
|
|
174958
174883
|
function fromAbstractableNode(node) {
|
|
174959
174884
|
return {
|
|
@@ -180494,8 +180419,7 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
180494
180419
|
if (this.factory.forJSDoc().printDocs(writer, structure.docs), isValidVariableName(structure.name) || common.StringUtils.isQuoted(structure.name) ? writer.write(structure.name) : writer.quote(structure.name), typeof structure.value == "string") {
|
|
180495
180420
|
let { value } = structure;
|
|
180496
180421
|
writer.hangingIndent(() => writer.write(" = ").quote(value));
|
|
180497
|
-
} else
|
|
180498
|
-
typeof structure.value == "number" ? writer.write(` = ${structure.value}`) : this.factory.forInitializerExpressionableNode().printText(writer, structure);
|
|
180422
|
+
} else typeof structure.value == "number" ? writer.write(` = ${structure.value}`) : this.factory.forInitializerExpressionableNode().printText(writer, structure);
|
|
180499
180423
|
}
|
|
180500
180424
|
}, ObjectLiteralExpressionPropertyStructurePrinter = class extends Printer {
|
|
180501
180425
|
constructor(factory) {
|
|
@@ -181649,8 +181573,7 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
181649
181573
|
common.errors.throwIfWhitespaceOrNotString(structure.name, "structure.name");
|
|
181650
181574
|
let nameNode = this.getNameNode();
|
|
181651
181575
|
nameNode == null ? addNameNode(this, structure.name) : nameNode.replaceWithText(structure.name);
|
|
181652
|
-
} else
|
|
181653
|
-
structure.hasOwnProperty(common.nameof(structure, "name")) && this.removeName();
|
|
181576
|
+
} else structure.hasOwnProperty(common.nameof(structure, "name")) && this.removeName();
|
|
181654
181577
|
return this;
|
|
181655
181578
|
}
|
|
181656
181579
|
getStructure() {
|
|
@@ -183436,15 +183359,14 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
183436
183359
|
textLength: 1
|
|
183437
183360
|
}
|
|
183438
183361
|
});
|
|
183439
|
-
} else
|
|
183440
|
-
|
|
183441
|
-
|
|
183442
|
-
|
|
183443
|
-
|
|
183444
|
-
|
|
183445
|
-
|
|
183446
|
-
|
|
183447
|
-
});
|
|
183362
|
+
} else Node3.isNamespaceExport(exportClause) ? exportClause.getNameNode().replaceWithText(name) : insertIntoParentTextRange({
|
|
183363
|
+
insertPos: exportClause.getStart(),
|
|
183364
|
+
parent: this,
|
|
183365
|
+
newText,
|
|
183366
|
+
replacing: {
|
|
183367
|
+
textLength: exportClause.getWidth()
|
|
183368
|
+
}
|
|
183369
|
+
});
|
|
183448
183370
|
return this;
|
|
183449
183371
|
}
|
|
183450
183372
|
setModuleSpecifier(textOrSourceFile) {
|
|
@@ -183540,22 +183462,21 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
183540
183462
|
textLength: 1
|
|
183541
183463
|
}
|
|
183542
183464
|
});
|
|
183543
|
-
} else
|
|
183544
|
-
exportClause.
|
|
183545
|
-
|
|
183546
|
-
|
|
183547
|
-
|
|
183548
|
-
|
|
183549
|
-
|
|
183550
|
-
|
|
183551
|
-
|
|
183552
|
-
|
|
183553
|
-
|
|
183554
|
-
|
|
183555
|
-
|
|
183556
|
-
|
|
183557
|
-
|
|
183558
|
-
}));
|
|
183465
|
+
} else exportClause.getKind() === common.SyntaxKind.NamespaceExport ? (namedExportStructurePrinter.printTextsWithBraces(writer, namedExports), insertIntoParentTextRange({
|
|
183466
|
+
insertPos: exportClause.getStart(),
|
|
183467
|
+
parent: this,
|
|
183468
|
+
newText: writer.toString(),
|
|
183469
|
+
replacing: {
|
|
183470
|
+
textLength: exportClause.getWidth()
|
|
183471
|
+
}
|
|
183472
|
+
})) : (namedExportStructurePrinter.printTexts(writer, namedExports), insertIntoCommaSeparatedNodes({
|
|
183473
|
+
parent: this.getFirstChildByKindOrThrow(common.SyntaxKind.NamedExports).getFirstChildByKindOrThrow(common.SyntaxKind.SyntaxList),
|
|
183474
|
+
currentNodes: originalNamedExports,
|
|
183475
|
+
insertIndex: index,
|
|
183476
|
+
newText: writer.toString(),
|
|
183477
|
+
surroundWithSpaces: this._context.getFormatCodeSettings().insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces,
|
|
183478
|
+
useTrailingCommas: !1
|
|
183479
|
+
}));
|
|
183559
183480
|
let newNamedExports = this.getNamedExports();
|
|
183560
183481
|
return getNodesToReturn(originalNamedExports, newNamedExports, index, !1);
|
|
183561
183482
|
}
|
|
@@ -184331,11 +184252,8 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
184331
184252
|
})(exports.FileSystemRefreshResult || (exports.FileSystemRefreshResult = {}));
|
|
184332
184253
|
function __decorate(decorators, target, key, desc) {
|
|
184333
184254
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
184334
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
184335
|
-
|
|
184336
|
-
else
|
|
184337
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
184338
|
-
(d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
184255
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
184256
|
+
else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
184339
184257
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
184340
184258
|
}
|
|
184341
184259
|
var SourceFileBase = ModuledNode(TextInsertableNode(StatementedNode(Node3))), SourceFile = class extends SourceFileBase {
|
|
@@ -187794,8 +187712,8 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
187794
187712
|
return new MemoryEmitResult(this._context, emitResult, sourceFiles);
|
|
187795
187713
|
}
|
|
187796
187714
|
_emit(options = {}) {
|
|
187797
|
-
let targetSourceFile = options.targetSourceFile != null ? options.targetSourceFile.compilerNode : void 0, { emitOnlyDtsFiles, customTransformers, writeFile } = options
|
|
187798
|
-
return this.compilerObject.emit(targetSourceFile, writeFile,
|
|
187715
|
+
let targetSourceFile = options.targetSourceFile != null ? options.targetSourceFile.compilerNode : void 0, { emitOnlyDtsFiles, customTransformers, writeFile } = options;
|
|
187716
|
+
return this.compilerObject.emit(targetSourceFile, writeFile, void 0, emitOnlyDtsFiles, customTransformers);
|
|
187799
187717
|
}
|
|
187800
187718
|
getSyntacticDiagnostics(sourceFile) {
|
|
187801
187719
|
return this.compilerObject.getSyntacticDiagnostics(sourceFile?.compilerNode).map((d) => this._context.compilerFactory.getDiagnosticWithLocation(d));
|
|
@@ -190720,33 +190638,32 @@ Node text: ${this._forgottenText}`), new common.errors.InvalidOperationError(mes
|
|
|
190720
190638
|
}
|
|
190721
190639
|
});
|
|
190722
190640
|
|
|
190723
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190641
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/index.js
|
|
190724
190642
|
init_cjs_shims();
|
|
190725
190643
|
var import_ts_morph2 = __toESM(require_ts_morph(), 1);
|
|
190726
190644
|
|
|
190727
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190645
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/classes.js
|
|
190728
190646
|
init_cjs_shims();
|
|
190729
190647
|
var import_ts_morph = __toESM(require_ts_morph(), 1);
|
|
190730
190648
|
|
|
190731
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190649
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/functions.js
|
|
190732
190650
|
init_cjs_shims();
|
|
190733
190651
|
|
|
190734
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190652
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/utils.js
|
|
190735
190653
|
init_cjs_shims();
|
|
190736
190654
|
function getJsDocOrCreate(node) {
|
|
190737
190655
|
return node.getJsDocs().at(-1) || node.addJsDoc({ description: `
|
|
190738
190656
|
` });
|
|
190739
190657
|
}
|
|
190740
190658
|
function sanitizeType(str) {
|
|
190741
|
-
if (!str)
|
|
190742
|
-
return str;
|
|
190659
|
+
if (!str) return str;
|
|
190743
190660
|
let extractedClassFromTypeof = /{*typeof\s+([^(?:}|\s);]*)/gm.exec(
|
|
190744
190661
|
str
|
|
190745
190662
|
)?.[1];
|
|
190746
190663
|
return extractedClassFromTypeof ? `Class<${extractedClassFromTypeof}>` : str;
|
|
190747
190664
|
}
|
|
190748
190665
|
|
|
190749
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190666
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/functions.js
|
|
190750
190667
|
function generateFunctionDocumentation(functionNode, variableStatement) {
|
|
190751
190668
|
let outputDocNode = getOutputJsDocNodeOrCreate(
|
|
190752
190669
|
functionNode,
|
|
@@ -190789,8 +190706,7 @@ function generateParameterDocumentation(functionNode, docNode) {
|
|
|
190789
190706
|
paramTags.forEach((tag) => tag.remove());
|
|
190790
190707
|
for (let param of params) {
|
|
190791
190708
|
let paramType = sanitizeType(param.getTypeNode()?.getText());
|
|
190792
|
-
if (!paramType)
|
|
190793
|
-
continue;
|
|
190709
|
+
if (!paramType) continue;
|
|
190794
190710
|
let paramName = param.compilerNode.name?.getText(), isOptional = param.isOptional(), paramTypeOut = param.isRestParameter() ? `...${paramType.replace(/\[\]\s*$/, "")}` : paramType, defaultValue;
|
|
190795
190711
|
isOptional && (defaultValue = param.getInitializer()?.getText().replaceAll(/(\s|\t)*\n(\s|\t)*/g, " "));
|
|
190796
190712
|
let paramNameOut = paramName;
|
|
@@ -190810,7 +190726,7 @@ function getOutputJsDocNodeOrCreate(functionNode, docNode) {
|
|
|
190810
190726
|
return docNode ? functionNode.getJsDocs().length ? functionNode : (getJsDocOrCreate(docNode), docNode) : (getJsDocOrCreate(functionNode), functionNode);
|
|
190811
190727
|
}
|
|
190812
190728
|
|
|
190813
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190729
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/classes.js
|
|
190814
190730
|
function generateClassDocumentation(classNode) {
|
|
190815
190731
|
generateClassBaseDocumentation(classNode), classNode.getMembers().forEach(generateClassMemberDocumentation);
|
|
190816
190732
|
}
|
|
@@ -190838,7 +190754,7 @@ function generateModifierDocumentation(classMember) {
|
|
|
190838
190754
|
}
|
|
190839
190755
|
}
|
|
190840
190756
|
|
|
190841
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190757
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/typedefs.js
|
|
190842
190758
|
init_cjs_shims();
|
|
190843
190759
|
function generateTypeDefs(sourceFile, code) {
|
|
190844
190760
|
let typedefs = sourceFile.getTypeAliases().map(
|
|
@@ -190914,8 +190830,7 @@ function generateInterfaceDocumentation(interfaceNode) {
|
|
|
190914
190830
|
}
|
|
190915
190831
|
function generateTypedefDocumentation(typeNode, sourceFile) {
|
|
190916
190832
|
let name = typeNode.getName(), { type } = typeNode.getStructure();
|
|
190917
|
-
if (typeof type != "string")
|
|
190918
|
-
return "";
|
|
190833
|
+
if (typeof type != "string") return "";
|
|
190919
190834
|
type = sanitizeType(type);
|
|
190920
190835
|
let dummyNode = sourceFile.addVariableStatement({
|
|
190921
190836
|
declarations: [{ name: `__dummy${name}`, initializer: "null" }]
|
|
@@ -190952,7 +190867,7 @@ function generateObjectPropertyDocumentation(node, jsDoc, name = "", topLevelCal
|
|
|
190952
190867
|
);
|
|
190953
190868
|
}
|
|
190954
190869
|
|
|
190955
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
190870
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/morph/index.js
|
|
190956
190871
|
var DEFAULT_COMPILER_OPTIONS = {
|
|
190957
190872
|
target: import_ts_morph2.ScriptTarget.ESNext,
|
|
190958
190873
|
esModuleInterop: !0,
|
|
@@ -191002,8 +190917,7 @@ function transpileTsWithJSDocs(src, filepath, compilerOptions = {}) {
|
|
|
191002
190917
|
let result = project.emitToMemory()?.getFiles()?.find(
|
|
191003
190918
|
(file) => file.filePath.slice(0, -3) === sourceFile.getFilePath().slice(0, -3)
|
|
191004
190919
|
)?.text;
|
|
191005
|
-
if (!result)
|
|
191006
|
-
throw new Error("Could not emit output to memory.");
|
|
190920
|
+
if (!result) throw new Error("Could not emit output to memory.");
|
|
191007
190921
|
return result = restoreCode(result), result = generateTypeDefs(sourceFile, result), result.replace(/^\s*\/\*[*\s]+\*\/$\n/gm, `
|
|
191008
190922
|
`).trim() + `
|
|
191009
190923
|
`;
|
|
@@ -191030,4 +190944,4 @@ export {
|
|
|
191030
190944
|
and limitations under the License.
|
|
191031
190945
|
***************************************************************************** *)
|
|
191032
190946
|
*/
|
|
191033
|
-
//# sourceMappingURL=morph-
|
|
190947
|
+
//# sourceMappingURL=morph-OSHCID2F.js.map
|