collectPCOffsets function

Iterable<PCOffset> collectPCOffsets(
  1. Iterable<String> lines
)

The PCOffsets for frames of the non-symbolic stack traces in lines.

Implementation

Iterable<PCOffset> collectPCOffsets(Iterable<String> lines) sync* {
  final header = StackTraceHeader();
  for (var line in lines) {
    if (header.tryParseHeaderLine(line)) {
      continue;
    }
    final match = _traceLineRE.firstMatch(line);
    final offset = _retrievePCOffset(header, match);
    if (offset != null) yield offset;
  }
}