Home
last modified time | relevance | path

Searched full:extension (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/arkcompiler/ets_frontend/arkguard/src/common/
Dtype.ts16 export const enum Extension { enum
50 export const supportedRunningExtension: readonly string[] = [Extension.TS, Extension.JS]; constant
51 export const supportedDeclarationExtension: readonly string[] = [Extension.DTS, Extension.DETS]; constant
53 … const fileExtensions: string[] = [Extension.DETS, Extension.ETS, Extension.DTS, Extension.TS, Ext… constant
56 …nst supportedParsingExtension: string[] = [Extension.ETS, Extension.TS, Extension.JS, Extension.CJ… constant
/arkcompiler/ets_frontend/ets2panda/lexer/scripts/
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.name]['all_word_starts'] = Set.new(all_words.map { |desc| desc.name[0] })
85 @extensions[extension.name]['tree'] = build_tree(all_words.map { |desc| desc.name })
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/chapters_test/
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="sts",
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/lib/utils/functions/
DGetScriptKind.ts23 case ts.Extension.Js:
25 case ts.Extension.Jsx:
27 case ts.Extension.Ts:
29 case ts.Extension.Tsx:
31 case ts.Extension.Json:
33 case ts.Extension.Ets:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/
Drunner_astchecker.py59 … self.add_directory('ast/compiler/js', 'js', flags=['--extension=js', '--output=/dev/null'])
60 self.add_directory('ast/compiler/ts', 'ts', flags=['--extension=ts'])
62 '--extension=sts',
68 self.add_directory('ast/parser/js', 'js', flags=['--parse-only', '--extension=js'])
69 self.add_directory('ast/parser/ts', 'ts', flags=['--parse-only', '--extension=ts'])
70 self.add_directory('ast/parser/as', 'ts', flags=['--parse-only', '--extension=as'])
73 '--extension=sts',
82 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None:
84 super().add_directory(new_dir, extension, flags)
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/parser/
Drunner_js_parser.py64 self.add_directory("compiler/js", "js", flags=["--extension=js", "--output=/dev/null"])
65 self.add_directory("compiler/ts", "ts", flags=["--extension=ts", ])
67 "--extension=sts",
74 self.add_directory("parser/ts", "ts", flags=["--parse-only", '--extension=ts'])
75 self.add_directory("parser/as", "ts", flags=["--parse-only", "--extension=as"])
77 "--extension=sts",
86 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None:
88 super().add_directory(new_dir, extension, flags)
/arkcompiler/ets_frontend/arkguard/src/transformers/
DTransformerManager.ts22 import { Extension } from '../common/type';
50 if (!file.endsWith(Extension.TS)) {
53 …const fileNameNoSuffix = file.lastIndexOf(Extension.DTS) > -1 ? file.slice(0, file.lastIndexOf(Ext…
54 file.slice(0, file.lastIndexOf(Extension.TS));
/arkcompiler/ets_frontend/ets2panda/util/
Doptions.h74 es2panda::ScriptExtension Extension() const in Extension() function
152 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=sts is supported for project compilation mode."; in CheckEtsSpecificOptions()
DimportPathManager.cpp37 static bool IsCompitableExtension(const std::string &extension) in IsCompitableExtension() argument
39 return extension == ".sts" || extension == ".ts"; in IsCompitableExtension()
133 … if (!fs::is_regular_file(entry) || !IsCompitableExtension(entry.path().extension().string())) { in AddToParseList()
176 … const ScriptExtension &extension) const in GetImportData()
198 return {ToLanguage(extension), path.Mutf8(), true}; in GetImportData()
255 for (const auto &extension : supportedExtensions) { in AppendExtensionOrIndexFileIfOmitted() local
256 if (ark::os::file::File::IsRegularFile(path.Mutf8() + extension)) { in AppendExtensionOrIndexFileIfOmitted()
257 return GetRealPath(UString(path.Mutf8().append(extension), allocator_).View()); in AppendExtensionOrIndexFileIfOmitted()
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/src/compiler/
DCompiler.ts85 const extension = path.extname(entityName); constant
86 if (extension === ts.Extension.Ts || extension === ts.Extension.Tsx) {
/arkcompiler/ets_frontend/arkguard/scripts/
Dexecute_result_statistics.js20 import { Extension } from '../src/common/type';
60 …} else if ((filePath.endsWith(Extension.TS) || filePath.endsWith(Extension.JS)) && !(filePath.ends…
61 filePath.endsWith(Extension.DTS))) {
64 } else if (filePath.endsWith(Extension.DETS) || filePath.endsWith(Extension.DTS)) {
Dobfuscate_script.js19 import { Extension } from '../src/common/type';
42 …return entry.endsWith(Extension.TS) || entry.endsWith(Extension.JS) || entry.endsWith(Extension.DE…
/arkcompiler/ets_frontend/es2panda/
Des2abc_config.gni78 if (defined(invoker.extension)) {
80 "--extension",
81 invoker.extension,
139 if (defined(invoker.extension)) {
141 "--extension",
142 invoker.extension,
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
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)…
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))
/arkcompiler/ets_frontend/es2panda/scripts/
Dgenerate_js_bytecode.py35 parser.add_argument('--extension',
36 help='source file extension')
78 if input_arguments.extension:
79 cmd += ['--extension', input_arguments.extension]
/arkcompiler/ets_frontend/arkguard/src/utils/
DTypeUtils.ts30 import { Extension, PathAndExtension } from '../common/type';
44 if (fileSuffix === Extension.JS) {
45 sourceFilePath = pathOrExtension.path + Extension.TS;
53 const fileSuffix = Extension.JS;
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dscope.h218 …ariable *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 …iable *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) override;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/
Dets_plugin_options.yaml65 header_path: plugins/ets/assembler/extension/ets_meta.h
68 header_path: plugins/ets/assembler/extension/ets_meta.h
71 header_path: plugins/ets/assembler/extension/ets_meta.h
74 header_path: plugins/ets/assembler/extension/ets_meta.h
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/
Dassembler_x64.h178 // 0: Extension to the MODRM.rm field B in EmitRexPrefix()
184 // 0: Extension to the MODRM.rm field B in EmitRexPrefix()
185 // 2: Extension to the MODRM.reg field R in EmitRexPrefix()
191 // 0: Extension to the MODRM.rm field B in EmitRexPrefixl()
193 // 2: Extension to the MODRM.reg field R in EmitRexPrefixl()
200 // 0: Extension to the MODRM.rm field B in EmitRexPrefix()
201 // 2: Extension to the MODRM.reg field R in EmitRexPrefix()
207 // 0: Extension to the MODRM.rm field B in EmitRexPrefixl()
209 // 2: Extension to the MODRM.reg field R in EmitRexPrefixl()
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/
Drun_java.py69 def add_case(self, case_path, extension): argument
73 if abs_case_path not in self.case_list and abs_case_path.endswith(extension):
76 def add_directory(self, directory, extension): argument
79 glob_expression = os.path.join(os.path.abspath(directory), "**/*%s" % (extension))
82 self.add_case(case, extension)
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/src/
DDeclgen.ts26 import { Extension } from './utils/Extension';
138 * Since `.d` part of `.d.ts` extension is a part of the parsedPath.name,
139 * use `Extension.Ets` for output file name generation.
141 path.join(parsedPath.dir, `${parsedPath.name}${Extension.STS}`),
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/extension_function_tests/
Dextension_function_duplication.sts21 console.println("this is extension function 1");
25 console.println("this is extension function 2");
/arkcompiler/runtime_core/static_core/runtime/tests/
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"), &des… 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"), &des… 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"), &descripto… 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"), &des… in TEST_F()
370 auto *extension = classLinker->GetExtension(panda_file::SourceLang::PANDA_ASSEMBLY); in TEST_F() local
374 …Class *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &des… in TEST_F()
[all …]
/arkcompiler/ets_frontend/es2panda/binder/
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) override;
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sharedset/
Dexpect_output.txt52 add extension(.): TypeError: Cannot add property in prevent extensions
53 add extension([]): TypeError: Cannot add property in prevent extensions
103 add extension(.): TypeError: Cannot add property in prevent extensions
104 add extension([]): TypeError: Cannot add property in prevent extensions

12345678910>>...12