| /arkcompiler/ets_frontend/es2panda/test/compiler/js/regAllocator/ |
| D | test-spill-fill-with-env-args.js | 17 let a = undefined; 18 let aa = undefined; 19 let aaa = undefined; 20 let aaaa = undefined; 21 let aaaaa = undefined; 22 let aaaaaa = undefined; 23 let aaaaaaa = undefined; 24 let aaaaaaaa = undefined; 25 let b = undefined; 26 let bb = undefined; [all …]
|
| D | test-spill-fill.js | 17 let a = undefined; 18 let aa = undefined; 19 let aaa = undefined; 20 let aaaa = undefined; 21 let aaaaa = undefined; 22 let aaaaaa = undefined; 23 let aaaaaaa = undefined; 24 let aaaaaaaa = undefined; 25 let b = undefined; 26 let bb = undefined; [all …]
|
| D | test-range-spill-fill-with-CFG.js | 19 let a = undefined; 20 let aa = undefined; 21 let aaa = undefined; 22 let aaaa = undefined; 23 let aaaaa = undefined; 24 let aaaaaa = undefined; 25 let aaaaaaa = undefined; 26 let aaaaaaaa = undefined; 27 let b = undefined; 28 let bb = undefined; [all …]
|
| D | test-spill-fill-with-CFG.js | 19 let a = undefined; 20 let aa = undefined; 21 let aaa = undefined; 22 let aaaa = undefined; 23 let aaaaa = undefined; 24 let aaaaaa = undefined; 25 let aaaaaaa = undefined; 26 let aaaaaaaa = undefined; 27 let b = undefined; 28 let bb = undefined; [all …]
|
| D | test-spill-fill-2.js | 17 let a = undefined; 18 let aa = undefined; 19 let aaa = undefined; 20 let aaaa = undefined; 21 let aaaaa = undefined; 22 let aaaaaa = undefined; 23 let aaaaaaa = undefined; 24 let aaaaaaaa = undefined; 25 let b = undefined; 26 let bb = undefined; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/13.chaining_operator/ |
| D | chop1.sts | 18 If the object to the left of ('?.') is undefined or null, then the evaluation of the entire 19 surrounding expression is dropped, and undefined is used as the result of the expression. 28 fldA: string|undefined = "abc" 29 fldAn: string|undefined = undefined 30 metA(p: string): string|undefined { 31 return p == "undefined" ? undefined : p 36 fldB: A|undefined = new A() 37 fldBn: A|undefined = undefined 38 metB(p: string): A|undefined { 39 return p == "undefined" ? undefined : new A() [all …]
|
| D | chop0.sts | 18 If the object to the left of ('?.') is undefined or null, then the evaluation of the entire 19 surrounding expression is dropped, and undefined is used as the result of the expression. 59 test(boo("not null")?.fldBn?.fldA === undefined) 60 test(boo("not null")?.fldBn?.fldAn === undefined) 61 test(boo("not null")?.fldBn?.metA("xyz") === undefined) 62 test(boo("not null")?.fldBn?.metA("null") === undefined) 64 test(boo("not null")?.metB("null")?.fldA === undefined) 65 test(boo("not null")?.metB("null")?.fldAn === undefined) 66 test(boo("not null")?.metB("null")?.metA("xyz") === undefined) 67 test(boo("not null")?.metB("null")?.metA("null") === undefined) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/12.nullish_types/ |
| D | reference_nullable_types.params.yaml | 34 # undefined 35 - {type: "Byte|undefined", value: "5"} 36 - {type: "Byte|undefined", value: "undefined"} 37 - {type: "Short|undefined", value: "5"} 38 - {type: "Short|undefined", value: "undefined"} 39 - {type: "Int|undefined", value: "5"} 40 - {type: "Int|undefined", value: "undefined"} 41 - {type: "Long|undefined", value: "5 as long"} 42 - {type: "Long|undefined", value: "undefined"} 43 - {type: "Float|undefined", value: "5.0"} [all …]
|
| /arkcompiler/ets_runtime/test/aottest/calls/ |
| D | expect_output.txt | 25 undefined 31 undefined 32 undefined 34 undefined 36 undefined 39 undefined 44 undefined 49 undefined 50 undefined 51 undefined [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
| D | OhsUtil.spec.ts | 38 it('should return false if heritageClauses is undefined', () => { 39 … const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, undefined, []); 43 it('should return false if classNode is undefined', () => { 44 expect(isViewPUBasedClass(undefined)).to.be.false; 47 it('should return false if heritageClause.types is undefined', () => { 48 … const heritageClause = ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, undefined); 49 …const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, [heritageClause… 53 it('should return false if classNode.heritageClause.types.member is undefined', () => { 54 … const heritageClause = ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [undefined]); 55 …const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, [heritageClause… [all …]
|
| D | NodeUtils.spec.ts | 44 const parent = ts.factory.createBindingElement(undefined, node, 'bindingElement'); 50 …const parent = ts.factory.createPropertySignature(undefined, node, undefined, ts.factory.createKey… 56 …const parent = ts.factory.createMethodSignature(undefined, node, undefined, undefined, [], undefin… 68 … parent = ts.factory.createPropertyDeclaration(undefined, undefined, node, undefined, undefined, u… 74 …s.factory.createMethodDeclaration(undefined, undefined, undefined, node, undefined, undefined, [],… 80 … const parent = ts.factory.createSetAccessorDeclaration(undefined, undefined, node, [], undefined); 86 … parent = ts.factory.createGetAccessorDeclaration(undefined, undefined, node, [], undefined, undef… 162 it('should return flase when node is undefined', function () { 163 expect(NodeUtils.isInClassDeclarationForTest(undefined)).to.be.false; 166 …const node = ts.factory.createClassDeclaration(undefined, undefined, undefined, undefined, undefin… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/09.undefined_type/ |
| D | undefined_incorrect_usage.params.yaml | 16 - { declaration: 'undefined class A {}', usage: 'let a = new A' } 17 - { declaration: 'class undefined {}', usage: 'let a = new undefined()' } 18 - { declaration: 'undefined interface I {}', usage: 'let a = 1' } 19 - { declaration: 'undefined function foo() { return 1}', usage: 'assert foo() == 2' } 20 - { declaration: 'function undefined() { return 1}', usage: 'assert undefined() == 1' } 21 - { declaration: 'undefined foo() { return 1}', usage: 'assert foo() == 1' } 22 - { declaration: 'function foo(undefined int) { return 1}', usage: 'assert foo() == undefined' } 23 - { declaration: 'class A { undefined:int = 1 }', usage: 'assert new A().undefined == 1' } 24 - { declaration: 'class A { static undefined:int = 1 }', usage: 'assert A.undefined == 1' } 25 …- { declaration: 'class A { undefined:undefined = undefined }', usage: 'assert new A().undefined =… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | UnionAsAndInstanceof.sts | 38 function foo(x: Object | null | undefined) { return x as Object } 43 assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object); f(null); }); 44 assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object); f(undefined); }); 46 assert_ccexc(() => { let f = ((x: Object | undefined) => x as Object); f(undefined); }); 48 …assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object | undefined); f(null);… 49 …assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object | null); f(undefined);… 50 assert_ccexc(() => { let f = ((x: Object | null) => x as Object | undefined); f(null); }); 51 assert_ccexc(() => { let f = ((x: Object | undefined) => x as Object | null); f(undefined); }); 53 assert_ccexc(() => { let f = ((x: A | null | undefined) => x as A); f(null); }); 54 assert_ccexc(() => { let f = ((x: A | null | undefined) => x as A); f(undefined); }); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/08.equality_with_null_or_undefined/ |
| D | null_and_undefined_equality.params.yaml | 21 let a: undefined; 22 assert a == undefined; 25 let a: undefined|null; 26 assert a == undefined; 31 let a: A|undefined|null; 32 assert a == undefined; 37 let a: A|undefined|null; 43 let a: A|undefined|null; 44 assert a === undefined; 49 let a: A|undefined|null; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/object/object_transition/ |
| D | expect_output.txt | 33 undefined 34 undefined 42 undefined 43 undefined 44 undefined 45 undefined 46 undefined 47 undefined 48 undefined 49 undefined [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/ |
| D | expect_output.txt | 16 undefined 18 undefined 22 undefined 24 undefined 28 undefined 30 undefined 34 undefined 36 undefined 40 undefined 42 undefined [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | undefined_as_value.ts | 17 let a: undefined = undefined; 18 let b: undefined[] = [undefined, undefined]; variable 19 let c = [undefined, undefined, undefined]; variable 21 function foo(a: undefined) : undefined { 22 return undefined; 25 foo(undefined);
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ts/ |
| D | undefined_as_value.ts | 17 let a: undefined = undefined; 18 let b: undefined[] = [undefined, undefined]; variable 19 let c = [undefined, undefined, undefined]; variable 21 function foo(a: undefined) : undefined { 22 return undefined; 25 foo(undefined);
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_math_test.cpp | 56 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() 57 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 58 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0() 71 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() 72 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 73 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0() 86 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() 87 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 88 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0() 101 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | SourceMapUtil.ts | 35 return undefined; 48 getSourceFileFromReference: undefined, 49 redirectTargetsMap: undefined, 59 getPrependNodes: undefined, 61 getCommonSourceDirectory: undefined, 62 getCompilerOptions: undefined, 64 getNewLine: undefined, 65 getSourceFile: undefined, 66 getSourceFileByPath: undefined, 67 getSourceFiles: undefined, [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind/ |
| D | expect_output.txt | 16 undefined 18 undefined 22 undefined 24 undefined 28 undefined 30 undefined 34 undefined 36 undefined 40 undefined 42 undefined [all …]
|
| /arkcompiler/ets_runtime/test/aottest/not_equal/ |
| D | not_equal.js | 19 print(a != undefined); 20 print(undefined != a); 25 print(b != undefined); 26 print(undefined != b); 28 var c = undefined; 31 print(c != undefined); 32 print(undefined != c); 37 print(d !== undefined); 38 print(undefined !== d); 43 print(e !== undefined); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | sendable_explicit_field_type.sts | 40 voidProp: void = undefined; 42 undefinedProp: undefined = undefined; 54 optVoidProp1?: void = undefined; 56 optUndefinedProp1?: undefined = undefined; 68 public optVoidProp2: void = undefined; 70 public optUndefinedProp2: undefined = undefined; 82 readonly optVoidProp3: void = undefined; 84 readonly optUndefinedProp3: undefined = undefined; 97 voidProp4 = undefined; 99 undefinedProp4 = undefined; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/ |
| D | interface_with_optional_attributes_0005.sts | 23 name?: string | undefined; 24 age?: int | undefined; 25 desc?: string | undefined; 26 teacher?: Teacher | undefined 34 name?: string | undefined; 35 age?: int | undefined; 36 desc?: string | undefined; 37 teacher?: Teacher | undefined 43 assert s0.name == undefined 44 assert s0.age == undefined [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/03.types/References_Types/Type_undefined/ |
| D | array-of-complex-type.sts | 17 desc: 3.8.9 The only value of type undefined is represented by the keyword undefined 24 n : number | undefined | null = null; 25 s : string | undefined | null = null; 28 type T_ = ComplexClass | undefined | null; 29 type T = Array<ComplexClass> | Array<ComplexClass | undefined> | Array<ComplexClass | null> | Array… 36 if (p === undefined) 40 return undefined; 49 if (tmp === undefined) 50 return undefined; 52 return [null, undefined, new ComplexClass(), {n: null, s: undefined}] [all …]
|