Skip to content

Commit 674b175

Browse files
committed
rename
1 parent e6b99c6 commit 674b175

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { build_getter } from '../utils.js';
1717
import {
1818
get_attribute_name,
1919
build_attribute_value,
20-
build_set_attributes,
20+
build_attribute_effect,
2121
build_set_class,
2222
build_set_style
2323
} from './shared/element.js';
@@ -201,7 +201,7 @@ export function RegularElement(node, context) {
201201
const node_id = context.state.node;
202202

203203
if (has_spread) {
204-
build_set_attributes(attributes, class_directives, style_directives, context, node, node_id);
204+
build_attribute_effect(attributes, class_directives, style_directives, context, node, node_id);
205205
} else {
206206
/** If true, needs `__value` for inputs */
207207
const needs_special_value_handling =

packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { dev, locator } from '../../../../state.js';
55
import { is_text_attribute } from '../../../../utils/ast.js';
66
import * as b from '#compiler/builders';
77
import { determine_namespace_for_children } from '../../utils.js';
8-
import { build_attribute_value, build_set_attributes, build_set_class } from './shared/element.js';
8+
import {
9+
build_attribute_value,
10+
build_attribute_effect,
11+
build_set_class
12+
} from './shared/element.js';
913
import { build_render_statement } from './shared/utils.js';
1014

1115
/**
@@ -82,7 +86,7 @@ export function SvelteElement(node, context) {
8286
} else if (attributes.length) {
8387
// Always use spread because we don't know whether the element is a custom element or not,
8488
// therefore we need to do the "how to set an attribute" logic at runtime.
85-
build_set_attributes(
89+
build_attribute_effect(
8690
attributes,
8791
class_directives,
8892
style_directives,

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { build_template_chunk, get_expression_id } from './utils.js';
1717
* @param {AST.RegularElement | AST.SvelteElement} element
1818
* @param {Identifier} element_id
1919
*/
20-
export function build_set_attributes(
20+
export function build_attribute_effect(
2121
attributes,
2222
class_directives,
2323
style_directives,

0 commit comments

Comments
 (0)