@putout/printer
Advanced tools
Comparing version 1.71.1 to 1.71.2
'use strict'; | ||
const {isNext} = require('./is'); | ||
const {markBefore, isMarkedAfter} = require('./mark'); | ||
const { | ||
markBefore, | ||
isMarkedAfter, | ||
} = require('./mark'); | ||
@@ -6,0 +9,0 @@ module.exports.parseLeadingComments = (path, {print, maybe, indent}) => { |
@@ -14,2 +14,3 @@ 'use strict'; | ||
} = require('@babel/types'); | ||
const {markAfter} = require('../mark'); | ||
@@ -16,0 +17,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports.ForStatement = { | ||
print(path, {print, maybe}) { | ||
print(path, {print, maybe, indent}) { | ||
const { | ||
@@ -14,2 +14,3 @@ test, | ||
indent(); | ||
print('for ('); | ||
@@ -36,5 +37,2 @@ print('__init'); | ||
}, | ||
after(path, {print}) { | ||
print.newline(); | ||
}, | ||
afterIf(path) { | ||
@@ -46,2 +44,6 @@ if (isLast(path)) | ||
}, | ||
after(path, {print}) { | ||
print.linebreak(); | ||
}, | ||
}; | ||
@@ -30,2 +30,3 @@ 'use strict'; | ||
} = spec.node; | ||
maybe.print(index, ', '); | ||
@@ -32,0 +33,0 @@ maybe.print(!wasSpecifier, '{'); |
{ | ||
"name": "@putout/printer", | ||
"version": "1.71.1", | ||
"version": "1.71.2", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
Sorry, the diff of this file is not supported yet
102326
2686