Lines Matching refs:decl
309 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension)
311 CHECK_NOT_NULL(decl);
312 decls_.push_back(decl);
313 return AddBinding(allocator, FindLocal(decl->Name()), decl, extension);
316 bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension)
318 decls_.push_back(decl);
319 return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension);
1257 auto decl = currentVariable->Declaration();
1258 if (decl->IsClassDecl() && decl->AsClassDecl()->IsDeclare()) {
1259 newDecl->AsFunctionDecl()->SetDeclClass(decl->AsClassDecl());
1294 auto decl = currentVariable->Declaration();
1295 if (newDecl->AsClassDecl()->IsDeclare() && decl->IsFunctionDecl()) {
1296 decl->AsFunctionDecl()->SetDeclClass(newDecl->AsClassDecl());
1356 T *decl = allocator->New<T>(std::forward<Args>(args)...);
1357 decls_.push_back(decl);
1359 return decl;
1369 auto *decl = allocator->New<DeclType>(name);
1370 auto *variable = allocator->New<VariableType>(decl, flags);
1371 CHECK_NOT_NULL(decl);
1374 decls_.push_back(decl);
1375 bindings_.insert({decl->Name(), variable});
1384 auto *decl = allocator->New<DeclType>(name);
1385 CHECK_NOT_NULL(decl);
1386 auto *variable = allocator->New<VariableType>(decl, flags);
1388 decl->BindNode(node);