| /arkcompiler/runtime_core/disassembler/tests/ |
| D | BUILD.gn | 6 # http://www.apache.org/licenses/LICENSE-2.0 31 "column-number1", 32 "column-number2", 33 "column-number3", 34 "column-number4", 35 "column-number5", 36 "column-number6", 37 "line-number1", 38 "line-number2", 39 "line-number3", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | modules.rst | 2 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/ |
| D | recipe129.md | 1 # 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``)
|
| D | recipe130.md | 1 # 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/ets2panda/linter/homecheck/src/tools/depGraph/ |
| D | moduleComponent.ts | 2 * Copyright (c) 2024 - 2025 Huawei Device Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 26 UNKNOWN = -1, 31 id: number; 40 export interface Module { interface 41 id?: number; 43 version?: number; 54 export class ModuleDepsGraph extends DependsGraph<Module, ModuleEdgeAttr> { 59 public toJson(): { nodes: Module[]; edges: any[]; categories: {} } { 63 let module = (value as DependsNode<Module>).getNodeAttr() as Module; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp+top+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module h { 20 export module b1 { 22 a: number; 33 module A { 34 export module B { 42 module i { 44 export module u { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module o { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module k { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/default/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module d { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module g { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+top/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module h { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module i { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/top/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module c { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module g { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module o { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module k { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+top+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module h { 20 export module b1 { 22 a: number; 33 module A { 34 export module B { 42 module i { 44 export module u { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations/basic_grammar/07_namespace/ |
| D | 01_namespace_01.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 20 module X { 21 export module Y { 23 a:number; 35 module A { 36 export module B { 46 module M { 48 export module M2 { 50 d: number; 58 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp+top/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module c { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module g { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp+top/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module h { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module i { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/prop+strProp/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/strProp/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module X { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module M { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/combinations_expect/basic_grammar/top+export/07_namespace/ |
| D | 01_namespace_01_expected.txt | 7 * http://www.apache.org/licenses/LICENSE-2.0 19 module d { 20 export module Y { 22 a: number; 33 module A { 34 export module B { 42 module g { 44 export module M2 { 46 d: number; 53 type A = number; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
| D | test_module.ts | 7 * 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_frontend/es2panda/test/parser/ts/ |
| D | test_module.ts | 7 * 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/runtime_core/static_core/plugins/ets/tests/interop_js/tests/shared_reference/ets_to_ts/ |
| D | ets_shared_reference.ets | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 let module = ESValue.load('../../plugins/ets/tests/interop_js/tests/shared_reference/ets_to_ts/test… 32 let tmpArray: Array<number> = [1]; 33 function areArraysEqual1(arr: Array<number>){ 39 function areArraysEqual2(arr1: Array<number>, arr2: Array<number>){ 46 function areArraysEqual3(arr1: Array<number>){ 47 jsArray1 = module.getProperty('jsArray'); 48 jsArray2 = module.getProperty('jsArray'); 49 let o1 = module.getProperty('o'); 50 let o2 = module.getProperty('o'); [all …]
|