Searched refs:Declarable (Results 1 – 12 of 12) sorted by relevance
55 class Declarable {57 virtual ~Declarable() = default;118 explicit Declarable(Kind kind) : kind_(kind) {} in Declarable() function129 static x* cast(Declarable* declarable) { \133 static const x* cast(const Declarable* declarable) { \138 static x* DynamicCast(Declarable* declarable) { \143 static const x* DynamicCast(const Declarable* declarable) { \173 class Scope : public Declarable {176 explicit Scope(Declarable::Kind kind) : Declarable(kind) {} in DECLARE_DECLARABLE_BOILERPLATE()178 std::vector<Declarable*> LookupShallow(const QualifiedName& name) { in LookupShallow()[all …]
26 std::vector<T*> FilterDeclarables(const std::vector<Declarable*> list) { in FilterDeclarables()28 for (Declarable* declarable : list) { in FilterDeclarables()47 static std::vector<Declarable*> TryLookup(const QualifiedName& name) { in TryLookup()51 static std::vector<Declarable*> TryLookupShallow(const QualifiedName& name) { in TryLookupShallow()60 static std::vector<Declarable*> Lookup(const QualifiedName& name) { in Lookup()61 std::vector<Declarable*> d = TryLookup(name); in Lookup()68 static std::vector<Declarable*> LookupGlobalScope(const QualifiedName& name);
85 const Declarable* type_decl);87 const Declarable* type_decl);100 std::unordered_map<const Declarable*, kythe_entity_t> types_;
93 std::vector<Declarable*> Scope::Lookup(const QualifiedName& name) { in Lookup()99 std::vector<Declarable*> result; in Lookup()103 for (Declarable* declarable : LookupShallow(name)) { in Lookup()
35 static const std::vector<std::unique_ptr<Declarable>>& AllDeclarables() { in AllDeclarables()128 std::vector<std::unique_ptr<Declarable>> declarables_;
161 kythe_entity_t KytheData::AddTypeDefinition(const Declarable* type_decl) { in AddTypeDefinition()176 const Declarable* type_decl) { in AddTypeUse()
37 const std::vector<std::unique_ptr<Declarable>>& all_declarables = in PrepareAllDeclarableSymbols()
33 using Symbols = std::vector<Declarable*>;
48 std::vector<Declarable*> Declarations::LookupGlobalScope( in LookupGlobalScope()50 std::vector<Declarable*> d = in LookupGlobalScope()
2018 std::vector<Declarable*> overloads; in LookupCallable()3463 const std::vector<std::unique_ptr<Declarable>>& all_declarables = in VisitAllDeclarables()3482 Visit(static_cast<Declarable*>(cc_macros[i].first), cc_macros[i].second); in VisitAllDeclarables()3493 Visit(static_cast<Declarable*>(cc_macros[i].first), cc_macros[i].second); in VisitAllDeclarables()3501 void ImplementationVisitor::Visit(Declarable* declarable, in Visit()3513 case Declarable::kExternMacro: in Visit()3515 case Declarable::kTorqueMacro: in Visit()3517 case Declarable::kMethod: in Visit()3519 case Declarable::kBuiltin: in Visit()3521 case Declarable::kTypeAlias: in Visit()[all …]
407 Declarable* declarable = all_declarables[i].get(); in ResolvePredeclarations()
532 void Visit(Declarable* delarable, base::Optional<SourceId> file = {});