Element element = node.getElement();
if (element != null) {
// tag
{
Token tagToken = node.getTagToken();
Location location = createLocationForToken(tagToken);
store.recordRelationship(element, IndexConstants.ANGULAR_REFERENCE, location);
}
// maybe add closing tag range
Token closingTag = node.getClosingTag();
if (closingTag != null) {
Location location = createLocationForToken(closingTag);
store.recordRelationship(element, IndexConstants.ANGULAR_CLOSING_TAG_REFERENCE, location);
}
}
return super.visitXmlTagNode(node);
}