Skip to content

Commit 8865a99

Browse files
committed
alphabetize
1 parent 822fe6b commit 8865a99

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ export function RegularElement(node, context) {
105105

106106
for (const attribute of node.attributes) {
107107
switch (attribute.type) {
108-
case 'SpreadAttribute':
109-
attributes.push(attribute);
110-
has_spread = true;
108+
case 'AnimateDirective':
109+
other_directives.push(attribute);
111110
break;
112111

113112
case 'Attribute':
@@ -124,28 +123,32 @@ export function RegularElement(node, context) {
124123
class_directives.push(attribute);
125124
break;
126125

127-
case 'StyleDirective':
128-
style_directives.push(attribute);
129-
break;
130-
131126
case 'LetDirective':
132127
// visit let directives before everything else, to set state
133128
lets.push(/** @type {ExpressionStatement} */ (context.visit(attribute)));
134129
break;
135130

136-
case 'UseDirective':
137-
has_use = true;
131+
case 'OnDirective':
138132
other_directives.push(attribute);
139133
break;
140134

141-
case 'OnDirective':
142-
other_directives.push(attribute);
135+
case 'SpreadAttribute':
136+
attributes.push(attribute);
137+
has_spread = true;
138+
break;
139+
140+
case 'StyleDirective':
141+
style_directives.push(attribute);
143142
break;
144143

145-
case 'AnimateDirective':
146144
case 'TransitionDirective':
147145
other_directives.push(attribute);
148146
break;
147+
148+
case 'UseDirective':
149+
has_use = true;
150+
other_directives.push(attribute);
151+
break;
149152
}
150153
}
151154

0 commit comments

Comments
 (0)