BlockParser constructor

BlockParser(
  1. List<Line> lines,
  2. Document document, {
  3. int offset = 0,
})

Implementation

BlockParser(this.lines, this.document, {
  this.offset = 0,
}): blockSyntaxes = <BlockSyntax>[] {
  blockSyntaxes.addAll(document.blockSyntaxes);

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