Home
last modified time | relevance | path

Searched refs:BlankLineWanted (Results 1 – 4 of 4) sorted by relevance

/external/google-java-format/core/src/main/java/com/google/googlejavaformat/
DOpsBuilder.java72 public abstract static class BlankLineWanted { class in OpsBuilder
75 public static final BlankLineWanted YES = new SimpleBlankLine(Optional.of(true));
78 public static final BlankLineWanted NO = new SimpleBlankLine(Optional.of(false));
84 public static final BlankLineWanted PRESERVE =
91 public abstract BlankLineWanted merge(BlankLineWanted wanted); in merge()
94 public static BlankLineWanted conditional(BreakTag breakTag) { in conditional()
98 private static final class SimpleBlankLine extends BlankLineWanted {
111 public BlankLineWanted merge(BlankLineWanted other) { in merge()
116 private static final class ConditionalBlankLine extends BlankLineWanted {
135 public BlankLineWanted merge(BlankLineWanted other) { in merge()
[all …]
DOutput.java19 import com.google.googlejavaformat.OpsBuilder.BlankLineWanted;
64 public abstract void blankLine(int k, BlankLineWanted wanted); in blankLine()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DJavaOutput.java31 import com.google.googlejavaformat.OpsBuilder.BlankLineWanted;
52 private final Map<Integer, BlankLineWanted> blankLines = new HashMap<>(); // Info on blank lines.
77 public void blankLine(int k, BlankLineWanted wanted) { in blankLine()
112 BlankLineWanted wanted = blankLines.getOrDefault(lastK, BlankLineWanted.NO); in append()
DJavaInputAstVisitor.java22 import static com.google.googlejavaformat.OpsBuilder.BlankLineWanted.PRESERVE;
23 import static com.google.googlejavaformat.OpsBuilder.BlankLineWanted.YES;
68 import com.google.googlejavaformat.OpsBuilder.BlankLineWanted;
354 builder.blankLineWanted(BlankLineWanted.YES); in visitCompilationUnit()
372 builder.blankLineWanted(BlankLineWanted.YES); in visitCompilationUnit()
857 builder.blankLineWanted(BlankLineWanted.NO); in visitEnumDeclaration()
862 builder.blankLineWanted(BlankLineWanted.NO); in visitEnumDeclaration()
868 builder.blankLineWanted(BlankLineWanted.NO); in visitEnumDeclaration()
876 builder.blankLineWanted(BlankLineWanted.PRESERVE); in visitEnumDeclaration()
898 builder.blankLineWanted(BlankLineWanted.NO); in visitEnumDeclaration()
[all …]