Home
last modified time | relevance | path

Searched refs:propertyTypeName (Results 1 – 5 of 5) sorted by relevance

/third_party/jsframework/mock-generate/src/generate/
DgeneratePropertySignatureDeclaration.ts38 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 …]
DgeneratePropertyDeclaration.ts33 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};`;
DgenerateCommonUtil.ts157 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/
DpropertySignatureDeclaration.ts27 let propertyTypeName = '';
40propertyTypeName = sourceFile.text.substring(propertyType.pos, propertyType.end).trimStart().trimE…
47 propertyTypeName: propertyTypeName,
55 propertyTypeName: string, property
DpropertyDeclaration.ts27 let propertyTypeName = '';
48propertyTypeName = sourceFile.text.substring(propertyType.pos, propertyType.end).trimStart().trimE…
55 propertyTypeName: propertyTypeName,
65 propertyTypeName: string, property