prettier-java-next-line 2.11.0 → 2.11.2
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/README.md +18 -0
- package/dist/index.cjs +1203 -1066
- package/dist/index.d.cts +22 -11
- package/dist/index.d.mts +23 -13
- package/dist/index.mjs +1203 -1066
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ParserOptions } from "prettier";
|
|
2
2
|
import "prettier/doc";
|
|
3
|
-
//#region src/node-types.d.ts
|
|
4
3
|
interface Point {
|
|
5
4
|
index: number;
|
|
6
5
|
row: number;
|
|
@@ -768,17 +767,10 @@ interface UnderscorePatternNode extends NamedNodeBase {
|
|
|
768
767
|
interface VoidTypeNode extends NamedNodeBase {
|
|
769
768
|
type: SyntaxType.VoidType;
|
|
770
769
|
}
|
|
771
|
-
//#endregion
|
|
772
|
-
//#region src/printers/helpers.d.ts
|
|
773
770
|
type JavaParserOptions = ParserOptions<SyntaxNode>;
|
|
774
|
-
//#endregion
|
|
775
|
-
//#region src/comments.d.ts
|
|
776
|
-
declare function willPrintOwnComments(path: AstPath<SyntaxNode>): boolean;
|
|
777
771
|
declare function canAttachComment(node: SyntaxNode, ancestors: SyntaxNode[]): boolean;
|
|
778
772
|
declare function handleLineComment(commentNode: CommentNode, _: string, options: JavaParserOptions): boolean;
|
|
779
773
|
declare function handleRemainingComment(commentNode: CommentNode): boolean;
|
|
780
|
-
//#endregion
|
|
781
|
-
//#region src/index.d.ts
|
|
782
774
|
declare const _default: {
|
|
783
775
|
languages: {
|
|
784
776
|
name: string;
|
|
@@ -1575,11 +1567,10 @@ declare const _default: {
|
|
|
1575
1567
|
printers: {
|
|
1576
1568
|
java: {
|
|
1577
1569
|
print(path: import("prettier").AstPath<SyntaxNode>, options: import("prettier").ParserOptions<SyntaxNode>, print: (selector?: string | number | import("prettier").AstPath<SyntaxNode> | (string | number)[] | undefined, args?: unknown) => import("prettier").Doc, args: unknown): import("prettier/doc.js").builders.Doc;
|
|
1578
|
-
embed(path: import("prettier").AstPath<any>, options: import("prettier").Options): ((textToDoc: (text: string, options: import("prettier").Options) => Promise<import("prettier").Doc>) => Promise<import("prettier/doc.js").builders.
|
|
1570
|
+
embed(path: import("prettier").AstPath<any>, options: import("prettier").Options): ((textToDoc: (text: string, options: import("prettier").Options) => Promise<import("prettier").Doc>) => Promise<(string | import("prettier/doc.js").builders.Indent)[]>) | null;
|
|
1579
1571
|
hasPrettierIgnore(path: import("prettier").AstPath<SyntaxNode>): boolean;
|
|
1580
1572
|
canAttachComment: typeof canAttachComment;
|
|
1581
1573
|
isBlockComment(node: SyntaxNode): boolean;
|
|
1582
|
-
willPrintOwnComments: typeof willPrintOwnComments;
|
|
1583
1574
|
printComment(commentPath: import("prettier").AstPath<SyntaxNode>): string | import("prettier/doc.js").builders.Doc[];
|
|
1584
1575
|
getCommentChildNodes(node: SyntaxNode): SyntaxNode[];
|
|
1585
1576
|
handleComments: {
|
|
@@ -1631,6 +1622,26 @@ declare const _default: {
|
|
|
1631
1622
|
}[];
|
|
1632
1623
|
description: string;
|
|
1633
1624
|
};
|
|
1625
|
+
arrayInitializerLayout: {
|
|
1626
|
+
type: "choice";
|
|
1627
|
+
category: string;
|
|
1628
|
+
default: string;
|
|
1629
|
+
choices: {
|
|
1630
|
+
value: string;
|
|
1631
|
+
description: string;
|
|
1632
|
+
}[];
|
|
1633
|
+
description: string;
|
|
1634
|
+
};
|
|
1635
|
+
closingBracket: {
|
|
1636
|
+
type: "choice";
|
|
1637
|
+
category: string;
|
|
1638
|
+
default: string;
|
|
1639
|
+
choices: {
|
|
1640
|
+
value: string;
|
|
1641
|
+
description: string;
|
|
1642
|
+
}[];
|
|
1643
|
+
description: string;
|
|
1644
|
+
};
|
|
1634
1645
|
importOrder: {
|
|
1635
1646
|
type: "string";
|
|
1636
1647
|
category: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { builders
|
|
3
|
-
//#region src/node-types.d.ts
|
|
1
|
+
import { ParserOptions } from "prettier";
|
|
2
|
+
import { builders } from "prettier/doc";
|
|
4
3
|
interface Point {
|
|
5
4
|
index: number;
|
|
6
5
|
row: number;
|
|
@@ -768,17 +767,10 @@ interface UnderscorePatternNode extends NamedNodeBase {
|
|
|
768
767
|
interface VoidTypeNode extends NamedNodeBase {
|
|
769
768
|
type: SyntaxType.VoidType;
|
|
770
769
|
}
|
|
771
|
-
//#endregion
|
|
772
|
-
//#region src/printers/helpers.d.ts
|
|
773
770
|
type JavaParserOptions = ParserOptions<SyntaxNode>;
|
|
774
|
-
//#endregion
|
|
775
|
-
//#region src/comments.d.ts
|
|
776
|
-
declare function willPrintOwnComments(path: AstPath<SyntaxNode>): boolean;
|
|
777
771
|
declare function canAttachComment(node: SyntaxNode, ancestors: SyntaxNode[]): boolean;
|
|
778
772
|
declare function handleLineComment(commentNode: CommentNode, _: string, options: JavaParserOptions): boolean;
|
|
779
773
|
declare function handleRemainingComment(commentNode: CommentNode): boolean;
|
|
780
|
-
//#endregion
|
|
781
|
-
//#region src/index.d.ts
|
|
782
774
|
declare const _default: {
|
|
783
775
|
languages: {
|
|
784
776
|
name: string;
|
|
@@ -1575,11 +1567,10 @@ declare const _default: {
|
|
|
1575
1567
|
printers: {
|
|
1576
1568
|
java: {
|
|
1577
1569
|
print(path: import("prettier").AstPath<SyntaxNode>, options: import("prettier").ParserOptions<SyntaxNode>, print: (selector?: string | number | import("prettier").AstPath<SyntaxNode> | (string | number)[] | undefined, args?: unknown) => import("prettier").Doc, args: unknown): import("prettier/doc.js").builders.Doc;
|
|
1578
|
-
embed(path: import("prettier").AstPath<any>, options: import("prettier").Options): ((textToDoc: (text: string, options: import("prettier").Options) => Promise<import("prettier").Doc>) => Promise<import("prettier/doc.js").builders.
|
|
1570
|
+
embed(path: import("prettier").AstPath<any>, options: import("prettier").Options): ((textToDoc: (text: string, options: import("prettier").Options) => Promise<import("prettier").Doc>) => Promise<(string | import("prettier/doc.js").builders.Indent)[]>) | null;
|
|
1579
1571
|
hasPrettierIgnore(path: import("prettier").AstPath<SyntaxNode>): boolean;
|
|
1580
1572
|
canAttachComment: typeof canAttachComment;
|
|
1581
1573
|
isBlockComment(node: SyntaxNode): boolean;
|
|
1582
|
-
willPrintOwnComments: typeof willPrintOwnComments;
|
|
1583
1574
|
printComment(commentPath: import("prettier").AstPath<SyntaxNode>): string | import("prettier/doc.js").builders.Doc[];
|
|
1584
1575
|
getCommentChildNodes(node: SyntaxNode): SyntaxNode[];
|
|
1585
1576
|
handleComments: {
|
|
@@ -1631,6 +1622,26 @@ declare const _default: {
|
|
|
1631
1622
|
}[];
|
|
1632
1623
|
description: string;
|
|
1633
1624
|
};
|
|
1625
|
+
arrayInitializerLayout: {
|
|
1626
|
+
type: "choice";
|
|
1627
|
+
category: string;
|
|
1628
|
+
default: string;
|
|
1629
|
+
choices: {
|
|
1630
|
+
value: string;
|
|
1631
|
+
description: string;
|
|
1632
|
+
}[];
|
|
1633
|
+
description: string;
|
|
1634
|
+
};
|
|
1635
|
+
closingBracket: {
|
|
1636
|
+
type: "choice";
|
|
1637
|
+
category: string;
|
|
1638
|
+
default: string;
|
|
1639
|
+
choices: {
|
|
1640
|
+
value: string;
|
|
1641
|
+
description: string;
|
|
1642
|
+
}[];
|
|
1643
|
+
description: string;
|
|
1644
|
+
};
|
|
1634
1645
|
importOrder: {
|
|
1635
1646
|
type: "string";
|
|
1636
1647
|
category: string;
|
|
@@ -1642,5 +1653,4 @@ declare const _default: {
|
|
|
1642
1653
|
arrowParens: "avoid";
|
|
1643
1654
|
};
|
|
1644
1655
|
};
|
|
1645
|
-
//#endregion
|
|
1646
1656
|
export { _default as default };
|