Home
last modified time | relevance | path

Searched +full:module +full:- +full:number (Results 1 – 25 of 197) sorted by relevance

12345678

/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dmodules.rst2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 http://www.apache.org/licenses/LICENSE-2.0
20 Each module creates its own scope, i.e., any declarations (variables,
21 functions, classes, etc.) declared in the module are only visible outside
22 that module if exported explicitly.
25 another module must first be imported to a module.
30 ------
32 A top-level declaration can be exported by using the keyword ``export``.
35 only in the module it is declared in:
37 .. code-block:: typescript
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe129.md1 # Wildcards in module names are not supported
3 Rule ``arkts-no-module-wildcards``
7 ArkTS does not support wildcards in module names because in the language
8 import is a compile-time, not a runtime feature.
18 declare module "*!text" {
35 function foo(x: number): number
39 import * as m from "module"
46 - Recipe 128: Ambient module declaration is not supported (``arkts-no-ambient-decls``)
47 - Recipe 130: Universal module definitions (UMD) are not supported (``arkts-no-umd``)
Drecipe130.md1 # Universal module definitions (UMD) are not supported
3 Rule ``arkts-no-umd``
7 ArkTS does not support universal module definitions (UMD) because in the
8 language there is no concept of "script" (as opposed to "module").
9 Besides, in ArkTS import is a compile-time, not a runtime feature.
18 // math-lib.d.ts
19 export const isPrime(x: number): boolean
32 // math-lib.d.ts
34 export isPrime(x: number): boolean
38 import { mathLib } from "math-lib"
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest_module.ts7 * http://www.apache.org/licenses/LICENSE-2.0
21 a: (a: number, b: string) => boolean,
22 b(): number
32 module a.b.c {
39 module a.b.c {
53 declare module "foo";
57 module module1 {
63 export module module2 {
69 declare module module3 {
73 export declare module module4 {
[all …]
Dtest-cyclic-module-import.ts7 * http://www.apache.org/licenses/LICENSE-2.0
18 declare module "ModuleSub" {
21 public static StaticVar: number;
22 public InsVar: number;
29 declare module "TargetModule" {
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/
Dtest_module.ts7 * http://www.apache.org/licenses/LICENSE-2.0
21 a: (a: number, b: string) => boolean,
22 b(): number
32 module a.b.c {
39 module a.b.c {
53 declare module "foo";
57 module module1 {
63 export module module2 {
69 declare module module3 {
73 export declare module module4 {
[all …]
/arkcompiler/ets_runtime/test/moduletest/deregistermodule/
Dderegistermodule.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 async function f(number) { argument
17 let module = await import('./test.js');
18 print(module.name + number);
19 markModuleCollectable(module);
32 f(2); // test whether the module has been successfully uninstalled.
/arkcompiler/runtime_core/static_core/libllvmbackend/
Dllvmbackend.yaml1 # Copyright (c) 2023-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 module:
20 - name: llvm-allow-breakage
24 - name: llvm-fallback
28 - name: llvm-inlining
33 --compiler-inlining which in turn can be overridden by passing this
35 - name: llvm-pre-opt
39 Level of pre-optimization that LLVMAOT does.
40 0 means running small number of Ark passes before compiling by LLVM.
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/shorthand/toplevelConfig/
DworkercustomModule_decl.d.ts7 * http://www.apache.org/licenses/LICENSE-2.0
16 declare module 'workercustomModule' {
18 const parentPort1: number;
21 declare module 'node:workercustomModule' {
DworkercustomModule_decl_expected.txt7 * http://www.apache.org/licenses/LICENSE-2.0
15 declare module 'workercustomModule' {
17 const parentPort1: number;
19 declare module 'node:workercustomModule' {
/arkcompiler/ets_frontend/arkguard/test/grammar/shorthand/defaultConfig/
DworkercustomModule_decl_expected.txt7 * http://www.apache.org/licenses/LICENSE-2.0
15 declare module 'workercustomModule' {
17 const parentPort: number;
19 declare module 'node:workercustomModule' {
DworkercustomModule_decl.d.ts7 * http://www.apache.org/licenses/LICENSE-2.0
16 declare module 'workercustomModule' {
18 const parentPort: number;
21 declare module 'node:workercustomModule' {
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D13_modules.rst2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 http://www.apache.org/licenses/LICENSE-2.0
35 - *Separate modules* (discussed below),
36 - *Declaration modules* (discussed in detail in :ref:`Declaration Modules`), and
37 - *Packages* (discussed in detail in :ref:`Packages`).
39 .. code-block:: abnf
63 separate module
76 A *separate module* is a module without a package header. A *separate module*
79 #. Import directives that enable referring imported declarations in a module;
81 #. Top-level declarations;
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dunique_names.sts2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
15 // Global-scoped duplicate declarations
16 import G0 from 'module';
17 import { G1 } from 'module';
20 f: number;
24 m(a?: number) {
31 a: number;
35 a: number;
50 f: number;
[all …]
Dmodules.sts2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
30 f: number;
34 export function foo(a: number): number {
37 export type N = number;
80 import { default as def } from 'module'; // default import
83 f: number;
86 export default function (n: number) {
91 // type-only import
96 // type-only export
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Ddisassembler_annotations_test.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
24 static const std::string MODULE_REQUEST_FILE_NAME = GRAPH_TEST_ABC_DIR "module-requests-annotation-
25 static const std::string SLOT_NUMBER_FILE_NAME = GRAPH_TEST_ABC_DIR "slot-number-annotation.abc";
48 * @tc.desc: get module request annotation of abc file.
54 static const std::string METHOD_NAME = "module-requests-annotation-import.#*#funcD";
66 * @tc.desc: get solt number annotation of abc file.
DBUILD.gn6 # http://www.apache.org/licenses/LICENSE-2.0
32 "column-number1",
33 "column-number2",
34 "column-number3",
35 "column-number4",
36 "column-number5",
37 "column-number6",
38 "line-number1",
39 "line-number2",
40 "line-number3",
[all …]
/arkcompiler/ets_frontend/test262/
Dmodule_tests.txt1 early-dup-export-decl.js
2 early-dup-export-dflt-id.js
3 early-dup-export-dflt.js
4 early-dup-export-id-as.js
5 early-dup-export-id.js
6 early-dup-lables.js
7 early-dup-lex.js
8 early-export-global.js
9 early-lex-and-var.js
10 early-new-target.js
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/
DArray_code.rb8 # http://www.apache.org/licenses/LICENSE-2.0
16 module TemplateData
19 …[2, ", i as number, #{$ctx.this}", ", index: number, array: #{$ctx.this_type}", ", index, #{$ctx.t…
20 … [1, ", i as number" , ", index: number" , ", index"],
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/getter/ets_to_ts/
Dgetter.test.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 const etsVm = require('lib/module/ets_interop_js_napi');
19 const number = 1; constant
21 const arr = [number];
22 const obj = { test: number };
23 const tuple = [number, string];
61 module.exports = {
65 number, property
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/tooling/sampler/
Dsampler_module_file_check.py2 # -*- coding: utf-8 -*-
5 # Copyright (c) 2022-2024 Huawei Device Co., Ltd.
10 # http://www.apache.org/licenses/LICENSE-2.0
30 def __init__(self, args) -> None:
37 parser = argparse.ArgumentParser(description="Sampler module file check test")
39 required.add_argument("--file", type=str, required=True)
40 required.add_argument("--bindir", type=str, required=True)
46 def get_checksum_from_abc_file(self, module_path) -> np.uint32:
54 for module in modules_list:
55 checksum = self.get_checksum_from_abc_file(module)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/04.scopes/
Dtype_param_class.sts1 /*---
2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: >-
21 - compile-only
22 - negative
23 ---*/
25 let T: Number = 1.0
[all …]
Dtype_param_func.sts1 /*---
2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: >-
20 - compile-only
21 - negative
22 ---*/
26 function foo<T extends Number>(p: T): T {
[all …]
Dtype_param_interface.sts1 /*---
2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: >-
20 ---*/
22 let T: Number = 1.0
24 interface I<T extends Number> {
34 static baz(): Number {
[all …]
/arkcompiler/ets_frontend/arkguard/
DREADME.md3 …monyos-guides-V5/source-obfuscation-V5) and [doc repository](https://gitee.com/openharmony/docs/bl…
10 For Chinese version please read [README-cn.md](README-cn.md)
11 (中文版说明请查看[README-cn.md](README-cn.md)).
28 You can enable them by [obfuscation options](#obfuscation-options).
30 When you create a new project, the following config will be generated in `build-profile.json5`.
37 "files": ["obfuscation-rules.txt"],
50 "files": ["obfuscation-rules.txt"],
52 "consumerFiles": ["consumer-rules.txt"]
72 "[How Arkguard merges rules](#how-arkguard-merges-rules)".
76 The files `obfuscation-rules.txt` and `consumer-rules.txt` are created by DevEco Studio automatical…
[all …]

12345678