File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,14 @@ function wrap(tree, file) {
130
130
}
131
131
132
132
function text ( node ) {
133
+ var start = pos . start ( node ) ;
133
134
parser . _processToken ( {
134
135
type : CHARACTER_TOKEN ,
135
136
chars : node . value ,
136
137
location : {
137
- line : pos . start ( node ) . line ,
138
- col : pos . start ( node ) . column ,
139
- startOffset : pos . start ( node ) . offset ,
138
+ line : start . line ,
139
+ col : start . column ,
140
+ startOffset : start . offset ,
140
141
endOffset : pos . end ( node ) . offset
141
142
}
142
143
} ) ;
@@ -154,13 +155,14 @@ function wrap(tree, file) {
154
155
}
155
156
156
157
function comment ( node ) {
158
+ var start = pos . start ( node ) ;
157
159
parser . _processToken ( {
158
160
type : COMMENT_TOKEN ,
159
161
data : node . value ,
160
162
location : {
161
- line : pos . start ( node ) . line ,
162
- col : pos . start ( node ) . column ,
163
- startOffset : pos . start ( node ) . offset ,
163
+ line : start . line ,
164
+ col : start . column ,
165
+ startOffset : start . offset ,
164
166
endOffset : pos . end ( node ) . offset
165
167
}
166
168
} ) ;
You can’t perform that action at this time.
0 commit comments