Lines Matching defs:scope
1870 static void CreateFuncDecl(ETSChecker *checker, ir::MethodDefinition *func, varbinder::LocalScope *scope)
1874 // Add the function declarations to the lambda class scope
1875 auto ctx = varbinder::LexicalScope<varbinder::LocalScope>::Enter(varBinder, scope);
1876 varbinder::Variable *var = scope->FindLocal(func->Id()->Name(), varbinder::ResolveBindingOptions::ALL_DECLARATION);
1934 auto *scope = VarBinder()->Allocator()->New<varbinder::FunctionScope>(Allocator(), paramScope);
1940 func->SetScope(scope);
1943 body->AsBlockStatement()->SetScope(scope);
1945 scope->BindNode(func);
1947 scope->BindParamScope(paramScope);
1948 paramScope->BindFunctionScope(scope);
1989 auto *scope = NodeScope(child);
1990 if (scope != nullptr) {
1991 while (scope->Parent() != nullptr && scope->Parent()->Node() != oldNode) {
1992 scope = scope->Parent();
1994 scope->SetParent(newScope);