parseChildLines method

List<String?> parseChildLines(
  1. BlockParser parser
)
inherited

Implementation

List<String?> parseChildLines(BlockParser parser) {
  // Grab all of the lines that form the block element.
  var childLines = <String?>[];

  while (!parser.isDone) {
    var match = pattern.firstMatch(parser.current);
    if (match == null) break;
    childLines.add(match[1]);
    parser.advance();
  }

  return childLines;
}