@immense/vue-pom-generator 1.0.109 → 1.0.110
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/RELEASE_NOTES.md +19 -32
- package/dist/compiler/babel-guards.d.ts +85 -0
- package/dist/compiler/babel-guards.d.ts.map +1 -0
- package/dist/index.cjs +110 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +110 -155
- package/dist/index.mjs.map +1 -1
- package/dist/routing/to-directive.d.ts.map +1 -1
- package/dist/tests/helpers/ast-queries.d.ts +10 -0
- package/dist/tests/helpers/ast-queries.d.ts.map +1 -0
- package/dist/tests/helpers/component-deps.d.ts +3 -0
- package/dist/tests/helpers/component-deps.d.ts.map +1 -0
- package/dist/transform.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1058,6 +1058,96 @@ function collectAccessibilityReviewWarnings(manifest) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
return warnings;
|
|
1060
1060
|
}
|
|
1061
|
+
const isNodeType = (node, type) => {
|
|
1062
|
+
return node !== null && node.type === type;
|
|
1063
|
+
};
|
|
1064
|
+
const isIdentifierNode = (node) => {
|
|
1065
|
+
return isNodeType(node, "Identifier") && typeof node.name === "string";
|
|
1066
|
+
};
|
|
1067
|
+
const isStringLiteralNode = (node) => {
|
|
1068
|
+
return isNodeType(node, "StringLiteral") && typeof node.value === "string";
|
|
1069
|
+
};
|
|
1070
|
+
const isBooleanLiteralNode = (node) => {
|
|
1071
|
+
return isNodeType(node, "BooleanLiteral") && typeof node.value === "boolean";
|
|
1072
|
+
};
|
|
1073
|
+
const isNumericLiteralNode = (node) => {
|
|
1074
|
+
return isNodeType(node, "NumericLiteral") && typeof node.value === "number";
|
|
1075
|
+
};
|
|
1076
|
+
const isNullLiteralNode = (node) => {
|
|
1077
|
+
return isNodeType(node, "NullLiteral");
|
|
1078
|
+
};
|
|
1079
|
+
const isMemberExpressionNode = (node) => {
|
|
1080
|
+
if (!isNodeType(node, "MemberExpression"))
|
|
1081
|
+
return false;
|
|
1082
|
+
const n = node;
|
|
1083
|
+
return typeof n.computed === "boolean" && typeof n.object === "object" && n.object !== null && typeof n.property === "object" && n.property !== null;
|
|
1084
|
+
};
|
|
1085
|
+
const isCallExpressionNode = (node) => {
|
|
1086
|
+
if (!isNodeType(node, "CallExpression"))
|
|
1087
|
+
return false;
|
|
1088
|
+
const n = node;
|
|
1089
|
+
return typeof n.callee === "object" && n.callee !== null && Array.isArray(n.arguments);
|
|
1090
|
+
};
|
|
1091
|
+
const isAwaitExpressionNode = (node) => {
|
|
1092
|
+
if (!isNodeType(node, "AwaitExpression"))
|
|
1093
|
+
return false;
|
|
1094
|
+
const n = node;
|
|
1095
|
+
return typeof n.argument === "object" && n.argument !== null;
|
|
1096
|
+
};
|
|
1097
|
+
const isAssignmentExpressionNode = (node) => {
|
|
1098
|
+
if (!isNodeType(node, "AssignmentExpression"))
|
|
1099
|
+
return false;
|
|
1100
|
+
const n = node;
|
|
1101
|
+
return typeof n.left === "object" && n.left !== null && typeof n.right === "object" && n.right !== null;
|
|
1102
|
+
};
|
|
1103
|
+
const isArrowFunctionExpressionNode = (node) => {
|
|
1104
|
+
if (!isNodeType(node, "ArrowFunctionExpression"))
|
|
1105
|
+
return false;
|
|
1106
|
+
const n = node;
|
|
1107
|
+
return typeof n.body === "object" && n.body !== null;
|
|
1108
|
+
};
|
|
1109
|
+
const isBlockStatementNode = (node) => {
|
|
1110
|
+
if (!isNodeType(node, "BlockStatement"))
|
|
1111
|
+
return false;
|
|
1112
|
+
const n = node;
|
|
1113
|
+
return Array.isArray(n.body);
|
|
1114
|
+
};
|
|
1115
|
+
const isExpressionStatementNode = (node) => {
|
|
1116
|
+
if (!isNodeType(node, "ExpressionStatement"))
|
|
1117
|
+
return false;
|
|
1118
|
+
const n = node;
|
|
1119
|
+
return typeof n.expression === "object" && n.expression !== null;
|
|
1120
|
+
};
|
|
1121
|
+
const isReturnStatementNode = (node) => {
|
|
1122
|
+
if (!isNodeType(node, "ReturnStatement"))
|
|
1123
|
+
return false;
|
|
1124
|
+
const n = node;
|
|
1125
|
+
return typeof n.argument === "object" || n.argument === null;
|
|
1126
|
+
};
|
|
1127
|
+
const isObjectExpressionNode = (node) => {
|
|
1128
|
+
if (!isNodeType(node, "ObjectExpression"))
|
|
1129
|
+
return false;
|
|
1130
|
+
const n = node;
|
|
1131
|
+
return Array.isArray(n.properties);
|
|
1132
|
+
};
|
|
1133
|
+
const isObjectPropertyNode = (node) => {
|
|
1134
|
+
if (!isNodeType(node, "ObjectProperty"))
|
|
1135
|
+
return false;
|
|
1136
|
+
const n = node;
|
|
1137
|
+
return typeof n.computed === "boolean" && typeof n.key === "object" && n.key !== null && typeof n.value === "object" && n.value !== null;
|
|
1138
|
+
};
|
|
1139
|
+
const isObjectPropertyNodeShallow = (node) => {
|
|
1140
|
+
if (!isNodeType(node, "ObjectProperty"))
|
|
1141
|
+
return false;
|
|
1142
|
+
const n = node;
|
|
1143
|
+
return typeof n.key === "object" && n.key !== null && typeof n.value === "object" && n.value !== null;
|
|
1144
|
+
};
|
|
1145
|
+
const isLogicalExpressionNode = (node) => {
|
|
1146
|
+
if (!isNodeType(node, "LogicalExpression"))
|
|
1147
|
+
return false;
|
|
1148
|
+
const n = node;
|
|
1149
|
+
return typeof n.operator === "string" && typeof n.left === "object" && n.left !== null && typeof n.right === "object" && n.right !== null;
|
|
1150
|
+
};
|
|
1061
1151
|
function isSimpleExpressionNode(value) {
|
|
1062
1152
|
return value !== null && "type" in value && value.type === NodeTypes.SIMPLE_EXPRESSION;
|
|
1063
1153
|
}
|
|
@@ -1096,27 +1186,6 @@ function buildPlaceholderParams(keys) {
|
|
|
1096
1186
|
params[k] = "__placeholder__";
|
|
1097
1187
|
return params;
|
|
1098
1188
|
}
|
|
1099
|
-
const isNodeType = (node, type) => {
|
|
1100
|
-
return node !== null && node.type === type;
|
|
1101
|
-
};
|
|
1102
|
-
const isStringLiteralNode = (node) => {
|
|
1103
|
-
return isNodeType(node, "StringLiteral") && typeof node.value === "string";
|
|
1104
|
-
};
|
|
1105
|
-
const isIdentifierNode = (node) => {
|
|
1106
|
-
return isNodeType(node, "Identifier") && typeof node.name === "string";
|
|
1107
|
-
};
|
|
1108
|
-
const isObjectPropertyNode = (node) => {
|
|
1109
|
-
if (!isNodeType(node, "ObjectProperty"))
|
|
1110
|
-
return false;
|
|
1111
|
-
const n = node;
|
|
1112
|
-
return typeof n.key === "object" && n.key !== null && typeof n.value === "object" && n.value !== null;
|
|
1113
|
-
};
|
|
1114
|
-
const isObjectExpressionNode = (node) => {
|
|
1115
|
-
if (!isNodeType(node, "ObjectExpression"))
|
|
1116
|
-
return false;
|
|
1117
|
-
const n = node;
|
|
1118
|
-
return Array.isArray(n.properties);
|
|
1119
|
-
};
|
|
1120
1189
|
function materializeResolvedRouteTarget(target, paramKeys) {
|
|
1121
1190
|
if (typeof target === "string")
|
|
1122
1191
|
return target;
|
|
@@ -2129,103 +2198,19 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2129
2198
|
preferExistingAst: false
|
|
2130
2199
|
});
|
|
2131
2200
|
const fallbackExpr = transformedSource !== authorSource ? tryParseBabelExpressionFromSource(authorSource, ["typescript", "jsx"]) : null;
|
|
2132
|
-
const isNodeType2 = (node2, type) => {
|
|
2133
|
-
return node2 !== null && node2.type === type;
|
|
2134
|
-
};
|
|
2135
|
-
const isIdentifierNode2 = (node2) => {
|
|
2136
|
-
return isNodeType2(node2, "Identifier") && typeof node2.name === "string";
|
|
2137
|
-
};
|
|
2138
|
-
const isStringLiteralNode2 = (node2) => {
|
|
2139
|
-
return isNodeType2(node2, "StringLiteral") && typeof node2.value === "string";
|
|
2140
|
-
};
|
|
2141
|
-
const isBooleanLiteralNode = (node2) => {
|
|
2142
|
-
return isNodeType2(node2, "BooleanLiteral") && typeof node2.value === "boolean";
|
|
2143
|
-
};
|
|
2144
|
-
const isNumericLiteralNode = (node2) => {
|
|
2145
|
-
return isNodeType2(node2, "NumericLiteral") && typeof node2.value === "number";
|
|
2146
|
-
};
|
|
2147
|
-
const isNullLiteralNode = (node2) => {
|
|
2148
|
-
return isNodeType2(node2, "NullLiteral");
|
|
2149
|
-
};
|
|
2150
|
-
const isMemberExpressionNode = (node2) => {
|
|
2151
|
-
if (!isNodeType2(node2, "MemberExpression"))
|
|
2152
|
-
return false;
|
|
2153
|
-
const n = node2;
|
|
2154
|
-
return typeof n.computed === "boolean" && typeof n.object === "object" && n.object !== null && typeof n.property === "object" && n.property !== null;
|
|
2155
|
-
};
|
|
2156
|
-
const isCallExpressionNode = (node2) => {
|
|
2157
|
-
if (!isNodeType2(node2, "CallExpression"))
|
|
2158
|
-
return false;
|
|
2159
|
-
const n = node2;
|
|
2160
|
-
return typeof n.callee === "object" && n.callee !== null && Array.isArray(n.arguments);
|
|
2161
|
-
};
|
|
2162
|
-
const isAwaitExpressionNode = (node2) => {
|
|
2163
|
-
if (!isNodeType2(node2, "AwaitExpression"))
|
|
2164
|
-
return false;
|
|
2165
|
-
const n = node2;
|
|
2166
|
-
return typeof n.argument === "object" && n.argument !== null;
|
|
2167
|
-
};
|
|
2168
|
-
const isAssignmentExpressionNode = (node2) => {
|
|
2169
|
-
if (!isNodeType2(node2, "AssignmentExpression"))
|
|
2170
|
-
return false;
|
|
2171
|
-
const n = node2;
|
|
2172
|
-
return typeof n.left === "object" && n.left !== null && typeof n.right === "object" && n.right !== null;
|
|
2173
|
-
};
|
|
2174
|
-
const isArrowFunctionExpressionNode = (node2) => {
|
|
2175
|
-
if (!isNodeType2(node2, "ArrowFunctionExpression"))
|
|
2176
|
-
return false;
|
|
2177
|
-
const n = node2;
|
|
2178
|
-
return typeof n.body === "object" && n.body !== null;
|
|
2179
|
-
};
|
|
2180
|
-
const isBlockStatementNode = (node2) => {
|
|
2181
|
-
if (!isNodeType2(node2, "BlockStatement"))
|
|
2182
|
-
return false;
|
|
2183
|
-
const n = node2;
|
|
2184
|
-
return Array.isArray(n.body);
|
|
2185
|
-
};
|
|
2186
|
-
const isExpressionStatementNode = (node2) => {
|
|
2187
|
-
if (!isNodeType2(node2, "ExpressionStatement"))
|
|
2188
|
-
return false;
|
|
2189
|
-
const n = node2;
|
|
2190
|
-
return typeof n.expression === "object" && n.expression !== null;
|
|
2191
|
-
};
|
|
2192
|
-
const isReturnStatementNode = (node2) => {
|
|
2193
|
-
if (!isNodeType2(node2, "ReturnStatement"))
|
|
2194
|
-
return false;
|
|
2195
|
-
const n = node2;
|
|
2196
|
-
return typeof n.argument === "object" || n.argument === null;
|
|
2197
|
-
};
|
|
2198
|
-
const isObjectExpressionNode2 = (node2) => {
|
|
2199
|
-
if (!isNodeType2(node2, "ObjectExpression"))
|
|
2200
|
-
return false;
|
|
2201
|
-
const n = node2;
|
|
2202
|
-
return Array.isArray(n.properties);
|
|
2203
|
-
};
|
|
2204
|
-
const isObjectPropertyNode2 = (node2) => {
|
|
2205
|
-
if (!isNodeType2(node2, "ObjectProperty"))
|
|
2206
|
-
return false;
|
|
2207
|
-
const n = node2;
|
|
2208
|
-
return typeof n.computed === "boolean" && typeof n.key === "object" && n.key !== null && typeof n.value === "object" && n.value !== null;
|
|
2209
|
-
};
|
|
2210
|
-
const isLogicalExpressionNode = (node2) => {
|
|
2211
|
-
if (!isNodeType2(node2, "LogicalExpression"))
|
|
2212
|
-
return false;
|
|
2213
|
-
const n = node2;
|
|
2214
|
-
return typeof n.operator === "string" && typeof n.left === "object" && n.left !== null && typeof n.right === "object" && n.right !== null;
|
|
2215
|
-
};
|
|
2216
2201
|
const getLastIdentifierFromMemberChain = (node2) => {
|
|
2217
2202
|
if (!node2)
|
|
2218
2203
|
return null;
|
|
2219
|
-
if (
|
|
2204
|
+
if (isIdentifierNode(node2))
|
|
2220
2205
|
return node2.name;
|
|
2221
2206
|
if (isMemberExpressionNode(node2)) {
|
|
2222
2207
|
const prop = node2.property;
|
|
2223
2208
|
if (node2.computed === false) {
|
|
2224
|
-
if (
|
|
2209
|
+
if (isIdentifierNode(prop))
|
|
2225
2210
|
return prop.name;
|
|
2226
2211
|
}
|
|
2227
2212
|
if (node2.computed === true) {
|
|
2228
|
-
if (
|
|
2213
|
+
if (isStringLiteralNode(prop))
|
|
2229
2214
|
return prop.value;
|
|
2230
2215
|
}
|
|
2231
2216
|
}
|
|
@@ -2235,7 +2220,7 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2235
2220
|
if (!node2) {
|
|
2236
2221
|
return null;
|
|
2237
2222
|
}
|
|
2238
|
-
if (
|
|
2223
|
+
if (isIdentifierNode(node2)) {
|
|
2239
2224
|
return node2.name;
|
|
2240
2225
|
}
|
|
2241
2226
|
if (isMemberExpressionNode(node2)) {
|
|
@@ -2247,11 +2232,11 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2247
2232
|
if (!lhs) {
|
|
2248
2233
|
return null;
|
|
2249
2234
|
}
|
|
2250
|
-
if (
|
|
2235
|
+
if (isIdentifierNode(lhs)) {
|
|
2251
2236
|
return lhs.name;
|
|
2252
2237
|
}
|
|
2253
2238
|
if (isMemberExpressionNode(lhs)) {
|
|
2254
|
-
if (lhs.computed === false &&
|
|
2239
|
+
if (lhs.computed === false && isIdentifierNode(lhs.property) && lhs.property.name === "value") {
|
|
2255
2240
|
return getLastIdentifierFromMemberChain(lhs.object);
|
|
2256
2241
|
}
|
|
2257
2242
|
return getLastIdentifierFromMemberChain(lhs);
|
|
@@ -2259,7 +2244,7 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2259
2244
|
return null;
|
|
2260
2245
|
};
|
|
2261
2246
|
const isTemplateLiteralNode = (node2) => {
|
|
2262
|
-
if (!
|
|
2247
|
+
if (!isNodeType(node2, "TemplateLiteral")) {
|
|
2263
2248
|
return false;
|
|
2264
2249
|
}
|
|
2265
2250
|
const n = node2;
|
|
@@ -2278,7 +2263,7 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2278
2263
|
if (isNullLiteralNode(arg)) {
|
|
2279
2264
|
return "Null";
|
|
2280
2265
|
}
|
|
2281
|
-
if (
|
|
2266
|
+
if (isStringLiteralNode(arg)) {
|
|
2282
2267
|
const cleaned = (arg.value ?? "").trim();
|
|
2283
2268
|
if (!cleaned) {
|
|
2284
2269
|
return null;
|
|
@@ -2304,7 +2289,7 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2304
2289
|
return toPascalCase(stableName.slice(0, 24));
|
|
2305
2290
|
}
|
|
2306
2291
|
}
|
|
2307
|
-
if (
|
|
2292
|
+
if (isIdentifierNode(arg)) {
|
|
2308
2293
|
const firstChar = arg.name.charAt(0);
|
|
2309
2294
|
const isUpperAlpha = firstChar !== "" && firstChar === firstChar.toUpperCase() && firstChar !== firstChar.toLowerCase();
|
|
2310
2295
|
if (isUpperAlpha) {
|
|
@@ -2316,7 +2301,7 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2316
2301
|
const getStableSuffixFromCall = (call) => {
|
|
2317
2302
|
const args = call.arguments ?? [];
|
|
2318
2303
|
const first = args.length > 0 ? args[0] : null;
|
|
2319
|
-
if (!
|
|
2304
|
+
if (!isObjectExpressionNode(first)) {
|
|
2320
2305
|
const parts2 = [];
|
|
2321
2306
|
for (const arg of args.slice(0, 4)) {
|
|
2322
2307
|
const w = stableWordFromValue(arg ?? null);
|
|
@@ -2335,20 +2320,20 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2335
2320
|
}
|
|
2336
2321
|
const parts = [];
|
|
2337
2322
|
for (const prop of first.properties ?? []) {
|
|
2338
|
-
if (!
|
|
2323
|
+
if (!isObjectPropertyNode(prop)) {
|
|
2339
2324
|
continue;
|
|
2340
2325
|
}
|
|
2341
2326
|
if (prop.computed) {
|
|
2342
2327
|
continue;
|
|
2343
2328
|
}
|
|
2344
|
-
const keyName =
|
|
2329
|
+
const keyName = isIdentifierNode(prop.key) ? prop.key.name : isStringLiteralNode(prop.key) ? prop.key.value : null;
|
|
2345
2330
|
if (!keyName) {
|
|
2346
2331
|
continue;
|
|
2347
2332
|
}
|
|
2348
2333
|
let valueWord = null;
|
|
2349
2334
|
if (isBooleanLiteralNode(prop.value)) {
|
|
2350
2335
|
valueWord = prop.value.value ? "True" : "False";
|
|
2351
|
-
} else if (
|
|
2336
|
+
} else if (isStringLiteralNode(prop.value)) {
|
|
2352
2337
|
const cleaned = (prop.value.value ?? "").trim();
|
|
2353
2338
|
if (cleaned) {
|
|
2354
2339
|
valueWord = toPascalCase(cleaned.slice(0, 24));
|
|
@@ -2448,7 +2433,7 @@ function nodeHandlerAttributeInfo(node) {
|
|
|
2448
2433
|
return null;
|
|
2449
2434
|
};
|
|
2450
2435
|
const isVueRefValueAccess = (candidate) => {
|
|
2451
|
-
return isMemberExpressionNode(candidate) && candidate.computed === false &&
|
|
2436
|
+
return isMemberExpressionNode(candidate) && candidate.computed === false && isIdentifierNode(candidate.property) && candidate.property.name === "value";
|
|
2452
2437
|
};
|
|
2453
2438
|
const transformedSemanticName = resolveSemanticName(expr);
|
|
2454
2439
|
const fallbackSemanticName = resolveSemanticName(fallbackExpr);
|
|
@@ -2584,36 +2569,15 @@ function toDirectiveObjectFieldNameValue(node) {
|
|
|
2584
2569
|
if (!expr) {
|
|
2585
2570
|
return null;
|
|
2586
2571
|
}
|
|
2587
|
-
|
|
2588
|
-
return n !== null && n.type === type;
|
|
2589
|
-
};
|
|
2590
|
-
const isStringLiteralNode2 = (n) => {
|
|
2591
|
-
return isNodeType2(n, "StringLiteral") && typeof n.value === "string";
|
|
2592
|
-
};
|
|
2593
|
-
const isIdentifierNode2 = (n) => {
|
|
2594
|
-
return isNodeType2(n, "Identifier") && typeof n.name === "string";
|
|
2595
|
-
};
|
|
2596
|
-
const isObjectPropertyNode2 = (n) => {
|
|
2597
|
-
if (!isNodeType2(n, "ObjectProperty"))
|
|
2598
|
-
return false;
|
|
2599
|
-
const nn = n;
|
|
2600
|
-
return typeof nn.key === "object" && nn.key !== null && typeof nn.value === "object" && nn.value !== null;
|
|
2601
|
-
};
|
|
2602
|
-
const isObjectExpressionNode2 = (n) => {
|
|
2603
|
-
if (!isNodeType2(n, "ObjectExpression"))
|
|
2604
|
-
return false;
|
|
2605
|
-
const nn = n;
|
|
2606
|
-
return Array.isArray(nn.properties);
|
|
2607
|
-
};
|
|
2608
|
-
if (!isObjectExpressionNode2(expr))
|
|
2572
|
+
if (!isObjectExpressionNode(expr))
|
|
2609
2573
|
return null;
|
|
2610
2574
|
const nameProp = expr.properties.find((p) => {
|
|
2611
|
-
if (!
|
|
2575
|
+
if (!isObjectPropertyNodeShallow(p))
|
|
2612
2576
|
return false;
|
|
2613
2577
|
const key = p.key;
|
|
2614
|
-
return
|
|
2578
|
+
return isIdentifierNode(key) && key.name === "name" || isStringLiteralNode(key) && key.value === "name";
|
|
2615
2579
|
});
|
|
2616
|
-
if (!nameProp || !
|
|
2580
|
+
if (!nameProp || !isObjectPropertyNodeShallow(nameProp) || !isStringLiteralNode(nameProp.value))
|
|
2617
2581
|
return null;
|
|
2618
2582
|
return toPascalCase(nameProp.value.value);
|
|
2619
2583
|
}
|
|
@@ -9306,26 +9270,17 @@ function tryExtractStableHintFromConditionalExpressionSource(source) {
|
|
|
9306
9270
|
};
|
|
9307
9271
|
try {
|
|
9308
9272
|
const expr = parseExpression(src, { plugins: ["typescript"] });
|
|
9309
|
-
const isNodeType2 = (n, type) => {
|
|
9310
|
-
return n !== null && n.type === type;
|
|
9311
|
-
};
|
|
9312
|
-
const isStringLiteralNode2 = (n) => {
|
|
9313
|
-
return isNodeType2(n, "StringLiteral") && typeof n.value === "string";
|
|
9314
|
-
};
|
|
9315
|
-
const isIdentifierNode2 = (n) => {
|
|
9316
|
-
return isNodeType2(n, "Identifier") && typeof n.name === "string";
|
|
9317
|
-
};
|
|
9318
9273
|
const results = [];
|
|
9319
9274
|
const walk = (n) => {
|
|
9320
9275
|
if (!n)
|
|
9321
9276
|
return;
|
|
9322
|
-
if (
|
|
9277
|
+
if (isStringLiteralNode(n)) {
|
|
9323
9278
|
const v = (n.value ?? "").trim();
|
|
9324
9279
|
if (isIdentifierish(v)) {
|
|
9325
9280
|
results.push(v);
|
|
9326
9281
|
}
|
|
9327
9282
|
}
|
|
9328
|
-
if (
|
|
9283
|
+
if (isIdentifierNode(n)) {
|
|
9329
9284
|
const v = (n.name ?? "").trim();
|
|
9330
9285
|
if (isIdentifierish(v)) {
|
|
9331
9286
|
results.push(v);
|