Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/@babel/generator/lib/generators/statements.js
r0c6b92a r79a0317 207 207 this.space(); 208 208 this.tokenChar(123); 209 this.printSequence(node.cases, { 210 indent: true, 211 addNewlines(leading, cas) { 212 if (!leading && node.cases[node.cases.length - 1] === cas) return -1; 213 } 209 this.printSequence(node.cases, true, undefined, function addNewlines(leading, cas) { 210 if (!leading && node.cases[node.cases.length - 1] === cas) return -1; 214 211 }); 215 212 this.rightBrace(node); … … 227 224 if (node.consequent.length) { 228 225 this.newline(); 229 this.printSequence(node.consequent, { 230 indent: true 231 }); 226 this.printSequence(node.consequent, true); 232 227 } 233 228 } … … 260 255 } 261 256 } 262 this.printList(node.declarations, { 263 separator: hasInits ? function (occurrenceCount) { 264 this.token(",", false, occurrenceCount); 265 this.newline(); 266 } : undefined, 267 indent: node.declarations.length > 1 ? true : false 268 }); 257 this.printList(node.declarations, undefined, undefined, node.declarations.length > 1, hasInits ? function (occurrenceCount) { 258 this.token(",", false, occurrenceCount); 259 this.newline(); 260 } : undefined); 269 261 if (isFor(parent)) { 270 262 if (isForStatement(parent)) {
Note:
See TracChangeset
for help on using the changeset viewer.