prettier-java-next-line 2.11.1 → 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/dist/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
- import { AstPath, ParserOptions } from "prettier";
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.Doc[]>) | null;
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: {
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import { AstPath, ParserOptions } from "prettier";
2
- import { builders as builders$1 } from "prettier/doc";
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.Doc[]>) | null;
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: {
@@ -1662,5 +1653,4 @@ declare const _default: {
1662
1653
  arrowParens: "avoid";
1663
1654
  };
1664
1655
  };
1665
- //#endregion
1666
1656
  export { _default as default };