nodes method
Return a source range that covers all of the given nodes
(that is, from
the start of the first node to the end of the last node.
Implementation
SourceRange nodes(List<AstNode> nodes) {
if (nodes.isEmpty) {
return SourceRange(0, 0);
}
return startEnd(nodes.first, nodes.last);
}