• Home
  • Raw
  • Download

Lines Matching refs:Declarable

55 class Declarable {
57 virtual ~Declarable() = default;
118 explicit Declarable(Kind kind) : kind_(kind) {} in Declarable() function
129 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()
181 for (Declarable* declarable : in LookupShallow()
195 std::vector<Declarable*> Lookup(const QualifiedName& name);
210 std::unordered_map<std::string, std::vector<Declarable*>> declarations_;
222 : Scope(Declarable::kNamespace), name_(name) {} in DECLARE_DECLARABLE_BOILERPLATE()
241 class Value : public Declarable {
256 : Declarable(kind), type_(type), name_(name) {} in Value()
276 : Value(Declarable::kNamespaceConstant, type, constant_name), in NamespaceConstant()
291 : Value(Declarable::kExternConstant, type, name) {
353 Callable(Declarable::Kind kind, std::string external_name, in Callable()
393 Macro(Declarable::Kind kind, std::string external_name, in Macro()
430 : Macro(Declarable::kExternMacro, name, name, std::move(signature), in ExternMacro()
455 TorqueMacro(Declarable::Kind kind, std::string external_name, in TorqueMacro()
470 : TorqueMacro(Declarable::kTorqueMacro, std::move(external_name), in TorqueMacro()
492 : TorqueMacro(Declarable::kMethod, std::move(external_name), in Method()
512 : Callable(Declarable::kBuiltin, std::move(external_name), in Builtin()
526 : Callable(Declarable::kRuntimeFunction, name, name, signature,
537 : Callable(Declarable::kIntrinsic, name, name, signature, base::nullopt) {
567 class GenericDeclarable : public Declarable {
606 GenericDeclarable(Declarable::Kind kind, const std::string& name, in GenericDeclarable()
608 : Declarable(kind), in GenericDeclarable()
637 Declarable::kGenericCallable, name, generic_declaration) {} in GenericCallable()
650 Declarable::kGenericType, name, generic_declaration) {}
653 class TypeAlias : public Declarable {
674 : Declarable(Declarable::kTypeAlias), in Declarable() function
681 : Declarable(Declarable::kTypeAlias), in Declarable() function