finish method

List<DefinedLine> finish()

What is still open at the end of the text.

Implementation

List<DefinedLine> finish() {
  if (_defining != null) _endDefine();
  final out = <DefinedLine>[];
  while (_uses.isNotEmpty) {
    out.addAll(_uses.removeLast().close());
  }
  return out;
}