marko 6.0.29 → 6.0.30
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/translator/index.js
CHANGED
@@ -9044,11 +9044,12 @@ var lifecycle_default = {
|
|
9044
9044
|
tag.node,
|
9045
9045
|
getAllTagReferenceNodes(tag.node)
|
9046
9046
|
);
|
9047
|
-
tagExtra[kRef] = createBinding(
|
9047
|
+
const binding = tagExtra[kRef] = createBinding(
|
9048
9048
|
generateUid("lifecycle"),
|
9049
9049
|
5 /* derived */,
|
9050
9050
|
section
|
9051
9051
|
);
|
9052
|
+
binding.downstreamExpressions.add(tagExtra);
|
9052
9053
|
if (node.attributes.length === 0) {
|
9053
9054
|
throw tag.get("name").buildCodeFrameError(
|
9054
9055
|
"The `lifecycle` tag requires at least one attribute."
|
@@ -74,7 +74,7 @@ export declare function trackVarReferences(tag: t.NodePath<t.MarkoTag>, type: Bi
|
|
74
74
|
export declare function trackParamsReferences(body: t.NodePath<t.MarkoTagBody | t.Program>, type: BindingType, upstreamAlias?: Binding["upstreamAlias"]): Binding | undefined;
|
75
75
|
export declare function trackHoistedReference(referencePath: t.NodePath<t.Identifier>, binding: Binding): void;
|
76
76
|
export declare function setReferencesScope(path: t.NodePath<any>): void;
|
77
|
-
export declare function mergeReferences<T extends t.Node>(section: Section, target: T, nodes: (t.Node | undefined)[]): NonNullable<T["extra"]
|
77
|
+
export declare function mergeReferences<T extends t.Node>(section: Section, target: T, nodes: (t.Node | undefined)[]): NonNullable<T["extra"]> & ReferencedExtra;
|
78
78
|
export declare function compareReferences(a: ReferencedBindings, b: ReferencedBindings): number;
|
79
79
|
export declare function finalizeReferences(): void;
|
80
80
|
export declare const intersectionMeta: WeakMap<Intersection, {
|