Home
last modified time | relevance | path

Searched refs:extension (Results 1 - 25 of 63) sorted by relevance

123

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/chapters_test/
H A Dchapters_test.py52 extension="sts",
69 extension="sts",
86 extension="sts",
102 extension="sts",
114 extension="sts",
127 extension="sts",
140 extension="sts",
162 extension="sts",
172 extension="sts",
188 extension
[all...]
/arkcompiler/ets_frontend/ets2panda/lexer/scripts/
H A Dkeywords.rb63 data.extensions.each do |extension|
64 @extensions[extension.name] = Hash.new()
73 raise "Unknown extension" unless active.subset?(Set.new(data.extensions.map { |ext| ext.name }))
74 active.include? extension.name
78 desc&.keyword&.include? extension.name or desc&.custom_handler&.include? extension.name
81 @extensions[extension.name]['keywords'] = keywords
82 @extensions[extension.name]['keyword_starts'] = Set.new(keywords.map { |desc| desc.name[0] })
83 @extensions[extension.name]['all_words'] = all_words
84 @extensions[extension
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dmethod_test.cpp96 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in VerifyLineNumber() local
100 Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in VerifyLineNumber()
167 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() local
171 Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F()
232 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() local
236 Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R"), &descriptor)); in TEST_F()
269 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() local
273 Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F()
370 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() local
374 Class *klass = extension in TEST_F()
412 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); TEST_F() local
534 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); TEST_F() local
583 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); TEST_F() local
[all...]
H A Dinterpreter_test_resolve_field.cpp97 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() local
102 Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R1"), &descriptor)); in TEST_F()
117 Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R2"), &descriptor)); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/util/
H A DimportPathManager.cpp37 static bool IsCompatibleExtension(const std::string &extension) in IsCompatibleExtension() argument
39 return extension == ".sts" || extension == ".ts"; in IsCompatibleExtension()
138 if (!fs::is_regular_file(entry) || !IsCompatibleExtension(entry.path().extension().string())) { in AddToParseList()
191 const ScriptExtension &extension) const in GetImportData()
213 return {ToLanguage(extension), path.Mutf8(), true}; in GetImportData()
270 for (const auto &extension : supportedExtensions) { in AppendExtensionOrIndexFileIfOmitted()
271 if (ark::os::file::File::IsRegularFile(path.Mutf8() + extension)) { in AppendExtensionOrIndexFileIfOmitted()
272 return GetRealPath(UString(path.Mutf8().append(extension), allocator_).View()); in AppendExtensionOrIndexFileIfOmitted()
H A Doptions.h152 std::string extension = inputExtension.GetValue(); in DetermineExtension() local
155 bool extensionIsEmpty = extension.empty(); in DetermineExtension()
156 if (!sourceFile_.empty() && !extensionIsEmpty && extension != sourceFileExtension) { in DetermineExtension()
158 << ", Manual(used): " << extension << std::endl; in DetermineExtension()
160 auto tempExtension = !extensionIsEmpty ? extension : sourceFileExtension; in DetermineExtension()
164 errorMsg_ = "js extension is not supported within current build"; in DetermineExtension()
186 errorMsg_ = "Invalid extension (available options: js, ts, as, sts)"; in DetermineExtension()
189 "Unknown extension of sourcefile, set the extension manually or change the file format (available " in DetermineExtension()
226 errorMsg_ = "Error: only --extension in CheckEtsSpecificOptions()
[all...]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/
H A Drun_java.py69 def add_case(self, case_path, extension):
73 if abs_case_path not in self.case_list and abs_case_path.endswith(extension):
76 def add_directory(self, directory, extension):
79 glob_expression = os.path.join(os.path.abspath(directory), "**/*%s" % (extension))
82 self.add_case(case, extension)
H A Drun_javar8.py80 def add_case(self, case_path, extension):
84 if abs_case_path not in self.case_list and abs_case_path.endswith(extension):
87 def add_directory(self, directory, extension):
90 glob_expression = os.path.join(os.path.abspath(directory), "**/*%s" % (extension))
93 self.add_case(case, extension)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Dcompiler.py57 extension: CompilerExtensions = "sts"
92 extension: CompilerExtensions | None = None
222 source_file = self._write_into_file(source_code, name, args.extension)
244 if eval_args.extension is not None:
245 args.extension = eval_args.extension
249 ets_file = self._write_into_file(eval_args.ets_expression, eval_args.name, args.extension)
263 def _write_into_file(self, source_code: str, filename: str, extension: str) -> Path:
264 ets_file = self._tmp_path / f"{filename}.{extension}"
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Dchapters.py107 def __filter_by_mask(mask: str, files: List[str], extension: str) -> List[str]:
109 if '*' not in mask and not mask.endswith(f".{extension}"):
121 def filter_by_chapter(self, chapter_name: str, base_folder: str, files: List[str], extension: str) -> Set[str]:
128 filtered.update(self.filter_by_chapter(inc, base_folder, files, extension))
131 filtered.update(Chapters.__filter_by_mask(mask, files, extension))
135 excluded.update(self.filter_by_chapter(exc, base_folder, files, extension))
138 excluded.update(Chapters.__filter_by_mask(mask, files, extension))
H A Drunner_base.py269 # Browse the directory, search for files with the specified extension
272 directory, extension, flags = test_dir
288 test_files.extend(self.__load_test_files(directory, extension))
328 def __load_test_files(self, directory: str, extension: str) -> List[str]:
336 glob_expression = path.join(directory, f"**/*.{extension}")
342 test_files = self.__filter_by_chapters(directory, test_files, extension)
348 def __filter_by_chapters(self, base_folder: str, files: List[str], extension: str) -> List[str]:
352 test_files.update(chapters.filter_by_chapter(chapter, base_folder, files, extension))
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/enum_types/
H A Dtest_directory.py26 extension: str
39 return self.extension
/arkcompiler/ets_frontend/es2panda/binder/
H A Dscope.h309 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() argument
313 return AddBinding(allocator, FindLocal(decl->Name()), decl, extension); in AddDecl()
316 bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() argument
319 return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
351 [[maybe_unused]] ScriptExtension extension) = 0;
457 [[maybe_unused]] ScriptExtension extension);
599 [[maybe_unused]] ScriptExtension extension);
689 [[maybe_unused]] ScriptExtension extension) override;
792 [[maybe_unused]] ScriptExtension extension) override;
847 [[maybe_unused]] ScriptExtension extension) overrid
1246 AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddFunction() argument
[all...]
H A Dscope.cpp424 [[maybe_unused]] ScriptExtension extension) in AddLocal()
531 [[maybe_unused]] ScriptExtension extension) in AddBinding()
583 [[maybe_unused]] ScriptExtension extension) in AddBinding()
590 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
666 [[maybe_unused]] ScriptExtension extension) in AddBinding()
701 [[maybe_unused]] ScriptExtension extension) in AddBinding()
708 return AddFunction<GlobalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
763 [[maybe_unused]] ScriptExtension extension) in AddBinding()
785 AddFunction<ModuleVariable>(allocator, currentVariable, newDecl, extension) : in AddBinding()
786 AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
423 AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddLocal() argument
529 AddBinding([[maybe_unused]] ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
582 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
665 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
700 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
762 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
823 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
843 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
849 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.h218 Variable *AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() argument
223 return AddBinding(allocator, FindLocal(decl->Name(), options), decl, extension); in AddDecl()
226 Variable *AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl() argument
229 return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
263 [[maybe_unused]] ScriptExtension extension) = 0;
306 [[maybe_unused]] ScriptExtension extension);
407 [[maybe_unused]] ScriptExtension extension);
481 [[maybe_unused]] ScriptExtension extension) override;
537 [[maybe_unused]] ScriptExtension extension) override;
556 [[maybe_unused]] ScriptExtension extension) overrid
972 AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddFunction() argument
[all...]
H A Dscope.cpp273 [[maybe_unused]] ScriptExtension extension) in AddLocal()
443 [[maybe_unused]] ScriptExtension extension) in AddBinding()
449 [[maybe_unused]] ScriptExtension extension) in AddBinding()
458 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
481 var = typeAliasScope_->AddBinding(allocator, currentVariable, newDecl, extension); in AddBinding()
498 [[maybe_unused]] ScriptExtension extension) in AddBinding()
505 return AddFunction<GlobalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
596 [[maybe_unused]] ScriptExtension extension) in AddBinding()
603 return AddFunction<LocalVariable>(allocator, currentVariable, newDecl, extension); in AddBinding()
759 [[maybe_unused]] ScriptExtension extension) in AddBinding()
272 AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddLocal() argument
441 AddBinding([[maybe_unused]] ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
448 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
497 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
595 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
758 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
764 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
907 AddBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
1011 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
1017 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument
[all...]
/arkcompiler/ets_frontend/es2panda/aot/
H A Doptions.cpp54 static es2panda::ScriptExtension GetScriptExtensionFromStr(const std::string &extension) in GetScriptExtensionFromStr() argument
56 if (extension == "js") { in GetScriptExtensionFromStr()
58 } else if (extension == "ts") { in GetScriptExtensionFromStr()
60 } else if (extension == "as") { in GetScriptExtensionFromStr()
62 } else if (extension == "abc") { in GetScriptExtensionFromStr()
199 bool Options::CollectInputFilesFromFileDirectory(const std::string &input, const std::string &extension) in CollectInputFilesFromFileDirectory() argument
202 if (!proto::MergeProgram::GetProtoFiles(input, extension, files)) { in CollectInputFilesFromFileDirectory()
208 scriptKind_, GetScriptExtensionFromStr(extension)); in CollectInputFilesFromFileDirectory()
343 panda::PandArg<std::string> inputExtension("extension", "js", in Parse()
344 "Parse the input as the given extension (option in Parse()
575 std::string extension = inputExtension.GetValue(); Parse() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dclass_linker_extension.h265 explicit BootContext(ClassLinkerExtension *extension) in BootContext() argument
266 : ClassLinkerContext(extension->GetLanguage()), extension_(extension) in BootContext()
286 explicit AppContext(ClassLinkerExtension *extension, PandaVector<const panda_file::File *> &&pfList) in AppContext() argument
287 : ClassLinkerContext(extension->GetLanguage()), extension_(extension), pfs_(pfList) in AppContext()
H A Dclass_linker.h229 ClassLinkerExtension *extension = extensions_[ark::panda_file::GetLangArrIndex(ctx.GetLanguage())].get(); in GetExtension() local
230 ASSERT(extension != nullptr); in GetExtension()
231 return extension; in GetExtension()
236 ClassLinkerExtension *extension = extensions_[ark::panda_file::GetLangArrIndex(lang)].get(); in GetExtension() local
237 ASSERT(extension != nullptr); in GetExtension()
238 return extension; in GetExtension()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc_root.cpp252 auto *extension = classLinker->GetExtension(LanguageConfig::LANG); in VisitClassRoots() local
253 extension->EnumerateClasses(classRootVisitor, flags); in VisitClassRoots()
274 auto *extension = classLinker->GetExtension(LanguageConfig::LANG); in VisitClassLinkerContextRoots() local
275 extension->EnumerateContexts([&gcRootVisitor](ClassLinkerContext *ctx) { in VisitClassLinkerContextRoots()
289 auto *extension = classLinker->GetExtension(LanguageConfig::LANG); in UpdateClassLinkerContextRoots() local
290 extension->EnumerateContexts([](ClassLinkerContext *ctx) { in UpdateClassLinkerContextRoots()
/arkcompiler/ets_frontend/es2panda/parser/program/
H A Dprogram.cpp23 Program::Program(ScriptExtension extension) in Program() argument
25 binder_(allocator_->New<binder::Binder>(this, extension)), in Program()
28 extension_(extension) in Program()
/arkcompiler/runtime_core/static_core/runtime/core/
H A Dcore_language_context.cpp29 auto *extension = classLinker->GetExtension(ctx); in GetExceptionClass() local
30 auto *cls = classLinker->GetClass(mutf8Name, true, extension->GetBootContext()); in GetExceptionClass()
134 auto *extension = classLinker->GetExtension(ctx); in ThrowStackOverflowException() local
135 auto *cls = classLinker->GetClass(ctx.GetStackOverflowErrorClassDescriptor(), true, extension->GetBootContext()); in ThrowStackOverflowException()
/arkcompiler/toolchain/build/scripts/
H A Dgenerate_js_bytecode.py35 parser.add_argument('--extension',
36 help='source file extension')
70 if input_arguments.extension:
71 cmd += ['--extension', input_arguments.extension]
/arkcompiler/ets_frontend/es2panda/test/size_statistics/
H A Dsize_statistics.py168 def add_case(self, case_path, extension, flags):
170 if abs_case_path not in self.case_list and abs_case_path.endswith(extension):
174 def add_directory(self, directory, extension, flags):
175 glob_expression = os.path.join(os.path.abspath(directory), "**/*%s" % (extension))
178 self.add_case(case, extension, flags)
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/evaluation/
H A Dhelpers.cpp129 ClassLinkerExtension *extension = linker->GetExtension(sourceLang); in LoadFileAndGetEntryMethod() local
130 ASSERT(extension != nullptr); in LoadFileAndGetEntryMethod()
133 auto *klass = linker->GetClass(descriptor, true, extension->ResolveContext(ctx), nullptr); in LoadFileAndGetEntryMethod()

Completed in 17 milliseconds

123