Lines Matching defs:currentScope
232 auto currentScope = scope_;
233 while (currentScope != nullptr) {
234 if (currentScope->FindLocal(localName, ResolveBindingOptions::ALL) != nullptr ||
235 (currentScope->IsTSModuleScope() && (currentScope->InLocalTSBindings(localName) ||
236 currentScope->AsTSModuleScope()->InExportBindings(localName)))) {
239 currentScope = currentScope->Parent();
241 if (currentScope != nullptr) {
1051 auto currentScope = scope;
1052 while (currentScope != nullptr) {
1060 fn(currentScope->FindLocalTSVariable<binder::TSBindingType::NAMESPACE>(name));
1061 fn(currentScope->FindLocalTSVariable<binder::TSBindingType::ENUMLITERAL>(name));
1062 fn(currentScope->FindLocalTSVariable<binder::TSBindingType::IMPORT_EQUALS>(name));
1063 if (currentScope->IsTSModuleScope()) {
1064 fn(currentScope->AsTSModuleScope()->FindExportTSVariable<binder::TSBindingType::NAMESPACE>(name));
1065 fn(currentScope->AsTSModuleScope()->FindExportTSVariable<binder::TSBindingType::ENUMLITERAL>(name));
1066 fn(currentScope->AsTSModuleScope()->FindExportTSVariable<binder::TSBindingType::IMPORT_EQUALS>(name));
1070 if (currentScope->FindLocal(name, bindingOptions_) != nullptr) {
1079 currentScope = currentScope->Parent();