@@ -46,14 +46,14 @@ export function resetJSXQueueStats() {
4646}
4747
4848/**
49- * Processes JSX vnodes and adds them to the render queue.
49+ * Processes JSX VNodes and adds them to the render queue.
5050 * Unlike renderJSX(), this doesn't build strings recursively -
5151 * it pushes nodes directly to the queue for batching and memory efficiency.
5252 *
5353 * This function handles JSX created by astro:jsx (JSX in .astro files).
54- * It converts vnodes to queue nodes, enabling content-aware pooling and batching.
54+ * It converts VNodes to queue nodes, enabling content-aware pooling and batching.
5555 *
56- * @param vnode - JSX vnode to process
56+ * @param vnode - JSX VNode to process
5757 * @param result - SSR result context
5858 * @param queue - Queue to append nodes to
5959 * @param pool - Node pool for memory efficiency
@@ -71,7 +71,7 @@ export function renderJSXToQueue(
7171 metadata ?: StackItem [ 'metadata' ] ,
7272) : void {
7373 // Track that JSX queue rendering is being used
74- jsxQueueStats . vnodeCount ++ ;
74+ jsxQueueStats . vnodeCount = jsxQueueStats . vnodeCount + 1 ;
7575
7676 // Handle primitive types
7777 if ( vnode instanceof HTMLString ) {
@@ -106,13 +106,13 @@ export function renderJSXToQueue(
106106 // Handle arrays - push each item to stack
107107 if ( Array . isArray ( vnode ) ) {
108108 // Push in reverse order so they're popped in correct order
109- for ( let i = vnode . length - 1 ; i >= 0 ; i -- ) {
109+ for ( let i = vnode . length - 1 ; i >= 0 ; i = i - 1 ) {
110110 stack . push ( { node : vnode [ i ] , parent, metadata } ) ;
111111 }
112112 return ;
113113 }
114114
115- // Handle vnodes
115+ // Handle VNodes
116116 if ( ! isVNode ( vnode ) ) {
117117 // Fallback: convert to string
118118 const str = String ( vnode ) ;
@@ -150,15 +150,15 @@ function handleVNode(
150150
151151 // Astro component factory
152152 if ( isAstroComponentFactory ( vnode . type ) ) {
153- jsxQueueStats . componentCount ++ ;
153+ jsxQueueStats . componentCount = jsxQueueStats . componentCount + 1 ;
154154 const factory = vnode . type ;
155155 let props : Record < string , any > = { } ;
156156 let slots : Record < string , any > = { } ;
157157
158158 for ( const [ key , value ] of Object . entries ( vnode . props ?? { } ) ) {
159159 if ( key === 'children' || ( value && typeof value === 'object' && value [ '$$slot' ] ) ) {
160160 // Slots need to return rendered content
161- // We create a function that renders the JSX vnode to string
161+ // We create a function that renders the JSX VNode to string
162162 slots [ key === 'children' ? 'default' : key ] = ( ) => renderJSX ( result , value ) ;
163163 } else {
164164 props [ key ] = value ;
@@ -177,7 +177,7 @@ function handleVNode(
177177
178178 // HTML element (string type like 'div', 'span')
179179 if ( typeof vnode . type === 'string' && vnode . type !== ClientOnlyPlaceholder ) {
180- jsxQueueStats . elementCount ++ ;
180+ jsxQueueStats . elementCount = jsxQueueStats . elementCount + 1 ;
181181 renderHTMLElement ( vnode , result , queue , pool , stack , parent , metadata ) ;
182182 return ;
183183 }
@@ -223,7 +223,7 @@ function renderHTMLElement(
223223 const isVoidElement = ( children == null || children === '' ) && voidElementNames . test ( tag ) ;
224224
225225 if ( isVoidElement ) {
226- // Self-closing element as html -string (cached by content)
226+ // Self-closing element as HTML -string (cached by content)
227227 const html = `<${ tag } ${ attrs } />` ;
228228 const node = pool . acquire ( 'html-string' , html ) as HtmlStringNode ;
229229 node . html = html ;
@@ -232,7 +232,7 @@ function renderHTMLElement(
232232 }
233233
234234 // Non-void element: open tag + children + close tag
235- // Build opening tag as html -string (cached by content)
235+ // Build opening tag as HTML -string (cached by content)
236236 const openTag = `<${ tag } ${ attrs } >` ;
237237 const openTagHtml = queue . htmlStringCache
238238 ? queue . htmlStringCache . getOrCreate ( openTag )
@@ -246,7 +246,7 @@ function renderHTMLElement(
246246 stack . push ( { node : processedChildren , parent, metadata } ) ;
247247 }
248248
249- // Create closing tag as html -string (cached by content)
249+ // Create closing tag as HTML -string (cached by content)
250250 const closeTag = `</${ tag } >` ;
251251 const closeTagHtml = queue . htmlStringCache
252252 ? queue . htmlStringCache . getOrCreate ( closeTag )
0 commit comments