Home
last modified time | relevance | path

Searched refs:StringView (Results 1 – 25 of 264) sorted by relevance

1234567891011

/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 …]
Dustring.h29 class StringView {
31 explicit StringView() noexcept = default;
32 explicit StringView(const ArenaString *str) noexcept : sv_(*str) {} in StringView() function
34 StringView(std::string_view sv) noexcept : sv_(sv) {} in StringView() function
36 StringView(const char *str) noexcept : sv_(str == nullptr ? "" : str) {} in StringView() function
37 DEFAULT_COPY_SEMANTIC(StringView);
38 DEFAULT_MOVE_SEMANTIC(StringView);
39 ~StringView() = default;
41 bool operator==(const StringView &rhs) const noexcept
46 bool operator!=(const StringView &rhs) const noexcept
[all …]
Dpath.cpp25 Path::Path(const util::StringView &absolutePath, ArenaAllocator *allocator) in Path()
59 util::StringView fileName = path_.Substr(position + 1, path_.Length()); in InitializeFileName()
115 Path::Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *… in Path()
142 const util::StringView &Path::GetPath() const in GetPath()
147 const util::StringView &Path::GetAbsolutePath() const in GetAbsolutePath()
152 const util::StringView &Path::GetExtension() const in GetExtension()
157 const util::StringView &Path::GetFileName() const in GetFileName()
162 const util::StringView &Path::GetParentFolder() const in GetParentFolder()
167 const util::StringView &Path::GetAbsoluteParentFolder() const in GetAbsoluteParentFolder()
Dustring.cpp22 std::string StringView::Mutf8() const noexcept in Mutf8()
36 char32_t StringView::DecodeSurrogates(char32_t high, char32_t low) in DecodeSurrogates()
45 std::tuple<char32_t, char32_t> StringView::EncodeSurrogate(char32_t cp) in EncodeSurrogate()
54 void StringView::Iterator::SkipCp() in SkipCp()
87 ostream &operator<<(ostream &os, const panda::es2panda::util::StringView &us) in operator <<()
/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/varbinder/
Ddeclaration.h48 const util::StringView &Name() const in DECLARATION_KINDS()
98 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS()
99 explicit Decl(util::StringView name, ir::AstNode *declNode) : name_(name), node_(declNode) {} in DECLARATION_KINDS()
102 util::StringView name_; in DECLARATION_KINDS()
110 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl()
115 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in MultiDecl()
136 explicit EnumLiteralDecl(util::StringView name, bool isConst) : Decl(name), isConst_(isConst) {} in EnumLiteralDecl()
137 explicit EnumLiteralDecl(util::StringView name, ir::AstNode *declNode, bool isConst) in EnumLiteralDecl()
169 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl()
170 explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name, ir::AstNode *declNode) in InterfaceDecl()
[all …]
DETSBinder.h125 ArenaVector<parser::Program *> GetExternalProgram(const util::StringView &sourceName,
136 Variable *FindImportSpecifiersVariable(const util::StringView &imported,
155 …void BuildProxyMethod(ir::ScriptFunction *func, const util::StringView &containingClassName, bool …
160 void FormLambdaName(util::UString &name, const util::StringView &signature);
161 void FormFunctionalInterfaceName(util::UString &name, const util::StringView &signature);
205 const ArenaUnorderedMap<util::StringView, util::StringView> &ResolvedImportPathesMap() const in ResolvedImportPathesMap()
210 const util::StringView &GetResolvedImportPath(const util::StringView &path) const in GetResolvedImportPath()
245 void HandleStarImport(ir::TSQualifiedName *importName, util::StringView fullPath);
247 …mportGlobalPropertiesForNotDefaultedExports(varbinder::Variable *var, const util::StringView &name,
250 const util::StringView &name, Variable *var);
[all …]
Dscope.h50 …ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, Variable *v) : ScopeFindResultT(n, s, l… in ScopeFindResultT()
52 ScopeFindResultT(util::StringView n, ScopeT s, uint32_t l, uint32_t ll, Variable *v) in ScopeFindResultT()
58 util::StringView name {};
75 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
229 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
232 …static VariableType *CreateVar(ArenaAllocator *allocator, util::StringView name, VariableFlags fla…
236 Variable *PropagateBinding(ArenaAllocator *allocator, util::StringView name, Args &&...args);
238 virtual InsertResult InsertBinding(const util::StringView &name, Variable *var);
239 virtual InsertResult TryInsertBinding(const util::StringView &name, Variable *var);
241 virtual VariableMap::size_type EraseBinding(const util::StringView &name);
[all …]
/arkcompiler/ets_frontend/ets2panda/parser/program/
Dprogram.h41 using ExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
92 util::StringView SourceCode() const in SourceCode()
97 util::StringView SourceFilePath() const in SourceFilePath()
102 util::StringView SourceFileFolder() const in SourceFileFolder()
107 util::StringView FileName() const in FileName()
112 util::StringView AbsoluteName() const in AbsoluteName()
117 util::StringView ResolvedFilePath() const in ResolvedFilePath()
162 void SetSource(const util::StringView &sourceCode, const util::StringView &sourceFilePath, in SetSource()
163 const util::StringView &sourceFileFolder) in SetSource()
180 const util::StringView &GetPackageName() const in GetPackageName()
[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_;
74 ExportEntry(const util::StringView exportName, const util::StringView localName, in ExportEntry()
78 …ExportEntry(const util::StringView exportName, const util::StringView importName, int moduleReques… in ExportEntry()
90 int AddModuleRequest(const util::StringView source);
[all …]
/arkcompiler/ets_frontend/es2panda/binder/
Ddeclaration.h50 const util::StringView &Name() const in DECLARATION_KINDS()
129 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS()
131 util::StringView name_; in DECLARATION_KINDS()
140 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl()
161 …explicit EnumLiteralDecl(ArenaAllocator *allocator, util::StringView name, bool isExport, bool isC… in EnumLiteralDecl()
197 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl()
207 explicit TypeParameterDecl(util::StringView name, const ir::AstNode *node);
217 explicit PropertyDecl(util::StringView name) : Decl(name) {} in PropertyDecl()
227 explicit MethodDecl(util::StringView name) : Decl(name) {} in MethodDecl()
237 explicit EnumDecl(util::StringView name) : Decl(name) {} in EnumDecl()
[all …]
Dscope.h48 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
55 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable()
66 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable()
80 bool InTSBindings(const util::StringView &name) const in InTSBindings()
108 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable()
117 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable()
122 bool InExportBindings(const util::StringView &name) const in InExportBindings()
129 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable()
135 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable()
148 …ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) : ScopeFindResult(n, s, l, … in ScopeFindResult()
[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/lexer/regexp/
Dregexp.h47 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags);
50 util::StringView patternStr;
51 util::StringView flagsStr;
93 util::StringView ParseIdent();
104 util::StringView::Iterator iter_;
106 std::unordered_set<util::StringView> groupNames_;
107 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(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 …]
Dustring.cpp22 std::string StringView::Mutf8() const noexcept in Mutf8()
36 char32_t StringView::DecodeSurrogates(char32_t high, char32_t low) in DecodeSurrogates()
45 std::tuple<char32_t, char32_t> StringView::EncodeSurrogate(char32_t cp) in EncodeSurrogate()
54 void StringView::Iterator::SkipCp() const in SkipCp()
88 ostream &operator<<(ostream &os, const panda::es2panda::util::StringView &us) in operator <<()
/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/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_ {};
/arkcompiler/ets_frontend/ets2panda/compiler/core/
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_ {};
Dpandagen.h94 void LoadObjByName(const ir::AstNode *node, const util::StringView &prop);
99 void LoadGlobalVar(const ir::AstNode *node, const util::StringView &name);
100 void StoreGlobalVar(const ir::AstNode *node, const util::StringView &name);
101 void StoreGlobalLet(const ir::AstNode *node, const util::StringView &name);
105 void TryLoadGlobalByName(const ir::AstNode *node, const util::StringView &name);
106 void TryStoreGlobalByName(const ir::AstNode *node, const util::StringView &name);
111 void LoadAccumulatorBigInt(const ir::AstNode *node, const util::StringView &bigInt);
147 void DefineMethod(const ir::AstNode *node, const util::StringView &name);
148 …unction(const ir::AstNode *node, const ir::ScriptFunction *realNode, const util::StringView &name);
167 void GetMethod(const ir::AstNode *node, VReg obj, const util::StringView &name);
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/ets/
DetsReExportDeclaration.h29 … std::vector<std::string> const &userPaths, util::StringView programPath, in ETSReExportDeclaration()
48 const ArenaVector<util::StringView> &GetUserPaths() const in GetUserPaths()
53 util::StringView const &GetProgramPath() const in GetProgramPath()
60 ArenaVector<util::StringView> userPaths_;
61 util::StringView programPath_;
/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()
65 util::StringView raw_ {};
66 util::StringView cooked_ {};
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DprivateIdentifier.h35 explicit PrivateIdentifier(util::StringView name) in PrivateIdentifier()
40 explicit PrivateIdentifier(util::StringView name, Expression *typeAnnotation) in PrivateIdentifier()
57 const util::StringView &Name() const in Name()
62 void SetName(util::StringView name) in SetName()
74 util::StringView name_;
/arkcompiler/ets_frontend/ets2panda/ir/expressions/literals/
DregExpLiteral.h32 …explicit RegExpLiteral(util::StringView pattern, lexer::RegExpFlags flags, util::StringView flagsS… in RegExpLiteral()
37 [[nodiscard]] const util::StringView &Pattern() const noexcept in Pattern()
65 util::StringView pattern_;
67 util::StringView flagsStr_;

1234567891011