|
| 1 | +diff --git a/node_modules/prettier-plugin-java/dist/printers/classes.js b/node_modules/prettier-plugin-java/dist/printers/classes.js |
| 2 | +index c5197bc..b28507a 100644 |
| 3 | +--- a/node_modules/prettier-plugin-java/dist/printers/classes.js |
| 4 | ++++ b/node_modules/prettier-plugin-java/dist/printers/classes.js |
| 5 | +@@ -104,12 +104,12 @@ var ClassesPrettierVisitor = /** @class */ (function (_super) { |
| 6 | + }; |
| 7 | + ClassesPrettierVisitor.prototype.typeParameters = function (ctx) { |
| 8 | + var typeParameterList = this.visit(ctx.typeParameterList); |
| 9 | +- return (0, printer_utils_1.putIntoBraces)(typeParameterList, softline, ctx.Less[0], ctx.Greater[0]); |
| 10 | ++ return (0, printer_utils_1.rejectAndConcat)([ctx.Less[0], typeParameterList, ctx.Greater[0]]); |
| 11 | + }; |
| 12 | + ClassesPrettierVisitor.prototype.typeParameterList = function (ctx) { |
| 13 | + var typeParameter = this.mapVisit(ctx.typeParameter); |
| 14 | +- var commas = ctx.Comma ? ctx.Comma.map(function (elt) { return (0, prettier_builder_1.concat)([elt, line]); }) : []; |
| 15 | +- return (0, prettier_builder_1.group)((0, printer_utils_1.rejectAndJoinSeps)(commas, typeParameter)); |
| 16 | ++ var commas = ctx.Comma ? ctx.Comma.map(function (elt) { return (0, prettier_builder_1.concat)([elt, " "]); }) : []; |
| 17 | ++ return (0, printer_utils_1.rejectAndJoinSeps)(commas, typeParameter); |
| 18 | + }; |
| 19 | + ClassesPrettierVisitor.prototype.superclass = function (ctx) { |
| 20 | + return (0, prettier_builder_1.join)(" ", [ctx.Extends[0], this.visit(ctx.classType)]); |
| 21 | +diff --git a/node_modules/prettier-plugin-java/dist/printers/types-values-and-variables.js b/node_modules/prettier-plugin-java/dist/printers/types-values-and-variables.js |
| 22 | +index 6505bbb..ea6fd01 100644 |
| 23 | +--- a/node_modules/prettier-plugin-java/dist/printers/types-values-and-variables.js |
| 24 | ++++ b/node_modules/prettier-plugin-java/dist/printers/types-values-and-variables.js |
| 25 | +@@ -148,12 +148,10 @@ var TypesValuesAndVariablesPrettierVisitor = /** @class */ (function (_super) { |
| 26 | + TypesValuesAndVariablesPrettierVisitor.prototype.typeBound = function (ctx) { |
| 27 | + var classOrInterfaceType = this.visit(ctx.classOrInterfaceType); |
| 28 | + var additionalBound = this.mapVisit(ctx.additionalBound); |
| 29 | +- return (0, prettier_builder_1.concat)([ |
| 30 | +- (0, printer_utils_1.rejectAndJoin)(" ", [ctx.Extends[0], classOrInterfaceType]), |
| 31 | +- (0, prettier_builder_1.indent)((0, prettier_builder_1.group)((0, prettier_builder_1.concat)([ |
| 32 | +- additionalBound.length ? line : "", |
| 33 | +- (0, printer_utils_1.rejectAndJoin)(line, additionalBound) |
| 34 | +- ]))) |
| 35 | ++ return (0, printer_utils_1.rejectAndJoin)(" ", [ |
| 36 | ++ ctx.Extends[0], |
| 37 | ++ classOrInterfaceType, |
| 38 | ++ (0, prettier_builder_1.join)(" ", additionalBound) |
| 39 | + ]); |
| 40 | + }; |
| 41 | + TypesValuesAndVariablesPrettierVisitor.prototype.additionalBound = function (ctx) { |
| 42 | +@@ -162,11 +160,11 @@ var TypesValuesAndVariablesPrettierVisitor = /** @class */ (function (_super) { |
| 43 | + }; |
| 44 | + TypesValuesAndVariablesPrettierVisitor.prototype.typeArguments = function (ctx) { |
| 45 | + var typeArgumentList = this.visit(ctx.typeArgumentList); |
| 46 | +- return (0, printer_utils_1.putIntoBraces)(typeArgumentList, softline, ctx.Less[0], ctx.Greater[0]); |
| 47 | ++ return (0, printer_utils_1.rejectAndConcat)([ctx.Less[0], typeArgumentList, ctx.Greater[0]]); |
| 48 | + }; |
| 49 | + TypesValuesAndVariablesPrettierVisitor.prototype.typeArgumentList = function (ctx) { |
| 50 | + var typeArguments = this.mapVisit(ctx.typeArgument); |
| 51 | +- var commas = ctx.Comma ? ctx.Comma.map(function (elt) { return (0, prettier_builder_1.concat)([elt, line]); }) : []; |
| 52 | ++ var commas = ctx.Comma ? ctx.Comma.map(function (elt) { return (0, prettier_builder_1.concat)([elt, " "]); }) : []; |
| 53 | + return (0, printer_utils_1.rejectAndJoinSeps)(commas, typeArguments); |
| 54 | + }; |
| 55 | + TypesValuesAndVariablesPrettierVisitor.prototype.typeArgument = function (ctx) { |
0 commit comments