| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | privateNameFieldUnaryMutation.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 24 this.#test++; 25 AssertType(this.#test++, "number"); 26 AssertType(this.#test, "number"); 27 AssertType(this, "this"); 29 this.#test--; 30 AssertType(this.#test--, "number"); 31 AssertType(this.#test, "number"); 32 AssertType(this, "this"); [all …]
|
| D | thisTypeInClasses.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 22 x: this; 23 f(x: this): this { 30 [x: string]: this; 35 y: this; 39 a: this[]; 40 b: [this, this]; 41 c: this | Date; 42 d: this & Date; [all …]
|
| D | nonNullReferenceMatching.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 35 …typeof this.props.thumbYProps!.elementRef === 'function' && this.props.thumbYProps!.elementRef(ref… 36 AssertType(typeof this.props.thumbYProps!.elementRef === 'function' && this.props.thumbYProps!.elem… 37 AssertType(typeof this.props.thumbYProps!.elementRef === 'function', "boolean"); 38 AssertType(typeof this.props.thumbYProps!.elementRef, "union"); 39 AssertType(this.props.thumbYProps!.elementRef, "union"); 40 AssertType(this.props.thumbYProps!, "ThumbProps"); 41 AssertType(this.props.thumbYProps, "union"); 42 AssertType(this.props, "ComponentProps"); [all …]
|
| D | protectedClassPropertyAccessibleWithinClass.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 26 AssertType(this.x, "string"); 27 return this.x; 29 AssertType(this, "this"); 32 protected set y(x) { this.y = this.x; 33 AssertType(this.y = this.x, "string"); 35 AssertType(this.y, "string"); 37 AssertType(this, "this"); 39 AssertType(this.x, "string"); [all …]
|
| D | commentsClassMembers.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 21 /** This is comment for c1*/ 27 AssertType(this.p1 + b, "number"); 28 AssertType(this.p1, "number"); 29 AssertType(this, "this"); 31 return this.p1 + b; 36 AssertType(this.p2(this.p1), "number"); 37 AssertType(this.p2, "(number) => number"); 38 AssertType(this, "this"); [all …]
|
| D | commentsFormatting.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 23 /** this is first line - aligned to class declaration 24 * this is 4 spaces left aligned 25 * this is 3 spaces left aligned 26 * this is 2 spaces left aligned 27 * this is 1 spaces left aligned 28 * this is at same level as first line 29 * this is 1 spaces right aligned 30 * this is 2 spaces right aligned [all …]
|
| D | genericClassWithStaticFactory.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 29 this.listFactory = new ListFactory<T>(); 30 AssertType(this.listFactory = new ListFactory<T>(), "ListFactory<T>"); 31 AssertType(this.listFactory, "ListFactory<T>"); 32 AssertType(this, "this"); 39 let entry = this.listFactory.MakeEntry(data); 41 AssertType(this.listFactory.MakeEntry(data), "List<T>"); 42 AssertType(this.listFactory.MakeEntry, "<T>(T) => List<T>"); 43 AssertType(this.listFactory, "ListFactory<T>"); [all …]
|
| D | privateNameStaticFieldUnaryMutation.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 97 this.getClass().#test++; 98 AssertType(this.getClass().#test++, "number"); 99 AssertType(this.getClass().#test, "number"); 100 AssertType(this.getClass(), "typeof C"); 101 AssertType(this.getClass, "() => typeof C"); 102 AssertType(this, "this"); 104 this.getClass().#test--; 105 AssertType(this.getClass().#test--, "number"); [all …]
|
| D | protectedClassPropertyAccessibleWithinSubclass.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 30 AssertType(this.x, "string"); 31 return this.x; 33 AssertType(this, "this"); 36 protected set y(x) { this.y = this.x; 37 AssertType(this.y = this.x, "string"); 39 AssertType(this.y, "string"); 41 AssertType(this, "this"); 43 AssertType(this.x, "string"); [all …]
|
| D | privateNameFieldDestructuredBindingtargetes2022.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 42 ({ x: this.#field, y } = this.testObject()); 43 AssertType(({ x: this.#field, y } = this.testObject()), "{ x: number; y: number; }"); 44 AssertType({ x: this.#field, y } = this.testObject(), "{ x: number; y: number; }"); 45 AssertType({ x: this.#field, y }, "{ x: number; y: number; }"); 47 AssertType(this.#field, "number"); 48 AssertType(this, "this"); 50 AssertType(this.testObject(), "{ x: number; y: number; }"); 51 AssertType(this.testObject, "() => { x: number; y: number; }"); [all …]
|
| D | privateNameFieldDestructuredBindingtargetes2015.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 42 ({ x: this.#field, y } = this.testObject()); 43 AssertType(({ x: this.#field, y } = this.testObject()), "{ x: number; y: number; }"); 44 AssertType({ x: this.#field, y } = this.testObject(), "{ x: number; y: number; }"); 45 AssertType({ x: this.#field, y }, "{ x: number; y: number; }"); 47 AssertType(this.#field, "number"); 48 AssertType(this, "this"); 50 AssertType(this.testObject(), "{ x: number; y: number; }"); 51 AssertType(this.testObject, "() => { x: number; y: number; }"); [all …]
|
| D | privateNameFieldDestructuredBindingtargetesnext.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 42 ({ x: this.#field, y } = this.testObject()); 43 AssertType(({ x: this.#field, y } = this.testObject()), "{ x: number; y: number; }"); 44 AssertType({ x: this.#field, y } = this.testObject(), "{ x: number; y: number; }"); 45 AssertType({ x: this.#field, y }, "{ x: number; y: number; }"); 47 AssertType(this.#field, "number"); 48 AssertType(this, "this"); 50 AssertType(this.testObject(), "{ x: number; y: number; }"); 51 AssertType(this.testObject, "() => { x: number; y: number; }"); [all …]
|
| D | multipleDeclarations.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 22 this.m = null; 23 AssertType(this.m = null, "null"); 24 AssertType(this.m, "any"); 25 AssertType(this, "this"); 29 AssertType(C.prototype.m = function() { this.nothing();}, "() => void"); 31 AssertType(function() { this.nothing();}, "() => void"); 33 this.nothing(); 34 AssertType(this.nothing(), "error"); [all …]
|
| D | privateNamesAndMethodstargetesnext.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 30 AssertType(this.#_quux, "number"); 31 AssertType(this, "this"); 32 return this.#_quux; 35 this.#_quux = val; 36 AssertType(this.#_quux = val, "number"); 37 AssertType(this.#_quux, "number"); 38 AssertType(this, "this"); 42 this.#foo(30); [all …]
|
| D | privateNamesAndMethodstargetes2022.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 30 AssertType(this.#_quux, "number"); 31 AssertType(this, "this"); 32 return this.#_quux; 35 this.#_quux = val; 36 AssertType(this.#_quux = val, "number"); 37 AssertType(this.#_quux, "number"); 38 AssertType(this, "this"); 42 this.#foo(30); [all …]
|
| D | methodsReturningThis.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 27 AssertType(Class.prototype.containsError = function () { return this.notPresent; }, "() => any"); 29 AssertType(function () { return this.notPresent; }, "() => any"); 30 AssertType(this.notPresent, "error"); 31 AssertType(this, "this"); 32 return this.notPresent; }; 34 // lots of methods that return this, which caused out-of-memory in #9527 36 …ototype.m1 = function (a, b, c, d, tx, ty) { return this; }, "(any, any, any, any, any, any) => th… 38 AssertType(function (a, b, c, d, tx, ty) { return this; }, "(any, any, any, any, any, any) => this"… [all …]
|
| D | thisPropertyAssignmentCircular.ts | 5 * you may not use this file except in compliance with the License. 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 23 this.foo = "Hello"; 24 AssertType(this.foo = "Hello", "string"); 25 AssertType(this.foo, "any"); 26 AssertType(this, "this"); 30 this.foo = this.foo.slice(); 31 AssertType(this.foo = this.foo.slice(), "string"); 32 AssertType(this.foo, "string"); 33 AssertType(this, "this"); [all …]
|
| /arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/control/ |
| D | XScroll.js | 4 * you may not use this file except in compliance with the License. 21 this.type_ = options["type"]; 24 this.type_ = "right"; 26 this.barOff_ = 0; 27 this.useScrH_ = false; 30 this.posX_ = x; 31 this.posY_ = y; 32 this.posW_ = w; 33 this.posH_ = h; 34 return this; [all …]
|
| D | XSelect.js | 4 * you may not use this file except in compliance with the License. 20 this.pm2f_ = X2DFast.gi(); 21 this.resetList(list, default_); 22 this.open_ = false; 23 this.nameColor_ = 0xffffffff; 24 this.backgroundColor_ = 0xff313131; 25 this.tmpSelect_ = -1; 26 this.selectCallback = null; 29 this.list_ = list; 30 this.default_ = default_; [all …]
|
| D | XButton.js | 4 * you may not use this file except in compliance with the License. 20 this.pm2f_ = X2DFast.gi(); 21 this.move(x, y, w, h); 22 this.name_ = name; 23 this.touchDown_ = false; 24 this.clicked_ = false; 25 this.rightClicked_ = false; 26 this.disable_ = false; 27 this.nameColor_ = 0xffffffff; 28 this.backgroundColor_ = 0xff487eb8; [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/base/ |
| D | iterator.ts | 4 * you may not use this file except in compliance with the License. 39 this.iterRecord = iterRecord; 40 this.iterDone = iterDone; 41 this.iterValue = iterValue; 42 this.pandaGen = pandaGen; 43 this.node = node; 45 this.kind = kind; 49 this.funcBuilder = funcBuilder; 54 let pandaGen = this.pandaGen; 55 let iterator = this.iterRecord.iterator; [all …]
|
| D | typeSystem.ts | 4 * you may not use this file except in compliance with the License. 174 this.typeRecorder.addType2Index(node, index); 178 this.typeRecorder.setVariable2Type(variableNode, index); 182 return this.typeRecorder.tryGetTypeIndex(typeNode); 186 return this.typeChecker.getOrCreateRecordForDeclNode(typeNode, variableNode); 190 return this.typeChecker.getOrCreateRecordForTypeNode(typeNode, variableNode); 212 typeIndex = this.getIndexFromTypeArrayBuffer(new PlaceHolderType()); 232 this.preservedIndex = this.getIndexFromTypeArrayBuffer(new PlaceHolderType()); 236 this.getIndexFromTypeArrayBuffer(new PlaceHolderType()); 243 this.userDefinedClassNum = userDefinedClassNum; [all …]
|
| /arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
| D | IrViewer.js | 4 * you may not use this file except in compliance with the License. 32 this.t1_ = Date.now(); 33 this.fileName_ = fn; 34 this.parser_ = new LogParser(result); 35 this.inited_ = false; 38 this.data_ = result; 39 this.direct_ = null; 40 this.selectPoint_ = []; 41 this.visable_ = null; 43 this.loaded_ = false; [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/statement/ |
| D | tryStatement.ts | 4 * you may not use this file except in compliance with the License. 58 this.beginLabel = beginLabel; 59 this.endLabel = endLabel; 63 return this.beginLabel; 67 return this.endLabel; 77 this.catchBeginLabel = catchBeginLabel; 78 this.labelPairs.push(labelPair); 79 this.depth = TryStatement.getcurrentTryStatementDepth(); 81 pandaGen.getCatchMap().set(catchBeginLabel, this); 85 return this.labelPairs; [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
| D | cocos_worker_test.js | 8 var s = this && this.__importDefault || function(t) { 105 this && this.__importDefault; 169 i(this, "audioList", _, this); 170 this._dict = {}; 171 this._audioSource = null; 174 for (let t = 0; t < this.audioList.length; t++) { 175 const e = this.audioList[t]; 176 this._dict[e.name] = e; 178 this._audioSource = this.getComponent(a); 181 const e = this._dict[t]; [all …]
|