Пример #1
0
    public AstNode visit(Whitespace ws) {
      if (!ws.getHasNewline()) return ws;

      NodeList result = closeRemainingTags();
      if (result == null) return ws;

      state = State.None;
      result.add(ws);
      return result;
    }
Пример #2
0
 public void visit(Whitespace ws) {
   if (ws.getHasNewline()) finishLine();
 }