File tree 2 files changed +6
-5
lines changed
test/fixtures/ast/v-bind-prop-shorthand
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,8 @@ function parseDirectiveKeyStatically(
185
185
directiveKey . name . rawName === "." &&
186
186
! directiveKey . modifiers . some ( isPropModifier )
187
187
) {
188
- const pos = ( directiveKey . argument || directiveKey . name ) . range [ 1 ]
188
+ const pos =
189
+ ( directiveKey . argument || directiveKey . name ) . range [ 1 ] - offset
189
190
const propModifier = createIdentifier ( pos , pos , "prop" )
190
191
directiveKey . modifiers . unshift ( propModifier )
191
192
}
Original file line number Diff line number Diff line change 189
189
{
190
190
"type" : " VIdentifier" ,
191
191
"range" : [
192
- 42 ,
193
- 42
192
+ 22 ,
193
+ 22
194
194
],
195
195
"loc" : {
196
196
"start" : {
197
- "column" : 31 ,
197
+ "column" : 11 ,
198
198
"line" : 2
199
199
},
200
200
"end" : {
201
- "column" : 31 ,
201
+ "column" : 11 ,
202
202
"line" : 2
203
203
}
204
204
},
You can’t perform that action at this time.
0 commit comments