Lines Matching defs:currentVariable
272 Variable *Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
306 if (currentVariable != nullptr) {
382 Variable *ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags)
386 if (currentVariable != nullptr) {
442 [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl,
448 Variable *FunctionScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
455 return AddVar<LocalVariable>(allocator, currentVariable, newDecl);
458 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension);
464 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::ENUM_LITERAL);
481 var = typeAliasScope_->AddBinding(allocator, currentVariable, newDecl, extension);
485 return AddLexical<LocalVariable>(allocator, currentVariable, newDecl);
497 Variable *GlobalScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
502 return AddVar<GlobalVariable>(allocator, currentVariable, newDecl);
505 return AddFunction<GlobalVariable>(allocator, currentVariable, newDecl, extension);
511 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::ENUM_LITERAL);
514 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
517 return AddLexical<LocalVariable>(allocator, currentVariable, newDecl);
595 Variable *ModuleScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
600 return AddVar<LocalVariable>(allocator, currentVariable, newDecl);
603 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension);
609 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::ENUM_LITERAL);
612 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
615 return AddImport(allocator, currentVariable, newDecl);
621 return AddLexical<LocalVariable>(allocator, currentVariable, newDecl);
654 Variable *ModuleScope::AddImport(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl)
656 if (currentVariable != nullptr && currentVariable->Declaration()->Type() != DeclType::VAR) {
758 Variable *LocalScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
761 return AddLocal(allocator, currentVariable, newDecl, extension);
764 Variable *LocalScopeWithTypeAlias::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
769 auto *var = typeAliasScope_->AddBinding(allocator, currentVariable, newDecl, extension);
778 return AddLocal(allocator, currentVariable, newDecl, extension);
907 Variable *ClassScope::AddBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl,
1011 Variable *CatchParamScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1014 return AddParam(allocator, currentVariable, newDecl, VariableFlags::INITIALIZED);
1017 Variable *CatchScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
1027 auto *var = TypeAliasScope()->AddBinding(allocator, currentVariable, newDecl, extension);
1037 return AddLocal(allocator, currentVariable, newDecl, extension);