File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -161,24 +161,24 @@ export default (options = {}) => {
161
161
/** @type {boolean[] } */
162
162
const multiline_nodes = [ ] ;
163
163
164
- const children = nodes . map ( ( node , i ) => {
165
- const child = context . new ( ) ;
166
- if ( node ) child . visit ( node ) ;
164
+ const children = nodes . map ( ( child , i ) => {
165
+ const child_context = context . new ( ) ;
166
+ if ( child ) child_context . visit ( child ) ;
167
167
168
- multiline_nodes [ i ] = child . multiline ;
168
+ multiline_nodes [ i ] = child_context . multiline ;
169
169
170
- if ( i < nodes . length - 1 || ! node ) {
171
- child . write ( separator ) ;
170
+ if ( i < nodes . length - 1 || ! child ) {
171
+ child_context . write ( separator ) ;
172
172
}
173
173
174
- if ( node && flush_trailing_comments ( child , node . loc . end ) ) {
174
+ if ( child && flush_trailing_comments ( child_context , child . loc . end ) ) {
175
175
multiline = true ;
176
176
}
177
177
178
- length += child . measure ( ) + 1 ;
179
- multiline ||= child . multiline ;
178
+ length += child_context . measure ( ) + 1 ;
179
+ multiline ||= child_context . multiline ;
180
180
181
- return child ;
181
+ return child_context ;
182
182
} ) ;
183
183
184
184
multiline ||= length > 60 ;
You can’t perform that action at this time.
0 commit comments