| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | path.h | 36 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 …]
|
| D | importPathManager.h | 38 StringView sourcePath; 55 StringView ResolvePath(const StringView ¤tModulePath, const StringView &importPath) const; 56 void AddToParseList(const StringView &path, bool isDefaultImport); 58 ImportData GetImportData(const util::StringView &path, const ScriptExtension &extension) const; 59 void MarkAsParsed(const StringView &path); 62 bool IsRelativePath(const StringView &path) const; 63 StringView GetRealPath(const StringView &path) const; 64 StringView AppendExtensionOrIndexFileIfOmitted(const StringView &path) const; 66 …void UnixWalkThroughDirectoryAndAddToParseList(const StringView &directoryPath, bool isDefaultImpo…
|
| D | ustring.h | 29 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 …]
|
| D | path.cpp | 25 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()
|
| 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() in SkipCp() 83 bool StringView::IsConvertibleToChar() const in IsConvertibleToChar() 96 ostream &operator<<(ostream &os, const ark::es2panda::util::StringView &us) in operator <<()
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.h | 33 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/ |
| D | declaration.h | 48 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 …]
|
| D | ETSBinder.h | 29 using AliasesByExportedNames = ArenaMap<util::StringView, util::StringView>; 30 using ModulesToExportedNamesWithAliases = ArenaMap<util::StringView, AliasesByExportedNames>; 117 …bool DetectNameConflict(const util::StringView localName, Variable *const var, Variable *const oth… 120 ArenaVector<parser::Program *> GetExternalProgram(const util::StringView &sourceName, 129 const util::StringView &imported, 136 … const util::StringView &imported, const ir::StringLiteral *const importPath); 137 Variable *FindImportSpecifiersVariable(const util::StringView &imported, 156 …void BuildProxyMethod(ir::ScriptFunction *func, const util::StringView &containingClassName, bool … 202 ArenaVector<parser::Program *> GetProgramList(const util::StringView &path) const in GetProgramList() 229 bool CheckForRedeclarationError(const util::StringView &localName, Variable *const var, [all …]
|
| /arkcompiler/ets_frontend/ets2panda/parser/program/ |
| D | program.h | 43 using ExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>; 97 util::StringView SourceCode() const in SourceCode() 102 const util::StringView &SourceFilePath() const in SourceFilePath() 112 util::StringView SourceFileFolder() const in SourceFileFolder() 117 util::StringView FileName() const in FileName() 122 util::StringView AbsoluteName() const in AbsoluteName() 127 util::StringView ResolvedFilePath() const in ResolvedFilePath() 172 void SetSource(const util::StringView &sourceCode, const util::StringView &sourceFilePath, in SetSource() 173 const util::StringView &sourceFileFolder) in SetSource() 188 void SetModuleInfo(const util::StringView &name, bool isPackage, bool omitName = false) [all …]
|
| /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_; 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/ |
| D | scope.h | 52 using VariableMap = ArenaUnorderedMap<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 …]
|
| D | declaration.h | 50 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/compiler/lowering/ets/topLevelStmts/ |
| D | importExportDecls.h | 60 …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); 82 std::map<util::StringView, ir::AstNode *> fieldMap_; 83 std::map<util::StringView, lexer::SourcePosition> exportNameMap_; 84 std::set<util::StringView> exportedTypes_;
|
| D | importExportDecls.cpp | 44 …util::StringView originalName = varbinder_->FindNameInAliasMap(program->SourceFilePath(), exportNa… in HandleGlobalStmts() 59 …ExportDecls::PopulateAliasMap(const ir::ExportNamedDeclaration *decl, const util::StringView &path) in PopulateAliasMap() 71 …ortExportDecls::HandleSelectiveExportWithAlias(util::StringView originalFieldName, util::StringVie… in HandleSelectiveExportWithAlias() 142 void ImportExportDecls::HandleSimpleType(std::set<util::StringView> &exportedTypes, in HandleSimpleType() 143 … std::set<util::StringView> &exportedStatements, ir::Statement *stmt, in HandleSimpleType() 144 … util::StringView name, parser::Program *program, lexer::SourcePosition pos) in HandleSimpleType() 168 std::set<util::StringView> exportedTypes; in VerifyTypeExports() 169 std::set<util::StringView> exportedStatements; in VerifyTypeExports() 170 std::map<util::StringView, ir::AstNode *> typesMap; in VerifyTypeExports() 180 std::set<util::StringView> &exportedTypes, in VerifyType() [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.h | 46 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/ |
| D | regexp.h | 48 RegExp(util::StringView p, util::StringView f, RegExpFlags reFlags); 51 util::StringView patternStr; 52 util::StringView flagsStr; 96 util::StringView ParseIdent(); 107 util::StringView::Iterator iter_; 109 std::unordered_set<util::StringView> groupNames_; 110 std::unordered_set<util::StringView> backReferences_;
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsObjectType.h | 31 using PropertyMap = ArenaUnorderedMap<util::StringView, varbinder::LocalVariable *>; 32 using InstantiationMap = ArenaUnorderedMap<util::StringView, ETSObjectType *>; 48 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView assemble… in ETSObjectType() 55 …explicit ETSObjectType(ArenaAllocator *allocator, util::StringView name, util::StringView assemble… in ETSObjectType() 245 const util::StringView &Name() const in Name() 250 const util::StringView &AssemblerName() const in AssemblerName() 255 void SetName(const util::StringView &newName) in SetName() 260 void SetAssemblerName(const util::StringView &newName) in SetAssemblerName() 298 ETSObjectType *GetInstantiatedType(util::StringView hash) in GetInstantiatedType() 323 varbinder::LocalVariable *GetOwnProperty(const util::StringView &name) const in GetOwnProperty() [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(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/ |
| 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_;
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | labelTarget.h | 41 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/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() 69 util::StringView raw_ {}; 70 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_ {};
|
| /arkcompiler/ets_frontend/ets2panda/ir/base/ |
| D | templateElement.h | 32 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/ets2panda/ir/expressions/ |
| D | dummyNode.h | 46 … explicit DummyNode(util::StringView const name, util::StringView indexName, TypeNode *returnType, 66 [[nodiscard]] util::StringView GetIndexName() const 71 void SetIndexName(const util::StringView &indexName) 86 util::StringView Name() const 111 util::StringView name_; 112 util::StringView indexName_;
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/ |
| D | privateIdentifier.h | 35 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_;
|