Lines Matching defs:name
47 static std::vector<Declarable*> TryLookup(const QualifiedName& name) {
48 return CurrentScope::Get()->Lookup(name);
51 static std::vector<Declarable*> TryLookupShallow(const QualifiedName& name) {
52 return CurrentScope::Get()->LookupShallow(name);
56 static std::vector<T*> TryLookup(const QualifiedName& name) {
57 return FilterDeclarables<T>(TryLookup(name));
60 static std::vector<Declarable*> Lookup(const QualifiedName& name) {
61 std::vector<Declarable*> d = TryLookup(name);
63 ReportError("cannot find \"", name, "\"");
68 static std::vector<Declarable*> LookupGlobalScope(const QualifiedName& name);
70 static const TypeAlias* LookupTypeAlias(const QualifiedName& name);
71 static const Type* LookupType(const QualifiedName& name);
73 static base::Optional<const Type*> TryLookupType(const QualifiedName& name);
74 static const Type* LookupGlobalType(const QualifiedName& name);
79 static Value* LookupValue(const QualifiedName& name);
81 static Macro* TryLookupMacro(const std::string& name,
83 static base::Optional<Builtin*> TryLookupBuiltin(const QualifiedName& name);
85 static std::vector<GenericCallable*> LookupGeneric(const std::string& name);
86 static GenericCallable* LookupUniqueGeneric(const QualifiedName& name);
88 static GenericType* LookupUniqueGenericType(const QualifiedName& name);
89 static GenericType* LookupGlobalUniqueGenericType(const std::string& name);
91 const QualifiedName& name);
93 static Namespace* DeclareNamespace(const std::string& name);
94 static TypeAlias* DeclareType(const Identifier* name, const Type* type);
96 static TypeAlias* PredeclareTypeAlias(const Identifier* name,
105 static ExternMacro* CreateExternMacro(std::string name,
109 const std::string& name, bool accessible_from_csa,
115 const std::string& name, Signature signature,
118 static Intrinsic* CreateIntrinsic(const std::string& name,
121 static Intrinsic* DeclareIntrinsic(const std::string& name,
128 static Builtin* DeclareBuiltin(const std::string& name, Builtin::Kind kind,
132 static RuntimeFunction* DeclareRuntimeFunction(const std::string& name,
135 static ExternConstant* DeclareExternConstant(Identifier* name,
138 static NamespaceConstant* DeclareNamespaceConstant(Identifier* name,
143 const std::string& name, GenericCallableDeclaration* ast_node);
144 static GenericType* DeclareGenericType(const std::string& name,
148 static T* Declare(const std::string& name, T* d) {
149 CurrentScope::Get()->AddDeclarable(name, d);
153 static T* Declare(const std::string& name, std::unique_ptr<T> d) {
154 return CurrentScope::Get()->AddDeclarable(name,
157 static Macro* DeclareOperator(const std::string& name, Macro* m);
160 const std::string& name, const TypeVector& specialized_types);