Lines Matching defs:currentVariable

423 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
458 if (currentVariable) {
472 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags)
477 if (currentVariable) {
530 [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl,
582 bool FunctionScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
587 return AddVar<LocalVariable>(allocator, currentVariable, newDecl);
590 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension);
593 return AddClass<LocalVariable>(allocator, currentVariable, newDecl);
605 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
608 return AddLexical<LocalVariable>(allocator, currentVariable, newDecl);
665 bool TSEnumScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
700 bool GlobalScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
705 return AddVar<GlobalVariable>(allocator, currentVariable, newDecl);
708 return AddFunction<GlobalVariable>(allocator, currentVariable, newDecl, extension);
711 return AddClass<LocalVariable>(allocator, currentVariable, newDecl);
723 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
726 return AddLexical<LocalVariable>(allocator, currentVariable, newDecl);
762 bool ModuleScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
774 AddVar<ModuleVariable>(allocator, currentVariable, newDecl) :
775 AddVar<LocalVariable>(allocator, currentVariable, newDecl);
778 if (currentVariable) {
779 auto decl = currentVariable->Declaration();
785 AddFunction<ModuleVariable>(allocator, currentVariable, newDecl, extension) :
786 AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension);
790 AddClass<ModuleVariable>(allocator, currentVariable, newDecl) :
791 AddClass<LocalVariable>(allocator, currentVariable, newDecl);
803 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
806 if (currentVariable) {
810 AddLexical<ModuleVariable>(allocator, currentVariable, newDecl) :
811 AddLexical<LocalVariable>(allocator, currentVariable, newDecl);
823 bool LocalScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
826 return AddLocal(allocator, currentVariable, newDecl, extension);
843 bool CatchParamScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
846 return AddParam(allocator, currentVariable, newDecl, VariableFlags::INITIALIZED);
849 bool CatchScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
856 return AddLocal(allocator, currentVariable, newDecl, extension);