• Home
  • Raw
  • Download

Lines Matching refs:factory

141           const propertyAssignmentNode: ts.PropertyAssignment = ts.factory.updatePropertyAssignment(
147 const newNode: ts.ExpressionStatement = ts.factory.updateExpressionStatement(node,
148 ts.factory.createNewExpression(componentNode.expression, componentNode.typeArguments,
149 [ts.factory.createObjectLiteralExpression(argumentsArray, true)]));
160 const commomComponentNode: ts.Statement[] = [ts.factory.createExpressionStatement(
161 createFunction(ts.factory.createIdentifier(COMPONENT_COMMON),
162 ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), null))];
164 bindComponentAttr(node, ts.factory.createIdentifier(COMPONENT_COMMON), commomComponentNode,
169 newStatements.push(ts.factory.createExpressionStatement(
170 createFunction(ts.factory.createIdentifier(COMPONENT_COMMON),
171 ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), null)));
172 bindComponentAttr(node, ts.factory.createIdentifier(COMPONENT_COMMON), newStatements, log);
181 newStatements.push(ts.factory.createExpressionStatement(
182 createFunction(ts.factory.createIdentifier(COMPONENT_COMMON),
183 ts.factory.createIdentifier(COMPONENT_POP_FUNCTION), null)));
201 [ts.factory.createExpressionStatement(
202 createFunction(ts.factory.createIdentifier(COMPONENT_RECYCLE),
203 ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), null))
208 return ts.factory.createExpressionStatement(
209 ts.factory.createCallExpression(
210 ts.factory.createPropertyAccessExpression(
211 ts.factory.createIdentifier(componentName),
212 ts.factory.createIdentifier(COMPONENT_POP_FUNCTION)
233 let builderBindThis: ts.ExpressionStatement = ts.factory.createExpressionStatement(node);
236 …builderBindThis = transferBuilderCall(ts.factory.createExpressionStatement(node), node.expression.…
238 return ts.factory.createArrowFunction(undefined, undefined, [], undefined,
239 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
240 ts.factory.createBlock([builderBindThis], true));
262 ts.factory.updateExpressionStatement(node, createViewCreate(newNode)),
263 ts.factory.createObjectLiteralExpression(props, true), name));
294 …componentParameter = ts.factory.createObjectLiteralExpression(createChildElmtId(componentNode, nam…
296 componentParameter = ts.factory.createObjectLiteralExpression([], false);
299 ts.factory.createParameterDeclaration(undefined, undefined, undefined,
300 ts.factory.createIdentifier(ELMTID)
302 ts.factory.createParameterDeclaration(undefined, undefined, undefined,
303 ts.factory.createIdentifier(ISINITIALRENDER)
311 arrowArgArr.push(ts.factory.createParameterDeclaration(
312 undefined, undefined, undefined, ts.factory.createIdentifier(RECYCLE_NODE),
313 undefined, undefined, ts.factory.createNull()
321 ts.factory.createArrowFunction(undefined, undefined, arrowArgArr, undefined,
322 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
323 ts.factory.createBlock(arrowBolck, true))
327 observeArgArr.unshift(ts.factory.createStringLiteral(name));
329 observeArgArr.push(ts.factory.createNull());
331 return ts.factory.createBlock(
333 ts.factory.createExpressionStatement(ts.factory.createCallExpression(
334 ts.factory.createPropertyAccessExpression(isGlobalBuilder ?
335 … ts.factory.createParenthesizedExpression(parentConditionalExpression()) : ts.factory.createThis(),
337 ts.factory.createIdentifier(OBSERVE_RECYCLE_COMPONENT_CREATION) :
338 ts.factory.createIdentifier(partialUpdateConfig.optimizeComponent ?
346 return ts.factory.createIfStatement(
347 ts.factory.createIdentifier(RECYCLE_NODE),
348 ts.factory.createBlock(
349 [ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
350 ts.factory.createPropertyAccessExpression(
351 ts.factory.createIdentifier(RECYCLE_NODE),
352 ts.factory.createIdentifier(COMPONENT_PARAMS_FUNCTION)
354 ts.factory.createToken(ts.SyntaxKind.EqualsToken),
355 ts.factory.createIdentifier(COMPONENT_PARAMS_LAMBDA_FUNCTION)
371 return ts.factory.createVariableStatement(
373 ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(
374 ts.factory.createIdentifier(COMPONENT_PARAMS_LAMBDA_FUNCTION),
377 ts.factory.createArrowFunction(
382 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
383 ts.factory.createBlock(
384 [ts.factory.createReturnStatement(
385 integrateParams ? componentNode.arguments[0] : ts.factory.createObjectLiteralExpression(
403 returnProperties.push(ts.factory.createShorthandPropertyAssignment(
408 returnProperties.push(ts.factory.createPropertyAssignment(
435 return ts.factory.createIfStatement(
436 ts.factory.createIdentifier(ISINITIALRENDER),
437 ts.factory.createBlock(
444 ts.factory.createBlock(
445 [ts.factory.createExpressionStatement(ts.factory.createCallExpression(
446 ts.factory.createPropertyAccessExpression(isGlobalBuilder ?
447 … ts.factory.createParenthesizedExpression(parentConditionalExpression()) : ts.factory.createThis(),
448 ts.factory.createIdentifier(UPDATE_STATE_VARS_OF_CHIND_BY_ELMTID)
450 [ts.factory.createIdentifier(ELMTID), componentParameter]))], true)
455 return ts.factory.createExpressionStatement(
456 ts.factory.createCallExpression(
457 ts.factory.createPropertyAccessExpression(
458 ts.factory.createIdentifier(BASE_COMPONENT_NAME_PU),
459 ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION)
473 argNode = [ts.factory.createObjectLiteralExpression(componentParam, false)];
475 argNode = [ts.factory.createObjectLiteralExpression([], false)];
477 const recycleNode: ts.CallExpression = ts.factory.createCallExpression(
479 return ts.factory.createExpressionStatement(
480 ts.factory.createCallExpression(
481 ts.factory.createPropertyAccessExpression(
482 ts.factory.createIdentifier(BASE_COMPONENT_NAME_PU),
483 ts.factory.createIdentifier(COMPONENT_CREATE_RECYCLE)
486 ts.factory.createConditionalExpression(
487 ts.factory.createIdentifier(RECYCLE_NODE),
488 ts.factory.createToken(ts.SyntaxKind.QuestionToken),
489 ts.factory.createIdentifier(RECYCLE_NODE),
490 ts.factory.createToken(ts.SyntaxKind.ColonToken),
493 ts.factory.createBinaryExpression(
494 ts.factory.createIdentifier(RECYCLE_NODE),
495 ts.factory.createToken(ts.SyntaxKind.ExclamationEqualsEqualsToken),
496 ts.factory.createNull()
499 ts.factory.createStringLiteral(name),
500 ts.factory.createArrowFunction(undefined, undefined, [], undefined,
501 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken),
502 ts.factory.createBlock([
503 ts.factory.createIfStatement(
504 ts.factory.createBinaryExpression(
505 ts.factory.createIdentifier(RECYCLE_NODE),
506 ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersandToken),
507 ts.factory.createBinaryExpression(
508 ts.factory.createTypeOfExpression(
510 ts.factory.createToken(ts.SyntaxKind.EqualsEqualsEqualsToken),
511 ts.factory.createStringLiteral(FUNCTION)
513 ts.factory.createBlock([
514 ts.factory.createExpressionStatement(ts.factory.createCallExpression(
520 ts.factory.createBlock(
522 ts.factory.createIfStatement(ts.factory.createBinaryExpression(
523 …createRecyclePropertyNode(ABOUT_TO_REUSE), ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersand…
524 ts.factory.createBinaryExpression(
525 ts.factory.createTypeOfExpression(createRecyclePropertyNode(ABOUT_TO_REUSE)),
526 ts.factory.createToken(ts.SyntaxKind.EqualsEqualsEqualsToken),
527 ts.factory.createStringLiteral(FUNCTION)
529 … ts.factory.createBlock([ts.factory.createExpressionStatement(recycleNode)], true)),
530 ts.factory.createExpressionStatement(ts.factory.createCallExpression(
541 return ts.factory.createPropertyAccessExpression(
542 ts.factory.createIdentifier(RECYCLE_NODE), ts.factory.createIdentifier(recycleFunctionName));
561 item = ts.factory.updatePropertyAssignment(item as ts.PropertyAssignment,
773 return ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList(
774 [ts.factory.createVariableDeclaration(ts.factory.createIdentifier(
775 … `${CUSTOM_COMPONENT_EARLIER_CREATE_CHILD}${id}`), undefined, ts.factory.createTypeReferenceNode(
776 ts.factory.createIdentifier(name)),
777 ts.factory.createConditionalExpression(
778 ts.factory.createParenthesizedExpression(
779 ts.factory.createBinaryExpression(
781 ts.factory.createToken(ts.SyntaxKind.AmpersandAmpersandToken),
782 ts.factory.createPropertyAccessExpression(
784 ts.factory.createIdentifier(CUSTOM_COMPONENT_FUNCTION_FIND_CHILD_BY_ID)
785 ))), ts.factory.createToken(ts.SyntaxKind.QuestionToken),
786 ts.factory.createAsExpression(ts.factory.createCallExpression(
787 ts.factory.createPropertyAccessExpression(createConditionParent(isBuilder),
788 ts.factory.createIdentifier(`${CUSTOM_COMPONENT_FUNCTION_FIND_CHILD_BY_ID}`)), undefined,
789 [isBuilder ? ts.factory.createCallExpression(ts.factory.createIdentifier(GENERATE_ID),
790 undefined, []) : ts.factory.createStringLiteral(id)]),
791 ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(name))),
792 ts.factory.createToken(ts.SyntaxKind.ColonToken),
793 ts.factory.createIdentifier(COMPONENT_IF_UNDEFINED)))], ts.NodeFlags.Let));
797 …return isBuilder ? ts.factory.createParenthesizedExpression(parentConditionalExpression()) : ts.fa…
803 return ts.factory.createIfStatement(ts.factory.createBinaryExpression(
804 ts.factory.createIdentifier(viewName),
805 ts.factory.createToken(ts.SyntaxKind.EqualsEqualsToken),
806 ts.factory.createIdentifier(`${COMPONENT_CONSTRUCTOR_UNDEFINED}`)),
807 ts.factory.createBlock([node], true),
808 ts.factory.createBlock([ts.factory.createExpressionStatement(ts.factory.createCallExpression(
809 ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(
810 viewName), ts.factory.createIdentifier(
813 ts.factory.createExpressionStatement(ts.factory.createCallExpression(
814 ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(`${BASE_COMPONENT_NAME}`),
815 ts.factory.createIdentifier(`${COMPONENT_CREATE_FUNCTION}`)), undefined,
816 [ts.factory.createIdentifier(viewName)]))], true));
820 return ts.factory.createIfStatement(ts.factory.createPrefixUnaryExpression(
821 ts.SyntaxKind.ExclamationToken, ts.factory.createCallExpression(
822 ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(name),
823 ts.factory.createIdentifier(CUSTOM_COMPONENT_NEEDS_UPDATE_FUNCTION)), undefined, [])),
824 ts.factory.createBlock([ts.factory.createExpressionStatement(ts.factory.createCallExpression(
825 ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(name),
826 ts.factory.createIdentifier(CUSTOM_COMPONENT_MARK_STATIC_FUNCTION)),