Lines Matching refs:decl

223     void ReplaceConstReferenceWithInitialization(const ir::Identifier *ident, const Decl *decl);
292 T *decl = Allocator()->New<T>(std::forward<Args>(args)...);
293 if (decl == nullptr) {
294 throw Error(ErrorType::GENERIC, "Unsuccessful allocation in adding ts decl during binder");
296 decl->SetDeclare(isDeclare);
298 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) {
299 AddDeclarationName(decl->Name());
300 return decl;
303 ThrowRedeclaration(pos, decl->Name());
309 T *decl = Allocator()->New<T>(std::forward<Args>(args)...);
310 if (decl == nullptr) {
311 throw Error(ErrorType::GENERIC, "Unsuccessful allocation in adding ts decl during binder");
313 decl->AddFlag(flag);
314 decl->SetDeclare(isDeclare);
316 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) {
317 AddDeclarationName(decl->Name());
318 return decl;
321 ThrowRedeclaration(pos, decl->Name());
327 T *decl = Allocator()->New<T>(std::forward<Args>(args)...);
328 if (decl == nullptr) {
329 throw Error(ErrorType::GENERIC, "Unsuccessful allocation in adding decl during binder");
331 decl->SetDeclare(isDeclare);
333 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) {
334 AddDeclarationName(decl->Name(), decl->Type());
335 return decl;
338 ThrowRedeclaration(pos, decl->Name());
344 T *decl = Allocator()->New<T>(std::forward<Args>(args)...);
345 if (decl == nullptr) {
346 throw Error(ErrorType::GENERIC, "Unsuccessful allocation in adding decl during binder");
348 decl->AddFlag(flag);
349 decl->SetDeclare(isDeclare);
351 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) {
352 AddDeclarationName(decl->Name(), decl->Type());
353 return decl;
356 ThrowRedeclaration(pos, decl->Name());