• Home
  • Raw
  • Download

Lines Matching full:util

53 Variable *Scope::FindLocal(const util::StringView &name, ResolveBindingOptions options) const  in FindLocal()
58 auto res = bindings_.find(util::StringView{interfaceName}); in FindLocal()
94 ScopeFindResult Scope::Find(const util::StringView &name, ResolveBindingOptions options) const in Find()
179 Result ClassScope::GetPrivateProperty(const util::StringView &name, bool isSetter) const in GetPrivateProperty()
258 util::StringView ClassScope::GetSelfScopeName() in GetSelfScopeName()
267 util::StringView selfName = node_->AsClassDefinition()->Ident()->Name(); in GetSelfScopeName()
269 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
273 scopeName << util::Helpers::GetName(allocator_, node_->Parent()->Parent()); in GetSelfScopeName()
274 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
277 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
280 util::StringView ClassScope::GetScopeTag() in GetScopeTag()
282 return util::UString(util::Helpers::CLASS_SCOPE_TAG.data(), allocator_).View(); in GetScopeTag()
285 PrivateNameFindResult Scope::FindPrivateName(const util::StringView &name, bool isSetter) const in FindPrivateName()
309 Decl *Scope::FindDecl(const util::StringView &name) const in FindDecl()
320 bool Scope::HasVarDecl(const util::StringView &name) const in HasVarDecl()
331 std::tuple<Scope *, bool> Scope::IterateShadowedVariables(const util::StringView &name, const Varia… in IterateShadowedVariables()
371 fullScopeName << util::Helpers::DUPLICATED_SEPERATOR << in SetFullScopeNames()
376 fullScopeName_ = util::UString(fullScopeName.str(), allocator_).View(); in SetFullScopeNames()
385 …indexScopeName << util::Helpers::INDEX_NAME_SPICIFIER << std::hex << topScope_->scopeNames_.size(); in OptimizeSelfScopeName()
394 selfScopeStream << util::Helpers::INDEX_NAME_SPICIFIER << std::hex << it->second; in OptimizeSelfScopeName()
471 const auto [name, pattern] = util::Helpers::ParamName(allocator, param, params_.size()); in AddParamDecl()
485 std::vector<const ir::Identifier *> bindings = util::Helpers::CollectBindingNames(param); in AddParamDecl()
503 void FunctionParamScope::BindName(ArenaAllocator *allocator, util::StringView name) in BindName()
516 const util::StringView &FunctionParamScope::GetFullScopeName() in GetFullScopeName()
531 uint32_t FunctionParamScope::GetDuplicateScopeIndex(const util::StringView &childScopeName) in GetDuplicateScopeIndex()
544 void FunctionScope::BindNameWithScopeInfo(util::StringView name, util::StringView recordName) in BindNameWithScopeInfo()
548 internalName << recordName << util::Helpers::FUNC_NAME_SEPARATOR; in BindNameWithScopeInfo()
554 internalName << GetScopeTag() << util::Helpers::FUNC_NAME_SEPARATOR << GetSelfScopeName(); in BindNameWithScopeInfo()
556 internalName << util::Helpers::DUPLICATED_SEPERATOR << in BindNameWithScopeInfo()
559 internalName_ = util::UString(internalName.str(), allocator_).View(); in BindNameWithScopeInfo()
593 void FunctionScope::SetSelfScopeName(const util::StringView &ident) in SetSelfScopeName()
601 util::StringView FunctionScope::GetScopeTag() in GetScopeTag()
604 return util::UString(util::Helpers::CTOR_TAG.data(), allocator_).View(); in GetScopeTag()
610 return util::UString(util::Helpers::STATIC_METHOD_TAG.data(), allocator_).View(); in GetScopeTag()
612 return util::UString(util::Helpers::METHOD_TAG.data(), allocator_).View(); in GetScopeTag()
614 return util::UString(util::Helpers::FUNCTION_TAG.data(), allocator_).View(); in GetScopeTag()
617 util::StringView FunctionScope::GetSelfScopeName() in GetSelfScopeName()
624 auto selfName = util::Helpers::FunctionName(allocator_, node_->AsScriptFunction()); in GetSelfScopeName()
625 if (!util::Helpers::IsSpecialScopeName(selfName)) { in GetSelfScopeName()
629 return util::UString(util::Helpers::STRING_EMPTY.data(), allocator_).View(); in GetSelfScopeName()
632 util::StringView TSModuleScope::GetSelfScopeName() in GetSelfScopeName()
640 util::StringView TSModuleScope::GetScopeTag() in GetScopeTag()
642 return util::UString(util::Helpers::NAMESPACE_TAG.data(), allocator_).View(); in GetScopeTag()
652 void TSEnumScope::SetSelfScopeName(const util::StringView &ident) in SetSelfScopeName()
659 util::StringView TSEnumScope::GetSelfScopeName() in GetSelfScopeName()
672 return util::UString(scopeName.str(), allocator_).View(); in GetSelfScopeName()
675 util::StringView TSEnumScope::GetScopeTag() in GetScopeTag()
677 return util::UString(util::Helpers::ENUM_TAG.data(), allocator_).View(); in GetScopeTag()
713 void GlobalScope::SetSelfScopeName([[maybe_unused]] const util::StringView &ident) in SetSelfScopeName()
720 void ModuleScope::ConvertLocalVariableToModuleVariable(ArenaAllocator *allocator, util::StringView … in ConvertLocalVariableToModuleVariable()
734 void ModuleScope::AssignIndexToModuleVariable(util::StringView name, uint32_t index) in AssignIndexToModuleVariable()
796 void ModuleScope::SetSelfScopeName([[maybe_unused]] const util::StringView &ident) in SetSelfScopeName()