prettier-plugin-java 2.7.1 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/options.d.ts CHANGED
@@ -9,6 +9,16 @@ declare const _default: {
9
9
  }[];
10
10
  description: string;
11
11
  };
12
+ arrowParens: {
13
+ type: "choice";
14
+ category: string;
15
+ default: string;
16
+ choices: {
17
+ value: string;
18
+ description: string;
19
+ }[];
20
+ description: string;
21
+ };
12
22
  trailingComma: {
13
23
  type: "choice";
14
24
  category: string;
@@ -19,5 +29,15 @@ declare const _default: {
19
29
  }[];
20
30
  description: string;
21
31
  };
32
+ experimentalOperatorPosition: {
33
+ type: "choice";
34
+ category: string;
35
+ default: string;
36
+ choices: {
37
+ value: string;
38
+ description: string;
39
+ }[];
40
+ description: string;
41
+ };
22
42
  };
23
43
  export default _default;
package/dist/options.js CHANGED
@@ -250,6 +250,16 @@ export default {
250
250
  ],
251
251
  description: "Prettify from the entrypoint, allowing to use prettier on snippet."
252
252
  },
253
+ arrowParens: {
254
+ type: "choice",
255
+ category: "Java",
256
+ default: "always",
257
+ choices: [
258
+ { value: "always", description: "" },
259
+ { value: "avoid", description: "" }
260
+ ],
261
+ description: "Include parentheses around a sole arrow function parameter."
262
+ },
253
263
  trailingComma: {
254
264
  type: "choice",
255
265
  category: "Java",
@@ -260,5 +270,15 @@ export default {
260
270
  { value: "none", description: "" }
261
271
  ],
262
272
  description: "Print trailing commas wherever possible when multi-line."
273
+ },
274
+ experimentalOperatorPosition: {
275
+ type: "choice",
276
+ category: "Java",
277
+ default: "end",
278
+ choices: [
279
+ { value: "start", description: "" },
280
+ { value: "end", description: "" }
281
+ ],
282
+ description: "Where to print operators when binary expressions wrap lines."
263
283
  }
264
284
  };
