| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | Util.cmake | 18 ${VERIFICATION_SOURCES_DIR}/util/tests/environment.cpp 19 ${VERIFICATION_SOURCES_DIR}/util/tests/lazy_test.cpp 20 ${VERIFICATION_SOURCES_DIR}/util/tests/addr_map_test.cpp 21 ${VERIFICATION_SOURCES_DIR}/util/tests/tagged_index_test.cpp 22 ${VERIFICATION_SOURCES_DIR}/util/tests/flags.cpp 23 ${VERIFICATION_SOURCES_DIR}/util/tests/obj_pool_test.cpp 24 ${VERIFICATION_SOURCES_DIR}/util/tests/index_test.cpp 25 ${VERIFICATION_SOURCES_DIR}/util/tests/optional_ref_test.cpp 26 ${VERIFICATION_SOURCES_DIR}/util/tests/saturated_enum_test.cpp 27 ${VERIFICATION_SOURCES_DIR}/util/tests/shifted_vector_test.cpp [all …]
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | path.h | 21 #include "util/ustring.h" 23 namespace ark::es2panda::util { 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 &GetFileNameWithExtension() const; 45 const util::StringView &GetParentFolder() const; [all …]
|
| D | importPathManager.h | 23 #include "util/arktsconfig.h" 24 #include "util/ustring.h" 25 #include "util/enumbitops.h" 26 #include "util/path.h" 27 #include "util/options.h" 29 namespace ark::es2panda::util { 42 } // namespace ark::es2panda::util 46 struct IsAllowedType<ark::es2panda::util::ImportFlags> : std::true_type { 58 namespace ark::es2panda::util { 105 …ImportPathManager(ark::ArenaAllocator *allocator, const util::Options &options, parser::Program *g… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | declaration.h | 20 #include "util/es2pandaMacros.h" 21 #include "util/diagnosticEngine.h" 22 #include "util/ustring.h" 50 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() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ |
| D | FormatTest.ets | 16 import {util} from "@ohos.util"; 31 failures += check(testUtilFormat(), "Test util.format()") 32 …failures += check(testFormatLessArgsThanInFormat(), "Test util.format() with less arguments count … 33 failures += check(testFormatIncorrectArgs(), "Test util.format() with incorrect argument flags") 34 …failures += check(testFormatNoMatchArgs(), "Test util.format() with no matching flags & arguments") 35 …failures += check(testFormatMoreArgsThanInUtilFormat(), "Test util.format() with more args than in… 36 failures += check(testFormatJSON(), "Test util.format() JSON") 37 failures += check(testFormatRemoveCSS(), "Test util.format() remove CSS from string") 38 failures += check(testFormatEscapePercent(), "Test util.format() for %%") 39 … failures += check(testEmptyFormatWithArgs(), "Test util.format() with args & empty format string") [all …]
|
| D | GetHashTest.ets | 16 import {util} from "@ohos.util"; 46 let result1 = util.getHash(person); 47 let result2 = util.getHash(person); 53 let result1 = util.getHash(numbers); 54 let result2 = util.getHash(numbers); 70 let result1 = util.getHash(myCar); 71 let result2 = util.getHash(myCar); 77 let result1 = util.getHash(now); 78 let result2 = util.getHash(now); 84 let result1 = util.getHash(regex); [all …]
|
| D | Base64HelperTest.ets | 16 import {util} from "@ohos.util"; 48 let helper = new util.Base64Helper(); 50 let encodedStr: String = helper.encodeToStringSync(input, util.Type.BASIC); 51 let decoded: Uint8Array = helper.decodeSync(encodedStr, util.Type.BASIC); 57 let helper = new util.Base64Helper(); 59 let encodedBytes: Uint8Array = helper.encodeSync(input, util.Type.BASIC); 64 let decoded: Uint8Array = helper.decodeSync(encodedStr, util.Type.BASIC); 70 let helper = new util.Base64Helper(); 72 let encodedStr: String = helper.encodeToStringSync(input, util.Type.BASIC_URL_SAFE); 75 let decoded: Uint8Array = helper.decodeSync(encodedStr, util.Type.BASIC_URL_SAFE); [all …]
|
| D | TextEncoderTest.ets | 16 import {util} from "@ohos.util"; 50 const enc = new util.TextEncoder('utf-8'); 60 const enc = new util.TextEncoder('utf-16le'); 69 const enc = new util.TextEncoder('utf-16le'); 77 const enc = new util.TextEncoder('utf-16be'); 85 const enc = new util.TextEncoder('utf-16be'); 93 let enc = util.TextEncoder.create('GB2312'); 103 let enc= new util.TextEncoder('utf-16be'); 112 let enc = new util.TextEncoder('utf-16le'); 121 let enc = new util.TextEncoder(); [all …]
|
| D | TextDecoderTest.ets | 16 import {util} from "@ohos.util"; 43 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:true}); 52 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 62 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 72 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:true}); 82 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 95 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 104 let textDecode = util.TextDecoder.create('utf-8'); 113 let textDecoderOptions : util.TextDecoderOptions = { 117 let textDecode = util.TextDecoder.create('utf-8', textDecoderOptions); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/lexer/ |
| D | keywords.cpp | 22 KeywordString JSKeywords::Handle_as([[maybe_unused]] const KeywordsUtil &util, std::string_view src, in Handle_as() argument 28 KeywordString JSKeywords::Handle_await(const KeywordsUtil &util, std::string_view src, TokenType to… in Handle_await() argument 30 const auto *parserContext = util.GetParserContext(); in Handle_await() 36 util.CheckEscapedKeyword(); in Handle_await() 41 KeywordString JSKeywords::Handle_yield(const KeywordsUtil &util, std::string_view src, TokenType to… in Handle_yield() argument 43 const auto *parserContext = util.GetParserContext(); in Handle_yield() 46 util.LogUnexpectedStrictModeReservedKeyword(); in Handle_yield() 49 util.CheckEscapedKeyword(); in Handle_yield() 54 KeywordString TSKeywords::Handle_as(const KeywordsUtil &util, std::string_view src, TokenType token… in Handle_as() argument 56 return JSKeywords::Handle_as(util, src, tokenType); in Handle_as() [all …]
|
| /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/runtime_core/static_core/plugins/ets/tests/test-lists/ets-sdk/ |
| D | ets-sdk-ignored.txt | 2 api/@ohos/util/HashMap/HashMapEntriesTest.ets 3 api/@ohos/util/HashSet/HashSetEntriesTest.ets 4 api/@ohos/util/LightWeightMap/LightWeightMapEntriesTest.ets 5 api/@ohos/util/LightWeightSet/LightWeightSetEntriesTest.ets 6 api/@ohos/util/TreeMap/TreeMapSetGetTest.ets 7 api/@ohos/util/TreeMap/TreeMapEntriesTest.ets 8 api/@ohos/util/TreeSet/TreeSetEntriesTest.ets 9 api/@ohos/util/StringDecoder/EncodingTest.ets
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/ |
| D | importExportDecls.h | 40 const std::string defaultImportSource_ = CreateDefaultImportSource(util::Helpers::StdLib()); 62 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_; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/parser/program/ |
| D | program.h | 19 #include "util/es2pandaMacros.h" 22 #include "util/ustring.h" 23 #include "util/path.h" 24 #include "util/importPathManager.h" 27 #include "util/enumbitops.h" 69 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() 136 const util::Path &SourceFile() const in SourceFile() [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | compileQueue.h | 22 #include <util/symbolTable.h> 23 #include <util/workerQueue.h> 38 class CompileFunctionJob : public util::WorkerJob { 62 class CompileModuleRecordJob : public util::WorkerJob { 75 class CompileFileJob : public util::WorkerJob { 78 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, in CompileFileJob() 80 util::SymbolTable *symbolTable, panda::ArenaAllocator *allocator) in CompileFileJob() 96 … std::map<std::string, panda::es2panda::util::ProgramCache *> &abcProgramsInfo); 101 std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 103 util::SymbolTable *symbolTable_; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ |
| D | es2panda.h | 19 #include "util/es2pandaMacros.h" 20 #include "util/plugin.h" 21 #include "util/diagnostic.h" 23 #include "util/language.h" 37 using ETSWarnings = util::gen::ets_warnings::Enum; 38 using EvalMode = util::gen::eval_mode::Enum; 39 using ScriptExtension = util::gen::extension::Enum; 44 namespace util { 47 } // namespace util 111 explicit Compiler(ScriptExtension ext, size_t threadCount, std::vector<util::Plugin> &&plugins); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/extensions/ |
| D | debugger.py | 24 import cdp.util as util namespace 41 def from_json(cls, json: util.T_JSON_DICT) -> CustomUrlBreakpointResponse: 49 def to_json(self) -> util.T_JSON_DICT: 50 json: util.T_JSON_DICT = dict() 68 def from_json(cls, json: util.T_JSON_DICT) -> UrlBreakpointRequest: 78 def to_json(self) -> util.T_JSON_DICT: 79 json: util.T_JSON_DICT = dict() 94 def remove_breakpoints_by_url(url: str) -> typing.Generator[util.T_JSON_DICT, util.T_JSON_DICT, Non… 100 params: util.T_JSON_DICT = dict() 102 cmd_dict: util.T_JSON_DICT = { [all …]
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | scope.h | 22 #include <util/enumbitops.h> 23 #include <util/ustring.h> 52 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() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/aot/ |
| D | main.cpp | 22 #include "util/arktsconfig.h" 23 #include "util/diagnosticEngine.h" 24 #include "util/generateBin.h" 25 #include "util/options.h" 26 #include "util/plugin.h" 55 static int CompileFromSource(es2panda::Compiler &compiler, es2panda::SourceFile &input, const util:… in CompileFromSource() 56 util::DiagnosticEngine &diagnosticEngine) in CompileFromSource() 62 if (err.Type() == util::DiagnosticType::INVALID) { in CompileFromSource() 73 return util::GenerateProgram( in CompileFromSource() 75 …[&diagnosticEngine](const diagnostic::DiagnosticKind &kind, const util::DiagnosticMessageParams &p… in CompileFromSource() [all …]
|
| /arkcompiler/ets_frontend/es2panda/parser/module/ |
| D | sourceTextModuleRecord.h | 19 #include <util/ustring.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() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/sdk/ |
| D | CMakeLists.txt | 33 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.ArrayList.ets" 34 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.Deque.ets" 35 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.HashMap.ets" 36 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.HashSet.ets" 37 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.json.ets" 38 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.LightWeightMap.ets" 39 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.LightWeightSet.ets" 40 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.LinkedList.ets" 41 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.List.ets" 42 "${CMAKE_CURRENT_SOURCE_DIR}/api/@ohos.util.PlainArray.ets" [all …]
|
| /arkcompiler/ets_frontend/ets2panda/evaluate/ |
| D | entityDeclarator.h | 38 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 …static varbinder::Variable *FindEntityVariable(UMapStringViewVariable &entitiesMap, util::StringVi… 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/parser/program/ |
| D | program.h | 23 #include <util/patchFix.h> 24 #include <util/ustring.h> 88 util::StringView SourceCode() const in SourceCode() 93 util::StringView SourceFile() const in SourceFile() 98 util::StringView RecordName() const in RecordName() 103 util::StringView FormatedRecordName() const in FormatedRecordName() 130 sourceCode_ = util::UString(sourceCode, Allocator()); in SetSource() 131 sourceFile_ = util::UString(sourceFile, Allocator()); in SetSource() 138 recordName_ = util::UString(recordName, Allocator()); in SetRecordName() 140 formatedRecordName_ = util::UString(formatedRecordName, Allocator()); in SetRecordName() [all …]
|
| /arkcompiler/ets_frontend/es2panda/aot/ |
| D | emitFiles.h | 21 #include <util/helpers.h> 22 #include <util/workerQueue.h> 27 class EmitSingleAbcJob : public util::WorkerJob { 43 std::string targetApiSubVersion_ { util::Helpers::DEFAULT_SUB_API_VERSION }; 46 class EmitMergedAbcJob : public util::WorkerJob { 49 … const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo) in EmitMergedAbcJob() 63 const std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo_; 65 std::string targetApiSubVersion_ { util::Helpers::DEFAULT_SUB_API_VERSION }; 68 class EmitCacheJob : public util::WorkerJob { 70 …explicit EmitCacheJob(const std::string &outputProtoName, panda::es2panda::util::ProgramCache *pro… in EmitCacheJob() [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.h | 19 #include <util/enumbitops.h> 20 #include <util/ustring.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_;
|