parseLines method

List<Node> parseLines()

Implementation

List<Node> parseLines() {
  final blocks = <Node>[];
  while (!isDone) {
    for (final syntax in blockSyntaxes) {
      if (syntax.canParse(this)) {
        final block = syntax.parse(this);
        if (block != null) {
          blocks.add(block);
        }
        break;
      }
    }
  }

  return blocks;
}