@putout/printer
Advanced tools
Comparing version 1.63.1 to 1.64.0
@@ -26,3 +26,5 @@ 'use strict'; | ||
const maybeProgram = (ast) => isProgram(ast) ? ast : Program([ExpressionStatement(ast)]); | ||
const maybeProgram = (ast) => isProgram(ast) ? ast : Program([ | ||
ExpressionStatement(ast), | ||
]); | ||
@@ -29,0 +31,0 @@ module.exports.maybeFile = (ast) => isFile(ast) ? ast : File(maybeProgram(ast)); |
@@ -40,2 +40,8 @@ 'use strict'; | ||
const constraint = path.get('constraint'); | ||
if (path.node.in) | ||
write('in '); | ||
else if (path.node.out) | ||
write('out '); | ||
write(path.node.name); | ||
@@ -42,0 +48,0 @@ |
@@ -11,2 +11,3 @@ 'use strict'; | ||
print('__id'); | ||
print('__typeParameters'); | ||
@@ -13,0 +14,0 @@ print.space(); |
{ | ||
"name": "@putout/printer", | ||
"version": "1.63.1", | ||
"version": "1.64.0", | ||
"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
94769
2535