Lines Matching refs:StringView
43 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
50 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable()
61 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable()
75 bool InTSBindings(const util::StringView &name) const in InTSBindings()
103 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable()
112 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable()
117 bool InExportBindings(const util::StringView &name) const in InExportBindings()
124 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable()
130 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable()
143 …ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) : ScopeFindResult(n, s, l, … in ScopeFindResult()
145 ScopeFindResult(util::StringView n, Scope *s, uint32_t l, uint32_t ll, Variable *v, bool c) in ScopeFindResult()
150 util::StringView name {};
283 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
286 …static VariableType *CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags fla…
290 void PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&... args);
305 Variable *FindLocal(const util::StringView &name,
308 ScopeFindResult Find(const util::StringView &name,
311 Decl *FindDecl(const util::StringView &name) const;
313 bool HasVarDecl(const util::StringView &name) const;
316 Variable *FindLocalTSVariable(const util::StringView &name) const in FindLocalTSVariable()
322 void AddLocalTSVariable(const util::StringView &name, Variable *var) in AddLocalTSVariable()
327 bool InLocalTSBindings(const util::StringView &name) const in InLocalTSBindings()
348 …std::tuple<Scope *, bool> IterateShadowedVariables(const util::StringView &name, const VariableVis…
403 void AddLexicalVarNameAndType(uint32_t slot, util::StringView name, int type) in AddLexicalVarNameAndType()
405 lexicalVarNameAndTypes_.emplace(slot, std::pair<util::StringView, int>(name, type)); in AddLexicalVarNameAndType()
408 ArenaMap<uint32_t, std::pair<util::StringView, int>> &GetLexicalVarNameAndTypes() in GetLexicalVarNameAndTypes()
437 …ArenaMap<uint32_t, std::pair<util::StringView, int>> lexicalVarNameAndTypes_; // for debuginfo and…
457 bool HasParam(util::StringView name) const in HasParam()
502 void BindName(ArenaAllocator *allocator, util::StringView name);
574 void BindName(util::StringView name, util::StringView internalName) in BindName()
580 const util::StringView &Name() const in Name()
585 const util::StringView &InternalName() const in InternalName()
594 util::StringView name_ {};
595 util::StringView internalName_ {};
688 void AssignIndexToModuleVariable(util::StringView name, uint32_t index);
690 … void ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView localName);
712 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable()
718 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable()
723 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable()
728 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable()
733 bool AddExportVariable(const util::StringView &name) in AddExportVariable()
738 bool InExportBindings(const util::StringView &name) const in InExportBindings()
743 void AddDeclarationName(const util::StringView &name) in AddDeclarationName()
748 bool HasVariableName(const util::StringView &name) const in HasVariableName()
755 ArenaSet<util::StringView> variableNames_;
887 VariableType *Scope::AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) in AddDecl()
903 VariableType *Scope::CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags flag… in CreateVar()
913 void Scope::PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&... args) in PropagateBinding()