Lines Matching defs:variable
197 // Bind function main0 first to determine whether a lexical variable is in it or not under hot-reload mode
267 ASSERT(res.variable);
268 res.variable->SetLexical(res.scope, program_->PatchFixHelper());
328 if (res.variable == nullptr) {
333 if (!res.variable->Declaration()->IsDeclare() && !ident->Parent()->IsTSTypeReference() &&
336 res.variable->SetLexical(res.scope, program_->PatchFixHelper());
340 auto decl = res.variable->Declaration();
342 !res.variable->HasFlag(VariableFlags::INITIALIZED)) {
350 ident->SetVariable(res.variable);
471 auto *variable = scope_->FindLocal(name, ResolveBindingOptions::BINDINGS);
474 ident->SetVariable(variable);
478 variable->AddFlag(VariableFlags::INITIALIZED);
585 ASSERT(res.variable && (res.variable->Declaration()->IsClassDecl() ||
586 (res.variable->Declaration()->IsFunctionDecl() &&
587 res.variable->Declaration()->AsFunctionDecl()->GetDeclClass() != nullptr)));
588 res.variable->AddFlag(VariableFlags::INITIALIZED);
617 ASSERT(res.variable && res.variable->Declaration()->IsConstDecl());
618 res.variable->AddFlag(VariableFlags::INITIALIZED);
724 if (res.variable != nullptr) {
725 if (res.variable->Declaration()->Node()->IsImportSpecifier()) {
727 } else if (!res.variable->Declaration()->Node()->IsClassDefinition()) {
733 if (res.variable != nullptr && res.variable->Declaration()->Node()->IsImportNamespaceSpecifier()) {
1054 auto fn = [&findRes](Variable *variable) {
1055 if (variable != nullptr) {
1056 findRes.emplace_back(variable);
1069 // Find js variable
1168 ASSERT(res.variable && res.variable->Declaration()->IsConstDecl());
1169 variable_ = res.variable;