@@ -1,8 +1,8 @@
1
1
  declare const _default: {
2
- arrayInitializer(path: import("prettier").AstPath<import("../../../java-parser/api.js").ArrayInitializerCstNode & {
2
+ arrayInitializer(path: import("prettier").AstPath<import("java-parser").ArrayInitializerCstNode & {
3
3
  comments?: import("../comments.js").JavaComment[];
4
4
  }>, print: import("./helpers.js").JavaPrintFn, options: import("./helpers.js").JavaParserOptions): import("prettier/doc.js").builders.Group | "{}";
5
- variableInitializerList(path: import("prettier").AstPath<import("../../../java-parser/api.js").VariableInitializerListCstNode & {
5
+ variableInitializerList(path: import("prettier").AstPath<import("java-parser").VariableInitializerListCstNode & {
6
6
  comments?: import("../comments.js").JavaComment[];
7
7
  }>, print: import("./helpers.js").JavaPrintFn): import("prettier/doc.js").builders.Doc[];
8
8
  };
@@ -1,115 +1,115 @@
1
1
  import { builders } from "prettier/doc";
2
2
  import { printSingle } from "./helpers.js";
3
3
  declare const _default: {
4
- block(path: import("prettier").AstPath<import("../../../java-parser/api.js").BlockCstNode & {
4
+ block(path: import("prettier").AstPath<import("java-parser").BlockCstNode & {
5
5
  comments?: import("../comments.js").JavaComment[];
6
6
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group | "{}" | (string | builders.Indent | builders.Hardline)[];
7
- blockStatements(path: import("prettier").AstPath<import("../../../java-parser/api.js").BlockStatementsCstNode & {
7
+ blockStatements(path: import("prettier").AstPath<import("java-parser").BlockStatementsCstNode & {
8
8
  comments?: import("../comments.js").JavaComment[];
9
9
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
10
10
  blockStatement: typeof printSingle;
11
- localVariableDeclarationStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").LocalVariableDeclarationStatementCstNode & {
11
+ localVariableDeclarationStatement(path: import("prettier").AstPath<import("java-parser").LocalVariableDeclarationStatementCstNode & {
12
12
  comments?: import("../comments.js").JavaComment[];
13
13
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
14
- localVariableDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").LocalVariableDeclarationCstNode & {
14
+ localVariableDeclaration(path: import("prettier").AstPath<import("java-parser").LocalVariableDeclarationCstNode & {
15
15
  comments?: import("../comments.js").JavaComment[];
16
16
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
17
17
  localVariableType: typeof printSingle;
18
18
  statement: typeof printSingle;
19
19
  statementWithoutTrailingSubstatement: typeof printSingle;
20
20
  emptyStatement(): string;
21
- labeledStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").LabeledStatementCstNode & {
21
+ labeledStatement(path: import("prettier").AstPath<import("java-parser").LabeledStatementCstNode & {
22
22
  comments?: import("../comments.js").JavaComment[];
23
23
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
24
- expressionStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").ExpressionStatementCstNode & {
24
+ expressionStatement(path: import("prettier").AstPath<import("java-parser").ExpressionStatementCstNode & {
25
25
  comments?: import("../comments.js").JavaComment[];
26
26
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
27
27
  statementExpression: typeof printSingle;
28
- ifStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").IfStatementCstNode & {
28
+ ifStatement(path: import("prettier").AstPath<import("java-parser").IfStatementCstNode & {
29
29
  comments?: import("../comments.js").JavaComment[];
30
30
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
31
- assertStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").AssertStatementCstNode & {
31
+ assertStatement(path: import("prettier").AstPath<import("java-parser").AssertStatementCstNode & {
32
32
  comments?: import("../comments.js").JavaComment[];
33
33
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
34
- switchStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").SwitchStatementCstNode & {
34
+ switchStatement(path: import("prettier").AstPath<import("java-parser").SwitchStatementCstNode & {
35
35
  comments?: import("../comments.js").JavaComment[];
36
36
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
37
- switchBlock(path: import("prettier").AstPath<import("../../../java-parser/api.js").SwitchBlockCstNode & {
37
+ switchBlock(path: import("prettier").AstPath<import("java-parser").SwitchBlockCstNode & {
38
38
  comments?: import("../comments.js").JavaComment[];
39
39
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group | "{}" | (string | builders.Indent | builders.Hardline)[];
40
- switchBlockStatementGroup(path: import("prettier").AstPath<import("../../../java-parser/api.js").SwitchBlockStatementGroupCstNode & {
40
+ switchBlockStatementGroup(path: import("prettier").AstPath<import("java-parser").SwitchBlockStatementGroupCstNode & {
41
41
  comments?: import("../comments.js").JavaComment[];
42
42
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
43
- switchLabel(path: import("prettier").AstPath<import("../../../java-parser/api.js").SwitchLabelCstNode & {
43
+ switchLabel(path: import("prettier").AstPath<import("java-parser").SwitchLabelCstNode & {
44
44
  comments?: import("../comments.js").JavaComment[];
45
45
  }>, print: import("./helpers.js").JavaPrintFn): "default" | builders.Group | builders.Doc[];
46
- switchRule(path: import("prettier").AstPath<import("../../../java-parser/api.js").SwitchRuleCstNode & {
46
+ switchRule(path: import("prettier").AstPath<import("java-parser").SwitchRuleCstNode & {
47
47
  comments?: import("../comments.js").JavaComment[];
48
48
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
49
49
  caseConstant: typeof printSingle;
50
50
  casePattern: typeof printSingle;
51
- whileStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").WhileStatementCstNode & {
51
+ whileStatement(path: import("prettier").AstPath<import("java-parser").WhileStatementCstNode & {
52
52
  comments?: import("../comments.js").JavaComment[];
53
53
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
54
- doStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").DoStatementCstNode & {
54
+ doStatement(path: import("prettier").AstPath<import("java-parser").DoStatementCstNode & {
55
55
  comments?: import("../comments.js").JavaComment[];
56
56
  }>, print: import("./helpers.js").JavaPrintFn): (string | builders.Group | builders.Doc[])[];
57
57
  forStatement: typeof printSingle;
58
- basicForStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").BasicForStatementCstNode & {
58
+ basicForStatement(path: import("prettier").AstPath<import("java-parser").BasicForStatementCstNode & {
59
59
  comments?: import("../comments.js").JavaComment[];
60
60
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
61
61
  forInit: typeof printSingle;
62
62
  forUpdate: typeof printSingle;
63
- statementExpressionList(path: import("prettier").AstPath<import("../../../java-parser/api.js").StatementExpressionListCstNode & {
63
+ statementExpressionList(path: import("prettier").AstPath<import("java-parser").StatementExpressionListCstNode & {
64
64
  comments?: import("../comments.js").JavaComment[];
65
65
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group;
66
- enhancedForStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").EnhancedForStatementCstNode & {
66
+ enhancedForStatement(path: import("prettier").AstPath<import("java-parser").EnhancedForStatementCstNode & {
67
67
  comments?: import("../comments.js").JavaComment[];
68
68
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group;
69
- breakStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").BreakStatementCstNode & {
69
+ breakStatement(path: import("prettier").AstPath<import("java-parser").BreakStatementCstNode & {
70
70
  comments?: import("../comments.js").JavaComment[];
71
71
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[] | "break;";
72
- continueStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").ContinueStatementCstNode & {
72
+ continueStatement(path: import("prettier").AstPath<import("java-parser").ContinueStatementCstNode & {
73
73
  comments?: import("../comments.js").JavaComment[];
74
74
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[] | "continue;";
75
- returnStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").ReturnStatementCstNode & {
75
+ returnStatement(path: import("prettier").AstPath<import("java-parser").ReturnStatementCstNode & {
76
76
  comments?: import("../comments.js").JavaComment[];
77
77
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
78
- throwStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").ThrowStatementCstNode & {
78
+ throwStatement(path: import("prettier").AstPath<import("java-parser").ThrowStatementCstNode & {
79
79
  comments?: import("../comments.js").JavaComment[];
80
80
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
81
- synchronizedStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").SynchronizedStatementCstNode & {
81
+ synchronizedStatement(path: import("prettier").AstPath<import("java-parser").SynchronizedStatementCstNode & {
82
82
  comments?: import("../comments.js").JavaComment[];
83
83
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
84
- tryStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").TryStatementCstNode & {
84
+ tryStatement(path: import("prettier").AstPath<import("java-parser").TryStatementCstNode & {
85
85
  comments?: import("../comments.js").JavaComment[];
86
86
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc;
87
- catches(path: import("prettier").AstPath<import("../../../java-parser/api.js").CatchesCstNode & {
87
+ catches(path: import("prettier").AstPath<import("java-parser").CatchesCstNode & {
88
88
  comments?: import("../comments.js").JavaComment[];
89
89
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
90
- catchClause(path: import("prettier").AstPath<import("../../../java-parser/api.js").CatchClauseCstNode & {
90
+ catchClause(path: import("prettier").AstPath<import("java-parser").CatchClauseCstNode & {
91
91
  comments?: import("../comments.js").JavaComment[];
92
92
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
93
- catchFormalParameter(path: import("prettier").AstPath<import("../../../java-parser/api.js").CatchFormalParameterCstNode & {
93
+ catchFormalParameter(path: import("prettier").AstPath<import("java-parser").CatchFormalParameterCstNode & {
94
94
  comments?: import("../comments.js").JavaComment[];
95
95
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
96
- catchType(path: import("prettier").AstPath<import("../../../java-parser/api.js").CatchTypeCstNode & {
96
+ catchType(path: import("prettier").AstPath<import("java-parser").CatchTypeCstNode & {
97
97
  comments?: import("../comments.js").JavaComment[];
98
98
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
99
- finally(path: import("prettier").AstPath<import("../../../java-parser/api.js").FinallyCstNode & {
99
+ finally(path: import("prettier").AstPath<import("java-parser").FinallyCstNode & {
100
100
  comments?: import("../comments.js").JavaComment[];
101
101
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
102
- tryWithResourcesStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").TryWithResourcesStatementCstNode & {
102
+ tryWithResourcesStatement(path: import("prettier").AstPath<import("java-parser").TryWithResourcesStatementCstNode & {
103
103
  comments?: import("../comments.js").JavaComment[];
104
104
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
105
- resourceSpecification(path: import("prettier").AstPath<import("../../../java-parser/api.js").ResourceSpecificationCstNode & {
105
+ resourceSpecification(path: import("prettier").AstPath<import("java-parser").ResourceSpecificationCstNode & {
106
106
  comments?: import("../comments.js").JavaComment[];
107
107
  }>, print: import("./helpers.js").JavaPrintFn, options: import("./helpers.js").JavaParserOptions): builders.Group | "()";
108
- resourceList(path: import("prettier").AstPath<import("../../../java-parser/api.js").ResourceListCstNode & {
108
+ resourceList(path: import("prettier").AstPath<import("java-parser").ResourceListCstNode & {
109
109
  comments?: import("../comments.js").JavaComment[];
110
110
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
111
111
  resource: typeof printSingle;
112
- yieldStatement(path: import("prettier").AstPath<import("../../../java-parser/api.js").YieldStatementCstNode & {
112
+ yieldStatement(path: import("prettier").AstPath<import("java-parser").YieldStatementCstNode & {
113
113
  comments?: import("../comments.js").JavaComment[];
114
114
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
115
115
  variableAccess: typeof printSingle;
@@ -1,61 +1,61 @@
1
1
  import { builders } from "prettier/doc";
2
2
  import { printClassPermits, printSingle } from "./helpers.js";
3
3
  declare const _default: {
4
- interfaceDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").InterfaceDeclarationCstNode & {
4
+ interfaceDeclaration(path: import("prettier").AstPath<import("java-parser").InterfaceDeclarationCstNode & {
5
5
  comments?: import("../comments.js").JavaComment[];
6
6
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
7
- normalInterfaceDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").NormalInterfaceDeclarationCstNode & {
7
+ normalInterfaceDeclaration(path: import("prettier").AstPath<import("java-parser").NormalInterfaceDeclarationCstNode & {
8
8
  comments?: import("../comments.js").JavaComment[];
9
9
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
10
10
  interfaceModifier: typeof printSingle;
11
- interfaceExtends(path: import("prettier").AstPath<import("../../../java-parser/api.js").InterfaceExtendsCstNode & {
11
+ interfaceExtends(path: import("prettier").AstPath<import("java-parser").InterfaceExtendsCstNode & {
12
12
  comments?: import("../comments.js").JavaComment[];
13
13
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group;
14
14
  interfacePermits: typeof printClassPermits;
15
- interfaceBody(path: import("prettier").AstPath<import("../../../java-parser/api.js").InterfaceBodyCstNode & {
15
+ interfaceBody(path: import("prettier").AstPath<import("java-parser").InterfaceBodyCstNode & {
16
16
  comments?: import("../comments.js").JavaComment[];
17
17
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group | "{}" | (string | builders.Indent | builders.Hardline)[];
18
- interfaceMemberDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").InterfaceMemberDeclarationCstNode & {
18
+ interfaceMemberDeclaration(path: import("prettier").AstPath<import("java-parser").InterfaceMemberDeclarationCstNode & {
19
19
  comments?: import("../comments.js").JavaComment[];
20
20
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc;
21
- constantDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").ConstantDeclarationCstNode & {
21
+ constantDeclaration(path: import("prettier").AstPath<import("java-parser").ConstantDeclarationCstNode & {
22
22
  comments?: import("../comments.js").JavaComment[];
23
23
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
24
24
  constantModifier: typeof printSingle;
25
- interfaceMethodDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").InterfaceMethodDeclarationCstNode & {
25
+ interfaceMethodDeclaration(path: import("prettier").AstPath<import("java-parser").InterfaceMethodDeclarationCstNode & {
26
26
  comments?: import("../comments.js").JavaComment[];
27
27
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
28
28
  interfaceMethodModifier: typeof printSingle;
29
- annotationInterfaceDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").AnnotationInterfaceDeclarationCstNode & {
29
+ annotationInterfaceDeclaration(path: import("prettier").AstPath<import("java-parser").AnnotationInterfaceDeclarationCstNode & {
30
30
  comments?: import("../comments.js").JavaComment[];
31
31
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
32
- annotationInterfaceBody(path: import("prettier").AstPath<import("../../../java-parser/api.js").AnnotationInterfaceBodyCstNode & {
32
+ annotationInterfaceBody(path: import("prettier").AstPath<import("java-parser").AnnotationInterfaceBodyCstNode & {
33
33
  comments?: import("../comments.js").JavaComment[];
34
34
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group | "{}" | (string | builders.Indent | builders.Hardline)[];
35
- annotationInterfaceMemberDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").AnnotationInterfaceMemberDeclarationCstNode & {
35
+ annotationInterfaceMemberDeclaration(path: import("prettier").AstPath<import("java-parser").AnnotationInterfaceMemberDeclarationCstNode & {
36
36
  comments?: import("../comments.js").JavaComment[];
37
37
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc;
38
- annotationInterfaceElementDeclaration(path: import("prettier").AstPath<import("../../../java-parser/api.js").AnnotationInterfaceElementDeclarationCstNode & {
38
+ annotationInterfaceElementDeclaration(path: import("prettier").AstPath<import("java-parser").AnnotationInterfaceElementDeclarationCstNode & {
39
39
  comments?: import("../comments.js").JavaComment[];
40
40
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
41
41
  annotationInterfaceElementModifier: typeof printSingle;
42
- defaultValue(path: import("prettier").AstPath<import("../../../java-parser/api.js").DefaultValueCstNode & {
42
+ defaultValue(path: import("prettier").AstPath<import("java-parser").DefaultValueCstNode & {
43
43
  comments?: import("../comments.js").JavaComment[];
44
44
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
45
- annotation(path: import("prettier").AstPath<import("../../../java-parser/api.js").AnnotationCstNode & {
45
+ annotation(path: import("prettier").AstPath<import("java-parser").AnnotationCstNode & {
46
46
  comments?: import("../comments.js").JavaComment[];
47
47
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
48
- elementValuePairList(path: import("prettier").AstPath<import("../../../java-parser/api.js").ElementValuePairListCstNode & {
48
+ elementValuePairList(path: import("prettier").AstPath<import("java-parser").ElementValuePairListCstNode & {
49
49
  comments?: import("../comments.js").JavaComment[];
50
50
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
51
- elementValuePair(path: import("prettier").AstPath<import("../../../java-parser/api.js").ElementValuePairCstNode & {
51
+ elementValuePair(path: import("prettier").AstPath<import("java-parser").ElementValuePairCstNode & {
52
52
  comments?: import("../comments.js").JavaComment[];
53
53
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
54
54
  elementValue: typeof printSingle;
55
- elementValueArrayInitializer(path: import("prettier").AstPath<import("../../../java-parser/api.js").ElementValueArrayInitializerCstNode & {
55
+ elementValueArrayInitializer(path: import("prettier").AstPath<import("java-parser").ElementValueArrayInitializerCstNode & {
56
56
  comments?: import("../comments.js").JavaComment[];
57
57
  }>, print: import("./helpers.js").JavaPrintFn, options: import("./helpers.js").JavaParserOptions): builders.Group | "{}";
58
- elementValueList(path: import("prettier").AstPath<import("../../../java-parser/api.js").ElementValueListCstNode & {
58
+ elementValueList(path: import("prettier").AstPath<import("java-parser").ElementValueListCstNode & {
59
59
  comments?: import("../comments.js").JavaComment[];
60
60
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group;
61
61
  };
@@ -1,13 +1,13 @@
1
1
  import { builders } from "prettier/doc";
2
2
  import { printSingle } from "./helpers.js";
3
3
  declare const _default: {
4
- literal(path: import("prettier").AstPath<import("../../../java-parser/api.js").LiteralCstNode & {
4
+ literal(path: import("prettier").AstPath<import("java-parser").LiteralCstNode & {
5
5
  comments?: import("../comments.js").JavaComment[];
6
6
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc;
7
7
  integerLiteral: typeof printSingle;
8
8
  floatingPointLiteral: typeof printSingle;
9
9
  booleanLiteral: typeof printSingle;
10
- shiftOperator(path: import("prettier").AstPath<import("../../../java-parser/api.js").ShiftOperatorCstNode & {
10
+ shiftOperator(path: import("prettier").AstPath<import("java-parser").ShiftOperatorCstNode & {
11
11
  comments?: import("../comments.js").JavaComment[];
12
12
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
13
13
  };
@@ -1,45 +1,45 @@
1
1
  import { builders } from "prettier/doc";
2
2
  import { printClassType, printSingle } from "./helpers.js";
3
3
  declare const _default: {
4
- primitiveType(path: import("prettier").AstPath<import("../../../java-parser/api.js").PrimitiveTypeCstNode & {
4
+ primitiveType(path: import("prettier").AstPath<import("java-parser").PrimitiveTypeCstNode & {
5
5
  comments?: import("../comments.js").JavaComment[];
6
6
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
7
7
  numericType: typeof printSingle;
8
8
  integralType: typeof printSingle;
9
9
  floatingPointType: typeof printSingle;
10
- referenceType(path: import("prettier").AstPath<import("../../../java-parser/api.js").ReferenceTypeCstNode & {
10
+ referenceType(path: import("prettier").AstPath<import("java-parser").ReferenceTypeCstNode & {
11
11
  comments?: import("../comments.js").JavaComment[];
12
12
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
13
13
  classOrInterfaceType: typeof printSingle;
14
14
  classType: typeof printClassType;
15
15
  interfaceType: typeof printSingle;
16
- typeVariable(path: import("prettier").AstPath<import("../../../java-parser/api.js").TypeVariableCstNode & {
16
+ typeVariable(path: import("prettier").AstPath<import("java-parser").TypeVariableCstNode & {
17
17
  comments?: import("../comments.js").JavaComment[];
18
18
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
19
- dims(path: import("prettier").AstPath<import("../../../java-parser/api.js").DimsCstNode & {
19
+ dims(path: import("prettier").AstPath<import("java-parser").DimsCstNode & {
20
20
  comments?: import("../comments.js").JavaComment[];
21
21
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
22
- typeParameter(path: import("prettier").AstPath<import("../../../java-parser/api.js").TypeParameterCstNode & {
22
+ typeParameter(path: import("prettier").AstPath<import("java-parser").TypeParameterCstNode & {
23
23
  comments?: import("../comments.js").JavaComment[];
24
24
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
25
25
  typeParameterModifier: typeof printSingle;
26
- typeBound(path: import("prettier").AstPath<import("../../../java-parser/api.js").TypeBoundCstNode & {
26
+ typeBound(path: import("prettier").AstPath<import("java-parser").TypeBoundCstNode & {
27
27
  comments?: import("../comments.js").JavaComment[];
28
28
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
29
- additionalBound(path: import("prettier").AstPath<import("../../../java-parser/api.js").AdditionalBoundCstNode & {
29
+ additionalBound(path: import("prettier").AstPath<import("java-parser").AdditionalBoundCstNode & {
30
30
  comments?: import("../comments.js").JavaComment[];
31
31
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
32
- typeArguments(path: import("prettier").AstPath<import("../../../java-parser/api.js").TypeArgumentsCstNode & {
32
+ typeArguments(path: import("prettier").AstPath<import("java-parser").TypeArgumentsCstNode & {
33
33
  comments?: import("../comments.js").JavaComment[];
34
34
  }>, print: import("./helpers.js").JavaPrintFn): builders.Group;
35
- typeArgumentList(path: import("prettier").AstPath<import("../../../java-parser/api.js").TypeArgumentListCstNode & {
35
+ typeArgumentList(path: import("prettier").AstPath<import("java-parser").TypeArgumentListCstNode & {
36
36
  comments?: import("../comments.js").JavaComment[];
37
37
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
38
38
  typeArgument: typeof printSingle;
39
- wildcard(path: import("prettier").AstPath<import("../../../java-parser/api.js").WildcardCstNode & {
39
+ wildcard(path: import("prettier").AstPath<import("java-parser").WildcardCstNode & {
40
40
  comments?: import("../comments.js").JavaComment[];
41
41
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
42
- wildcardBounds(path: import("prettier").AstPath<import("../../../java-parser/api.js").WildcardBoundsCstNode & {
42
+ wildcardBounds(path: import("prettier").AstPath<import("java-parser").WildcardBoundsCstNode & {
43
43
  comments?: import("../comments.js").JavaComment[];
44
44
  }>, print: import("./helpers.js").JavaPrintFn): builders.Doc[];
45
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier-plugin-java",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "description": "Prettier Java Plugin",
5
5
  "type": "module",
6
6
  "exports": {
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "prettier": "^3.0.0"
43
43
  },
44
- "gitHead": "0a977f0d2421fd96f3ce776cf8340320939af50a"
44
+ "gitHead": "ec18b2fe1bcecd353d32cdcba7483cd0f88cb8a2"
45
45
  }