@@ -19,11 +19,11 @@ export function pluckModuleFunction<F: Function> (
19
19
}
20
20
21
21
export function addProp ( el : ASTElement , name : string , value : string , range ? : Range ) {
22
- ( el . props || ( el . props = [ ] ) ) . push ( setRange ( { name, value } , range ) )
22
+ ( el . props || ( el . props = [ ] ) ) . push ( rangeSetItem ( { name, value } , range ) )
23
23
}
24
24
25
25
export function addAttr ( el : ASTElement , name : string , value : string , range ? : Range ) {
26
- ( el . attrs || ( el . attrs = [ ] ) ) . push ( setRange ( { name, value } , range ) )
26
+ ( el . attrs || ( el . attrs = [ ] ) ) . push ( rangeSetItem ( { name, value } , range ) )
27
27
}
28
28
29
29
export function addDirective (
@@ -35,7 +35,7 @@ export function addDirective (
35
35
modifiers : ?ASTModifiers ,
36
36
range ? : Range
37
37
) {
38
- ( el . directives || ( el . directives = [ ] ) ) . push ( setRange ( { name, rawName, value, arg, modifiers } , range ) )
38
+ ( el . directives || ( el . directives = [ ] ) ) . push ( rangeSetItem ( { name, rawName, value, arg, modifiers } , range ) )
39
39
}
40
40
41
41
export function addHandler (
@@ -96,7 +96,7 @@ export function addHandler (
96
96
events = el . events || ( el . events = { } )
97
97
}
98
98
99
- const newHandler : any = setRange ( { value } , range )
99
+ const newHandler : any = rangeSetItem ( { value } , range )
100
100
if ( modifiers !== emptyObject ) {
101
101
newHandler . modifiers = modifiers
102
102
}
@@ -182,7 +182,7 @@ export function getAndRemoveAttr (
182
182
return val
183
183
}
184
184
185
- function setRange (
185
+ function rangeSetItem (
186
186
item : any ,
187
187
range ?: { start ?: number , end ?: number }
188
188
) {
0 commit comments