@barefootjs/go-template 0.14.0 → 0.15.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/adapter/go-template-adapter.d.ts +295 -9
- package/dist/adapter/go-template-adapter.d.ts.map +1 -1
- package/dist/adapter/index.js +1282 -137
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +1283 -136
- package/dist/index.js +1282 -137
- package/dist/test-render.d.ts +8 -0
- package/dist/test-render.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/__tests__/build.test.ts +40 -1
- package/src/__tests__/derived-state-memo.test.ts +371 -0
- package/src/__tests__/go-template-adapter.test.ts +267 -7
- package/src/adapter/go-template-adapter.ts +2205 -188
- package/src/build.ts +4 -0
- package/src/test-render.ts +109 -27
|
@@ -75,6 +75,17 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
75
75
|
private componentName;
|
|
76
76
|
private options;
|
|
77
77
|
private inLoop;
|
|
78
|
+
/**
|
|
79
|
+
* Companion `{{define "<Component>__children_<slot>"}}` blocks queued
|
|
80
|
+
* while rendering the template body (#1896): JSX children passed to an
|
|
81
|
+
* imported child component that contain template actions (nested
|
|
82
|
+
* components, dynamic text) can't be baked to a static `Children`
|
|
83
|
+
* string — they render through a per-call-site define executed via
|
|
84
|
+
* `bf_tmpl` with the PARENT's data, and the result is injected into
|
|
85
|
+
* the child props with `bf_with_children`. Flushed after the main
|
|
86
|
+
* define in `generate()`.
|
|
87
|
+
*/
|
|
88
|
+
private pendingChildrenDefines;
|
|
78
89
|
private loopParamStack;
|
|
79
90
|
private loopVarRefCount;
|
|
80
91
|
/** Stack of destructure-param binding maps (binding name → Go accessor on the
|
|
@@ -83,6 +94,10 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
83
94
|
* refusing with BF104. (#1310) */
|
|
84
95
|
private loopBindingStack;
|
|
85
96
|
private errors;
|
|
97
|
+
/** The current IR's memos, stashed like `localConstants` so nested memo
|
|
98
|
+
* resolution (a ternary memo whose condition is another memo, #1896)
|
|
99
|
+
* can recurse without threading the list through every signature. */
|
|
100
|
+
private currentMemos;
|
|
86
101
|
private propsObjectName;
|
|
87
102
|
/**
|
|
88
103
|
* Component-scoped rest binding identifier (`function({ a, ...rest }: P)`
|
|
@@ -112,6 +127,8 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
112
127
|
* initial-value baker.
|
|
113
128
|
*/
|
|
114
129
|
private synthStructTypes;
|
|
130
|
+
/** Full type definitions from the current IR, stashed for loop-datum field resolution (#1897). */
|
|
131
|
+
private currentTypeDefinitions;
|
|
115
132
|
/** Set during type generation when any emit references
|
|
116
133
|
* `template.HTML(...)`; toggles the `"html/template"` import. */
|
|
117
134
|
private usesHtmlTemplate;
|
|
@@ -163,6 +180,31 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
163
180
|
* `generate()` / `generateTypes()` entry. (#1297)
|
|
164
181
|
*/
|
|
165
182
|
private contextConsumers;
|
|
183
|
+
/**
|
|
184
|
+
* (#1922) Local binding names the request-scoped `searchParams()` env signal
|
|
185
|
+
* is imported under (handles `import { searchParams as sp }`). A zero-arg call
|
|
186
|
+
* on one of these names lowers to the canonical `.SearchParams` field
|
|
187
|
+
* regardless of the JS alias. Set at `generate()` / `generateTypes()` entry.
|
|
188
|
+
*/
|
|
189
|
+
private searchParamsLocals;
|
|
190
|
+
/**
|
|
191
|
+
* Names of component-scope arrow-const helpers (`const sortClass = …`),
|
|
192
|
+
* eligible for call-site inlining (#1897). Precomputed per component so the
|
|
193
|
+
* inliner can skip the AST parse for the common non-helper expression.
|
|
194
|
+
*/
|
|
195
|
+
private localHelperNames;
|
|
196
|
+
/** Set when a constructor-context lowering emits a `strings.` call (#1897), so
|
|
197
|
+
* `strings` is added to the generated types file's import block. */
|
|
198
|
+
private needsStringsImport;
|
|
199
|
+
/** Component-scope derived consts referenced by the template during rendering
|
|
200
|
+
* (e.g. `root` → `.Root`). `generateTypes` emits a computed field for each
|
|
201
|
+
* that's resolvable and non-colliding (#1897). */
|
|
202
|
+
private referencedDerivedConsts;
|
|
203
|
+
/** Array-memo name → the handler-filled loop slice field its `.map()` feeds
|
|
204
|
+
* (e.g. `visible` → `PostListItems`). Lets `<memo>().length` lower to
|
|
205
|
+
* `len .<Slice>` instead of `len .<Memo>` (a nil/unset memo field) — the
|
|
206
|
+
* slice IS the rendered (filtered) items, so its length is the count (#1897). */
|
|
207
|
+
private memoBackedLoopSlice;
|
|
166
208
|
/** Child component name → the contexts it consumes (cross-component, for provider wiring). */
|
|
167
209
|
private childContextConsumers;
|
|
168
210
|
/**
|
|
@@ -327,6 +369,20 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
327
369
|
* Concrete (`string`/`int`/`bool`/`[]T`/struct) types are excluded.
|
|
328
370
|
*/
|
|
329
371
|
private collectNillablePropNames;
|
|
372
|
+
/**
|
|
373
|
+
* Whether the component reads the request-scoped `searchParams()`
|
|
374
|
+
* environment signal (router v0.5, #1922). Detected from `searchParamsLocals`
|
|
375
|
+
* — the binding names the shared `searchParamsLocalNames` helper found at
|
|
376
|
+
* `generate()` / `generateTypes()` entry, covering any local name (including
|
|
377
|
+
* an aliased `import { searchParams as sp }`). When non-empty the generated
|
|
378
|
+
* structs carry a `SearchParams bf.SearchParams` binding the route handler
|
|
379
|
+
* fills per request and the template reads via `.SearchParams.Get "key"`.
|
|
380
|
+
*
|
|
381
|
+
* Guarded against a name collision with a user prop / signal / memo also
|
|
382
|
+
* called `searchParams`: that author owns the `SearchParams` field, so the
|
|
383
|
+
* env-signal field is dropped (the reference would resolve to their value).
|
|
384
|
+
*/
|
|
385
|
+
private usesSearchParams;
|
|
330
386
|
/**
|
|
331
387
|
* Generate Input struct for a component
|
|
332
388
|
*/
|
|
@@ -335,6 +391,22 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
335
391
|
* Generate Props struct for a component
|
|
336
392
|
*/
|
|
337
393
|
private generatePropsStruct;
|
|
394
|
+
/**
|
|
395
|
+
* (#1897) Generate a wrapper struct for loop body components with JSX children.
|
|
396
|
+
* The wrapper embeds the child component's Props, adds datum fields from the
|
|
397
|
+
* loop's item type, and adds static child instance fields for sub-components
|
|
398
|
+
* within the loop body children (e.g. the `TableCell` instances inside
|
|
399
|
+
* `<TableRow>…</TableRow>`).
|
|
400
|
+
*/
|
|
401
|
+
private generateLoopBodyWrapperStruct;
|
|
402
|
+
/** Extract a memo name from a loop array expression like `sortedData()` → `sortedData`. */
|
|
403
|
+
private extractMemoNameFromLoopArray;
|
|
404
|
+
/** Stable name for the wrapper struct: `<Parent><Child>L<Marker>Ctx` */
|
|
405
|
+
private loopBodyWrapperName;
|
|
406
|
+
/** Resolve a loop item's TypeInfo to Go struct fields for the wrapper. */
|
|
407
|
+
private resolveLoopDatumFields;
|
|
408
|
+
/** Collect static child instances from loop body children for the wrapper struct. */
|
|
409
|
+
private collectBodyChildInstances;
|
|
338
410
|
/**
|
|
339
411
|
* Generate NewXxxProps function
|
|
340
412
|
*/
|
|
@@ -664,6 +736,58 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
664
736
|
*/
|
|
665
737
|
private propsAccessName;
|
|
666
738
|
private computeMemoInitialValue;
|
|
739
|
+
/**
|
|
740
|
+
* Pattern-matching core of `computeMemoInitialValue`: returns the
|
|
741
|
+
* memo's SSR initial value as a Go expression, or `null` when no
|
|
742
|
+
* pattern applies. Callers that have a typed field to fill use the
|
|
743
|
+
* zero-value-defaulting wrapper above; callers that can simply OMIT
|
|
744
|
+
* the field (a child-instance prop init — Go's zero values then apply
|
|
745
|
+
* with the right type for free) use this directly (#1896,
|
|
746
|
+
* data-table's `Checked: 0` into a bool field).
|
|
747
|
+
*/
|
|
748
|
+
private computeMemoInitialValueOrNull;
|
|
749
|
+
/**
|
|
750
|
+
* (#1897) Recognises a block-body memo whose SSR path returns a module-const
|
|
751
|
+
* array when the guard signal starts falsy:
|
|
752
|
+
* `() => { const k = getter(); if (!k) return MODULE_CONST; … }`
|
|
753
|
+
* Returns the constant's name and inferred type, or null.
|
|
754
|
+
*/
|
|
755
|
+
private resolveBlockBodyMemoModuleConst;
|
|
756
|
+
/**
|
|
757
|
+
* (#1897 PostList) Compute the SSR value of an object-returning block-body
|
|
758
|
+
* memo derived from `searchParams()`:
|
|
759
|
+
* () => { const sp = searchParams(); return { sort: asSortKey(sp.get('sort')),
|
|
760
|
+
* tag: sp.get('tag') ?? '' } }
|
|
761
|
+
* Emits a Go `map[string]interface{}{ "Sort": …, "Tag": … }` whose values are
|
|
762
|
+
* lowered from the request query (see `lowerCtorExpr`). Keys are capitalized to
|
|
763
|
+
* match the template's `.Params.<Field>` map access. Returns null for any shape
|
|
764
|
+
* the lowerer can't represent, so the caller falls back to a nil map.
|
|
765
|
+
*/
|
|
766
|
+
private computeObjectMemoInitialValue;
|
|
767
|
+
/**
|
|
768
|
+
* Lower a JS expression to a Go expression in the `NewXxxProps` constructor
|
|
769
|
+
* context. This is Go *code*, not template syntax — so a search-param read
|
|
770
|
+
* becomes `in.SearchParams.Get("k")` (method call), not the template's
|
|
771
|
+
* `.SearchParams.Get "k"`. Supports the narrow surface derived-state memos
|
|
772
|
+
* need: string/number literals, `<sp>.get('k')`, `<arr>.includes(<x>)`,
|
|
773
|
+
* module arrow-helper inlining, `<expr> ?? <fallback>`, and string ternaries.
|
|
774
|
+
* Returns null for anything else so the caller can fall back safely.
|
|
775
|
+
*/
|
|
776
|
+
private lowerCtorExpr;
|
|
777
|
+
/**
|
|
778
|
+
* Lower a JS expression used as a *boolean* condition to a Go bool expression,
|
|
779
|
+
* or null when it is not provably boolean. Distinct from `lowerCtorExpr`,
|
|
780
|
+
* which lowers value expressions: a string-valued condition (`sp.get('tag')`)
|
|
781
|
+
* is truthy in JS but `if "<string>"` does not compile in Go, so anything not
|
|
782
|
+
* known to yield a Go bool must fall back to null (#1941 review).
|
|
783
|
+
*/
|
|
784
|
+
private lowerCtorCond;
|
|
785
|
+
/**
|
|
786
|
+
* Resolve a string-array expression (a `['a','b']` literal, or a module const
|
|
787
|
+
* bound to one) to a Go `[]string{…}` literal, or null when it isn't a pure
|
|
788
|
+
* string-array. Used by `lowerCtorExpr` for `<arr>.includes(<x>)`.
|
|
789
|
+
*/
|
|
790
|
+
private lowerCtorStringArray;
|
|
667
791
|
/**
|
|
668
792
|
* Whether a memo is an arrow whose result is a template literal — either a
|
|
669
793
|
* concise body (`() => \`…\``) or a block body whose `return` is one.
|
|
@@ -779,6 +903,38 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
779
903
|
emitAsync(node: IRAsync, _ctx: GoRenderCtx, _emit: EmitIRNode<GoRenderCtx>): string;
|
|
780
904
|
renderElement(element: IRElement): string;
|
|
781
905
|
renderExpression(expr: IRExpression): string;
|
|
906
|
+
/**
|
|
907
|
+
* Decide whether a lowered Go string is ALREADY a self-contained template
|
|
908
|
+
* fragment — i.e. it carries its own `{{...}}` actions and so must NOT be
|
|
909
|
+
* re-wrapped in another `{{...}}` (doing so yields `{{ {{...}} }}`, which
|
|
910
|
+
* `html/template` rejects at parse time). Single source of truth for the
|
|
911
|
+
* wrap-or-not decision across `renderExpression`, `templateLiteral`, and the
|
|
912
|
+
* static-string / attribute interpolation paths.
|
|
913
|
+
*
|
|
914
|
+
* The decision is STRUCTURAL, deliberately NOT a `{{` substring scan: literal
|
|
915
|
+
* text and Go string literals are ambiguous to scan — `5" ${x}` lowers to
|
|
916
|
+
* `5" {{.X}}` while JS `{"{{"}` lowers to the Go literal `"{{"`; both mix
|
|
917
|
+
* quotes and braces, so no scan can tell them apart. Two — and only two —
|
|
918
|
+
* structural shapes are fragments:
|
|
919
|
+
*
|
|
920
|
+
* 1. A pure action block (`{{if}}` / `{{with}}` / `{{range}}` from a ternary,
|
|
921
|
+
* a `find().prop`, a `filter().length`, …). The emitter prepends NO
|
|
922
|
+
* literal text to these, so they ALWAYS start with `{{`; a leading `{{`
|
|
923
|
+
* is therefore an unambiguous structural marker for this whole class.
|
|
924
|
+
* 2. A template literal — the ONLY source form that interleaves author
|
|
925
|
+
* literal text with `{{...}}` actions (` · #${tag}` → ` · #{{.Tag}}`), so
|
|
926
|
+
* it may begin with literal text and is detected by its parsed `kind`.
|
|
927
|
+
*
|
|
928
|
+
* Everything else is a bare pipeline (`.Foo`, `len .X`, `bf_arr …`) — even one
|
|
929
|
+
* whose value contains `{{` inside a Go string literal — and MUST be wrapped.
|
|
930
|
+
*
|
|
931
|
+
* Invariant (enforced by the `template-fragment invariant` tests): no
|
|
932
|
+
* non-template-literal fragment ever begins with literal text, so case 1's
|
|
933
|
+
* `startsWith('{{')` is complete. If a future emitter prepends literal text to
|
|
934
|
+
* an action block those tests fail — fix it by giving that shape a parsed kind
|
|
935
|
+
* this helper can key off, exactly as template literals are handled here.
|
|
936
|
+
*/
|
|
937
|
+
private isTemplateFragment;
|
|
782
938
|
/**
|
|
783
939
|
* Render a client-only conditional as comment markers.
|
|
784
940
|
* Used when @client directive is applied to an unsupported conditional.
|
|
@@ -793,6 +949,23 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
793
949
|
*/
|
|
794
950
|
private renderParsedExpr;
|
|
795
951
|
identifier(name: string): string;
|
|
952
|
+
/**
|
|
953
|
+
* (#1897 PostList) Compute the Go struct fields for component-scope derived
|
|
954
|
+
* string consts referenced by the template (e.g. `root = base || '/'`). Each
|
|
955
|
+
* is lowered to a constructor-context Go expression via `lowerCtorExpr`, with
|
|
956
|
+
* its dependency consts inlined. Skips names that collide with an existing
|
|
957
|
+
* field (`takenFieldNames`) or that the lowerer can't represent.
|
|
958
|
+
*/
|
|
959
|
+
private computeDerivedConstFields;
|
|
960
|
+
/**
|
|
961
|
+
* Conservative check that a JS expression is *definitely* string-valued —
|
|
962
|
+
* used to gate derived-const field emission (the field is typed `string`).
|
|
963
|
+
* Recognizes string/template literals, string-returning methods (`.replace`,
|
|
964
|
+
* `.trim`, … and `searchParams().get`), `+` / `||` / `??` where a branch is
|
|
965
|
+
* string-valued, and a component-const reference to such a value. Anything
|
|
966
|
+
* unproven (numbers, `props.X`, calls it doesn't know) returns false.
|
|
967
|
+
*/
|
|
968
|
+
private isStringExpr;
|
|
796
969
|
/**
|
|
797
970
|
* True when `name` is a loop value variable from an enclosing (not the
|
|
798
971
|
* current) loop — i.e. it sits on `loopParamStack` below the top. Such a
|
|
@@ -808,6 +981,14 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
808
981
|
* rebinds. Outside any loop the root *is* the dot, so we emit `.Field` (#1677).
|
|
809
982
|
*/
|
|
810
983
|
private rootFieldRef;
|
|
984
|
+
/**
|
|
985
|
+
* (#1922) When `name` is a local binding of the `searchParams()` env signal,
|
|
986
|
+
* resolve it to the canonical `.SearchParams` field — not `.<Capitalized
|
|
987
|
+
* name>` — so an aliased `import { searchParams as sp }` (`sp()`) reaches the
|
|
988
|
+
* same struct field the generator emits. Returns null for any other name so
|
|
989
|
+
* callers fall back to their normal field-ref lowering.
|
|
990
|
+
*/
|
|
991
|
+
private searchParamsFieldRef;
|
|
811
992
|
/**
|
|
812
993
|
* Build the module pure-string-const map from the IR's localConstants.
|
|
813
994
|
* A const qualifies only when it is module-scope (`isModule`) and its
|
|
@@ -818,14 +999,6 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
818
999
|
* pure compile-time string can be safely inlined byte-for-byte.
|
|
819
1000
|
*/
|
|
820
1001
|
private collectModuleStringConsts;
|
|
821
|
-
/**
|
|
822
|
-
* Parse a const initializer's source text. Returns the unescaped string
|
|
823
|
-
* value when the whole initializer is a single string literal (or a
|
|
824
|
-
* no-substitution template literal), else `null`. Uses the TS parser so
|
|
825
|
-
* escapes/quotes are resolved exactly as JS would, matching the value
|
|
826
|
-
* the Hono reference inlines at runtime.
|
|
827
|
-
*/
|
|
828
|
-
private parsePureStringLiteral;
|
|
829
1002
|
/**
|
|
830
1003
|
* (#checkbox) Statically evaluate `[<string literals>].join(<sep?>)`.
|
|
831
1004
|
* Returns the joined string, or null when the shape doesn't match (non-call,
|
|
@@ -833,7 +1006,6 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
833
1006
|
* non-string-literal separator). Comments/whitespace between elements are
|
|
834
1007
|
* irrelevant — the TS parser already discarded them.
|
|
835
1008
|
*/
|
|
836
|
-
private evalStringArrayJoin;
|
|
837
1009
|
/**
|
|
838
1010
|
* Resolve an identifier to its inlined Go string literal when it names a
|
|
839
1011
|
* module pure-string const. Returns the Go template literal form
|
|
@@ -844,9 +1016,18 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
844
1016
|
* same contextual auto-escaping it applies to any literal, matching Hono.
|
|
845
1017
|
*/
|
|
846
1018
|
private resolveModuleStringConst;
|
|
1019
|
+
/**
|
|
1020
|
+
* Inline a module-level numeric const (`const TRACK = 8`) as its literal
|
|
1021
|
+
* value. Only a plain numeric initializer qualifies — anything computed or
|
|
1022
|
+
* non-numeric falls through to the normal field/ident resolution. Scoped to
|
|
1023
|
+
* module consts (like the string variant) and guarded against loop vars so a
|
|
1024
|
+
* range variable that shadows a const name still wins.
|
|
1025
|
+
*/
|
|
1026
|
+
private resolveModuleNumericConst;
|
|
847
1027
|
literal(value: string | number | boolean | null, literalType: LiteralType): string;
|
|
848
1028
|
call(callee: ParsedExpr, args: ParsedExpr[], emit: (e: ParsedExpr) => string): string;
|
|
849
1029
|
member(object: ParsedExpr, property: string, _computed: boolean, emit: (e: ParsedExpr) => string): string;
|
|
1030
|
+
indexAccess(object: ParsedExpr, index: ParsedExpr, emit: (e: ParsedExpr) => string): string;
|
|
850
1031
|
binary(op: string, left: ParsedExpr, right: ParsedExpr, emit: (e: ParsedExpr) => string): string;
|
|
851
1032
|
unary(op: string, argument: ParsedExpr, emit: (e: ParsedExpr) => string): string;
|
|
852
1033
|
logical(op: '&&' | '||' | '??', left: ParsedExpr, right: ParsedExpr, emit: (e: ParsedExpr) => string): string;
|
|
@@ -1007,6 +1188,91 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
1007
1188
|
* Convert a JS expression to Go template syntax.
|
|
1008
1189
|
*/
|
|
1009
1190
|
private convertExpressionToGo;
|
|
1191
|
+
/**
|
|
1192
|
+
* (#1897 PostList) If `jsExpr` is a call to a local, expression-bodied helper
|
|
1193
|
+
* arrow const (`sortClass(k)` / `tagClass(t)`), return its body with the call
|
|
1194
|
+
* args substituted for the params (re-emitted to source), so the caller can
|
|
1195
|
+
* lower the inlined expression. Returns null when `jsExpr` is not such a call,
|
|
1196
|
+
* or when the helper delegates to another local helper (e.g. `sortHref` →
|
|
1197
|
+
* `hrefFor`) — those need their own lowering capability and must not be
|
|
1198
|
+
* half-inlined here. Substitution is AST-based (no string matching) so it is
|
|
1199
|
+
* shadowing- and member-name-safe.
|
|
1200
|
+
*/
|
|
1201
|
+
private inlineLocalHelperCall;
|
|
1202
|
+
/**
|
|
1203
|
+
* Guard for `substituteHelperParams`: the span splicer replaces identifiers by
|
|
1204
|
+
* name without scope tracking, so it is only safe on bodies free of
|
|
1205
|
+
* constructs where a param name could appear in a position the splice can't
|
|
1206
|
+
* handle — a nested function scope (shadowing or its own parameters), or an
|
|
1207
|
+
* object shorthand key (`{ k }`, which can't be rewritten to `{ (arg) }`).
|
|
1208
|
+
*/
|
|
1209
|
+
private isSpliceSafeHelperBody;
|
|
1210
|
+
/**
|
|
1211
|
+
* True when `body` contains a call to a *local* (component-scope) arrow helper
|
|
1212
|
+
* const — the signal that inlining `body` here would only push the problem to
|
|
1213
|
+
* another un-lowered helper (e.g. `sortHref`'s body calls `hrefFor`).
|
|
1214
|
+
*/
|
|
1215
|
+
private bodyCallsLocalHelper;
|
|
1216
|
+
/**
|
|
1217
|
+
* Re-emit `body` to source with each identifier named in `subs` replaced by
|
|
1218
|
+
* the substitution's source text. Implemented as span splicing over `body`'s
|
|
1219
|
+
* own source (single source file — args are passed as text, not cross-file
|
|
1220
|
+
* AST nodes, which would corrupt a printer keyed to `body`'s source). The walk
|
|
1221
|
+
* skips non-value identifier positions — the property NAME in `a.b` and a
|
|
1222
|
+
* plain object-literal key in `{ k: … }` — so a param sharing a name with a
|
|
1223
|
+
* member or key is left untouched. (`isSpliceSafeHelperBody` has already
|
|
1224
|
+
* rejected nested functions and `{ k }` shorthand keys.)
|
|
1225
|
+
*/
|
|
1226
|
+
private substituteHelperParams;
|
|
1227
|
+
/**
|
|
1228
|
+
* (#1897 PostList) Lower a call to a local URL-builder helper to a `bf_query`
|
|
1229
|
+
* template expression. Handles two shapes:
|
|
1230
|
+
* - the builder itself — `(sort, tag) => { const u = new URLSearchParams();
|
|
1231
|
+
* if (sort !== 'date') u.set('sort', sort); if (tag) u.set('tag', tag);
|
|
1232
|
+
* return u.toString() ? \`${root}?${u}\` : root }` — substitute the call
|
|
1233
|
+
* args for params and emit `bf_query <base> (<guard>) "key" <value> …`;
|
|
1234
|
+
* - a pass-through delegate — `(k) => hrefFor(k, params().tag)` — substitute
|
|
1235
|
+
* and recurse on the delegated call.
|
|
1236
|
+
* Returns null for anything else (→ existing lowering / method-call fallback).
|
|
1237
|
+
*/
|
|
1238
|
+
private lowerUrlBuilderHelperCall;
|
|
1239
|
+
/**
|
|
1240
|
+
* Extract the `bf_query` shape from a `(…) => { const u = new URLSearchParams();
|
|
1241
|
+
* [if (G)] u.set(K, V); …; return <s> ? … : <base> }` helper, or null when the
|
|
1242
|
+
* block doesn't match that exact builder idiom.
|
|
1243
|
+
*/
|
|
1244
|
+
private extractUrlBuilder;
|
|
1245
|
+
/**
|
|
1246
|
+
* Match `<builderVar>.set('literalKey', <value>)` — as a statement or an
|
|
1247
|
+
* if-then — returning the key text and value node, else null.
|
|
1248
|
+
*/
|
|
1249
|
+
private matchUrlSet;
|
|
1250
|
+
/**
|
|
1251
|
+
* Emit `bf_query <base> (<guard>) "key" <value> …` from an extracted builder
|
|
1252
|
+
* shape, lowering each part (with the call args substituted for params) via
|
|
1253
|
+
* the normal expression / condition lowering. Unguarded sets use `true`.
|
|
1254
|
+
*/
|
|
1255
|
+
private emitUrlBuilder;
|
|
1256
|
+
/**
|
|
1257
|
+
* Lower a `u.set()` guard to a Go *bool* for `bf_query`'s `include` argument.
|
|
1258
|
+
* A comparison / logical / negation / bool-literal already yields a bool
|
|
1259
|
+
* (`convertConditionToGo`); a bare value (`if (tag)`) is JS string-truthiness,
|
|
1260
|
+
* lowered to `ne <value> ""`. The arg must be a real bool — `bf_query` type-
|
|
1261
|
+
* asserts it, so Go-template truthiness (`{{if x}}`) is not enough.
|
|
1262
|
+
*/
|
|
1263
|
+
private lowerUrlGuard;
|
|
1264
|
+
/**
|
|
1265
|
+
* Resolve `IDENT['key']` / `IDENT["key"]` where `IDENT` is a
|
|
1266
|
+
* module-scope object-literal const and the key is a string literal —
|
|
1267
|
+
* a compile-time-static lookup (the icon registry's
|
|
1268
|
+
* `strokePaths['chevron-down']`, #1896). Returns the looked-up value
|
|
1269
|
+
* as a Go literal (quoted string / bare number) usable inside a
|
|
1270
|
+
* template action, or `null` for any other shape so the caller falls
|
|
1271
|
+
* through to the generic lowering. The prop-keyed variant of the same
|
|
1272
|
+
* pattern lives in `parseRecordIndexAccess` (shared with Mojo); this
|
|
1273
|
+
* helper covers the literal-key case that parse rejects.
|
|
1274
|
+
*/
|
|
1275
|
+
private resolveStaticRecordLiteralIndex;
|
|
1010
1276
|
/**
|
|
1011
1277
|
* Create a source location for error reporting.
|
|
1012
1278
|
*/
|
|
@@ -1039,6 +1305,26 @@ export declare class GoTemplateAdapter extends BaseAdapter implements ParsedExpr
|
|
|
1039
1305
|
* Find the first component child in a list of nodes
|
|
1040
1306
|
*/
|
|
1041
1307
|
private findChildComponent;
|
|
1308
|
+
/**
|
|
1309
|
+
* When `comp`'s JSX children contain template actions (nested
|
|
1310
|
+
* components, dynamic text) — i.e. none of the static bake paths in
|
|
1311
|
+
* `collectStaticChildInstances` apply — render them into a companion
|
|
1312
|
+
* define and return its name; `renderComponent` then routes the child
|
|
1313
|
+
* call through `bf_with_children` + `bf_tmpl` (#1896). Returns null
|
|
1314
|
+
* for childless or statically-bakeable children, which keep the
|
|
1315
|
+
* constructor-baked `Children` value.
|
|
1316
|
+
*/
|
|
1317
|
+
private queueDynamicChildrenDefine;
|
|
1318
|
+
/**
|
|
1319
|
+
* (#1897) Queue a companion define for a loop body component's JSX children.
|
|
1320
|
+
* Like `queueDynamicChildrenDefine` but temporarily exits the `inLoop`
|
|
1321
|
+
* context so nested component calls render with the normal `.NameSlotN`
|
|
1322
|
+
* field-access pattern (the fields live on the wrapper struct that the
|
|
1323
|
+
* companion define receives as its data context). The loop param stack
|
|
1324
|
+
* stays intact so datum-field references (`payment.id` → `.Id`) still
|
|
1325
|
+
* resolve.
|
|
1326
|
+
*/
|
|
1327
|
+
private queueLoopBodyChildrenDefine;
|
|
1042
1328
|
renderComponent(comp: IRComponent, ctx?: {
|
|
1043
1329
|
isRootOfClientComponent?: boolean;
|
|
1044
1330
|
}): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go-template-adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/go-template-adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EAEN,WAAW,EACX,UAAU,EACV,MAAM,EAON,UAAU,EAEV,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,EACV,OAAO,EAEP,yBAAyB,EAC1B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAE3B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EA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H,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAqGlC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,gBAAgB;IAsBxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,0BAA0B;IA4BlC;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,0BAA0B;IAuClC,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAKjD;IAED,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;IAED,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvC;IAED,OAAO,CAAC,kBAAkB;CAmB3B;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"go-template-adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/go-template-adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EAEN,WAAW,EACX,UAAU,EACV,MAAM,EAON,UAAU,EAEV,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,EACV,OAAO,EAEP,yBAAyB,EAC1B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAE3B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,UAAU,EAmBhB,MAAM,iBAAiB,CAAA;AAIxB;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IACjB,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC,CAAA;AAoID,MAAM,WAAW,wBAAwB;IACvC,kEAAkE;IAClE,WAAW,CAAC,EA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