Lines Matching refs:factory
185 node = ts.factory.updateSourceFile(node, statements);
251 ts.factory.createNodeArray(Array.from(node.parameters));
253 node = ts.factory.updateFunctionDeclaration(node, undefined, node.modifiers,
284 node = ts.factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword);
299 ts.factory.createVariableStatement(
301 ts.factory.createVariableDeclarationList(
302 [ts.factory.createVariableDeclaration(
303 ts.factory.createIdentifier(_GENERATE_ID),
305 ts.factory.createKeywordTypeNode(ts.SyntaxKind.NumberKeyword),
306 ts.factory.createNumericLiteral('0')
311 ts.factory.createFunctionDeclaration(
315 ts.factory.createIdentifier(GENERATE_ID),
318 ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),
319 ts.factory.createBlock(
320 [ts.factory.createReturnStatement(ts.factory.createBinaryExpression(
321 ts.factory.createStringLiteral(path.basename(node.fileName, EXTNAME_ETS) + '_'),
322 ts.factory.createToken(ts.SyntaxKind.PlusToken), ts.factory.createPrefixUnaryExpression(
324 ts.factory.createIdentifier(_GENERATE_ID)
369 return ts.factory.createNewExpression(node.expression, node.typeArguments,
370 [ts.factory.createObjectLiteralExpression(newproperties, true), ts.factory.createThis()]);
404 return ts.factory.updatePropertyAssignment(node, node.name,
412 const jsDialog: ts.Identifier = ts.factory.createIdentifier(JS_DIALOG);
422 mountNodde = ts.factory.createPropertyAccessExpression(ts.factory.createThis(),
425 return ts.factory.createArrowFunction(
430 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
431 ts.factory.createBlock(
434 ts.factory.createVariableStatement(
436 ts.factory.createVariableDeclarationList(
437 [ts.factory.createVariableDeclaration(jsDialog, undefined, undefined, newExp)],
441 ts.factory.createExpressionStatement(
442 ts.factory.createCallExpression(
443 ts.factory.createPropertyAccessExpression(
445 ts.factory.createIdentifier(SET_CONTROLLER_METHOD)
451 ts.factory.createExpressionStatement(createViewCreate(jsDialog))
522 ts.factory.createPropertyAssignment(
523 ts.factory.createStringLiteral(RESOURCE_NAME_ID),
524 ts.factory.createNumericLiteral(resourceValue)
526 ts.factory.createPropertyAssignment(
527 ts.factory.createStringLiteral(RESOURCE_NAME_TYPE),
528 ts.factory.createNumericLiteral(resourceType)
530 ts.factory.createPropertyAssignment(
531 ts.factory.createIdentifier(RESOURCE_NAME_PARAMS),
532 ts.factory.createArrayLiteralExpression(argsArr, false)
537 propertyArray.push(ts.factory.createPropertyAssignment(
538 ts.factory.createStringLiteral(RESOURCE_NAME_BUNDLE),
539 ts.factory.createStringLiteral(projectConfig.bundleName)
544 propertyArray.push(ts.factory.createPropertyAssignment(
545 ts.factory.createStringLiteral(RESOURCE_NAME_MODULE),
546 ts.factory.createStringLiteral(projectConfig.moduleName)
550 const resourceParams: ts.ObjectLiteralExpression = ts.factory.createObjectLiteralExpression(
611 const stringNode: ts.StringLiteral = ts.factory.createStringLiteral(
614 return ts.factory.updateNewExpression(node, node.expression, node.typeArguments, args);
620 return ts.factory.updateCallExpression(node, ts.factory.createPropertyAccessExpression(
621 ts.factory.createIdentifier(GLOBAL_CONTEXT), ts.factory.createIdentifier(ATTRIBUTE_ANIMATETO)),
634 …const changeCompName: ts.ExpressionStatement = ts.factory.createExpressionStatement(processExtendB…
636 ts.factory.createIdentifier(componentName), statementArray, log);
647 … return ts.factory.updateFunctionDeclaration(node, undefined, node.modifiers, node.asteriskToken,
648 ts.factory.createIdentifier(extendFunctionName), node.typeParameters,
649 … node.parameters, ts.factory.createToken(ts.SyntaxKind.VoidKeyword), isOriginalExtend(node.body) ?
650 ts.factory.updateBlock(node.body, statementArray) : bodynode);
654 ts.factory.createIdentifier(componentName), statementArray, log);
655 … return ts.factory.updateFunctionDeclaration(node, undefined, node.modifiers, node.asteriskToken,
657 …[...node.parameters, ...createAnimatableParameterNode()], ts.factory.createToken(ts.SyntaxKind.Voi…
658 ts.factory.updateBlock(node.body, createAnimatableBody(componentName, node.name,
665 ts.factory.createExpressionStatement(processExtendBody(node.expression, componentName));
667 … bindComponentAttr(changeCompName, ts.factory.createIdentifier(componentName), statementArray, []);
668 return ts.factory.createBlock(statementArray, true);
676 ts.factory.createParameterDeclaration(
677 undefined, undefined, undefined, ts.factory.createIdentifier(ELMTID)),
678 ts.factory.createParameterDeclaration(
679 undefined, undefined, undefined, ts.factory.createIdentifier(ISINITIALRENDER)),
680 ts.factory.createParameterDeclaration(
681 undefined, undefined, undefined, ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_PARENT))
694 ts.factory.createIfStatement(
695 ts.factory.createIdentifier(ISINITIALRENDER),
696 ts.factory.createBlock([
700 ts.factory.createBlock([
701 ts.factory.createExpressionStatement(ts.factory.createCallExpression(
702 ts.factory.createPropertyAccessExpression(
703 ts.factory.createIdentifier(componentName),
704 ts.factory.createIdentifier(UPDATE_ANIMATABLE_PROPERTY)
706 [ ts.factory.createStringLiteral(funcName.escapedText.toString()), ...paramNode ]
716 const componentIdentifier: ts.Identifier = ts.factory.createIdentifier(componentName);
717 return ts.factory.createExpressionStatement(
718 ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(
720 ts.factory.createIdentifier(CREATE_ANIMATABLE_PROPERTY)),
722 ts.factory.createStringLiteral(funcName.escapedText.toString()),
724 ts.factory.createArrowFunction(undefined, undefined, parameters, undefined,
725 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
726 ts.factory.createBlock([
739 return ts.factory.createExpressionStatement(ts.factory.createCallExpression(
740 ts.factory.createPropertyAccessExpression(
741 ts.factory.createIdentifier(VIEW_STACK_PROCESSOR),
742 ts.factory.createIdentifier(GET_AND_PUSH_FRAME_NODE),
745 ts.factory.createStringLiteral(componentName),
746 ts.factory.createIdentifier(ELMTID)
752 return ts.factory.createExpressionStatement(ts.factory.createCallExpression(
753 ts.factory.createPropertyAccessExpression(
754 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_PARENT),
755 ts.factory.createIdentifier(FINISH_UPDATE_FUNC),
756 ), undefined, [ts.factory.createIdentifier(ELMTID)]
763 = [ts.factory.createExpressionStatement(ts.factory.createStringLiteral('use concurrent')),
765 …return ts.factory.updateFunctionDeclaration(node, undefined, node.modifiers, node.asteriskToken, n…
766 …node.typeParameters, node.parameters, node.type, ts.factory.updateBlock(node.body, statementArray)…
804 return ts.factory.createCallExpression(processExtendBody(node.expression, componentName),
807 return ts.factory.createPropertyAccessExpression(
811 return ts.factory.createIdentifier(node.escapedText.toString().replace(INSTANCE, ''));
813 return ts.factory.createIdentifier(componentName);
870 return context.factory.updateSourceFile(node, [...node.statements, entryNode]);
876 context.factory.updateSourceFile(node, [...node.statements, ...entryNodes]) :
877 context.factory.updateSourceFile(node, [...node.statements]);
885 return context.factory.updateSourceFile(node, [...node.statements, statementsArray]);
892 context.factory.createStringLiteral(id.toString()),
893 context.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED),
894 context.factory.createObjectLiteralExpression([], false)
901 context.factory.createNewExpression(
902 context.factory.createIdentifier(name), undefined, newArray)];
906 context.factory.createExpressionStatement(context.factory.createCallExpression(
907 context.factory.createIdentifier(cardRelativePath ? CARD_ENTRY_FUNCTION_NAME :
967 ] : [ts.factory.createBlock([
977 ] : [ts.factory.createBlock([
987 ] : [ts.factory.createBlock([
997 ] : [ts.factory.createBlock([
1013 return ts.factory.createIfStatement(
1016 ts.factory.createBlock(
1023 ts.factory.createIfStatement(
1026 ts.factory.createBlock(
1033 ts.factory.createIfStatement(
1036 ts.factory.createBlock(
1043 ts.factory.createBlock(
1056 return ts.factory.createBinaryExpression(
1057 ts.factory.createBinaryExpression(
1058 ts.factory.createIdentifier(ROUTENAME_NODE),
1059 …ts.factory.createToken(hasRouteName ? ts.SyntaxKind.ExclamationEqualsToken : ts.SyntaxKind.EqualsE…
1060 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)
1062 ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersandToken),
1063 ts.factory.createBinaryExpression(
1064 ts.factory.createIdentifier(STORAGE_NODE),
1065 …ts.factory.createToken(hasStorage ? ts.SyntaxKind.ExclamationEqualsToken : ts.SyntaxKind.EqualsEqu…
1066 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)
1073 return ts.factory.createBinaryExpression(
1074 ts.factory.createBinaryExpression(
1076 ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersandToken),
1077 ts.factory.createBinaryExpression(
1078 ts.factory.createPropertyAccessExpression(
1080 ts.factory.createIdentifier(ROUTE_NAME)
1082 …ts.factory.createToken(hasRouteName ? ts.SyntaxKind.ExclamationEqualsToken : ts.SyntaxKind.EqualsE…
1083 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)
1086 ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersandToken),
1087 ts.factory.createBinaryExpression(
1088 ts.factory.createPropertyAccessExpression(
1090 ts.factory.createIdentifier(STORAGE)
1092 …ts.factory.createToken(hasStorage ? ts.SyntaxKind.ExclamationEqualsToken : ts.SyntaxKind.EqualsEqu…
1093 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)
1101 assignOperation.push(ts.factory.createVariableStatement(
1103 ts.factory.createVariableDeclarationList(
1104 [ts.factory.createVariableDeclaration(
1105 ts.factory.createIdentifier(ROUTENAME_NODE),
1115 assignOperation.push(ts.factory.createVariableStatement(
1117 ts.factory.createVariableDeclarationList(
1118 [ts.factory.createVariableDeclaration(
1119 ts.factory.createIdentifier(STORAGE_NODE),
1136 context.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED),
1137 context.factory.createObjectLiteralExpression([], false)
1142 newArray.push(ts.factory.createPropertyAccessExpression(
1144 ts.factory.createIdentifier(STORAGE)
1150 newArray.push(ts.factory.createIdentifier(STORAGE_NODE));
1154 context.factory.createNewExpression(
1155 context.factory.createIdentifier(name),
1160 const newExpression: ts.Expression = context.factory.createNewExpression(
1161 context.factory.createIdentifier(componentName),
1165 argsArr.push(context.factory.createStringLiteral(componentName), newExpression);
1171 context.factory.createExpressionStatement(context.factory.createCallExpression(
1172 context.factory.createIdentifier(REGISTER_NAMED_ROUTE),
1175 context.factory.createArrowFunction(
1180 context.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
1183 …isObject ? ts.factory.createIdentifier(ROUTENAME_NODE) : context.factory.createPropertyAccessExpre…
1185 context.factory.createIdentifier(ROUTE_NAME)
1187 context.factory.createObjectLiteralExpression(
1189 context.factory.createPropertyAssignment(
1190 context.factory.createIdentifier(RESOURCE_NAME_BUNDLE),
1191 context.factory.createStringLiteral(projectConfig.bundleName || '')
1193 context.factory.createPropertyAssignment(
1194 context.factory.createIdentifier(RESOURCE_NAME_MODULE),
1195 context.factory.createStringLiteral(projectConfig.moduleName || '')
1197 context.factory.createPropertyAssignment(
1198 context.factory.createIdentifier(PAGE_PATH),
1199 context.factory.createStringLiteral(