Home
last modified time | relevance | path

Searched refs:member (Results 1 – 25 of 59) sorted by relevance

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DtaggedTemplateStringsWithTypedTags.ts25 member: I;
45 f `abc`.member
46 AssertType(f `abc`.member, "I");
48 f `abc${1}def${2}ghi`.member;
49 AssertType(f `abc${1}def${2}ghi`.member, "I");
67 f `abc`[0].member `abc${1}def${2}ghi`;
68 AssertType(f `abc`[0].member `abc${1}def${2}ghi`, "I");
69 AssertType(f `abc`[0].member, "I");
74 f `abc${1}def${2}ghi`["member"].member `abc${1}def${2}ghi`;
75 AssertType(f `abc${1}def${2}ghi`["member"].member `abc${1}def${2}ghi`, "I");
[all …]
DtaggedTemplateStringsWithTypedTagsES6.ts25 member: I;
45 f `abc`.member
46 AssertType(f `abc`.member, "I");
48 f `abc${1}def${2}ghi`.member;
49 AssertType(f `abc${1}def${2}ghi`.member, "I");
67 f `abc`[0].member `abc${1}def${2}ghi`;
68 AssertType(f `abc`[0].member `abc${1}def${2}ghi`, "I");
69 AssertType(f `abc`[0].member, "I");
74 f `abc${1}def${2}ghi`["member"].member `abc${1}def${2}ghi`;
75 AssertType(f `abc${1}def${2}ghi`["member"].member `abc${1}def${2}ghi`, "I");
[all …]
DtaggedTemplateStringsWithManyCallAndMemberExpressionsES6.ts23 member: {
34 let x = new new new f `abc${ 0 }def`.member("hello")(42) === true;
36 AssertType(new new new f `abc${ 0 }def`.member("hello")(42) === true, "boolean");
37 AssertType(new new new f `abc${ 0 }def`.member("hello")(42), "boolean");
38 AssertType(new new f `abc${ 0 }def`.member("hello")(42), "new () => boolean");
39 AssertType(new f `abc${ 0 }def`.member("hello"), "new (number) => new () => boolean");
40 AssertType(f `abc${ 0 }def`.member, "new (string) => new (number) => new () => boolean");
DtaggedTemplateStringsWithManyCallAndMemberExpressions.ts23 member: {
34 let x = new new new f `abc${ 0 }def`.member("hello")(42) === true;
36 AssertType(new new new f `abc${ 0 }def`.member("hello")(42) === true, "boolean");
37 AssertType(new new new f `abc${ 0 }def`.member("hello")(42), "boolean");
38 AssertType(new new f `abc${ 0 }def`.member("hello")(42), "new () => boolean");
39 AssertType(new f `abc${ 0 }def`.member("hello"), "new (number) => new () => boolean");
40 AssertType(f `abc${ 0 }def`.member, "new (string) => new (number) => new () => boolean");
DcomputedPropertyNames7_ES5.ts22 member
26 AssertType({ [E.member]: 0}, "{ 0: number; }");
28 [E.member]: 0
29 AssertType([E.member], "number");
30 AssertType(E.member, "E");
DcomputedPropertyNames7_ES6.ts22 member
26 AssertType({ [E.member]: 0}, "{ 0: number; }");
28 [E.member]: 0
29 AssertType([E.member], "number");
30 AssertType(E.member, "E");
DtaggedTemplateStringsWithTagsTypedAsAnyES6.ts48 f `abc`.member
49 AssertType(f `abc`.member, "any");
51 f `abc${1}def${2}ghi`.member;
52 AssertType(f `abc${1}def${2}ghi`.member, "any");
DtaggedTemplateStringsWithTagsTypedAsAny.ts48 f `abc`.member
49 AssertType(f `abc`.member, "any");
51 f `abc${1}def${2}ghi`.member;
52 AssertType(f `abc${1}def${2}ghi`.member, "any");
DgeneratedContextualTyping.ts132 class x13 { member: () => Base[] = () => [d1, d2] } property in x13
133 class x14 { member: () => Base[] = function() { property in x14
142 class x15 { member: () => Base[] = function named() {
151 class x16 { member: { (): Base[]; } = () => [d1, d2] }
152 class x17 { member: { (): Base[]; } = function() {
161 class x18 { member: { (): Base[]; } = function named() {
170 class x19 { member: Base[] = [d1, d2] }
171 class x20 { member: Array<Base> = [d1, d2] }
172 class x21 { member: { [n: number]: Base; } = [d1, d2] }
173 class x22 { member: {n: Base[]; } = { n: [d1, d2] } }
[all …]
DparameterPropertyInConstructorWithPrologues.ts96 private member: boolean, property in Foo7
114 private member: boolean, property in Foo8
DasyncArrowInClassES5.ts26 static member = async (x: string) => { };
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsObjectsMarkedAsOpenEnded/
Da.js33 this.member = {};
34 AssertType(this.member = {}, "{}");
35 AssertType(this.member, "any");
39 this.member.a = 0;
40 AssertType(this.member.a = 0, "int");
41 AssertType(this.member.a, "error");
42 AssertType(this.member, "{}");
Db.ts26 (new C()).member.a = 1;
27 AssertType((new C()).member.a = 1, "int");
28 AssertType((new C()).member.a, "any");
/arkcompiler/ets_frontend/arkguard/src/utils/
DOhsUtil.ts220 typeAliasNode.type.members.forEach((member) => {
221 if (!member || !member.name) {
224 let memberName: PropertyName = member.name;
242 interfaceNode.members.forEach((member) => {
243 if (!member || !member.name) {
247 let memberName: PropertyName = member.name;
267 classNode.members.forEach((member) => {
268 if (!member) {
272 const memberName: PropertyName = member.name;
278 if (isConstructorDeclaration(member) && member.parameters) {
[all …]
/arkcompiler/ets_frontend/ts2panda/src/base/
DtypeSystem.ts345 private fillInFields(member: ts.PropertyDeclaration): void {
346 let fieldName = jshelpers.getTextOfIdentifierOrLiteral(member.name);
349 if (member.modifiers) {
350 for (let modifier of member.modifiers) {
375 let typeNode = member.type;
376 let memberName = member.name;
383 if (member.initializer != undefined) {
389 private fillInMethods(member: ClassMemberFunction): void {
394 if (this.typeChecker.isFromDefaultLib(member)) {
398 … let funcName = member.name ? jshelpers.getTextOfIdentifierOrLiteral(member.name) : "constructor";
[all …]
/arkcompiler/ets_runtime/test/moduletest/calltype/
Dcalltype.js60 member : 1, property
62 print(this.member);
65 return this.member;
68 this.member = n;
69 print("setter", this.member);
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dobject.cpp197 void Checker::ResolvePropertiesOfObjectType(ObjectType *type, const ir::Expression *member, in ResolvePropertiesOfObjectType() argument
202 if (member->IsTSPropertySignature()) { in ResolvePropertiesOfObjectType()
203 binder::Variable *prop = member->AsTSPropertySignature()->Variable(); in ResolvePropertiesOfObjectType()
206 …ValidateInterfaceMemberRedeclaration(type, prop, member->AsTSPropertySignature()->Key()->Start()))… in ResolvePropertiesOfObjectType()
213 if (member->IsTSMethodSignature()) { in ResolvePropertiesOfObjectType()
214 binder::Variable *method = member->AsTSMethodSignature()->Variable(); in ResolvePropertiesOfObjectType()
217 …ValidateInterfaceMemberRedeclaration(type, method, member->AsTSMethodSignature()->Key()->Start()))… in ResolvePropertiesOfObjectType()
224 if (member->IsTSSignatureDeclaration()) { in ResolvePropertiesOfObjectType()
225 signatureDeclarations.push_back(member->AsTSSignatureDeclaration()); in ResolvePropertiesOfObjectType()
229 ASSERT(member->IsTSIndexSignature()); in ResolvePropertiesOfObjectType()
[all …]
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/get_resource/
Dspider.py50 … for member in tqdm(desc='dayu200_xts', iterable=tar.getmembers(), total=len(tar.getmembers())):
51 tar.extract(path=extract_path, member=member)
/arkcompiler/ets_frontend/ts2panda/src/statement/
DclassStatement.ts431 let member = members[index];
432 if (ts.isConstructorDeclaration(member)) {
433 return member;
542 node.members.forEach(member => {
543 switch (member.kind) {
545 constructNode = member;
548 if (!jshelpers.hasStaticModifier(member)) {
549 classFields.push(<ts.PropertyDeclaration>member);
553 if (ts.isComputedPropertyName(member.name!)) {
554 … if (defineClassMember(member.name, member, PropertyKind.COMPUTED, properties, namedPropertyMap)) {
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-member-expression-2-expected.txt1 SyntaxError: Unexpected token [test-member-expression-2.js:17:4]
Dtest-member-expression-1-expected.txt1 SyntaxError: Expected an identifier [test-member-expression-1.js:17:3]
Dtest-member-expression-3-expected.txt1 SyntaxError: Primary expression expected [test-member-expression-3.js:17:9]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-enum-declaration3-expected.txt1 SyntaxError: Unexpected token in enum member [test-enum-declaration3.ts:18:12]
Dtest-enum-declaration2-expected.txt1 SyntaxError: Unexpected token in enum member [test-enum-declaration2.ts:18:5]
Dtest-member-expression1-expected.txt1 SyntaxError: Invalid left-hand side in assignment expression [test-member-expression1.ts:18:18]

123