dvFindRuntimeAnchor function

int? dvFindRuntimeAnchor(
  1. String? anchor
)

The index a runtime mirror wrote into anchor, or null for one the build wrote -- whose numbering counts the semantics tree's elements, not the paragraphs the page renders, and so is no hint at all.

Implementation

int? dvFindRuntimeAnchor(String? anchor) {
  if (anchor == null || !anchor.startsWith('r')) return null;
  return int.tryParse(anchor.substring(1));
}