refactor: rename apply-hydrate to signals

This commit is contained in:
Michael Rawlings 2022-11-01 10:59:03 -04:00
parent acbff4ee27
commit b32feb8329
15 changed files with 17 additions and 17 deletions

View File

@ -7,7 +7,7 @@ import {
import { ReserveType } from "../util/reserve";
import { getOrCreateSectionId } from "../util/sections";
import { currentProgramPath } from "../visitors/program";
import { initSource } from "../util/apply-hydrate";
import { initSource } from "../util/signals";
declare module "@marko/compiler/dist/types" {
export interface ProgramExtra {

View File

@ -8,7 +8,7 @@ import {
getSignal,
setSubscriberBuilder,
writeHTMLHydrateStatements,
} from "../../util/apply-hydrate";
} from "../../util/signals";
import { callRuntime } from "../../util/runtime";
import { isCoreTagName } from "../../util/is-core-tag";
import toFirstStatementOrBlock from "../../util/to-first-statement-or-block";

View File

@ -3,7 +3,7 @@ import { Tag, assertNoParams } from "@marko/babel-utils";
import { assertNoBodyContent } from "../util/assert";
import translateVar from "../util/translate-var";
import { isOutputDOM } from "../util/marko-config";
import { initDerivation } from "../util/apply-hydrate";
import { initDerivation } from "../util/signals";
export default {
translate(tag) {

View File

@ -2,7 +2,7 @@ import { types as t } from "@marko/compiler";
import { Tag, assertNoParams } from "@marko/babel-utils";
import { assertNoBodyContent } from "../util/assert";
import { isOutputDOM } from "../util/marko-config";
import { addStatement, addHTMLHydrateCall } from "../util/apply-hydrate";
import { addStatement, addHTMLHydrateCall } from "../util/signals";
import { callRuntime } from "../util/runtime";
import { getSectionId } from "../util/sections";
import { ReserveType, reserveScope } from "../util/reserve";

View File

@ -15,7 +15,7 @@ import {
subscribe,
writeHTMLHydrateStatements,
getComputeFn,
} from "../util/apply-hydrate";
} from "../util/signals";
import { getOrCreateSectionId, getSectionId } from "../util/sections";
import {
ReserveType,

View File

@ -3,7 +3,7 @@ import { Tag, assertNoParams } from "@marko/babel-utils";
import { assertNoBodyContent } from "../util/assert";
import translateVar from "../util/translate-var";
import { isOutputDOM } from "../util/marko-config";
import { initSource, queueSource, addStatement } from "../util/apply-hydrate";
import { initSource, queueSource, addStatement } from "../util/signals";
import { callRuntime } from "../util/runtime";
import replaceAssignments from "../util/replace-assignments";
import { getSectionId } from "../util/sections";

View File

@ -1,12 +1,12 @@
import { types as t } from "@marko/compiler";
import type { ReferenceGroup } from "../util/references";
import type { ReferenceGroup } from "./references";
import {
getSectionId,
createSectionState,
forEachSectionIdReverse,
getOrCreateSectionId,
} from "../util/sections";
import { Reserve, insertReserve } from "../util/reserve";
} from "./sections";
import { Reserve, insertReserve } from "./reserve";
import { currentProgramPath, scopeIdentifier } from "../visitors/program";
import { callRuntime, callRead } from "./runtime";
import { getTemplateId } from "@marko/babel-utils";

View File

@ -5,7 +5,7 @@ import toTemplateOrStringLiteral, {
appendLiteral,
} from "./to-template-string-or-literal";
import { getWalkString } from "./walks";
import { getSetup } from "./apply-hydrate";
import { getSetup } from "./signals";
import { currentProgramPath } from "../visitors/program";
const [getRenderer] = createSectionState<t.Identifier>(

View File

@ -5,7 +5,7 @@ import { callRuntime, getHTMLRuntime } from "../util/runtime";
import evaluate from "../util/evaluate";
import { getSectionId, getOrCreateSectionId } from "../util/sections";
import { ReserveType, reserveScope } from "../util/reserve";
import { addStatement } from "../util/apply-hydrate";
import { addStatement } from "../util/signals";
import * as writer from "../util/writer";
import * as walks from "../util/walks";
import { scopeIdentifier } from "./program";

View File

@ -1,7 +1,7 @@
import { types as t } from "@marko/compiler";
import { callRuntime } from "../../util/runtime";
import { forEachSectionIdReverse, getSectionId } from "../../util/sections";
import { getClosures, getSignal, writeSignals } from "../../util/apply-hydrate";
import { getClosures, getSignal, writeSignals } from "../../util/signals";
import * as writer from "../../util/writer";
import { visit } from "../../util/walks";
import { scopeIdentifier } from ".";

View File

@ -1,5 +1,5 @@
import { types as t } from "@marko/compiler";
import { writeHTMLHydrateStatements } from "../../util/apply-hydrate";
import { writeHTMLHydrateStatements } from "../../util/signals";
import { callRuntime } from "../../util/runtime";
import { flushInto } from "../../util/writer";
import isStatic from "../../util/is-static";

View File

@ -1,5 +1,5 @@
import type { types as t } from "@marko/compiler";
import { addStatement } from "../util/apply-hydrate";
import { addStatement } from "../util/signals";
import { isOutputHTML } from "../util/marko-config";
import type { ReferenceGroup } from "../util/references";
import { getSectionId } from "../util/sections";

View File

@ -25,7 +25,7 @@ import {
addStatement,
getSignal,
writeHTMLHydrateStatements,
} from "../../util/apply-hydrate";
} from "../../util/signals";
import { reserveScope, ReserveType } from "../../util/reserve";
import { currentProgramPath, scopeIdentifier } from "../program";

View File

@ -7,7 +7,7 @@ import { callRuntime } from "../../util/runtime";
import translateVar from "../../util/translate-var";
import { isOutputHTML } from "../../util/marko-config";
import { getOrCreateSectionId, getSectionId } from "../../util/sections";
import { getComputeFn, getSignal, subscribe } from "../../util/apply-hydrate";
import { getComputeFn, getSignal, subscribe } from "../../util/signals";
import {
countReserves,
Reserve,

View File

@ -7,7 +7,7 @@ import translateVar from "../../util/translate-var";
import evaluate from "../../util/evaluate";
import { getOrCreateSectionId, getSectionId } from "../../util/sections";
import { ReserveType, reserveScope } from "../../util/reserve";
import { addStatement, addHTMLHydrateCall } from "../../util/apply-hydrate";
import { addStatement, addHTMLHydrateCall } from "../../util/signals";
import * as writer from "../../util/writer";
import * as walks from "../../util/walks";
import { currentProgramPath, scopeIdentifier } from "../program";