src/Generic/UTCoref/LinkAllMentions.cpp
/* return the name type for node if there is one, otherwise Symbol() */
/* might pull the name type off a child if we have to
 * - that is adjustForLinkability run in reverse
 *
 * slowing this down is that we call hasNamedAncestor which calls
 *    getName and there are a lot of redundant calls back and forth.  We
 *    can add caching if this is too slow
 */
return the name type for node if there is one, otherwise Symbol()
might pull the name type off a child if we have to
- that is adjustForLinkability run in reverse

slowing this down is that we call hasNamedAncestor which calls
getName and there are a lot of redundant calls back and forth.  We
can add caching if this is too slow
return the name type for node if there is one otherwise Symbol () might pull the name type off a child if we have to - that is adjustForLinkability run in reverse slowing this down is that we call hasNamedAncestor which calls getName and there are a lot of redundant calls back and forth . We can add caching if this is too slow
Symbol LinkAllMentions::getName(const SynNode &node) const {
   if (cache.find(&node) == cache.end()) {
	  return _getName(node);
   }
   return (*cache.find(&node)).second.name;
}
Symbol LinkAllMentions :: getName ( const SynNode & node ) const { if ( cache . find ( & node ) == cache . end ( ) ) { return _getName ( node ) ; } return ( * cache . find ( & node ) ) . second . name ; }
return the name type for node if there is one, otherwise Symbol()
might pull the name type off a child if we have to
 - that is adjustForLinkability run in reverse
return the name type for node if there is one otherwise Symbol () might pull the name type off a child if we have to - that is adjustForLinkability run in reverse