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 22, 2024
1 parent b94a6e8 commit 8be88e2
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 @@ -132,13 +132,13 @@ class StringBufferWriter {
}
}

interface ContainerElementFrame {
interface ElementFrame {
/*
* Used during development mode to track the nesting of HTML tags
* in order provide error messages when the nesting is incorrect.
*/
tagNesting: TagNesting;
parent: ContainerElementFrame | null;
parent: ElementFrame | null;
/** Element name. */
elementName: string;
/**
Expand Down Expand Up @@ -187,7 +187,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 @@ -985,11 +985,11 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
if (!this.currentElementFrame) {
tagNesting = initialTag(elementName);
} else {
let frame: ContainerElementFrame | null = this.currentElementFrame;
let frame: ElementFrame | null = this.currentElementFrame;
const previousTagNesting = frame!.tagNesting;
tagNesting = isTagAllowed(previousTagNesting, elementName);
if (tagNesting === TagNesting.NOT_ALLOWED) {
const frames: ContainerElementFrame[] = [];
const frames: ElementFrame[] = [];
while (frame) {
frames.unshift(frame);
frame = frame.parent;
Expand Down Expand Up @@ -1021,7 +1021,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer {
}
}
}
const frame: ContainerElementFrame = {
const frame: ElementFrame = {
tagNesting,
parent: this.currentElementFrame,
elementName,
Expand Down

0 comments on commit 8be88e2

Please sign in to comment.