Lines Matching refs:ref
59 void Visit(Reference* ref) override { in Visit() argument
60 if (!ReferenceLinker::LinkReference(callsite_, ref, context_, symbols_, package_decls_)) { in Visit()
178 bool IsSymbolVisible(const SymbolTable::Symbol& symbol, const Reference& ref, in IsSymbolVisible() argument
180 if (symbol.is_public || ref.private_reference) { in IsSymbolVisible()
184 if (ref.name) { in IsSymbolVisible()
185 const ResourceName& name = ref.name.value(); in IsSymbolVisible()
196 if (ref.id && symbol.id) { in IsSymbolVisible()
197 return ref.id.value().package_id() == symbol.id.value().package_id(); in IsSymbolVisible()
271 void ReferenceLinker::WriteResourceName(const Reference& ref, const CallSite& callsite, in WriteResourceName() argument
274 if (!ref.name) { in WriteResourceName()
275 *out_msg << ref.id.value(); in WriteResourceName()
279 *out_msg << ref.name.value(); in WriteResourceName()
281 Reference fully_qualified = ref; in WriteResourceName()
289 if (full_name != ref.name.value()) { in WriteResourceName()
294 void ReferenceLinker::WriteAttributeName(const Reference& ref, const CallSite& callsite, in WriteAttributeName() argument
298 if (!ref.name) { in WriteAttributeName()
299 *out_msg << ref.id.value(); in WriteAttributeName()
303 const ResourceName& ref_name = ref.name.value(); in WriteAttributeName()
311 Reference fully_qualified = ref; in WriteAttributeName()
319 if (full_name != ref.name.value()) { in WriteAttributeName()