@Test public void process() { LineSequence lineSequence = LineSequence.create("\n2"); new EmptyBlock().process(ProcessingContext.builder().build(), null, lineSequence); assertEquals("2", lineSequence.getCurrentLine().getText()); }
@Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { while (currentLineIsEmpty(lineSequence)) { lineSequence.advance(); } }
EmptyBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { while (currentLineIsEmpty(lineSequence)) { lineSequence.advance(); } } }
EmptyBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { while (currentLineIsEmpty(lineSequence)) { lineSequence.advance(); } }  }
EmptyBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { while (currentLineIsEmpty(lineSequence)) { lineSequence.advance(); } }  @Override void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence); @Override boolean canStart(LineSequence lineSequence); }
EmptyBlock extends SourceBlock { @Override public void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence) { while (currentLineIsEmpty(lineSequence)) { lineSequence.advance(); } }  @Override void process(ProcessingContext context, DocumentBuilder builder, LineSequence lineSequence); @Override boolean canStart(LineSequence lineSequence);  }