BlockParser constructor

BlockParser(
  1. List<Line> lines,
  2. Document document
)

Implementation

BlockParser(this.lines, this.document) {
  blockSyntaxes.addAll(document.blockSyntaxes);

  if (document.withDefaultBlockSyntaxes) {
    blockSyntaxes.addAll(standardBlockSyntaxes);
  } else {
    blockSyntaxes.add(const DummyBlockSyntax());
  }
}