Lines Matching defs:variable
21 #include "varbinder/variable.h"
190 // If the variable cannot be found in the scope of the local ETSGLOBAL, than we still need to check the true
346 for (const auto &[name, variable] : varMap) {
347 if (!variable->LexicalBound()) {
351 literals[variable->AsLocalVariable()->LexIdx()] = compiler::Literal(name);
356 for (const auto &[name, variable] : varMap) {
358 if (!variable->LexicalBound()) {
362 bindings[variable->AsLocalVariable()->LexIdx()] = variable;
366 for (const auto *variable : bindings) {
367 if (variable == nullptr) {
372 if (variable->Declaration()->IsConstDecl()) {
375 literals[buffIndex++] = compiler::Literal(variable->Name());
665 auto *variable = allocator->New<ModuleVariable>(newDecl, VariableFlags::NONE);
666 variable->ExoticName() = newDecl->AsImportDecl()->ImportName();
667 InsertBinding(newDecl->Name(), variable);
668 return variable;
700 varbinder::Variable *variable = FindLocal(decl->LocalName(), varbinder::ResolveBindingOptions::BINDINGS);
702 if (variable == nullptr) {
711 if (!variable->IsModuleVariable()) {
712 variable->AddFlag(VariableFlags::LOCAL_EXPORT);
713 localExports_.insert({variable, decl->ExportName()});