@barefootjs/jsx 0.40.0 → 0.40.2
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/adapters/ambiguous-nil-arithmetic.d.ts +42 -0
- package/dist/adapters/ambiguous-nil-arithmetic.d.ts.map +1 -0
- package/dist/adapters/attr-plan.d.ts.map +1 -1
- package/dist/adapters/boolean-carrier.d.ts +31 -0
- package/dist/adapters/boolean-carrier.d.ts.map +1 -0
- package/dist/adapters/boolean-result.d.ts +32 -10
- package/dist/adapters/boolean-result.d.ts.map +1 -1
- package/dist/adapters/brace-delimiter-text.d.ts +18 -0
- package/dist/adapters/brace-delimiter-text.d.ts.map +1 -0
- package/dist/adapters/callback-method.d.ts +38 -5
- package/dist/adapters/callback-method.d.ts.map +1 -1
- package/dist/adapters/component-props.d.ts +22 -7
- package/dist/adapters/component-props.d.ts.map +1 -1
- package/dist/adapters/computed-const.d.ts +28 -1
- package/dist/adapters/computed-const.d.ts.map +1 -1
- package/dist/adapters/dsl-template-adapter.d.ts +39 -1
- package/dist/adapters/dsl-template-adapter.d.ts.map +1 -1
- package/dist/adapters/loop-bound-names.d.ts +9 -1
- package/dist/adapters/loop-bound-names.d.ts.map +1 -1
- package/dist/adapters/loop-row-type.d.ts +52 -0
- package/dist/adapters/loop-row-type.d.ts.map +1 -0
- package/dist/adapters/nil-reading.d.ts +68 -0
- package/dist/adapters/nil-reading.d.ts.map +1 -0
- package/dist/adapters/non-primitive-equality.d.ts +33 -0
- package/dist/adapters/non-primitive-equality.d.ts.map +1 -0
- package/dist/adapters/number-value.d.ts +45 -0
- package/dist/adapters/number-value.d.ts.map +1 -0
- package/dist/adapters/operand-typing.d.ts +126 -0
- package/dist/adapters/operand-typing.d.ts.map +1 -0
- package/dist/adapters/parsed-expr-emitter.d.ts +70 -12
- package/dist/adapters/parsed-expr-emitter.d.ts.map +1 -1
- package/dist/adapters/primitive-plan.d.ts +291 -0
- package/dist/adapters/primitive-plan.d.ts.map +1 -0
- package/dist/analyzer-context.d.ts +11 -0
- package/dist/analyzer-context.d.ts.map +1 -1
- package/dist/analyzer.d.ts +34 -0
- package/dist/analyzer.d.ts.map +1 -1
- package/dist/augment-inherited-props.d.ts +63 -8
- package/dist/augment-inherited-props.d.ts.map +1 -1
- package/dist/compiler.d.ts.map +1 -1
- package/dist/event-handler-name.d.ts +12 -0
- package/dist/event-handler-name.d.ts.map +1 -1
- package/dist/expression-parser.d.ts +8 -0
- package/dist/expression-parser.d.ts.map +1 -1
- package/dist/index.d.ts +24 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5671 -2586
- package/dist/ir-to-client-js/build-references.d.ts.map +1 -1
- package/dist/ir-to-client-js/child-props-object.d.ts +64 -0
- package/dist/ir-to-client-js/child-props-object.d.ts.map +1 -0
- package/dist/ir-to-client-js/collect-elements.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/build-component-loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/build-inner-loop.d.ts +29 -0
- package/dist/ir-to-client-js/control-flow/plan/build-inner-loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/build-lazy-row.d.ts +2 -0
- package/dist/ir-to-client-js/control-flow/plan/build-lazy-row.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/build-loop-child-arm.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/build-reactive-effects.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/inner-loop.d.ts +5 -4
- package/dist/ir-to-client-js/control-flow/plan/inner-loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/loop-child-arm.d.ts +2 -0
- package/dist/ir-to-client-js/control-flow/plan/loop-child-arm.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/loop.d.ts +15 -0
- package/dist/ir-to-client-js/control-flow/plan/loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/plan/reactive-effects.d.ts +2 -0
- package/dist/ir-to-client-js/control-flow/plan/reactive-effects.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/shared.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/stringify/claim-plan.d.ts +22 -0
- package/dist/ir-to-client-js/control-flow/stringify/claim-plan.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/stringify/component-loop.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/stringify/event-listener.d.ts +1 -1
- package/dist/ir-to-client-js/control-flow/stringify/event-listener.d.ts.map +1 -1
- package/dist/ir-to-client-js/control-flow/stringify/lazy-row.d.ts.map +1 -1
- package/dist/ir-to-client-js/html-template.d.ts +3 -2
- package/dist/ir-to-client-js/html-template.d.ts.map +1 -1
- package/dist/ir-to-client-js/imports.d.ts +2 -2
- package/dist/ir-to-client-js/imports.d.ts.map +1 -1
- package/dist/ir-to-client-js/index.d.ts +2 -6
- package/dist/ir-to-client-js/index.d.ts.map +1 -1
- package/dist/ir-to-client-js/plan/build-static-array-child-init.d.ts.map +1 -1
- package/dist/ir-to-client-js/plan/static-array-child-init.d.ts +37 -19
- package/dist/ir-to-client-js/plan/static-array-child-init.d.ts.map +1 -1
- package/dist/ir-to-client-js/prop-handling.d.ts.map +1 -1
- package/dist/ir-to-client-js/reactivity.d.ts.map +1 -1
- package/dist/ir-to-client-js/safe-html.d.ts +9 -3
- package/dist/ir-to-client-js/safe-html.d.ts.map +1 -1
- package/dist/ir-to-client-js/stringify/static-array-child-init.d.ts +3 -2
- package/dist/ir-to-client-js/stringify/static-array-child-init.d.ts.map +1 -1
- package/dist/ir-to-client-js/types.d.ts +30 -0
- package/dist/ir-to-client-js/types.d.ts.map +1 -1
- package/dist/ir-to-client-js/utils.d.ts +8 -0
- package/dist/ir-to-client-js/utils.d.ts.map +1 -1
- package/dist/jsx-to-ir.d.ts +1 -0
- package/dist/jsx-to-ir.d.ts.map +1 -1
- package/dist/nullable-signal-attr.d.ts +95 -10
- package/dist/nullable-signal-attr.d.ts.map +1 -1
- package/dist/prop-rewrite.d.ts +7 -0
- package/dist/prop-rewrite.d.ts.map +1 -1
- package/dist/props-binding.d.ts +27 -3
- package/dist/props-binding.d.ts.map +1 -1
- package/dist/props-object-whole-read.d.ts +15 -0
- package/dist/props-object-whole-read.d.ts.map +1 -0
- package/dist/rich-type-refusal.d.ts.map +1 -1
- package/dist/scope/binding-scope.d.ts +100 -4
- package/dist/scope/binding-scope.d.ts.map +1 -1
- package/dist/scope/lexical-scope-walk.d.ts +3 -2
- package/dist/scope/lexical-scope-walk.d.ts.map +1 -1
- package/dist/scope/root-prop-alias.d.ts +16 -0
- package/dist/scope/root-prop-alias.d.ts.map +1 -1
- package/dist/signal-prop-name-collision.d.ts.map +1 -1
- package/dist/ssr-defaults.d.ts +4 -2
- package/dist/ssr-defaults.d.ts.map +1 -1
- package/dist/ssr-seed-plan.d.ts +14 -0
- package/dist/ssr-seed-plan.d.ts.map +1 -1
- package/dist/strip-types.d.ts +13 -0
- package/dist/strip-types.d.ts.map +1 -1
- package/dist/template-parts.d.ts.map +1 -1
- package/dist/template-position-walk.d.ts +21 -3
- package/dist/template-position-walk.d.ts.map +1 -1
- package/dist/types.d.ts +120 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/__snapshots__/doc-examples.test.ts.snap +3 -3
- package/src/__tests__/binding-scope-ratchet.test.ts +12 -2
- package/src/__tests__/binding-scope.test.ts +89 -1
- package/src/__tests__/body-destructure-props-object-alias.test.ts +123 -0
- package/src/__tests__/boolean-carrier.test.ts +74 -0
- package/src/__tests__/boolean-result.test.ts +22 -5
- package/src/__tests__/brace-delimiter-text.test.ts +26 -0
- package/src/__tests__/callback-method.test.ts +62 -2
- package/src/__tests__/child-components-in-map.test.ts +1 -1
- package/src/__tests__/component-props.test.ts +14 -0
- package/src/__tests__/computed-const.test.ts +188 -0
- package/src/__tests__/emit-to-string-call.test.ts +2 -1
- package/src/__tests__/expression-parser.test.ts +24 -0
- package/src/__tests__/hydration-payload-analysis.test.ts +166 -0
- package/src/__tests__/issue-2724-prop-alias-loop-not-static.test.ts +7 -7
- package/src/__tests__/issue-2754-rest-spread-needs-slot.test.ts +5 -2
- package/src/__tests__/issue-2798-static-nested-loop-bindings.test.ts +1 -1
- package/src/__tests__/issue-2835-props-type-member-name-collision.test.ts +4 -4
- package/src/__tests__/issue-3044-nested-prop-object-array-not-static.test.ts +1 -1
- package/src/__tests__/issue-3688-props-spread-child-csr.test.ts +143 -0
- package/src/__tests__/issue-3713-props-spread-loop-row.test.ts +65 -0
- package/src/__tests__/lookup-literal-const.test.ts +9 -3
- package/src/__tests__/loop-index-reactivity.test.ts +2 -2
- package/src/__tests__/loop-param-accessor-key-member-safety.test.ts +1 -1
- package/src/__tests__/loop-plan.test.ts +1 -1
- package/src/__tests__/loop-row-const-initializer-shadow.test.ts +146 -0
- package/src/__tests__/loop-row-prop-read.test.ts +111 -0
- package/src/__tests__/loop-row-type.test.ts +64 -0
- package/src/__tests__/lowering-value-position.test.ts +4 -0
- package/src/__tests__/memo-body-expr.test.ts +137 -0
- package/src/__tests__/module-const-destructure-default.test.ts +156 -0
- package/src/__tests__/nested-loop-index-param.test.ts +1 -1
- package/src/__tests__/nested-loop-reactive-attrs.test.ts +2 -2
- package/src/__tests__/nested-row-shadowing.test.ts +2 -2
- package/src/__tests__/nil-reading.test.ts +77 -0
- package/src/__tests__/nullable-signal-attr.test.ts +231 -2
- package/src/__tests__/primitive-plan.test.ts +416 -0
- package/src/__tests__/profile-binding-ids.test.ts +14 -0
- package/src/__tests__/profile-loop-binding-ids.test.ts +2 -2
- package/src/__tests__/profile-nested-binding-ids.test.ts +2 -2
- package/src/__tests__/props-object-whole-read.test.ts +40 -0
- package/src/__tests__/reactive-attrs-in-map.test.ts +1 -1
- package/src/__tests__/reactive-factory-inlining.test.ts +4 -1
- package/src/__tests__/rest-binding-gaps.test.ts +192 -0
- package/src/__tests__/root-prop-alias.test.ts +79 -1
- package/src/__tests__/signal-prop-name-collision.test.ts +102 -2
- package/src/__tests__/source-file-cache.test.ts +105 -0
- package/src/__tests__/ssr-seed-plan.test.ts +43 -0
- package/src/__tests__/static-loop-csr-materialize.test.ts +2 -2
- package/src/__tests__/static-record-literal-array.test.ts +171 -0
- package/src/__tests__/string-concat-identifier.test.ts +40 -1
- package/src/__tests__/template-parts-literal-boundary.test.ts +19 -0
- package/src/adapters/ambiguous-nil-arithmetic.ts +103 -0
- package/src/adapters/attr-plan.ts +6 -2
- package/src/adapters/boolean-carrier.ts +76 -0
- package/src/adapters/boolean-result.ts +72 -66
- package/src/adapters/brace-delimiter-text.ts +25 -0
- package/src/adapters/callback-method.ts +151 -27
- package/src/adapters/component-props.ts +28 -8
- package/src/adapters/computed-const.ts +443 -10
- package/src/adapters/dsl-template-adapter.ts +79 -2
- package/src/adapters/loop-bound-names.ts +9 -1
- package/src/adapters/loop-plan.ts +1 -1
- package/src/adapters/loop-row-type.ts +139 -0
- package/src/adapters/nil-reading.ts +297 -0
- package/src/adapters/non-primitive-equality.ts +92 -0
- package/src/adapters/number-value.ts +108 -0
- package/src/adapters/operand-typing.ts +522 -0
- package/src/adapters/parsed-expr-emitter.ts +154 -19
- package/src/adapters/primitive-plan.ts +696 -0
- package/src/analyzer-context.ts +14 -0
- package/src/analyzer.ts +692 -85
- package/src/augment-inherited-props.ts +108 -10
- package/src/compiler.ts +17 -0
- package/src/event-handler-name.ts +15 -0
- package/src/expression-parser.ts +74 -2
- package/src/index.ts +45 -9
- package/src/ir-to-client-js/build-references.ts +69 -0
- package/src/ir-to-client-js/child-props-object.ts +106 -0
- package/src/ir-to-client-js/collect-elements.ts +100 -67
- package/src/ir-to-client-js/compute-inlinability.ts +1 -1
- package/src/ir-to-client-js/control-flow/plan/build-component-loop.ts +15 -1
- package/src/ir-to-client-js/control-flow/plan/build-inner-loop.ts +85 -5
- package/src/ir-to-client-js/control-flow/plan/build-lazy-row.ts +3 -0
- package/src/ir-to-client-js/control-flow/plan/build-loop-child-arm.ts +30 -28
- package/src/ir-to-client-js/control-flow/plan/build-reactive-effects.ts +1 -0
- package/src/ir-to-client-js/control-flow/plan/inner-loop.ts +5 -4
- package/src/ir-to-client-js/control-flow/plan/loop-child-arm.ts +2 -0
- package/src/ir-to-client-js/control-flow/plan/loop.ts +12 -0
- package/src/ir-to-client-js/control-flow/plan/reactive-effects.ts +2 -0
- package/src/ir-to-client-js/control-flow/shared.ts +23 -24
- package/src/ir-to-client-js/control-flow/stringify/claim-plan.ts +29 -0
- package/src/ir-to-client-js/control-flow/stringify/component-loop.ts +8 -2
- package/src/ir-to-client-js/control-flow/stringify/event-listener.ts +8 -1
- package/src/ir-to-client-js/control-flow/stringify/inner-loop.ts +8 -7
- package/src/ir-to-client-js/control-flow/stringify/lazy-row.ts +8 -7
- package/src/ir-to-client-js/control-flow/stringify/loop-child-arm.ts +4 -4
- package/src/ir-to-client-js/control-flow/stringify/loop.ts +3 -3
- package/src/ir-to-client-js/control-flow/stringify/reactive-effects.ts +6 -6
- package/src/ir-to-client-js/emit-reactive.ts +1 -1
- package/src/ir-to-client-js/html-template.ts +95 -38
- package/src/ir-to-client-js/imports.ts +1 -1
- package/src/ir-to-client-js/index.ts +53 -11
- package/src/ir-to-client-js/plan/build-static-array-child-init.ts +42 -15
- package/src/ir-to-client-js/plan/static-array-child-init.ts +34 -19
- package/src/ir-to-client-js/prop-handling.ts +22 -3
- package/src/ir-to-client-js/reactivity.ts +14 -0
- package/src/ir-to-client-js/safe-html.ts +11 -4
- package/src/ir-to-client-js/stringify/static-array-child-init.ts +30 -12
- package/src/ir-to-client-js/types.ts +23 -0
- package/src/ir-to-client-js/utils.ts +15 -1
- package/src/jsx-to-ir.ts +510 -58
- package/src/nullable-signal-attr.ts +366 -28
- package/src/prop-rewrite.ts +30 -6
- package/src/props-binding.ts +54 -3
- package/src/props-object-whole-read.ts +87 -0
- package/src/rich-type-refusal.ts +2 -1
- package/src/scope/binding-scope.ts +203 -11
- package/src/scope/lexical-scope-walk.ts +4 -3
- package/src/scope/root-prop-alias.ts +23 -0
- package/src/signal-prop-name-collision.ts +113 -22
- package/src/ssr-defaults.ts +10 -4
- package/src/ssr-seed-plan.ts +82 -17
- package/src/strip-types.ts +31 -3
- package/src/template-parts.ts +21 -1
- package/src/template-position-walk.ts +57 -28
- package/src/types.ts +117 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The JS primitive plan (`spec/js-primitive-semantics.md`, "Decision
|
|
3
|
+
* point"): one pure decision per primitive operation — ToBoolean, ToNumber,
|
|
4
|
+
* `+`, `===`, relational, unary `-`, number literal, nullish, index read —
|
|
5
|
+
* whether a target may spell its native operator (Phase-1 types prove the
|
|
6
|
+
* operands are in a range where native and JS agree, and the target's
|
|
7
|
+
* {@link NativeSafeTable} claims that proof) or must call the runtime
|
|
8
|
+
* helper.
|
|
9
|
+
*
|
|
10
|
+
* `emitParsedExpr` computes the plan for every operator node and hands it to
|
|
11
|
+
* the emitter as the method's last parameter; the emitter only spells it.
|
|
12
|
+
* Step 0 of #3824 fills each adapter's table so that the plans describe
|
|
13
|
+
* today's output; each rollout step narrows a table to what the
|
|
14
|
+
* `primitives/` vectors pin and makes the emitters spell the plan.
|
|
15
|
+
*/
|
|
16
|
+
import type { ParsedExpr } from '../expression-parser.ts';
|
|
17
|
+
import { type BindingScope } from '../scope/binding-scope.ts';
|
|
18
|
+
import { type OperandFacts, type OperandTyping, type ScopedOperandTyping } from './operand-typing.ts';
|
|
19
|
+
export type PrimitiveOp = 'to-boolean' | 'to-number' | 'to-string' | 'boolean-value' | 'get' | 'strict-eq' | 'relational' | 'plus' | 'neg' | 'number-literal' | 'nullish';
|
|
20
|
+
/**
|
|
21
|
+
* What Phase 1 proved about the operands of one operation.
|
|
22
|
+
*
|
|
23
|
+
* `unproven` is not in the design note's sketch: it is the proof of an
|
|
24
|
+
* operation whose operands Phase 1 proves nothing about. A target that
|
|
25
|
+
* spells its native operator for EVERY operand today (an "N" cell of the
|
|
26
|
+
* note's status table) claims it, so the step-0 table can describe today's
|
|
27
|
+
* output; each rollout step removes it from the table it graduates.
|
|
28
|
+
*/
|
|
29
|
+
export type Proof = 'boolean' | 'number' | 'string' | 'number-pair' | 'string-pair' | 'boolean-pair' | 'array-index' | 'safe-integer' | 'non-nil' | 'unproven';
|
|
30
|
+
/** The (op, proof) pairs a target's native operators are pinned for. */
|
|
31
|
+
export type NativeSafeTable = Readonly<Partial<Record<PrimitiveOp, readonly Proof[]>>>;
|
|
32
|
+
/**
|
|
33
|
+
* The runtime helper a plan names, by its catalogue id
|
|
34
|
+
* (`spec/template-helpers.md`); each runtime keeps its own spelling (Perl's
|
|
35
|
+
* `subtract`, Go's `bf_eq`, PHP's `index` for `get`).
|
|
36
|
+
*/
|
|
37
|
+
export type PrimitiveHelper = 'truthy' | 'to_number' | 'add' | 'sub' | 'mul' | 'div' | 'mod' | 'plus' | 'to_string' | 'strict_eq' | 'lt' | 'le' | 'gt' | 'ge' | 'neg' | 'number' | 'coalesce' | 'get' | 'boolean';
|
|
38
|
+
export type PrimitivePlan = {
|
|
39
|
+
readonly mode: 'native';
|
|
40
|
+
readonly op: PrimitiveOp;
|
|
41
|
+
readonly proof: Proof;
|
|
42
|
+
/**
|
|
43
|
+
* A native string `+` (`plus` over the `string` proof): which operand
|
|
44
|
+
* the emitter spells through the runtime's `to_string` before the
|
|
45
|
+
* host's concatenation, `[left, right]`. A proven string operand is
|
|
46
|
+
* concatenated as it is (#3824 step 4).
|
|
47
|
+
*/
|
|
48
|
+
readonly stringify?: readonly [boolean, boolean];
|
|
49
|
+
} | {
|
|
50
|
+
readonly mode: 'helper';
|
|
51
|
+
readonly op: PrimitiveOp;
|
|
52
|
+
readonly helper: PrimitiveHelper;
|
|
53
|
+
readonly proof: Proof;
|
|
54
|
+
}
|
|
55
|
+
/** `===` / `!==` across operands proven of different primitive types. */
|
|
56
|
+
| {
|
|
57
|
+
readonly mode: 'const';
|
|
58
|
+
readonly op: PrimitiveOp;
|
|
59
|
+
readonly value: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** A BF101 refusal (e.g. a nil reading `either` under a numeric operator). */
|
|
62
|
+
| {
|
|
63
|
+
readonly mode: 'refuse';
|
|
64
|
+
readonly op: PrimitiveOp;
|
|
65
|
+
readonly reason: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* What Phase-1 types prove about `expr` at its read in `typing`'s scope: the
|
|
69
|
+
* single classifier the primitive plan, and the legacy predicates that wrap
|
|
70
|
+
* it, read.
|
|
71
|
+
*
|
|
72
|
+
* Step 0 deliberately types no call other than a getter read and no method
|
|
73
|
+
* result (`.includes()` is a boolean in JS, `.join()` a string), so that
|
|
74
|
+
* `isBooleanResultParsed`, which wraps this, stays byte-identical.
|
|
75
|
+
*/
|
|
76
|
+
export declare function operandFacts(expr: ParsedExpr, typing: ScopedOperandTyping): OperandFacts;
|
|
77
|
+
/** The literal `null`, or an unbound `undefined`: the operand of a nullish test. */
|
|
78
|
+
export declare function isNilLiteralOperand(expr: ParsedExpr, typing?: ScopedOperandTyping): boolean;
|
|
79
|
+
/** A `===` / `!==` / `==` / `!=` with a nil literal on one side: a nullish test, not a strict equality. */
|
|
80
|
+
export declare function isNullishTest(op: string, left: ParsedExpr, right: ParsedExpr, typing?: ScopedOperandTyping): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Whether `expr` may hold an object or array at its read
|
|
83
|
+
* (`spec/js-primitive-semantics.md`, "Decisions" (4)): its facts admit
|
|
84
|
+
* `object` (an object, array or interface type, an object or array
|
|
85
|
+
* literal), or it is an element read of an array whose declared element
|
|
86
|
+
* type or array-literal seed admits one (`rows().at(0)` over
|
|
87
|
+
* `createSignal([{ id: 1 }])`, typed `unknown[]`). An operand Phase 1
|
|
88
|
+
* proves nothing else about (an untyped row field, a call result) is not
|
|
89
|
+
* refused: the runtime's `strict_eq` compares it. A named type reference
|
|
90
|
+
* (`Row`, `Tone`) counts only when `isObjectTypeName` resolves it to an
|
|
91
|
+
* object shape; by default it does not.
|
|
92
|
+
*/
|
|
93
|
+
export declare function mayHoldObject(expr: ParsedExpr, typing: ScopedOperandTyping, isObjectTypeName?: (name: string) => boolean): boolean;
|
|
94
|
+
/** The BF101 reason of a `===` / `!==` over an operand that may be an object (#3774). */
|
|
95
|
+
export declare const NON_PRIMITIVE_EQUALITY_REASON = "non-primitive-strict-equality";
|
|
96
|
+
/**
|
|
97
|
+
* How an emitter spells a `===` / `!==` under its plan (#3824 step 8):
|
|
98
|
+
*
|
|
99
|
+
* - `native`: the target's own operator for the proven pair (`proof`).
|
|
100
|
+
* - `helper`: the runtime's `strict_eq`, negated for `!==`. A refused plan
|
|
101
|
+
* spells it too: the refusal itself is recorded once per component by
|
|
102
|
+
* `refuseNonPrimitiveStrictEquality`.
|
|
103
|
+
* - `const`: the folded answer for operands proven of different types.
|
|
104
|
+
* - `nullish`: a nullish test (`x === null`), which keeps the target's nil
|
|
105
|
+
* test.
|
|
106
|
+
*
|
|
107
|
+
* Null for any other operator (loose `==` keeps its own lowering). A null
|
|
108
|
+
* plan takes the helper, which is never wrong.
|
|
109
|
+
*/
|
|
110
|
+
export type StrictEqSpelling = {
|
|
111
|
+
readonly kind: 'native';
|
|
112
|
+
readonly proof: Proof;
|
|
113
|
+
readonly negated: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
readonly kind: 'helper';
|
|
116
|
+
readonly negated: boolean;
|
|
117
|
+
} | {
|
|
118
|
+
readonly kind: 'const';
|
|
119
|
+
readonly value: boolean;
|
|
120
|
+
} | {
|
|
121
|
+
readonly kind: 'nullish';
|
|
122
|
+
};
|
|
123
|
+
export declare function strictEqSpelling(op: string, left: ParsedExpr, right: ParsedExpr, plan: PrimitivePlan | null): StrictEqSpelling | null;
|
|
124
|
+
/**
|
|
125
|
+
* How an emitter spells a `+` under its plan (#3824 step 4):
|
|
126
|
+
*
|
|
127
|
+
* - `add`: the host's numeric `+` (`native`), or the runtime's numbers-only
|
|
128
|
+
* `add` helper (`helper`, Perl and Go).
|
|
129
|
+
* - `concat`: the host's string concatenation, each operand whose
|
|
130
|
+
* `stringify` flag is set through the runtime's `to_string`.
|
|
131
|
+
* - `plus`: the runtime's JS `+`.
|
|
132
|
+
*
|
|
133
|
+
* A null plan (an emitter method reached outside `emitParsedExpr`) takes
|
|
134
|
+
* `plus`, which is never wrong.
|
|
135
|
+
*/
|
|
136
|
+
export type PlusSpelling = {
|
|
137
|
+
readonly kind: 'add';
|
|
138
|
+
readonly native: boolean;
|
|
139
|
+
} | {
|
|
140
|
+
readonly kind: 'concat';
|
|
141
|
+
readonly stringify: readonly [boolean, boolean];
|
|
142
|
+
} | {
|
|
143
|
+
readonly kind: 'plus';
|
|
144
|
+
};
|
|
145
|
+
export declare function plusSpelling(plan: PrimitivePlan | null): PlusSpelling;
|
|
146
|
+
/**
|
|
147
|
+
* The ToString plan of a template-literal part (#3824 step 4): the part
|
|
148
|
+
* itself when it is a proven non-nil string and the target claims the
|
|
149
|
+
* `string` proof for `to-string`, the runtime's `to_string` otherwise. The
|
|
150
|
+
* nil-reading rewrite has already turned a typed nil-capable part into a
|
|
151
|
+
* non-nil one.
|
|
152
|
+
*/
|
|
153
|
+
export declare function planToString(part: ParsedExpr, typing: ScopedOperandTyping, target: NativeSafeTable): PrimitivePlan;
|
|
154
|
+
/** Whether a ToString plan names the runtime's `to_string`; a null plan does. */
|
|
155
|
+
export declare function needsToString(plan: PrimitivePlan | null): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* The ToBoolean plan of a test position whose node `emitParsedExpr` does not
|
|
158
|
+
* plan, because the position, not an operator node, applies the conversion:
|
|
159
|
+
* an `if` condition (a JSX conditional, a conditional return), a `.filter()`
|
|
160
|
+
* / `.every()` / `.some()` predicate body, a loop filter's guard, an
|
|
161
|
+
* attribute's presence test. The `!`, `&&`, `||` and `?:` nodes receive the
|
|
162
|
+
* same plan from the dispatcher.
|
|
163
|
+
*/
|
|
164
|
+
export declare function planTest(test: ParsedExpr, typing: ScopedOperandTyping, target: NativeSafeTable): PrimitivePlan;
|
|
165
|
+
/**
|
|
166
|
+
* Spell a ToBoolean plan over a rendered test: the test itself when the plan
|
|
167
|
+
* is native, `helper(rendered)` otherwise. A null plan (an emitter method
|
|
168
|
+
* reached outside `emitParsedExpr`) takes the helper, which is never wrong.
|
|
169
|
+
*/
|
|
170
|
+
export declare function spellTest(plan: PrimitivePlan | null, rendered: string, helper: (rendered: string) => string): string;
|
|
171
|
+
type NumberLiteral = Extract<ParsedExpr, {
|
|
172
|
+
kind: 'literal';
|
|
173
|
+
}> & {
|
|
174
|
+
value: number;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* A unary `-` over a non-zero number literal, folded into the literal it
|
|
178
|
+
* denotes (`-1.5` is the literal `-1.5`); null for any other node
|
|
179
|
+
* (`spec/js-primitive-semantics.md`, "Unary `-` and number literals"). The
|
|
180
|
+
* fold is the only native-safe unary minus: any other operand can be an
|
|
181
|
+
* integer zero in a host whose integer and float types differ, and the sign
|
|
182
|
+
* of `-0` would be lost, so it takes the `neg` helper. `-0` itself is not
|
|
183
|
+
* folded: a zero operand is exactly that case.
|
|
184
|
+
*/
|
|
185
|
+
export declare function foldNegatedNumberLiteral(expr: ParsedExpr): NumberLiteral | null;
|
|
186
|
+
/**
|
|
187
|
+
* The helper a relational plan names for `op` (`<` → `lt`, …), or null when
|
|
188
|
+
* the plan names the native operator (both operands proven non-nil numbers
|
|
189
|
+
* and the target claims `number-pair`; #3824 step 3). A null plan (an
|
|
190
|
+
* emitter method reached outside `emitParsedExpr`) takes the helper, which
|
|
191
|
+
* is never wrong. Null too for an `op` that is not relational.
|
|
192
|
+
*/
|
|
193
|
+
export declare function relationalHelper(op: string, plan: PrimitivePlan | null): PrimitiveHelper | null;
|
|
194
|
+
/**
|
|
195
|
+
* Whether a unary-`+` plan names the native spelling (the operand itself, a
|
|
196
|
+
* proven number); otherwise the emitter spells the runtime's `to_number`
|
|
197
|
+
* (#3824 step 3). A null plan takes the helper.
|
|
198
|
+
*/
|
|
199
|
+
export declare function isNativeToNumber(plan: PrimitivePlan | null): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Whether `plan` names the native operator of `op`. A null plan (an emitter
|
|
202
|
+
* method reached outside `emitParsedExpr`) is never native: the helper is
|
|
203
|
+
* never wrong.
|
|
204
|
+
*/
|
|
205
|
+
export declare function isNativePlan(plan: PrimitivePlan | null, op: PrimitiveOp): boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Whether `expr` is a number literal that no target spells as a host literal
|
|
208
|
+
* (anything but a safe integer, so `-0` too): its value comes from the
|
|
209
|
+
* runtime's `number` / `neg` and prints in the host's own notation (Perl
|
|
210
|
+
* `1e-07`, Go `1e+20`) unless the text sink routes it through the runtime's
|
|
211
|
+
* JS `Number::toString`.
|
|
212
|
+
*/
|
|
213
|
+
export declare function isRuntimeNumberLiteral(expr: ParsedExpr): boolean;
|
|
214
|
+
/**
|
|
215
|
+
* How an emitter spells a number literal of `value` under its plan:
|
|
216
|
+
*
|
|
217
|
+
* - `native`: the host literal `text` (a safe integer, `String(value)`).
|
|
218
|
+
* - `parse`: the runtime's `number` helper over the string `text`, the JS
|
|
219
|
+
* spelling `String(value)` (`1e+21`, `1e-7`, `0.1`,
|
|
220
|
+
* `100000000000000000000`), which every runtime's `number` parses, so no
|
|
221
|
+
* target needs an exponent or big-integer literal syntax.
|
|
222
|
+
* - `negative-zero`: the runtime's `neg` helper over `0`.
|
|
223
|
+
*
|
|
224
|
+
* A null plan (an emitter method reached outside `emitParsedExpr`) gets the
|
|
225
|
+
* plan of a target that claims only safe integers natively, which every
|
|
226
|
+
* target's table does.
|
|
227
|
+
*/
|
|
228
|
+
export type NumberLiteralSpelling = {
|
|
229
|
+
readonly kind: 'native';
|
|
230
|
+
readonly text: string;
|
|
231
|
+
} | {
|
|
232
|
+
readonly kind: 'parse';
|
|
233
|
+
readonly text: string;
|
|
234
|
+
} | {
|
|
235
|
+
readonly kind: 'negative-zero';
|
|
236
|
+
};
|
|
237
|
+
export declare function numberLiteralSpelling(value: number, plan: PrimitivePlan | null): NumberLiteralSpelling;
|
|
238
|
+
/**
|
|
239
|
+
* The plan for `node` in `typing`'s scope on a target whose native operators
|
|
240
|
+
* are pinned for `target`'s (op, proof) pairs, or null when `node` is not a
|
|
241
|
+
* primitive operation (a non-number literal, loose `==`, `in`, a
|
|
242
|
+
* non-computed member, …).
|
|
243
|
+
*
|
|
244
|
+
* Planned kinds: `binary` (`===` `!==` `<` `<=` `>` `>=` `+` `-` `*` `/`
|
|
245
|
+
* `%`), `unary` (`!` `-` `+`), `logical` (its left operand's test, or `??`),
|
|
246
|
+
* `conditional` (its test), `index-access`, computed `member` and number
|
|
247
|
+
* `literal`.
|
|
248
|
+
*/
|
|
249
|
+
export declare function planPrimitive(node: ParsedExpr, typing: ScopedOperandTyping, target: NativeSafeTable): PrimitivePlan | null;
|
|
250
|
+
/**
|
|
251
|
+
* The boolean-value plan of every node of `expr` whose value leaves the
|
|
252
|
+
* expression when `expr` itself does (`spec/js-primitive-semantics.md`,
|
|
253
|
+
* "Boolean values"): `expr` read as a value — a child prop, a stored signal
|
|
254
|
+
* seed / memo / local, a `JSON.stringify` argument, a rendered value — and,
|
|
255
|
+
* through it, an operand `&&` / `||` / `??` returns, a ternary branch and an
|
|
256
|
+
* array or object literal element. A test (a ternary's test, the operand of
|
|
257
|
+
* `!`, an `if` condition) is not a value: it keeps the target's native
|
|
258
|
+
* truthiness. A target with a boolean type claims `boolean-value` natively
|
|
259
|
+
* and spells nothing; Perl materializes each site with its runtime's
|
|
260
|
+
* `boolean`.
|
|
261
|
+
*/
|
|
262
|
+
export declare function booleanValueSites(expr: ParsedExpr, target: NativeSafeTable): ReadonlyMap<ParsedExpr, PrimitivePlan>;
|
|
263
|
+
/**
|
|
264
|
+
* How a JSX text child displays its value (`spec/js-primitive-semantics.md`,
|
|
265
|
+
* "ToString and boolean values"): JSX renders nothing for `true`, `false`,
|
|
266
|
+
* `null` and `undefined`.
|
|
267
|
+
*
|
|
268
|
+
* - `empty`: Phase 1 proves the value is a boolean or nil, so the child
|
|
269
|
+
* renders nothing (its markers stay).
|
|
270
|
+
* - `display`: the value may be a boolean among other types, so the runtime's
|
|
271
|
+
* `display` helper blanks a boolean at render time.
|
|
272
|
+
* - `plain`: the value is never a boolean (or Phase 1 proves nothing), so the
|
|
273
|
+
* target's text sink prints it as before.
|
|
274
|
+
*/
|
|
275
|
+
export type TextDisplay = 'empty' | 'display' | 'plain';
|
|
276
|
+
export declare function planTextDisplay(expr: ParsedExpr, typing: ScopedOperandTyping): TextDisplay;
|
|
277
|
+
/** The inputs an emitter supplies for the plans it receives (`ParsedExprEmitter.primitives`). */
|
|
278
|
+
export interface PrimitiveInputs {
|
|
279
|
+
/** The operand typing at the emission site (`typing.at(scope)`). */
|
|
280
|
+
typing(): ScopedOperandTyping;
|
|
281
|
+
/** The target's native-safe (op, proof) pairs. */
|
|
282
|
+
readonly nativeSafe: NativeSafeTable;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* {@link PrimitiveInputs} reading `typing` at `scope`. An emitter that is
|
|
286
|
+
* built for one fixed scope (a filter predicate's) supplies this; one that
|
|
287
|
+
* follows the adapter's current scope supplies its own `typing()`.
|
|
288
|
+
*/
|
|
289
|
+
export declare function primitivesAt(typing: OperandTyping, scope: BindingScope, nativeSafe: NativeSafeTable): PrimitiveInputs;
|
|
290
|
+
export {};
|
|
291
|
+
//# sourceMappingURL=primitive-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive-plan.d.ts","sourceRoot":"","sources":["../../src/adapters/primitive-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACtF,OAAO,EASL,KAAK,YAAY,EAEjB,KAAK,aAAa,EAClB,KAAK,mBA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;GAWG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,GAAG,WAAW,CAAC,UAAU,EAAE,aAAa,CAAC,CAInH;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAEvD,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,mBAAmB,GAAG,WAAW,CAI1F;AAED,iGAAiG;AACjG,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,MAAM,IAAI,mBAAmB,CAAA;IAC7B,kDAAkD;IAClD,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAA;CACrC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,GAAG,eAAe,CAErH"}
|
|
@@ -145,12 +145,23 @@ export interface AnalyzerContext {
|
|
|
145
145
|
* extraction. Flushed into `signals` at the end of visitComponentBody.
|
|
146
146
|
*/
|
|
147
147
|
signalTupleRefs: Map<string, PendingSignalTuple>;
|
|
148
|
+
/**
|
|
149
|
+
* Writers of a signal seed's / memo body's client template text
|
|
150
|
+
* (`SignalInfo.templateInitialValue`, `MemoInfo.templateBodyExpr`), run
|
|
151
|
+
* once the whole component body is walked so the props bindings they read
|
|
152
|
+
* live are decided against every body binding (`templatePropReadParams`).
|
|
153
|
+
*/
|
|
154
|
+
templatePropReadWriters: Array<() => void>;
|
|
148
155
|
propsType: TypeInfo | null;
|
|
149
156
|
propsParams: ParamInfo[];
|
|
150
157
|
propsObjectName: string | null;
|
|
158
|
+
/** Whether the component reads its props object as a whole (`observesWholePropsObject`). */
|
|
159
|
+
propsObjectObservedWhole: boolean;
|
|
151
160
|
restPropsName: string | null;
|
|
152
161
|
/** Keys that can be statically expanded from rest props (closed type) */
|
|
153
162
|
restPropsExpandedKeys: string[];
|
|
163
|
+
/** See `IRMetadata.restPropsOmittedKeys`. */
|
|
164
|
+
restPropsOmittedKeys: string[] | null;
|
|
154
165
|
/** Set when the props parameter is a destructuring pattern — see `PropsDestructuringInfo`. */
|
|
155
166
|
propsDestructuring: PropsDestructuringInfo | null;
|
|
156
167
|
jsxReturn: ts.Expression | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer-context.d.ts","sourceRoot":"","sources":["../src/analyzer-context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,cAAc,EACd,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,KAAK,YAAY,EAAiD,MAAM,kBAAkB,CAAA;AACnG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAiBnE;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,cAAc,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,cAAc,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC5C;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,EAAE,CAAC,UAAU,CAAA;IACxB,SAAS,EAAE,EAAE,CAAC,UAAU,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,QAAQ,GAAG,IAAI,CA6HjB;AASD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,GAAG,QAAQ,GAAG,IAAI,CAWxF;AAMD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,EAAE,CAAC,UAAU,CAAA;CAAE,CAO1D;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,mBAAmB,GAAG;IAClC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAA;IACnB,WAAW,EAAE,EAAE,CAAC,aAAa,CAAA;CAC9B,CAMA;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,aAAa,CAAC;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1C,KAAK,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GACrC,GAAG,CAAC,MAAM,CAAC,CAKb"}
|
package/dist/analyzer.d.ts
CHANGED
|
@@ -75,8 +75,42 @@ export declare function createProgramForFile(source: string, filePath: string, h
|
|
|
75
75
|
* implementation for every harness that compiles under relative names:
|
|
76
76
|
* the conformance harness (`packages/adapter-tests/src/harness-program.ts`)
|
|
77
77
|
* and the docs-example suite (`doc-examples.test.ts`).
|
|
78
|
+
*
|
|
79
|
+
* Every Program it builds draws on one process-wide `SourceFileCache` that
|
|
80
|
+
* is never evicted, so it suits a test process over a fixed corpus. Do not
|
|
81
|
+
* call it from a long-running watcher.
|
|
78
82
|
*/
|
|
79
83
|
export declare function createAnchoredProgram(source: string, filename: string, anchorDir: string): ts.Program | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Parsed SourceFiles shared by consecutive Programs, keyed by file name, the
|
|
86
|
+
* parse options the Program asks for, and the text. A file is parsed once per
|
|
87
|
+
* distinct text: a file that changed on disk (a rebuilt `@barefootjs/client`
|
|
88
|
+
* `dist`) is parsed again, never served stale, and the many different sources
|
|
89
|
+
* a harness compiles under one virtual name (`component.tsx`) each keep their
|
|
90
|
+
* own entry.
|
|
91
|
+
*
|
|
92
|
+
* A reused SourceFile also keeps its binding, so a Program built from cached
|
|
93
|
+
* files costs module resolution and checker setup, not a parse of
|
|
94
|
+
* `lib.*.d.ts` and every imported declaration (~430 ms → ~30 ms per Program
|
|
95
|
+
* in the conformance harness, #3666). Sharing SourceFiles between Programs
|
|
96
|
+
* with the same compiler options is how TypeScript's own DocumentRegistry
|
|
97
|
+
* serves language services. The Programs themselves are not shared: a
|
|
98
|
+
* checker assigns type ids in the order it is queried, so one reused across
|
|
99
|
+
* compiles could make a compile's output depend on what ran before it.
|
|
100
|
+
*
|
|
101
|
+
* Only for Programs built with the same compiler options: the cache does not
|
|
102
|
+
* key on them. Entries are never evicted, which suits a test process over a
|
|
103
|
+
* fixed corpus, not a long-running watcher.
|
|
104
|
+
*/
|
|
105
|
+
export declare class SourceFileCache {
|
|
106
|
+
private readonly files;
|
|
107
|
+
get(fileName: string, languageVersion: ts.ScriptTarget | ts.CreateSourceFileOptions, text: string, parse: SourceFileParse): ts.SourceFile;
|
|
108
|
+
}
|
|
109
|
+
/** How `SourceFileCache` parses a file; part of its key. */
|
|
110
|
+
export interface SourceFileParse {
|
|
111
|
+
scriptKind?: ts.ScriptKind;
|
|
112
|
+
setParentNodes: boolean;
|
|
113
|
+
}
|
|
80
114
|
export declare function analyzeComponent(source: string, filePath: string, targetComponentName?: string, program?: ts.Program, acceptsCallbackBody?: CallbackBodyAcceptor, programIsShared?: boolean): AnalyzerContext;
|
|
81
115
|
/**
|
|
82
116
|
* Strip JSX-transparent wrappers from an expression. Matches the
|
package/dist/analyzer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAK3B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAKnE,OAAO,EACL,KAAK,eAAe,EAUrB,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAK3B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAKnE,OAAO,EACL,KAAK,eAAe,EAUrB,MAAM,uBAAuB,CAAA;AA2B9B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gCAAgC,CAAC,EAAE,EAAE,EAAE,CAAC,UAAU,GAAG,OAAO,CAc3E;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAK/D;AA8BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9C;IAAE,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;IAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC,WAAW,CAAA;CAAE,GAAG,IAAI,CAEpF;AAuFD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,EAAE,CAAC,OAAO,GAAG,SAAS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CAarF;AAkED,eAAO,MAAM,mBAAmB,aAG9B,CAAA;AAi5CF;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI,CA+EvE;AAybD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import ts from 'typescript';
|
|
13
13
|
import type { ComponentIR, IRMetadata } from './types.ts';
|
|
14
|
+
import type { ParsedExpr } from './expression-parser.ts';
|
|
14
15
|
/**
|
|
15
16
|
* A `const x = useContext(SomeContext)` consumer in a component body. SSR
|
|
16
17
|
* template adapters have no JS runtime context stack, so a consumer's value is
|
|
@@ -120,13 +121,38 @@ export declare function evalTemplateOfStringConsts(source: string, resolved: Rea
|
|
|
120
121
|
* (resolved to a fixed point, so composition order doesn't matter).
|
|
121
122
|
*/
|
|
122
123
|
export declare function collectModuleStringConsts(constants: IRMetadata['localConstants'] | undefined): Map<string, string>;
|
|
124
|
+
type StaticConstants = IRMetadata['localConstants'] | undefined;
|
|
123
125
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
+
* The const declaration a read of `name` reaches, when its declared value
|
|
127
|
+
* is what the read sees — the ONE decision behind every compile-time lookup
|
|
128
|
+
* of a literal const's member (`lookupStaticRecordLiteral`,
|
|
129
|
+
* `lookupStaticArrayElement`, the Go adapter's record lookup). Returns
|
|
130
|
+
* `null` when the read must fall back to the generic lowering:
|
|
131
|
+
*
|
|
132
|
+
* - `isShadowed(name)`: an enclosing loop callback's param, index,
|
|
133
|
+
* destructure or preamble binding of the name is what the read reaches;
|
|
134
|
+
* - a component-scope declaration of the name is the binding — exactly
|
|
135
|
+
* one `const` whose value the component does not change during render
|
|
136
|
+
* (`mutatedAfterDeclaration`) and that is not a destructure of the props
|
|
137
|
+
* object. A `let`, or more than one component-scope entry of the name
|
|
138
|
+
* (the IR does not record which block each sits in, so which one a read
|
|
139
|
+
* reaches is unknown), is refused, and so is the module const of the
|
|
140
|
+
* same name, which the component-scope binding hides;
|
|
141
|
+
* - otherwise the module const of the name, unless a prop or another
|
|
142
|
+
* component binding shadows it (`shadowedInComponent`) or the component
|
|
143
|
+
* changes it during render.
|
|
144
|
+
*/
|
|
145
|
+
export declare function resolveStaticConstBinding(name: string, constants: StaticConstants, isShadowed: (name: string) => boolean): IRMetadata['localConstants'][number] | null;
|
|
146
|
+
/**
|
|
147
|
+
* Resolve `IDENT.key` / `IDENT['key']` where `IDENT` is a module-scope or
|
|
148
|
+
* component-local object-literal const and the key/value are static
|
|
149
|
+
* literals — a fully
|
|
126
150
|
* compile-time lookup (the icon registry's `strokePaths['chevron-down']`,
|
|
127
151
|
* pagination's `variantClasses.ghost`; #1896 / #1897). Returns the
|
|
128
152
|
* looked-up scalar, or `null` for any other shape so callers fall back
|
|
129
|
-
* to their generic lowering.
|
|
153
|
+
* to their generic lowering. A module array-literal const read with a
|
|
154
|
+
* literal index (`QS[0]`) goes through `lookupStaticArrayElement` instead.
|
|
155
|
+
* Shared by all seven template-string adapters;
|
|
130
156
|
* the prop-KEYED variant of the pattern lives in `parseRecordIndexAccess`.
|
|
131
157
|
*
|
|
132
158
|
* `isShadowed` is REQUIRED (#2482 Stage 2) rather than left to caller
|
|
@@ -139,10 +165,42 @@ export declare function collectModuleStringConsts(constants: IRMetadata['localCo
|
|
|
139
165
|
* Pass `scope.isBound` (or `scope.asShadowPredicate()`) from the caller's
|
|
140
166
|
* threaded `BindingScope`.
|
|
141
167
|
*/
|
|
142
|
-
export declare function lookupStaticRecordLiteral(objectName: string, key: string, constants:
|
|
168
|
+
export declare function lookupStaticRecordLiteral(objectName: string, key: string, constants: StaticConstants, isShadowed: (name: string) => boolean): {
|
|
143
169
|
kind: 'string' | 'number';
|
|
144
170
|
text: string;
|
|
145
171
|
} | null;
|
|
172
|
+
/**
|
|
173
|
+
* The element at `key` of a module or component-local array-literal const
|
|
174
|
+
* (`QS[0]`, `QS['1']`)
|
|
175
|
+
* or its `length`, as the element's own typed `ParsedExpr`: a string or
|
|
176
|
+
* number `literal`, or a unary `-` over a number literal. The caller emits
|
|
177
|
+
* it through its own expression emitter, exactly as if the source had
|
|
178
|
+
* written the element in place, so a value such as `-0` keeps its sign in
|
|
179
|
+
* arithmetic and a comparison (`1 / QS[0] < 0`) and is spelled `0` only
|
|
180
|
+
* where JS stringifies it. An index key must be canonical (`'01'` names no
|
|
181
|
+
* element). A hole or spread at or before the element (either also makes
|
|
182
|
+
* `length` unknown), an out-of-range index or any other element shape is
|
|
183
|
+
* `null`, so the caller falls back to its generic lowering.
|
|
184
|
+
*
|
|
185
|
+
* `isShadowed` is REQUIRED for the same reason as in
|
|
186
|
+
* `lookupStaticRecordLiteral`; which declaration the name reaches is
|
|
187
|
+
* `resolveStaticConstBinding`'s decision.
|
|
188
|
+
*/
|
|
189
|
+
export declare function lookupStaticArrayElement(objectName: string, key: string, constants: StaticConstants, isShadowed: (name: string) => boolean): ParsedExpr | null;
|
|
190
|
+
/**
|
|
191
|
+
* A literal-initialized const's value. A number carries its `value` (a
|
|
192
|
+
* `const NZ = -0` is negative zero, which `text` cannot say), which each
|
|
193
|
+
* adapter spells through the primitive plan's number-literal decision
|
|
194
|
+
* (#3824 step 6), as it does a literal written in place.
|
|
195
|
+
*/
|
|
196
|
+
export type LiteralConst = {
|
|
197
|
+
kind: 'number';
|
|
198
|
+
text: string;
|
|
199
|
+
value: number;
|
|
200
|
+
} | {
|
|
201
|
+
kind: 'string' | 'boolean' | 'null';
|
|
202
|
+
text: string;
|
|
203
|
+
};
|
|
146
204
|
/**
|
|
147
205
|
* Resolve a bare identifier bound to a literal-initialized `const` — module
|
|
148
206
|
* or component-function scope — to that literal, or `null` for any other
|
|
@@ -159,10 +217,7 @@ export declare function lookupStaticRecordLiteral(objectName: string, key: strin
|
|
|
159
217
|
* three shapes. `isShadowed` is REQUIRED, as in `lookupStaticRecordLiteral`:
|
|
160
218
|
* a name the enclosing loop binds is the row's own value (#2221).
|
|
161
219
|
*/
|
|
162
|
-
export declare function lookupLiteralConst(name: string, constants: IRMetadata['localConstants'] | undefined, isShadowed: (name: string) => boolean):
|
|
163
|
-
kind: 'string' | 'number' | 'boolean' | 'null';
|
|
164
|
-
text: string;
|
|
165
|
-
} | null;
|
|
220
|
+
export declare function lookupLiteralConst(name: string, constants: IRMetadata['localConstants'] | undefined, isShadowed: (name: string) => boolean): LiteralConst | null;
|
|
166
221
|
/**
|
|
167
222
|
* Statically evaluate `[<string literals>].join(<sep?>)` (e.g. a module-scope
|
|
168
223
|
* `const stateClasses = ['…', …].join(' ')`) to its joined string, so SSR
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"augment-inherited-props.d.ts","sourceRoot":"","sources":["../src/augment-inherited-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAA+C,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"augment-inherited-props.d.ts","sourceRoot":"","sources":["../src/augment-inherited-props.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAA+C,MAAM,YAAY,CAAA;AACtG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAIxD;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAA;IACjB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC9C;;;;;;;;;;;;;;;;;OAiBG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,uB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CAAA;IACrB,oFAAoF;IACpF,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,cAAc,EAAE,SAAS,UAAU,EAAE,EACrC,WAAW,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5C;;;;;GAKG;AACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAClF,iBAAiB,GAAG,IAAI,CA2D1B"}
|
package/dist/compiler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../src/compiler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACX,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAyE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../src/compiler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACX,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAyE,MAAM,eAAe,CAAA;AAqBvH;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAA;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAyE5D;AAigBD,wBAAgB,aAAa,CAC3B,GAAG,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GACvC,UAAU,CAuCZ;AAmBD,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,yBAAyB,GACjC,aAAa,CAmRf;AAMD,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -10,4 +10,16 @@
|
|
|
10
10
|
* "handler has no SSR value" skips.
|
|
11
11
|
*/
|
|
12
12
|
export declare function isEventHandlerName(name: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether a prop can travel in the `bf-p` hydration payload by name: not an
|
|
15
|
+
* event handler (`isEventHandlerName`, wired through the listener path) and
|
|
16
|
+
* not `__`-prefixed hydration plumbing. A data prop named `one`, `only` or
|
|
17
|
+
* `once` travels like any other (#3845).
|
|
18
|
+
*
|
|
19
|
+
* Shared by the reference adapter's serialization (`propsToSerialize`) and
|
|
20
|
+
* the two compile-time classifications of the same set (`computeLiveOnlyProps`,
|
|
21
|
+
* `checkRichTypePropSerialization`), so the three agree on which props the
|
|
22
|
+
* payload carries.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isHydrationPayloadPropName(name: string): boolean;
|
|
13
25
|
//# sourceMappingURL=event-handler-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-handler-name.d.ts","sourceRoot":"","sources":["../src/event-handler-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD"}
|
|
1
|
+
{"version":3,"file":"event-handler-name.d.ts","sourceRoot":"","sources":["../src/event-handler-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhE"}
|
|
@@ -516,6 +516,14 @@ export declare function zeroArgCallBody(value: ParsedExpr): ParsedExpr | null;
|
|
|
516
516
|
* the compiled JS domain (#2685 review).
|
|
517
517
|
*/
|
|
518
518
|
export declare function inlineBinding(expr: ParsedExpr, name: string, value: ParsedExpr): ParsedExpr | null;
|
|
519
|
+
/**
|
|
520
|
+
* `expr` rebuilt top-down: `replace` sees each node with the param names the
|
|
521
|
+
* arrows enclosing it bind, and returns the node's replacement (not walked
|
|
522
|
+
* further) or `null` to keep the node and walk its children. Every
|
|
523
|
+
* `ParsedExpr` kind is handled, so a new kind surfaces as a compile error
|
|
524
|
+
* here.
|
|
525
|
+
*/
|
|
526
|
+
export declare function mapParsedExpr(expr: ParsedExpr, replace: (e: ParsedExpr, enclosing: ReadonlySet<string>) => ParsedExpr | null, enclosing?: ReadonlySet<string>): ParsedExpr;
|
|
519
527
|
/**
|
|
520
528
|
* Fold a value-producing block body — a {@link ParsedStatement} sequence of
|
|
521
529
|
* `const` bindings, value-producing `if` / early `return`, and a terminal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-parser.d.ts","sourceRoot":"","sources":["../src/expression-parser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAMnF,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAUpC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK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