Searched refs:BlankLineWanted (Results 1 – 4 of 4) sorted by relevance
72 public abstract static class BlankLineWanted { class in OpsBuilder75 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 …]
19 import com.google.googlejavaformat.OpsBuilder.BlankLineWanted;64 public abstract void blankLine(int k, BlankLineWanted wanted); in blankLine()
31 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()
22 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 …]