Home
last modified time | relevance | path

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

12345678910>>...15

/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 &GetFileNameWithExtension() const;
45 const util::StringView &GetParentFolder() const;
46 const util::StringView &GetAbsoluteParentFolder() const;
55 util::StringView path_ {};
[all …]
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 …]
DimportPathManager.h64 StringView moduleName {};
65 StringView modulePrefix {};
133 util::StringView FormModuleName(const util::Path &path, const lexer::SourcePosition &srcPos);
136 …void AddImplicitPackageImportToParseList(StringView packageDir, const lexer::SourcePosition &srcPo…
139 util::StringView ResolvePathAPI(StringView curModulePath, ir::StringLiteral *importPath) const;
141 void MarkAsParsed(StringView path);
142 util::StringView FormRelativePath(const util::Path &path);
151 util::StringView FormModuleNameSolelyByAbsolutePath(const util::Path &path);
152 util::StringView FormModuleName(const util::Path &path);
165 std::string_view DirOrDirWithIndexFile(StringView dir) const;
[all …]
/arkcompiler/ets_frontend/ets2panda/varbinder/
Ddeclaration.h50 const util::StringView &Name() const in DECLARATION_KINDS()
105 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS()
106 explicit Decl(util::StringView name, ir::AstNode *declNode) : name_(name), node_(declNode) {} in DECLARATION_KINDS()
109 util::StringView name_; in DECLARATION_KINDS()
117 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl()
122 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in MultiDecl()
143 explicit EnumLiteralDecl(util::StringView name, bool isConst) : Decl(name), isConst_(isConst) {} in EnumLiteralDecl()
144 explicit EnumLiteralDecl(util::StringView name, ir::AstNode *declNode, bool isConst) in EnumLiteralDecl()
176 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl()
177 explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in InterfaceDecl()
[all …]
DETSBinder.h47 using AliasesByExportedNames = ArenaMap<util::StringView, std::pair<util::StringView, ir::AstNode c…
48 using ModulesToExportedNamesWithAliases = ArenaMap<util::StringView, AliasesByExportedNames>;
137 static bool IsSpecialName(const util::StringView &name);
154 [[nodiscard]] bool DetectNameConflict(const util::StringView localName, Variable *const var,
156 [[nodiscard]] ArenaVector<parser::Program *> GetExternalProgram(util::StringView sourceName,
160 const ir::ETSImportDeclaration *const import, const util::StringView &imported,
163 const ir::ETSImportDeclaration *const import, const util::StringView &imported,
166 const ir::ETSImportDeclaration *const import, const util::StringView &imported,
169 const util::StringView &imported,
179 void ValidateImportVariable(const ir::AstNode *node, const util::StringView &imported,
[all …]
Dscope.h50 …ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, Variable *v) : ScopeFindResultT(n, s, l… in SCOPE_TYPES()
52 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, uint32_t ll, Variable *v) in SCOPE_TYPES()
58 util::StringView name {}; in SCOPE_TYPES()
76 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
238 std::pair<varbinder::Variable *, bool> AddDecl(ArenaAllocator *allocator, util::StringView name,
242 …static VariableType *CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags fla…
246 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args);
248 virtual InsertResult InsertBinding(const util::StringView &name, Variable *var);
249 virtual InsertResult InsertOrAssignBinding(const util::StringView &name, Variable *const var);
250 virtual InsertResult TryInsertBinding(const util::StringView &name, Variable *var);
[all …]
/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/ets2panda/compiler/lowering/ets/topLevelStmts/
DimportExportDecls.h62 void VerifyType(ir::Statement *stmt, std::set<util::StringView> &exportedStatements,
63 std::map<util::StringView, ir::AstNode *> &typesMap);
64 …void HandleSimpleType(std::set<util::StringView> &exportedStatements, ir::Statement *stmt, util::S…
67 …void AddExportFlags(ir::AstNode *node, util::StringView originalFieldName, bool exportedWithAlias);
68 …void HandleSelectiveExportWithAlias(util::StringView originalFieldName, util::StringView exportNam…
70 void PopulateAliasMap(const ir::ExportNamedDeclaration *decl, const util::StringView &path);
71 void PopulateAliasMap(const ir::TSTypeAliasDeclaration *decl, const util::StringView &path);
89 std::map<util::StringView, ir::AstNode *> fieldMap_;
90 std::map<util::StringView, lexer::SourcePosition> exportNameMap_;
91 std::set<util::StringView> exportedTypes_;
[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/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/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/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 *>;
40 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView internal… in ETSObjectType()
47 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView internal… in ETSObjectType()
237 const util::StringView &Name() const in Name()
242 const util::StringView &AssemblerName() const in AssemblerName()
285 ETSObjectType *GetInstantiatedType(util::StringView hash) in GetInstantiatedType()
310 varbinder::LocalVariable *GetOwnProperty(const util::StringView &name) const in GetOwnProperty()
328 void AddProperty(varbinder::LocalVariable *prop, util::StringView localName) const in AddProperty()
330 util::StringView nameToAccess = prop->Name(); in AddProperty()
[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/parser/program/
Dprogram.h69 using ExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
70 using DirectExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
126 util::StringView SourceCode() const in SourceCode()
131 const util::StringView &SourceFilePath() const in SourceFilePath()
141 util::StringView SourceFileFolder() const in SourceFileFolder()
146 util::StringView FileName() const in FileName()
151 util::StringView FileNameWithExtension() const in FileNameWithExtension()
156 util::StringView AbsoluteName() const in AbsoluteName()
161 util::StringView ResolvedFilePath() const in ResolvedFilePath()
166 util::StringView RelativeFilePath() const in RelativeFilePath()
[all …]
/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/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/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/ets2panda/parser/
DinnerSourceParser.h24 class StringView; variable
44 util::StringView savedSourceCode_ {};
45 util::StringView savedSourceFile_ {};
46 util::StringView savedSourceFilePath_ {};
47 util::StringView savedRelativeFilePath_ {};
/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/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_ {};
/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_ {};

12345678910>>...15