Home
last modified time | relevance | path

Searched refs:methodEntity (Results 1 – 6 of 6) sorted by relevance

/third_party/jsframework/mock-generate/src/generate/
DgenerateStaticFunction.ts31 const methodEntity = staticMethod.methodEntity; constant
33 methodBody += `${methodEntity.functionName.name}: function(...args) {`;
35 …methodBody += `${firstCharacterToUppercase(staticMethod.className)}.${methodEntity.functionName.na…
38 methodBody += getWarnConsole(rootName, methodEntity.functionName.name);
39 if (methodEntity.functionName.name === 'Symbol.iterator') {
40 methodBody += generateSymbolIterator(methodEntity);
45 const args = methodEntity.args;
51 if (methodEntity.returnType.returnKind !== SyntaxKind.VoidKeyword) {
52 methodBody += getReturnStatement(methodEntity.returnType, sourceFile);
DgenerateCommonMethod.ts32 const methodEntity = methodArray[0]; constant
33 if (methodEntity.functionName.name === 'Symbol.iterator') {
34 methodBody += `this[${methodEntity.functionName.name}] = function(...args) {`;
35 methodBody += getWarnConsole(rootName, methodEntity.functionName.name);
36 methodBody += generateSymbolIterator(methodEntity);
40 methodBody += `this.${methodEntity.functionName.name} = function(...args) {`;
41 methodBody += getWarnConsole(rootName, methodEntity.functionName.name);
45 const args = methodEntity.args;
50 if (methodEntity.returnType.returnKind !== SyntaxKind.VoidKeyword) {
51 if (methodEntity.functionName.name === 'getApplicationContext') {
[all …]
DgenerateCommonMethodSignature.ts29 const methodEntity = methodSignatureArray[0]; constant
30 methodSignatureBody += `${methodEntity.functionName}: function(...args) {`;
31 methodSignatureBody += getWarnConsole(rootName, methodEntity.functionName);
33 const args = methodEntity.args;
38 if (methodEntity.returnType.returnKind !== SyntaxKind.VoidKeyword) {
39 if (rootName === 'Context' && methodEntity.returnType.returnKindName === 'Context') {
42 methodSignatureBody += getReturnStatement(methodEntity.returnType, sourceFile);
DgenerateCommonUtil.ts306 export function generateSymbolIterator(methodEntity: MethodEntity): string {
308 if (methodEntity.returnType.returnKindName.includes('<[')) {
/third_party/jsframework/mock-generate/src/declaration-node/
DclassDeclaration.ts56 const methodEntity = getMethodDeclaration(value, sourceFile); constant
57 if (methodEntity.modifiers.includes(SyntaxKind.StaticKeyword)) {
58 staticMethods.push({ className: className, methodEntity: methodEntity });
60 if (classMethod.get(methodEntity.functionName.name) !== undefined) {
61 classMethod.get(methodEntity.functionName.name)?.push(methodEntity);
64 methodArray.push(methodEntity);
65 classMethod.set(methodEntity.functionName.name, methodArray);
DmethodDeclaration.ts65 methodEntity: MethodEntity property