Lines Matching refs:Variable

45 class Variable;
53 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, Variable *v) : ScopeFindResultT(n, s, l, l, v) {}
54 ScopeFindResultT(ScopeT s, uint32_t l, uint32_t ll, Variable *v) : scope(s), level(l), lexLevel(ll), variable(v) {}
55 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, uint32_t ll, Variable *v)
65 Variable *variable {};
78 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
218 Variable *AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension)
226 Variable *AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension)
243 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args);
245 virtual InsertResult InsertBinding(const util::StringView &name, Variable *var);
246 virtual InsertResult TryInsertBinding(const util::StringView &name, Variable *var);
255 ArenaMap<util::StringView, Variable *> OrderedBindings(ArenaAllocator *allocator) const
257 ArenaMap<util::StringView, Variable *> result(allocator->Adapter());
262 virtual Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
265 virtual Variable *FindLocal(const util::StringView &name, ResolveBindingOptions options) const;
297 using VariableVisitor = std::function<bool(const Variable *)>;
305 Variable *AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
308 Variable *AddLocalVar(ArenaAllocator *allocator, Decl *newDecl);
403 Variable *AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl);
406 Variable *AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
410 Variable *AddTSBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags);
413 Variable *AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl);
438 std::tuple<ParameterDecl *, ir::AstNode *, Variable *> AddParamDecl(ArenaAllocator *allocator, ir::AstNode *param);
446 Variable *AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags);
480 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
536 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
553 Variable *FindLocal(const util::StringView &name, ResolveBindingOptions options) const override;
555 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
610 Variable *FindLocal(const util::StringView &name, ResolveBindingOptions options) const override;
612 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
704 Variable *FindLocal(const util::StringView &name, ResolveBindingOptions options) const override;
706 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
763 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
778 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
793 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
845 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
873 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
876 InsertResult InsertBinding(const util::StringView &name, Variable *var) override;
877 InsertResult TryInsertBinding(const util::StringView &name, Variable *var) override;
881 InsertResult InsertForeignBinding(const util::StringView &name, Variable *var);
884 InsertResult InsertDynamicBinding(const util::StringView &name, Variable *var);
887 InsertResult InsertImpl(const util::StringView &name, Variable *var, bool isForeign, bool isDynamic);
898 using LocalExportNameMap = ArenaMultiMap<varbinder::Variable *, util::StringView>;
935 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
941 Variable *AddImport(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl);
950 Variable *VariableScope::AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl)
972 Variable *VariableScope::AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl,
998 Variable *VariableScope::AddTSBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable,
1006 Variable *VariableScope::AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl)
1051 Variable *Scope::PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args)