Searched refs:propertyTypeName (Results 1 – 5 of 5) sorted by relevance
/third_party/jsframework/mock-generate/src/generate/ |
D | generatePropertySignatureDeclaration.ts | 38 if (propertySignature.propertyTypeName.startsWith('{')) { 41 if (propertySignature.propertyTypeName.startsWith('Array')) { 43 } else if (propertySignature.propertyTypeName.startsWith('Map')) { 45 …} else if (propertySignature.propertyTypeName === 'string' || checkIsGenericSymbol(propertySignatu… 46 … propertySignature.propertyTypeName === 'bool' || propertySignature.propertyTypeName === 'Data') { 49 if (propertySignature.propertyTypeName.includes('<')) { 50 const preSplit = propertySignature.propertyTypeName.split('<'); 54 …if (propertyTypeWhiteList(propertySignature.propertyTypeName) === propertySignature.propertyTypeNa… 55 ….propertyName}: ${getTheRealReferenceFromImport(sourceFile, propertySignature.propertyTypeName)},`; 57 …`${propertySignature.propertyName}: ${propertyTypeWhiteList(propertySignature.propertyTypeName)},`; [all …]
|
D | generatePropertyDeclaration.ts | 33 if (propertyDeclaration.propertyTypeName.startsWith('{')) { 36 …opertyBody = `this.${propertyDeclaration.propertyName} = ${propertyDeclaration.propertyTypeName};`; 43 } else if (propertyDeclaration.propertyTypeName.startsWith('Array')) { 45 } else if (propertyDeclaration.propertyTypeName.startsWith('Map')) { 49 if (getClassNameSet().has(propertyDeclaration.propertyTypeName)) { 50 …if (propertyDeclaration.propertyTypeName !== 'Want' && propertyDeclaration.propertyTypeName !== 'I… 51 …ody += `new ${getTheRealReferenceFromImport(sourceFile, propertyDeclaration.propertyTypeName)}();`; 53 …pertyBody += `${getTheRealReferenceFromImport(sourceFile, propertyDeclaration.propertyTypeName)};`; 56 …pertyBody += `${getTheRealReferenceFromImport(sourceFile, propertyDeclaration.propertyTypeName)};`; 59 …opertyBody = `this.${propertyDeclaration.propertyName} = ${propertyDeclaration.propertyTypeName};`;
|
D | generateCommonUtil.ts | 157 export function propertyTypeWhiteList(propertyTypeName: string): any { 159 if (whiteList.includes(propertyTypeName)) { 160 if (propertyTypeName === 'NotificationFlags' || propertyTypeName === 'GLenum') { 161 return `'[PC Preview] unkonwn ${propertyTypeName}'`; 162 } else if (propertyTypeName === 'GLboolean') { 168 return propertyTypeName;
|
/third_party/jsframework/mock-generate/src/declaration-node/ |
D | propertySignatureDeclaration.ts | 27 let propertyTypeName = ''; 40 …propertyTypeName = sourceFile.text.substring(propertyType.pos, propertyType.end).trimStart().trimE… 47 propertyTypeName: propertyTypeName, 55 propertyTypeName: string, property
|
D | propertyDeclaration.ts | 27 let propertyTypeName = ''; 48 …propertyTypeName = sourceFile.text.substring(propertyType.pos, propertyType.end).trimStart().trimE… 55 propertyTypeName: propertyTypeName, 65 propertyTypeName: string, property
|