]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
style(runtime-vapor): remove spaces in NO_SIDE_EFFECTS pragma comments
authordaiwei <daiwei521@126.com>
Wed, 14 Jan 2026 00:43:21 +0000 (08:43 +0800)
committerdaiwei <daiwei521@126.com>
Wed, 14 Jan 2026 00:43:21 +0000 (08:43 +0800)
packages/runtime-vapor/src/apiDefineComponent.ts
packages/runtime-vapor/src/dom/node.ts
packages/runtime-vapor/src/dom/template.ts

index db6a0d0b58e5d7f7574ec04db19b942fe0890b29..8286e6088c10e15a614356fc71a6bd5910fceab1 100644 (file)
@@ -212,7 +212,7 @@ export function defineVaporComponent<
   InferredProps
 >
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function defineVaporComponent(comp: any, extraOptions?: any) {
   if (isFunction(comp)) {
     // #8236: extend call and options.name access are considered side-effects
index 4144aa7a081a592735210783f890848742baa7d5..e22b5c6be13b20f27951025d64e58d7bfa096d43 100644 (file)
@@ -1,22 +1,22 @@
 import type { ChildItem, InsertionParent } from '../insertionState'
 import { isComment, locateEndAnchor } from './hydration'
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function createElement(tagName: string): HTMLElement {
   return document.createElement(tagName)
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function createTextNode(value = ''): Text {
   return document.createTextNode(value)
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function createComment(data: string): Comment {
   return document.createComment(data)
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function querySelector(selectors: string): Element | null {
   return document.querySelector(selectors)
 }
@@ -26,13 +26,13 @@ export function parentNode(node: Node): ParentNode | null {
   return node.parentNode
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 const _txt: typeof _child = _child
 
 /**
  * Hydration-specific version of `txt`.
  */
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 const __txt = (node: ParentNode): Node => {
   let n = node.firstChild!
 
@@ -45,7 +45,7 @@ const __txt = (node: ParentNode): Node => {
   return n
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function _child(node: InsertionParent): Node {
   return node.firstChild!
 }
@@ -53,12 +53,12 @@ export function _child(node: InsertionParent): Node {
 /**
  * Hydration-specific version of `child`.
  */
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function __child(node: ParentNode, logicalIndex: number = 0): Node {
   return locateChildByLogicalIndex(node as InsertionParent, logicalIndex)!
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function _nthChild(node: InsertionParent, i: number): Node {
   return node.childNodes[i]
 }
@@ -66,12 +66,12 @@ export function _nthChild(node: InsertionParent, i: number): Node {
 /**
  * Hydration-specific version of `nthChild`.
  */
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function __nthChild(node: Node, logicalIndex: number): Node {
   return locateChildByLogicalIndex(node as InsertionParent, logicalIndex)!
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function _next(node: Node): Node {
   return node.nextSibling!
 }
@@ -79,7 +79,7 @@ export function _next(node: Node): Node {
 /**
  * Hydration-specific version of `next`.
  */
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function __next(node: Node, logicalIndex: number): Node {
   return locateChildByLogicalIndex(
     node.parentNode! as InsertionParent,
@@ -91,25 +91,25 @@ type DelegatedFunction<T extends (...args: any[]) => any> = T & {
   impl: T
 }
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export const txt: DelegatedFunction<typeof _txt> = (...args) => {
   return txt.impl(...args)
 }
 txt.impl = _txt
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export const child: DelegatedFunction<typeof _child> = (...args) => {
   return child.impl(...args)
 }
 child.impl = _child
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export const next: DelegatedFunction<typeof _next> = (...args) => {
   return next.impl(...args)
 }
 next.impl = _next
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export const nthChild: DelegatedFunction<typeof _nthChild> = (...args) => {
   return nthChild.impl(...args)
 }
index 803ce1e86801c0f0e34e4db95d1fbf54fe93b315..026167b97bfa7b9e730a9d196604d145019d8d96 100644 (file)
@@ -4,7 +4,7 @@ import { _child, createTextNode } from './node'
 
 let t: HTMLTemplateElement
 
-/* @__NO_SIDE_EFFECTS__ */
+/*@__NO_SIDE_EFFECTS__*/
 export function template(html: string, root?: boolean, ns?: Namespace) {
   let node: Node
   return (): Node & { $root?: true } => {