isAtBlockEnd static method

bool isAtBlockEnd(
  1. BlockParser parser
)

Gets whether or not parser's current line should end the previous block.

Implementation

static bool isAtBlockEnd(BlockParser parser) {
  if (parser.isDone) {
    return true;
  }
  return parser.blockSyntaxes.any((s) => s.canParse(parser) && s.canEndBlock);
}