Implements ValueBuilder.
Definition at line 2493 of file cmt_symbol.cxx.
References Use::discarded, SymbolValueList::discarded, Symbol::name, cmt_vector< SymbolValueList >::size(), SymbolValueList::use, and Symbol::value_lists.
02495 {
02496
02497 static int level = 0;
02498
02499 static const cmt_string empty = "";
02500
02501 if (symbol.value_lists.size () > 0)
02502 {
02503 const SymbolValueList& value_list = symbol.value_lists[0];
02504
02505 if (value_list.discarded) return (empty);
02506
02507 if ((value_list.use != 0) &&
02508 (value_list.use->discarded)) return (empty);
02509 }
02510
02511 return (symbol.name);
02512 }
|