Home
last modified time | relevance | path

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

1234

/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.h31 util::StringView name;
36 util::StringView name;
40 using PrivatePropertyMap = std::unordered_map<util::StringView, util::StringView>;
41 using ComputedPropertyMap = std::unordered_map<ir::Statement *, util::StringView>;
44 util::StringView name;
52 explicit DuringClass(ArenaVector<ClassInfo> *classList, util::StringView name) in DuringClass()
97 void AddVariableToNearestStatements(util::StringView name);
110 util::StringView name);
115 ir::VariableDeclaration *CreateVariableDeclarationWithIdentify(util::StringView name,
122 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_;
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/lexer/regexp/
Dregexp.h45 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags);
47 util::StringView patternStr;
48 util::StringView flagsStr;
87 util::StringView ParseIdent();
99 util::StringView::Iterator iter_;
101 std::unordered_set<util::StringView> groupNames_;
102 std::unordered_set<util::StringView> namedGroupReferences_;
/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.h43 using VariableMap = ArenaUnorderedMap<util::StringView, Variable *>;
50 bool AddTSVariable(const util::StringView &name, Variable *variable) in AddTSVariable()
61 Variable *FindTSVariable(const util::StringView &name) const in FindTSVariable()
75 bool InTSBindings(const util::StringView &name) const in InTSBindings()
103 Variable *FindExportVariable(const util::StringView &name) const in FindExportVariable()
112 bool AddExportVariable(const util::StringView &name, Variable *var) in AddExportVariable()
117 bool InExportBindings(const util::StringView &name) const in InExportBindings()
124 Variable *FindExportTSVariable(const util::StringView &name) const in FindExportTSVariable()
130 bool AddExportTSVariable(const util::StringView &name, Variable *var) in AddExportTSVariable()
143 …ScopeFindResult(util::StringView n, Scope *s, uint32_t l, Variable *v) : ScopeFindResult(n, s, l, … in ScopeFindResult()
[all …]
DtsBinding.h25 using EnumMemberResult = std::variant<double, util::StringView, bool>;
29 explicit TSBinding(ArenaAllocator *allocator, util::StringView name) in TSBinding()
35 static std::string ToTSBinding(util::StringView name) in ToTSBinding()
/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_;
DbigIntLiteral.h35 … explicit BigIntLiteral(util::StringView src) : Literal(AstNodeType::BIGINT_LITERAL), src_(src) {} in BigIntLiteral()
37 const util::StringView &Str() const in Str()
42 util::StringView Str() in Str()
59 util::StringView src_;
DnumberLiteral.h36 explicit NumberLiteral(double num, util::StringView str) in NumberLiteral()
47 const util::StringView &Str() const in Str()
72 util::StringView str_;
77 explicit UserTypeIndexLiteral(double num, util::StringView str) : NumberLiteral(num, str) {} in UserTypeIndexLiteral()
DtaggedLiteral.h35 explicit TaggedLiteral(LiteralTag tag, util::StringView str) in TaggedLiteral()
45 const util::StringView &Str() const in Str()
60 const util::StringView &Method() const in Method()
81 util::StringView str_ {};
DstringLiteral.h35 … explicit StringLiteral(util::StringView str) : Literal(AstNodeType::STRING_LITERAL), str_(str) {} in StringLiteral()
37 const util::StringView &Str() const in Str()
59 util::StringView str_;
/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()
59 util::StringView raw_ {};
60 util::StringView cooked_ {};
/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 <<()
Dhelpers.h61 static bool IsGlobalIdentifier(const util::StringView &str);
63 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit);
68 static int64_t GetIndex(const util::StringView &str);
77 static util::StringView ToStringView(ArenaAllocator *allocator, double number);
78 static util::StringView ToStringView(ArenaAllocator *allocator, int32_t number);
79 static util::StringView ToStringView(ArenaAllocator *allocator, uint32_t number);
91 static util::StringView FunctionName(ArenaAllocator *allocator, const ir::ScriptFunction *func);
92 …static std::tuple<util::StringView, bool> ParamName(ArenaAllocator *allocator, const ir::AstNode *…
/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_ {};
Dpandagen.h110 const ArenaSet<util::StringView> &Strings() const in Strings()
262 const util::StringView &InternalName() const;
263 const util::StringView &FunctionName() const;
276 …int32_t AddLexicalVarNamesForDebugInfo(ArenaMap<uint32_t, std::pair<util::StringView, int>> &lexic…
287 void StLetOrClassToGlobalRecord(const ir::AstNode *node, const util::StringView &name);
288 void StConstToGlobalRecord(const ir::AstNode *node, const util::StringView &name);
295 void LoadObjByName(const ir::AstNode *node, VReg obj, const util::StringView &prop);
301 void LoadGlobalVar(const ir::AstNode *node, const util::StringView &name);
302 void StoreGlobalVar(const ir::AstNode *node, const util::StringView &name);
306 …void LoadObjByNameViaDebugger(const ir::AstNode *node, const util::StringView &name, bool throwUnd…
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/types/
DindexInfo.h25 IndexInfo(Type *type, util::StringView paramName, bool readonly) in IndexInfo()
30 … IndexInfo(Type *type, util::StringView paramName, bool readonly, const lexer::SourcePosition &pos) in IndexInfo()
54 const util::StringView &ParamName() in ParamName()
76 util::StringView paramName_;
DstringLiteralType.h25 …explicit StringLiteralType(util::StringView value) : Type(TypeFlag::STRING_LITERAL), value_(value)… in StringLiteralType()
27 const util::StringView &Value() const in Value()
40 util::StringView value_;
DbigintLiteralType.h25 BigintLiteralType(util::StringView value, bool negative) in BigintLiteralType()
30 const util::StringView &Value() const in Value()
48 util::StringView value_;
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.h48 explicit Identifier(util::StringView name) in DEFINE_BITOPS()
53 explicit Identifier(util::StringView name, Expression *typeAnnotation) in DEFINE_BITOPS()
70 const util::StringView &Name() const in DEFINE_BITOPS()
75 void SetName(util::StringView name) in DEFINE_BITOPS()
136 util::StringView name_; in DEFINE_BITOPS()
Dliteral.h64 const util::StringView &GetString() const;
65 const util::StringView &GetMethod() const;
67 std::optional<util::StringView> GetName() const;
Dliteral.cpp44 const util::StringView &Literal::GetString() const in GetString()
53 const util::StringView &Literal::GetMethod() const in GetMethod()
65 std::optional<util::StringView> Literal::GetName() const in GetName()
/arkcompiler/ets_frontend/es2panda/lexer/token/
Dtoken.h81 const util::StringView &Ident() const in DEFINE_BITOPS()
86 const util::StringView &BigInt() const in DEFINE_BITOPS()
98 const util::StringView &String() const in DEFINE_BITOPS()
134 util::StringView src_ {}; in DEFINE_BITOPS()
/arkcompiler/ets_frontend/es2panda/lexer/
Dlexer.h41 explicit LexerPosition(const util::StringView &source); in DEFINE_BITOPS()
47 util::StringView::Iterator iterator; in DEFINE_BITOPS()
106 inline util::StringView::Iterator &Iterator() in Iterator()
111 inline const util::StringView::Iterator &Iterator() const in Iterator()
116 …util::StringView SourceView(const util::StringView::Iterator &begin, const util::StringView::Itera…
117 util::StringView SourceView(size_t begin, size_t end) const;
175 util::StringView source_;
222 case util::StringView::Iterator::INVALID_CP: { in ScanString()

1234