Lines Matching refs:variable
239 ASSERT(res.variable); in LookupReference()
240 res.variable->SetLexical(res.scope, program_->PatchFixHelper()); in LookupReference()
300 ASSERT(res.variable); in LookupIdentReference()
301 if (!res.variable->Declaration()->IsDeclare()) { in LookupIdentReference()
303 res.variable->SetLexical(res.scope, program_->PatchFixHelper()); in LookupIdentReference()
307 if (res.variable == nullptr) { in LookupIdentReference()
311 auto decl = res.variable->Declaration(); in LookupIdentReference()
313 !res.variable->HasFlag(VariableFlags::INITIALIZED)) { in LookupIdentReference()
321 ident->SetVariable(res.variable); in LookupIdentReference()
422 auto *variable = scope_->FindLocal(name, ResolveBindingOptions::BINDINGS); in BuildVarDeclaratorId() local
425 ident->SetVariable(variable); in BuildVarDeclaratorId()
429 variable->AddFlag(VariableFlags::INITIALIZED); in BuildVarDeclaratorId()
536 ASSERT(res.variable && (res.variable->Declaration()->IsClassDecl() || in BuildClassDefinition()
537 (res.variable->Declaration()->IsFunctionDecl() && in BuildClassDefinition()
538 res.variable->Declaration()->AsFunctionDecl()->GetDeclClass() != nullptr))); in BuildClassDefinition()
539 res.variable->AddFlag(VariableFlags::INITIALIZED); in BuildClassDefinition()
563 ASSERT(res.variable && res.variable->Declaration()->IsConstDecl()); in BuildClassDefinition()
564 res.variable->AddFlag(VariableFlags::INITIALIZED); in BuildClassDefinition()
910 auto fn = [&findRes](Variable *variable) { in FindIdentifierTSVariables() argument
911 if (variable != nullptr) { in FindIdentifierTSVariables()
912 findRes.emplace_back(variable); in FindIdentifierTSVariables()