Lines Matching refs:VariableFlags

426     VariableFlags flags = VariableFlags::NONE;
430 newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); });
436 VariableFlags varFlags = VariableFlags::HOIST_VAR;
447 newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL));
450 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE)});
454 flags = VariableFlags::HOIST;
472 bool ParamScope::AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags)
496 if (!AddParam(allocator, FindLocal(name), decl, VariableFlags::VAR)) {
516 auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR);
525 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED);
596 return AddTSBinding<EnumLiteralVariable>(allocator, newDecl, VariableFlags::ENUM_LITERAL);
599 return AddTSBinding<NamespaceVariable>(allocator, newDecl, VariableFlags::NAMESPACE);
602 return AddTSBinding<ImportEqualsVariable>(allocator, newDecl, VariableFlags::IMPORT_EQUALS);
605 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
714 return AddTSBinding<EnumLiteralVariable>(allocator, newDecl, VariableFlags::ENUM_LITERAL);
717 return AddTSBinding<NamespaceVariable>(allocator, newDecl, VariableFlags::NAMESPACE);
720 return AddTSBinding<ImportEqualsVariable>(allocator, newDecl, VariableFlags::IMPORT_EQUALS);
723 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
749 VariableFlags flags = res->second->Flags();
750 res->second = allocator->New<ModuleVariable>(decl, flags | VariableFlags::LOCAL_EXPORT);
768 newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); });
794 return AddTSBinding<EnumLiteralVariable>(allocator, newDecl, VariableFlags::ENUM_LITERAL);
797 return AddTSBinding<NamespaceVariable>(allocator, newDecl, VariableFlags::NAMESPACE);
800 return AddTSBinding<ImportEqualsVariable>(allocator, newDecl, VariableFlags::IMPORT_EQUALS);
803 return AddTSBinding<LocalVariable>(allocator, currentVariable, newDecl, VariableFlags::INTERFACE);
836 var->AddFlag(VariableFlags::INITIALIZED);
838 var->AddFlag(VariableFlags::PER_ITERATION);
846 return AddParam(allocator, currentVariable, newDecl, VariableFlags::INITIALIZED);