| /arkcompiler/ets_frontend/es2panda/parser/module/ |
| D | sourceTextModuleRecord.h | 51 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/ |
| D | declaration.h | 48 const util::StringView &Name() const in DECLARATION_KINDS() 112 explicit Decl(util::StringView name) : name_(name) {} in DECLARATION_KINDS() 114 util::StringView name_; in DECLARATION_KINDS() 122 explicit MultiDecl(ArenaAllocator *allocator, util::StringView name) in MultiDecl() 143 explicit EnumLiteralDecl(util::StringView name, bool isConst) : Decl(name), isConst_(isConst) {} in EnumLiteralDecl() 172 …explicit InterfaceDecl(ArenaAllocator *allocator, util::StringView name) : MultiDecl(allocator, na… in InterfaceDecl() 182 explicit FunctionDecl(ArenaAllocator *allocator, util::StringView name, const ir::AstNode *node) in FunctionDecl() 196 explicit TypeParameterDecl(util::StringView name, const ir::AstNode *node); 206 explicit PropertyDecl(util::StringView name) : Decl(name) {} in PropertyDecl() 216 explicit MethodDecl(util::StringView name) : Decl(name) {} in MethodDecl() [all …]
|
| D | scope.h | 43 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 …]
|
| D | tsBinding.h | 25 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()
|
| D | binder.h | 90 …[[noreturn]] void ThrowRedeclaration(const lexer::SourcePosition &pos, const util::StringView &nam… 91 …eturn]] void ThrowUndeclaredExport(const lexer::SourcePosition &pos, const util::StringView &name); 92 …turn]] void ThrowInvalidDstrTarget(const lexer::SourcePosition &pos, const util::StringView &name); 124 …const ArenaUnorderedMap<const ir::ScriptFunction *, util::StringView> &AnonymousFunctionNames() co… in AnonymousFunctionNames() 129 void AddDeclarationName(const util::StringView &name); 131 bool HasVariableName(const util::StringView &name) const; 185 …void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func… 188 void LookupReference(const util::StringView &name); 209 ArenaSet<util::StringView> functionNames_; 210 ArenaUnorderedMap<const ir::ScriptFunction *, util::StringView> anonymousFunctionNames_; [all …]
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.h | 31 util::StringView name; 54 ir::VariableDeclaration *CreateVariableDeclarationWithIdentify(util::StringView name, 60 util::StringView paramName, 62 ir::Expression *CreateTsModuleParam(util::StringView paramName, bool isExport); 63 ir::ExpressionStatement *CreateTsModuleAssignment(util::StringView name); 65 util::StringView GetNameFromModuleDeclaration(ir::TSModuleDeclaration *node) const; 66 util::StringView GetParamName(ir::TSModuleDeclaration *node, util::StringView name) const; 67 binder::Scope *FindExportVariableInTsModuleScope(util::StringView name) const; 69 void AddExportLocalEntryItem(util::StringView name, const ir::Identifier *identifier); 103 util::StringView GetCurrentTSModuleName() const in GetCurrentTSModuleName() [all …]
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | ustring.h | 30 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 …]
|
| D | helpers.h | 51 static bool IsGlobalIdentifier(const util::StringView &str); 53 static util::StringView LiteralToPropName(const ir::Expression *lit); 58 static int64_t GetIndex(const util::StringView &str); 61 static util::StringView ToStringView(ArenaAllocator *allocator, double number); 62 static util::StringView ToStringView(ArenaAllocator *allocator, int32_t number); 63 static util::StringView ToStringView(ArenaAllocator *allocator, uint32_t number); 75 static util::StringView FunctionName(const ir::ScriptFunction *func); 76 …static std::tuple<util::StringView, bool> ParamName(ArenaAllocator *allocator, const ir::AstNode *…
|
| D | ustring.cpp | 22 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/lexer/regexp/ |
| D | regexp.h | 45 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/ir/expressions/literals/ |
| D | regExpLiteral.h | 35 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_;
|
| D | taggedLiteral.h | 35 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_ {};
|
| D | bigIntLiteral.h | 35 … explicit BigIntLiteral(util::StringView src) : Literal(AstNodeType::BIGINT_LITERAL), src_(src) {} in BigIntLiteral() 37 const util::StringView &Str() const in Str() 54 util::StringView src_;
|
| D | stringLiteral.h | 35 … 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/ |
| D | templateElement.h | 37 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/compiler/core/ |
| D | labelTarget.h | 42 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_ {};
|
| D | pandagen.h | 109 const ArenaSet<util::StringView> &Strings() const in Strings() 241 const util::StringView &InternalName() const; 242 const util::StringView &FunctionName() const; 255 …int32_t AddLexicalVarNamesForDebugInfo(ArenaMap<uint32_t, std::pair<util::StringView, int>> &lexic… 266 void StLetOrClassToGlobalRecord(const ir::AstNode *node, const util::StringView &name); 267 void StConstToGlobalRecord(const ir::AstNode *node, const util::StringView &name); 274 void LoadObjByName(const ir::AstNode *node, VReg obj, const util::StringView &prop); 280 void LoadGlobalVar(const ir::AstNode *node, const util::StringView &name); 281 void StoreGlobalVar(const ir::AstNode *node, const util::StringView &name); 285 …void LoadObjByNameViaDebugger(const ir::AstNode *node, const util::StringView &name, bool throwUnd… [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | indexInfo.h | 25 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_;
|
| D | stringLiteralType.h | 25 …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_;
|
| D | bigintLiteralType.h | 25 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/ |
| D | identifier.h | 48 explicit Identifier(util::StringView name, ArenaAllocator *allocator) in DEFINE_BITOPS() 53 explicit Identifier(util::StringView name, ArenaVector<Decorator *> &&decorators) in DEFINE_BITOPS() 58 … explicit Identifier(util::StringView name, Expression *typeAnnotation, ArenaAllocator *allocator) in DEFINE_BITOPS() 76 const util::StringView &Name() const in DEFINE_BITOPS() 132 util::StringView name_; in DEFINE_BITOPS()
|
| D | literal.cpp | 44 const util::StringView &Literal::GetString() const in GetString() 50 const util::StringView &Literal::GetMethod() const in GetMethod() 62 std::optional<util::StringView> Literal::GetName() const in GetName()
|
| D | literal.h | 62 const util::StringView &GetString() const; 63 const util::StringView &GetMethod() const; 65 std::optional<util::StringView> GetName() const;
|
| /arkcompiler/ets_frontend/es2panda/lexer/token/ |
| D | token.h | 81 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/ |
| D | lexer.h | 41 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()
|