Lines Matching defs:Symbol
53 struct Symbol {
54 Symbol() : Symbol(Maybe<ResourceId>{}) {
57 Symbol(const Maybe<ResourceId>& i) : Symbol(i, nullptr) {
60 Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr) :
61 Symbol(i, attr, false) {
64 Symbol(const Maybe<ResourceId>& i, const std::shared_ptr<Attribute>& attr, bool pub) :
68 Symbol(const Symbol&) = default;
69 Symbol(Symbol&&) = default;
70 Symbol& operator=(const Symbol&) = default;
71 Symbol& operator=(Symbol&&) = default;
88 const Symbol* findByName(const ResourceName& name);
89 const Symbol* findById(ResourceId id);
95 const Symbol* findByReference(const Reference& ref);
102 android::LruCache<ResourceName, std::shared_ptr<Symbol>> mCache;
103 android::LruCache<ResourceId, std::shared_ptr<Symbol>> mIdCache;
109 * An interface that a symbol source implements in order to surface symbol information
110 * to the symbol table.
116 virtual std::unique_ptr<SymbolTable::Symbol> findByName(const ResourceName& name) = 0;
117 virtual std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) = 0;
122 virtual std::unique_ptr<SymbolTable::Symbol> findByReference(const Reference& ref) {
142 std::unique_ptr<SymbolTable::Symbol> findByName(const ResourceName& name) override;
144 std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) override {
160 std::unique_ptr<SymbolTable::Symbol> findByName(const ResourceName& name) override;
161 std::unique_ptr<SymbolTable::Symbol> findById(ResourceId id) override;
162 std::unique_ptr<SymbolTable::Symbol> findByReference(const Reference& ref) override;