Lines Matching defs:var
23 static void HoistVar(PandaGen *pg, varbinder::Variable *var, const varbinder::VarDecl *decl)
33 varbinder::ConstScopeFindResult result(decl->Name(), scope, 0, var);
39 static void HoistFunction(PandaGen *pg, varbinder::Variable *var, const varbinder::FunctionDecl *decl)
48 pg->StoreGlobalVar(decl->Node(), var->Declaration()->Name());
53 varbinder::ConstScopeFindResult result(decl->Name(), scope, 0, var);
63 for (const auto &[_, var] : scope->Bindings()) {
65 if (!var->HasFlag(varbinder::VariableFlags::HOIST)) {
69 const auto *decl = var->Declaration();
72 HoistVar(pg, var, decl->AsVarDecl());
75 HoistFunction(pg, var, decl->AsFunctionDecl());