Skip to content

Commit

Permalink
refactor(v2/ssr-container): rename ContainerElementFrame to ElementFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
naorpeled committed Jun 15, 2024
1 parent 6d5c545 commit 2d3530e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/qwik/src/server/v2-ssr-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ class StringBufferWriter {
}
}

interface ContainerElementFrame {
interface ElementFrame {
tagNesting: TagNesting;
parent: ContainerElementFrame | null;
parent: ElementFrame | null;
/** Element name. */
elementName: string;
/**
Expand Down Expand Up @@ -177,7 +177,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
private currentComponentNode: ISsrNode | null = null;
private styleIds = new Set<string>();

private currentElementFrame: ContainerElementFrame | null = null;
private currentElementFrame: ElementFrame | null = null;

private renderTimer: ReturnType<typeof createTimer>;
/**
Expand Down Expand Up @@ -980,11 +980,11 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
if (!this.currentElementFrame) {
tagNesting = initialTag(tag);
} else {
let frame: ContainerElementFrame | null = this.currentElementFrame;
let frame: ElementFrame | null = this.currentElementFrame;
const previousTagNesting = frame!.tagNesting;
tagNesting = isTagAllowed(previousTagNesting, tag);
if (tagNesting === TagNesting.NOT_ALLOWED) {
const frames: ContainerElementFrame[] = [];
const frames: ElementFrame[] = [];
while (frame) {
frames.unshift(frame);
frame = frame.parent;
Expand Down Expand Up @@ -1016,7 +1016,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
}
}
}
const frame: ContainerElementFrame = {
const frame: ElementFrame = {
tagNesting: tagNesting,
parent: this.currentElementFrame,
elementName: tag,
Expand Down

0 comments on commit 2d3530e

Please sign in to comment.