Lines Matching full:reference
46 * to the reference object.
62 void Visit(Reference* ref) override { in Visit()
84 // Transform the attribute reference so that it is using the fully in Visit()
86 // name. This will also mark the reference as being able to see private in Visit()
88 // there was a '*' in the reference or if the package came from the in Visit()
90 Reference transformed_reference = entry.key; in Visit()
108 // Link/resolve the final value (mostly if it's a reference). in Visit()
200 * The symbol is visible if it is public, or if the reference to it is
205 const Reference& ref, in IsSymbolVisible()
219 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbol(const Reference& reference, in ResolveSymbol() argument
221 if (reference.name) { in ResolveSymbol()
222 return symbols->FindByName(reference.name.value()); in ResolveSymbol()
223 } else if (reference.id) { in ResolveSymbol()
224 return symbols->FindById(reference.id.value()); in ResolveSymbol()
230 const SymbolTable::Symbol* ReferenceLinker::ResolveSymbolCheckVisibility(const Reference& reference, in ResolveSymbolCheckVisibility() argument
234 const SymbolTable::Symbol* symbol = ResolveSymbol(reference, symbols); in ResolveSymbolCheckVisibility()
240 if (!IsSymbolVisible(*symbol, reference, callsite)) { in ResolveSymbolCheckVisibility()
248 const Reference& reference, const CallSite& callsite, SymbolTable* symbols, in ResolveAttributeCheckVisibility() argument
251 ResolveSymbolCheckVisibility(reference, callsite, symbols, out_error); in ResolveAttributeCheckVisibility()
263 Maybe<xml::AaptAttribute> ReferenceLinker::CompileXmlAttribute(const Reference& reference, in CompileXmlAttribute() argument
268 ResolveAttributeCheckVisibility(reference, callsite, symbols, out_error); in CompileXmlAttribute()
281 const Reference& orig, in WriteResourceName()
282 const Reference& transformed) { in WriteResourceName()
295 bool ReferenceLinker::LinkReference(const CallSite& callsite, Reference* reference, in LinkReference() argument
298 CHECK(reference != nullptr); in LinkReference()
299 if (!reference->name && !reference->id) { in LinkReference()
304 Reference transformed_reference = *reference; in LinkReference()
314 reference->id = s->id; in LinkReference()
318 DiagMessage error_msg(reference->GetSource()); in LinkReference()
320 WriteResourceName(&error_msg, *reference, transformed_reference); in LinkReference()