Lines Matching defs:currentScope
109 auto currentScope = Scope();
110 while (currentScope != nullptr) {
111 if (currentScope->IsTSModuleScope()) {
112 auto node = currentScope->Node();
118 if (currentScope->IsFunctionScope()) {
119 auto node = currentScope->Node();
125 currentScope = currentScope->Parent();
127 tempVarDeclStatements_.insert({name, currentScope});
167 auto currentScope = Scope();
168 while (currentScope != nullptr) {
169 binder::Variable *v = currentScope->FindLocal(name, binder::ResolveBindingOptions::BINDINGS);
170 bool isTSModuleScope = currentScope->IsTSModuleScope();
180 if (currentScope->InLocalTSBindings(name) &&
181 !currentScope->FindLocalTSVariable<binder::TSBindingType::IMPORT_EQUALS>(name)) {
184 if (isTSModuleScope && currentScope->AsTSModuleScope()->InExportBindings(name)) {
188 currentScope = currentScope->Parent();
193 return currentScope;
1717 auto *currentScope = scope;
1718 while (currentScope != nullptr) {
1719 auto *res = FindTSVariable<binder::TSBindingType::NAMESPACE>(currentScope, name);
1724 res = FindTSVariable<binder::TSBindingType::IMPORT_EQUALS>(currentScope, name);
1733 res = FindTSVariable<binder::TSBindingType::ENUMLITERAL>(currentScope, name);
1739 res = currentScope->FindLocal(name, binder::ResolveBindingOptions::BINDINGS);
1745 currentScope = currentScope->Parent();