getTemplate method
The repeat template (or attribute) at ref, if any.
Implementation
TreeElement? getTemplate(TreeReference ref) {
final node = getTemplatePath(ref);
return node != null && (node.isRepeatable || node.isAttribute)
? node
: null;
}