Lines Matching defs:var
34 const auto var = *maybeVar;
35 const auto scope = var->GetScope();
42 if (!ScopeEncloseVariable(ctx, var)) {
81 bool VariableHasScope::ScopeEncloseVariable(CheckContext &ctx, const varbinder::LocalVariable *var)
83 ASSERT(var);
85 const auto scope = var->GetScope();
86 if (scope == nullptr || var->Declaration() == nullptr) {
90 const auto node = var->Declaration()->Node();
97 if (scope->Bindings().count(var->Name()) == 0) {
114 const auto declDominate = std::count(decls.begin(), decls.end(), var->Declaration());