lc-test3 1.1.6 → 1.1.7
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/p.js +219 -28
- package/package.json +1 -1
package/p.js
CHANGED
|
@@ -1,13 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
��
|
|
2
|
+
TypeError: Cannot read properties of undefined (reading 'raw')
|
|
3
|
+
Printer._printTemplate
|
|
4
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/template-literals.js:24
|
|
5
|
+
21 | const quasis = node.quasis;
|
|
6
|
+
22 | let partRaw = "`";
|
|
7
|
+
23 | for (let i = 0; i < quasis.length - 1; i++) {
|
|
8
|
+
> 24 | partRaw += quasis[i].value.raw;
|
|
9
|
+
| ^ 25 | this.token(partRaw + "${", true);
|
|
10
|
+
26 | this.print(substitutions[i]);
|
|
11
|
+
27 | partRaw = "}";
|
|
12
|
+
View compiled
|
|
13
|
+
Printer.TemplateLiteral
|
|
14
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/template-literals.js:37
|
|
15
|
+
34 | this.token(partRaw + "`", true);
|
|
16
|
+
35 | }
|
|
17
|
+
36 | function TemplateLiteral(node) {
|
|
18
|
+
> 37 | this._printTemplate(node, node.expressions);
|
|
19
|
+
38 | }
|
|
20
|
+
39 |
|
|
21
|
+
40 | //# sourceMappingURL=template-literals.js.map
|
|
22
|
+
View compiled
|
|
23
|
+
Printer.exactSource
|
|
24
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
25
|
+
236 | }
|
|
26
|
+
237 | exactSource(loc, cb) {
|
|
27
|
+
238 | if (!loc) {
|
|
28
|
+
> 239 | cb();
|
|
29
|
+
| ^ 240 | return;
|
|
30
|
+
241 | }
|
|
31
|
+
242 | this._catchUp("start", loc);
|
|
32
|
+
View compiled
|
|
33
|
+
Printer.print
|
|
34
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:427
|
|
35
|
+
424 | this._lastCommentLine = 0;
|
|
36
|
+
425 | this._printLeadingComments(node, parent);
|
|
37
|
+
426 | const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc;
|
|
38
|
+
> 427 | this.exactSource(loc, printMethod.bind(this, node, parent));
|
|
39
|
+
| ^ 428 | if (shouldPrintParens) {
|
|
40
|
+
429 | this._printTrailingComments(node, parent);
|
|
41
|
+
430 | if (indentParenthesized) {
|
|
42
|
+
View compiled
|
|
43
|
+
Printer.printJoin
|
|
44
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:503
|
|
45
|
+
500 | const node = nodes[i];
|
|
46
|
+
501 | if (!node) continue;
|
|
47
|
+
502 | if (statement) this._printNewline(i === 0, newlineOpts);
|
|
48
|
+
> 503 | this.print(node, undefined, trailingCommentsLineOffset || 0);
|
|
49
|
+
| ^ 504 | iterator == null || iterator(node, i);
|
|
50
|
+
505 | if (boundSeparator != null) {
|
|
51
|
+
506 | if (i < len - 1) boundSeparator(i, false);else if (printTrailingSeparator) boundSeparator(i, true);
|
|
52
|
+
View compiled
|
|
53
|
+
Printer.printList
|
|
54
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:584
|
|
55
|
+
581 | this.printJoin(nodes, true, indent != null ? indent : false, undefined, undefined, addNewlines, undefined, trailingCommentsLineOffset);
|
|
56
|
+
582 | }
|
|
57
|
+
583 | printList(items, printTrailingSeparator, statement, indent, separator, iterator) {
|
|
58
|
+
> 584 | this.printJoin(items, statement, indent, separator != null ? separator : commaSeparator, printTrailingSeparator, undefined, iterator);
|
|
59
|
+
| ^ 585 | }
|
|
60
|
+
586 | shouldPrintTrailingComma(listEnd) {
|
|
61
|
+
587 | if (!this.tokenMap) return null;
|
|
62
|
+
View compiled
|
|
63
|
+
Printer.CallExpression
|
|
64
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/expressions.js:187
|
|
65
|
+
184 | }
|
|
66
|
+
185 | this.tokenChar(40);
|
|
67
|
+
186 | const exit = this.enterDelimited();
|
|
68
|
+
> 187 | this.printList(node.arguments, this.shouldPrintTrailingComma(")"));
|
|
69
|
+
188 | exit();
|
|
70
|
+
189 | this.rightParens(node);
|
|
71
|
+
190 | }
|
|
72
|
+
View compiled
|
|
73
|
+
Printer.exactSource
|
|
74
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
75
|
+
236 | }
|
|
76
|
+
237 | exactSource(loc, cb) {
|
|
77
|
+
238 | if (!loc) {
|
|
78
|
+
> 239 | cb();
|
|
79
|
+
| ^ 240 | return;
|
|
80
|
+
241 | }
|
|
81
|
+
242 | this._catchUp("start", loc);
|
|
82
|
+
View compiled
|
|
83
|
+
Printer.print
|
|
84
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:427
|
|
85
|
+
424 | this._lastCommentLine = 0;
|
|
86
|
+
425 | this._printLeadingComments(node, parent);
|
|
87
|
+
426 | const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc;
|
|
88
|
+
> 427 | this.exactSource(loc, printMethod.bind(this, node, parent));
|
|
89
|
+
| ^ 428 | if (shouldPrintParens) {
|
|
90
|
+
429 | this._printTrailingComments(node, parent);
|
|
91
|
+
430 | if (indentParenthesized) {
|
|
92
|
+
View compiled
|
|
93
|
+
Printer.ExpressionStatement
|
|
94
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/expressions.js:220
|
|
95
|
+
217 | }
|
|
96
|
+
218 | function ExpressionStatement(node) {
|
|
97
|
+
219 | this.tokenContext |= _index.TokenContext.expressionStatement;
|
|
98
|
+
> 220 | this.print(node.expression);
|
|
99
|
+
221 | this.semicolon();
|
|
100
|
+
222 | }
|
|
101
|
+
223 | function AssignmentPattern(node) {
|
|
11
102
|
View compiled
|
|
12
103
|
Printer.exactSource
|
|
13
104
|
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
@@ -29,15 +120,65 @@ Printer.print
|
|
|
29
120
|
429 | this._printTrailingComments(node, parent);
|
|
30
121
|
430 | if (indentParenthesized) {
|
|
31
122
|
View compiled
|
|
32
|
-
Printer.
|
|
33
|
-
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
>
|
|
38
|
-
| ^
|
|
39
|
-
|
|
40
|
-
|
|
123
|
+
Printer.printJoin
|
|
124
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:503
|
|
125
|
+
500 | const node = nodes[i];
|
|
126
|
+
501 | if (!node) continue;
|
|
127
|
+
502 | if (statement) this._printNewline(i === 0, newlineOpts);
|
|
128
|
+
> 503 | this.print(node, undefined, trailingCommentsLineOffset || 0);
|
|
129
|
+
| ^ 504 | iterator == null || iterator(node, i);
|
|
130
|
+
505 | if (boundSeparator != null) {
|
|
131
|
+
506 | if (i < len - 1) boundSeparator(i, false);else if (printTrailingSeparator) boundSeparator(i, true);
|
|
132
|
+
View compiled
|
|
133
|
+
Printer.printSequence
|
|
134
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:581
|
|
135
|
+
578 | this._indentInnerComments = false;
|
|
136
|
+
579 | }
|
|
137
|
+
580 | printSequence(nodes, indent, trailingCommentsLineOffset, addNewlines) {
|
|
138
|
+
> 581 | this.printJoin(nodes, true, indent != null ? indent : false, undefined, undefined, addNewlines, undefined, trailingCommentsLineOffset);
|
|
139
|
+
| ^ 582 | }
|
|
140
|
+
583 | printList(items, printTrailingSeparator, statement, indent, separator, iterator) {
|
|
141
|
+
584 | this.printJoin(items, statement, indent, separator != null ? separator : commaSeparator, printTrailingSeparator, undefined, iterator);
|
|
142
|
+
View compiled
|
|
143
|
+
Printer.BlockStatement
|
|
144
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/base.js:47
|
|
145
|
+
44 | this.newline(newline);
|
|
146
|
+
45 | }
|
|
147
|
+
46 | }
|
|
148
|
+
> 47 | this.printSequence(node.body, true);
|
|
149
|
+
48 | exit();
|
|
150
|
+
49 | this.rightBrace(node);
|
|
151
|
+
50 | }
|
|
152
|
+
View compiled
|
|
153
|
+
Printer.exactSource
|
|
154
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
155
|
+
236 | }
|
|
156
|
+
237 | exactSource(loc, cb) {
|
|
157
|
+
238 | if (!loc) {
|
|
158
|
+
> 239 | cb();
|
|
159
|
+
| ^ 240 | return;
|
|
160
|
+
241 | }
|
|
161
|
+
242 | this._catchUp("start", loc);
|
|
162
|
+
View compiled
|
|
163
|
+
Printer.print
|
|
164
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:427
|
|
165
|
+
424 | this._lastCommentLine = 0;
|
|
166
|
+
425 | this._printLeadingComments(node, parent);
|
|
167
|
+
426 | const loc = nodeType === "Program" || nodeType === "File" ? null : node.loc;
|
|
168
|
+
> 427 | this.exactSource(loc, printMethod.bind(this, node, parent));
|
|
169
|
+
| ^ 428 | if (shouldPrintParens) {
|
|
170
|
+
429 | this._printTrailingComments(node, parent);
|
|
171
|
+
430 | if (indentParenthesized) {
|
|
172
|
+
View compiled
|
|
173
|
+
Printer.ArrowFunctionExpression
|
|
174
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/generators/methods.js:136
|
|
175
|
+
133 | this.token("=>");
|
|
176
|
+
134 | this.space();
|
|
177
|
+
135 | this.tokenContext |= _index.TokenContext.arrowBody;
|
|
178
|
+
> 136 | this.print(node.body);
|
|
179
|
+
137 | }
|
|
180
|
+
138 | function _shouldPrintArrowParamsParens(node) {
|
|
181
|
+
139 | var _firstParam$leadingCo, _firstParam$trailingC;
|
|
41
182
|
View compiled
|
|
42
183
|
Printer.exactSource
|
|
43
184
|
.../loview-react-lowcode/node_modules/.pnpm/@babel+generator@7.27.5/node_modules/@babel/generator/lib/printer.js:239
|
|
@@ -139,12 +280,62 @@ node2value
|
|
|
139
280
|
194 | ret = wrapCode(ret);
|
|
140
281
|
195 | }
|
|
141
282
|
View compiled
|
|
142
|
-
|
|
143
|
-
.../loview-react-lowcode/packages/core/src/helpers/ast/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
283
|
+
jsxAttributeValueNode2value
|
|
284
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/generate.ts:252
|
|
285
|
+
249 | ret = jsxAttributeValueNode2value(node.expression);
|
|
286
|
+
250 | break;
|
|
287
|
+
251 | default: {
|
|
288
|
+
> 252 | ret = node2value(node);
|
|
289
|
+
| ^ 253 | break;
|
|
290
|
+
254 | }
|
|
291
|
+
255 | }
|
|
292
|
+
View compiled
|
|
293
|
+
jsxAttributeValueNode2value
|
|
294
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/generate.ts:249
|
|
295
|
+
246 | // <Foo bar={2.2}>
|
|
296
|
+
247 | // <Foo bar={{}}>
|
|
297
|
+
248 | // <Foo bar={[]}>
|
|
298
|
+
> 249 | ret = jsxAttributeValueNode2value(node.expression);
|
|
299
|
+
| ^ 250 | break;
|
|
300
|
+
251 | default: {
|
|
301
|
+
252 | ret = node2value(node);
|
|
302
|
+
View compiled
|
|
303
|
+
(anonymous function)
|
|
304
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:122
|
|
305
|
+
119 | visitCallback(name, null as any, attrNode, true);
|
|
306
|
+
120 | return;
|
|
307
|
+
121 | }
|
|
308
|
+
> 122 | const value = jsxAttributeValueNode2value(attrNode.value);
|
|
309
|
+
| ^ 123 | visitCallback(name, value, attrNode);
|
|
310
|
+
124 | }
|
|
311
|
+
125 | });
|
|
312
|
+
View compiled
|
|
313
|
+
visitJSXElementAttributes
|
|
314
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:115
|
|
315
|
+
112 | implicitBoolean: true
|
|
316
|
+
113 | }
|
|
317
|
+
114 | ) {
|
|
318
|
+
> 115 | node.openingElement?.attributes.forEach((attrNode) => {
|
|
319
|
+
116 | if (isFunction(visitCallback) && attrNode.type === 'JSXAttribute') {
|
|
320
|
+
117 | const name = keyNode2value(attrNode.name);
|
|
321
|
+
118 | if (attrNode.value === null && options?.implicitBoolean) {
|
|
322
|
+
View compiled
|
|
323
|
+
getJSXElementAttributes
|
|
324
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:176
|
|
325
|
+
173 | */
|
|
326
|
+
174 | export function getJSXElementAttributes(node: t.JSXElement, options?: GetAttributeOptions) {
|
|
327
|
+
175 | const ret: Record<string, any> = {};
|
|
328
|
+
> 176 | visitJSXElementAttributes(node, (name, value, valueNode) => {
|
|
329
|
+
177 | if (!options?.exclude || !options.exclude(name, value, valueNode)) {
|
|
330
|
+
178 | ret[name] = value;
|
|
331
|
+
179 | }
|
|
332
|
+
View compiled
|
|
333
|
+
enter
|
|
334
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:2229
|
|
335
|
+
2226 |
|
|
336
|
+
2227 | JSXElement: {
|
|
337
|
+
2228 | enter(path) {
|
|
338
|
+
> 2229 | const attributes = getJSXElementAttributes(path.node);
|
|
339
|
+
| ^ 2230 |
|
|
340
|
+
2231 | // ��ȡ�����������
|
|
341
|
+
2232 | const trackDnd = attributes[SLOT.dnd];
|