Home
last modified time | relevance | path

Searched full:stringview (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/arkcompiler/ets_frontend/ets2panda/varbinder/
Ddeclaration.h49 const util::StringView &Name() const in DECLARATION_KINDS()
104 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS()
105 explicit Decl(util::StringView name, ir::AstNode *declNode) : name_(name), node_(declNode) {} in DECLARATION_KINDS()
108 util::StringView name_; in DECLARATION_KINDS()
116 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl()
121 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in MultiDecl()
142 explicit EnumLiteralDecl(util::StringView name, bool isConst) : Decl(name), isConst_(isConst) {} in EnumLiteralDecl()
143 explicit EnumLiteralDecl(util::StringView name, ir::AstNode *declNode, bool isConst) in EnumLiteralDecl()
175 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl()
176 explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in InterfaceDecl()
[all …]
DETSBinder.h29 using AliasesByExportedNames = ArenaMap<util::StringView, util::StringView>;
30 using ModulesToExportedNamesWithAliases = ArenaMap<util::StringView, AliasesByExportedNames>;
134 …bool DetectNameConflict(const util::StringView localName, Variable *const var, Variable *const oth…
137 ArenaVector<parser::Program *> GetExternalProgram(const util::StringView &sourceName,
146 const util::StringView &imported,
153 … const util::StringView &imported, const ir::StringLiteral *const importPath);
154 Variable *FindImportSpecifiersVariable(const util::StringView &imported,
173 …void BuildProxyMethod(ir::ScriptFunction *func, const util::StringView &containingClassName, bool …
218 ArenaVector<parser::Program *> GetProgramList(const util::StringView &path) const;
229 bool CheckForRedeclarationError(const util::StringView &localName, Variable *const var,
[all …]
Dscope.h54 …ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, Variable *v) : ScopeFindResultT(n, s, l… in ScopeFindResultT()
56 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, uint32_t ll, Variable *v) in ScopeFindResultT()
62 util::StringView name {};
79 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
242 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
245 …static VariableType *CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags fla…
249 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args);
251 virtual InsertResult InsertBinding(const util::StringView &name, Variable *var);
252 virtual InsertResult TryInsertBinding(const util::StringView &name, Variable *var);
254 virtual VariableMap::size_type EraseBinding(const util::StringView &name);
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
Dpath.h36 Path(const util::StringView &absolutePath, ArenaAllocator *allocator);
37 …Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *alloc…
40 const util::StringView &GetPath() const;
41 const util::StringView &GetAbsolutePath() const;
42 const util::StringView &GetExtension() const;
43 const util::StringView &GetFileName() const;
44 const util::StringView &GetParentFolder() const;
45 const util::StringView &GetAbsoluteParentFolder() const;
54 util::StringView path_ {};
55 util::StringView basePath_ {};
[all …]
DimportPathManager.h47 StringView sourcePath;
70 StringView ResolvePath(const StringView &currentModulePath, const StringView &importPath) const;
71 void AddToParseList(const StringView &resolvedPath, ImportFlags importFlags);
72 ImportData GetImportData(const util::StringView &path, const ScriptExtension &extension) const;
73 void MarkAsParsed(const StringView &path);
76 bool IsRelativePath(const StringView &path) const;
77 StringView GetRealPath(const StringView &path) const;
78 StringView AppendExtensionOrIndexFileIfOmitted(const StringView &basePath) const;
80 …void UnixWalkThroughDirectoryAndAddToParseList(const StringView &directoryPath, ImportFlags import…
Dustring.h29 class StringView {
31 explicit StringView() noexcept = default;
32 explicit StringView(const ArenaString *str) noexcept : sv_(*str) {} in StringView() function
35 StringView(std::string_view sv) noexcept : sv_(sv) {} in StringView() function
38 StringView(const char *str) noexcept : sv_(str == nullptr ? "" : str) {} in StringView() function
39 DEFAULT_COPY_SEMANTIC(StringView);
40 DEFAULT_MOVE_SEMANTIC(StringView);
41 ~StringView() = default;
43 bool operator==(const StringView &rhs) const noexcept
48 bool operator!=(const StringView &rhs) const noexcept
[all …]
Dpath.cpp25 Path::Path(const util::StringView &absolutePath, ArenaAllocator *allocator) in Path()
55 util::StringView fileName = path_.Substr(position + 1, path_.Length()); in InitializeFileName()
111 Path::Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *… in Path()
138 const util::StringView &Path::GetPath() const in GetPath()
143 const util::StringView &Path::GetAbsolutePath() const in GetAbsolutePath()
148 const util::StringView &Path::GetExtension() const in GetExtension()
153 const util::StringView &Path::GetFileName() const in GetFileName()
158 const util::StringView &Path::GetParentFolder() const in GetParentFolder()
163 const util::StringView &Path::GetAbsoluteParentFolder() const in GetAbsoluteParentFolder()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.h33 util::StringView name;
38 util::StringView name;
42 using PrivateElementMap = std::unordered_map<util::StringView, util::StringView>;
43 using ComputedPropertyMap = std::unordered_map<ir::Statement *, util::StringView>;
46 util::StringView name;
47 util::StringView aliasName;
56 util::StringView backupName; // For computed property.
64 explicit DuringClass(ArenaVector<ClassInfo> *classList, util::StringView name, in DuringClass()
65 util::StringView aliasName, ir::ClassDefinition *node) in DuringClass()
111 void AddVariableToNearestStatements(util::StringView name);
[all …]
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.h51 util::StringView localName_;
52 util::StringView importName_;
56 …ImportEntry(const util::StringView localName, const util::StringView importName, int moduleRequest… in ImportEntry()
60 … ImportEntry(const util::StringView localName, int moduleRequestIdx, const ir::Identifier *localId) in ImportEntry()
66 util::StringView exportName_;
67 util::StringView localName_;
68 util::StringView importName_;
75 ExportEntry(const util::StringView exportName, const util::StringView localName, in ExportEntry()
79 …ExportEntry(const util::StringView exportName, const util::StringView importName, int moduleReques… in ExportEntry()
91 util::StringView source_;
[all …]
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.h52 using VariableMap = ArenaMap<util::StringView, Variable *>;
59 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable()
70 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable()
84 bool InTSBindings(const util::StringView &name) const in InTSBindings()
112 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable()
121 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable()
126 bool InExportBindings(const util::StringView &name) const in InExportBindings()
133 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable()
139 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable()
152 ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) in ScopeFindResult()
[all …]
Ddeclaration.h50 const util::StringView &Name() const in DECLARATION_KINDS()
135 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS()
137 util::StringView name_; in DECLARATION_KINDS()
146 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl()
167 …explicit EnumLiteralDecl(ArenaAllocator *allocator, util::StringView name, bool isExport, bool isC… in EnumLiteralDecl()
203 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl()
213 explicit TypeParameterDecl(util::StringView name, const ir::AstNode *node);
223 explicit PropertyDecl(util::StringView name) : Decl(name) {} in PropertyDecl()
233 explicit MethodDecl(util::StringView name) : Decl(name) {} in MethodDecl()
243 explicit EnumDecl(util::StringView name) : Decl(name) {} in EnumDecl()
[all …]
/arkcompiler/ets_frontend/ets2panda/evaluate/
DentityDeclarator.h38 using UMapStringViewVariable = ArenaUnorderedMap<util::StringView, varbinder::Variable *>;
56 …varbinder::Variable *ImportGlobalEntity(util::StringView pathToDeclSource, util::StringView declNa…
57 … parser::Program *importerProgram, util::StringView importedName,
63 bool IsEntityDeclared(parser::Program *program, util::StringView name);
66 …er::Variable *FindEntityVariable(UMapStringViewVariable &entitiesMap, util::StringView entityName);
70 … void CreateAndInsertImportStatement(util::StringView pathToDeclSource, util::StringView declName,
71 … parser::Program *importerProgram, util::StringView importedName,
74 …ir::ETSImportDeclaration *CreateIrImport(util::StringView pathToDeclSourceFile, util::StringView c…
75 util::StringView classImportedName);
/arkcompiler/ets_frontend/ets2panda/parser/program/
Dprogram.h43 using ExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
44 using DirectExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
100 util::StringView SourceCode() const in SourceCode()
105 const util::StringView &SourceFilePath() const in SourceFilePath()
115 util::StringView SourceFileFolder() const in SourceFileFolder()
120 util::StringView FileName() const in FileName()
125 util::StringView AbsoluteName() const in AbsoluteName()
130 util::StringView ResolvedFilePath() const in ResolvedFilePath()
185 void SetSource(const util::StringView &sourceCode, const util::StringView &sourceFilePath, in SetSource()
186 const util::StringView &sourceFileFolder) in SetSource()
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
DimportExportDecls.h60 …void VerifyType(ir::Statement *stmt, parser::Program *program, std::set<util::StringView> &exporte…
61 std::set<util::StringView> &exportedStatements,
62 std::map<util::StringView, ir::AstNode *> &typesMap);
63 …void HandleSimpleType(std::set<util::StringView> &exportedTypes, std::set<util::StringView> &expor…
64 ir::Statement *stmt, util::StringView name, parser::Program *program,
68 …void HandleSelectiveExportWithAlias(util::StringView originalFieldName, util::StringView exportNam…
70 void PopulateAliasMap(const ir::ExportNamedDeclaration *decl, const util::StringView &path);
87 std::map<util::StringView, ir::AstNode *> fieldMap_;
88 std::map<util::StringView, lexer::SourcePosition> exportNameMap_;
89 std::set<util::StringView> exportedTypes_;
[all …]
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/
DdebugInfoDeserializer.h57 … util::StringView pathToSource, util::StringView classDeclName);
63 …varbinder::Variable *CreateIrGlobalVariable(parser::Program *program, util::StringView pathToSourc…
64 util::StringView varDeclName);
67 … util::StringView pathToSource, util::StringView methodDeclName);
77 …ir::ETSTypeReference *ResolveInheritanceChain(util::StringView abcSuperName, FileDebugInfo *debugI…
79 …ir::ETSTypeReference *ResolveInheritanceChainImpl(util::StringView abcSuperName, FileDebugInfo *de…
86 …util::StringView CollectChainInfo(ArenaVector<ChainEntryInfo> &chainEntryList, util::StringView ab…
92 …ir::ClassDeclaration *CreateClassDeclaration(util::StringView identName, panda_file::ClassDataAcce…
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsObjectType.h35 using PropertyMap = ArenaUnorderedMap<util::StringView, varbinder::LocalVariable *>;
36 using InstantiationMap = ArenaUnorderedMap<util::StringView, ETSObjectType *>;
52 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView assemble… in ETSObjectType()
59 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView assemble… in ETSObjectType()
249 const util::StringView &Name() const in Name()
254 const util::StringView &AssemblerName() const in AssemblerName()
259 void SetName(const util::StringView &newName) in SetName()
264 void SetAssemblerName(const util::StringView &newName) in SetAssemblerName()
313 ETSObjectType *GetInstantiatedType(util::StringView hash) in GetInstantiatedType()
338 varbinder::LocalVariable *GetOwnProperty(const util::StringView &name) const in GetOwnProperty()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.h46 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags);
48 util::StringView patternStr;
49 util::StringView flagsStr;
88 util::StringView ParseIdent();
100 util::StringView::Iterator iter_;
102 std::unordered_set<util::StringView> groupNames_;
103 std::unordered_set<util::StringView> namedGroupReferences_;
/arkcompiler/ets_frontend/ets2panda/compiler/core/
Dpandagen.h93 void LoadObjByName(const ir::AstNode *node, const util::StringView &prop);
98 void LoadGlobalVar(const ir::AstNode *node, const util::StringView &name);
99 void StoreGlobalVar(const ir::AstNode *node, const util::StringView &name);
100 void StoreGlobalLet(const ir::AstNode *node, const util::StringView &name);
102 void TryLoadGlobalByName(const ir::AstNode *node, const util::StringView &name);
103 void TryStoreGlobalByName(const ir::AstNode *node, const util::StringView &name);
108 void LoadAccumulatorBigInt(const ir::AstNode *node, const util::StringView &bigInt);
144 void DefineMethod(const ir::AstNode *node, const util::StringView &name);
145 …unction(const ir::AstNode *node, const ir::ScriptFunction *realNode, const util::StringView &name);
164 void GetMethod(const ir::AstNode *node, VReg obj, const util::StringView &name);
[all …]
DlabelTarget.h41 explicit LabelTarget(const util::StringView &label) : LabelTarget(nullptr, label) {} in LabelTarget()
42 explicit LabelTarget(Label *target, const util::StringView &label) in LabelTarget()
52 const util::StringView &BreakLabel() const in BreakLabel()
67 const util::StringView &ContinueLabel() const in ContinueLabel()
81 util::StringView breakLabel_ {};
82 util::StringView continueLabel_ {};
/arkcompiler/ets_frontend/ets2panda/lexer/regexp/
Dregexp.h41 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags);
44 util::StringView patternStr;
45 util::StringView flagsStr;
90 util::StringView ParseIdent();
101 util::StringView::Iterator iter_;
103 std::unordered_set<util::StringView> groupNames_;
104 std::unordered_set<util::StringView> backReferences_;
/arkcompiler/ets_frontend/es2panda/util/
Dustring.h30 class StringView {
32 explicit StringView() noexcept = default;
33 explicit StringView(const ArenaString *str) noexcept : sv_(*str) {} in StringView() function
35 StringView(const std::string_view &sv) noexcept : sv_(sv) {} in StringView() function
37 StringView(const char *str) noexcept : sv_(str) {} in StringView() function
38 DEFAULT_COPY_SEMANTIC(StringView);
39 DEFAULT_MOVE_SEMANTIC(StringView);
40 ~StringView() = default;
42 bool operator==(const StringView &rhs) const noexcept
47 bool operator!=(const StringView &rhs) const noexcept
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DregExpLiteral.h35 explicit RegExpLiteral(util::StringView pattern, util::StringView flags) in RegExpLiteral()
40 const util::StringView &Pattern() const in Pattern()
45 const util::StringView &Flags() const in Flags()
62 util::StringView pattern_;
63 util::StringView flags_;
/arkcompiler/ets_frontend/ets2panda/ir/base/
DtemplateElement.h32 explicit TemplateElement(util::StringView const raw, util::StringView const cooked) in TemplateElement()
37 [[nodiscard]] const util::StringView &Raw() const noexcept in Raw()
42 [[nodiscard]] const util::StringView &Cooked() const noexcept in Cooked()
64 util::StringView raw_ {};
65 util::StringView cooked_ {};
/arkcompiler/ets_frontend/es2panda/ir/base/
DtemplateElement.h37 explicit TemplateElement(util::StringView raw, util::StringView cooked) in TemplateElement()
42 const util::StringView &Raw() const in Raw()
47 const util::StringView &Cooked() const in Cooked()
69 util::StringView raw_ {};
70 util::StringView cooked_ {};
/arkcompiler/ets_frontend/es2panda/compiler/core/
DlabelTarget.h42 explicit LabelTarget(const util::StringView &label) : LabelTarget(nullptr, label) {} in LabelTarget()
43 explicit LabelTarget(Label *target, const util::StringView &label) in LabelTarget()
53 const util::StringView &BreakLabel() const in BreakLabel()
68 const util::StringView &ContinueLabel() const in ContinueLabel()
83 util::StringView breakLabel_ {};
84 util::StringView continueLabel_ {};

12345678910>>...14