Lines Matching refs:newDecl

350     virtual bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
456 bool AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
595 bool AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl);
598 bool AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
602 bool AddClass(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl);
605 bool AddTSBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags);
608 bool AddTSBinding(ArenaAllocator *allocator, Decl *newDecl, VariableFlags flags);
611 bool AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl);
655 bool AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags);
688 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
791 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
846 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
881 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
884 return AddLocal(allocator, currentVariable, newDecl, extension);
951 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
966 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
981 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
984 return AddLocal(allocator, currentVariable, newDecl, extension);
1000 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1003 return AddLocal(allocator, currentVariable, newDecl, extension);
1022 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1064 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1191 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1218 bool VariableScope::AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl)
1221 flags |= DeclFlagToVariableFlag(newDecl->Flags());
1224 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)});
1230 currentVariable->Reset(newDecl, flags);
1246 bool VariableScope::AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1250 flags |= DeclFlagToVariableFlag(newDecl->Flags());
1253 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)});
1259 newDecl->AsFunctionDecl()->SetDeclClass(decl->AsClassDecl());
1260 bindings_[newDecl->Name()] = allocator->New<T>(newDecl, flags);
1271 currentVariable->Reset(newDecl, flags);
1283 bool VariableScope::AddClass(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl)
1285 ASSERT(newDecl->IsClassDecl());
1287 VariableFlags flags = DeclFlagToVariableFlag(newDecl->Flags());
1290 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)});
1295 if (newDecl->AsClassDecl()->IsDeclare() && decl->IsFunctionDecl()) {
1296 decl->AsFunctionDecl()->SetDeclClass(newDecl->AsClassDecl());
1304 bool VariableScope::AddTSBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl,
1309 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)});
1314 bool VariableScope::AddTSBinding(ArenaAllocator *allocator, Decl *newDecl, VariableFlags flags)
1319 newDecl->Name(), allocator->New<T>(newDecl, flags));
1323 newDecl->Name(), allocator->New<T>(newDecl, flags));
1327 newDecl->Name(), allocator->New<T>(newDecl, flags));
1331 newDecl->Name(), allocator->New<T>(newDecl, flags));
1341 bool VariableScope::AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl)
1343 VariableFlags flags = DeclFlagToVariableFlag(newDecl->Flags());
1349 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)});