• Home
  • Raw
  • Download

Lines Matching refs:factory

293   return ts.factory.createExpressionStatement(ts.factory.createCallExpression(
294 ts.factory.createPropertyAccessExpression(
295 ts.factory.createPropertyAccessExpression(
296 ts.factory.createThis(),
297 ts.factory.createIdentifier("__"+name.escapedText.toString())
299 ts.factory.createIdentifier(RESERT)
302 [ts.factory.createPropertyAccessExpression(
303 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_PARAMS),
314 return ts.factory.createMethodDeclaration(undefined, undefined, undefined,
315 ts.factory.createIdentifier(SET_CONTROLLER_METHOD), undefined, undefined,
316 [ts.factory.createParameterDeclaration(undefined, undefined, undefined,
317 ts.factory.createIdentifier(SET_CONTROLLER_CTR), undefined,
318 ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(SET_CONTROLLER_CTR_TYPE),
319 undefined), undefined)], undefined, ts.factory.createBlock(
320 [ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
321 ts.factory.createPropertyAccessExpression(ts.factory.createThis(), name),
322 ts.factory.createToken(ts.SyntaxKind.EqualsToken),
323 ts.factory.createIdentifier(SET_CONTROLLER_CTR)))], true));
414 return ts.factory.createExpressionStatement(
415 ts.factory.createCallExpression(
416 ts.factory.createPropertyAccessExpression(
417 ts.factory.createPropertyAccessExpression(
418 ts.factory.createThis(),
419 ts.factory.createIdentifier(variableWithUnderLink)
421 ts.factory.createIdentifier(PURGEDEPENDENCYONELMTID)
424 [ts.factory.createIdentifier(RMELMTID)]
509 members.push(ts.factory.createPropertySignature(undefined, name,
510 ts.factory.createToken(ts.SyntaxKind.QuestionToken), type));
511 interfaceNode = ts.factory.updateInterfaceDeclaration(interfaceNode, undefined,
571 return ts.factory.createIfStatement(ts.factory.createBinaryExpression(
572 ts.factory.createPropertyAccessExpression(
573 ts.factory.createIdentifier(CREATE_CONSTRUCTOR_PARAMS),
574 ts.factory.createIdentifier(name.escapedText.toString())),
575 isProp ? ts.factory.createToken(ts.SyntaxKind.EqualsEqualsEqualsToken) :
576 ts.factory.createToken(ts.SyntaxKind.ExclamationEqualsEqualsToken),
577 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)),
578 isProp ? ts.factory.createBlock([createUpdateParamsWithSet(name, true, initializeNode)]) :
579 ts.factory.createBlock([
584 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
586 ts.factory.createToken(ts.SyntaxKind.EqualsToken),
592 return ts.factory.createExpressionStatement(ts.factory.createCallExpression(
593 …ts.factory.createPropertyAccessExpression(createPropertyAccessExpressionWithThis(`__${name.getText…
594 ts.factory.createIdentifier(CREATE_SET_METHOD)), undefined,
608 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
610 ts.factory.createToken(ts.SyntaxKind.EqualsToken), init ||
611 ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)));
616 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
618 ts.factory.createToken(ts.SyntaxKind.EqualsToken), ts.factory.createNewExpression(
619 ts.factory.createIdentifier(isSimpleType(type, program) ? OBSERVED_PROPERTY_SIMPLE :
620 OBSERVED_PROPERTY_OBJECT), undefined, [item.initializer, ts.factory.createThis(),
621 ts.factory.createStringLiteral(name.escapedText.toString())])));
652 ts.factory.createThis(),
653 ts.factory.createStringLiteral(name.getText())
665 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
667 ts.factory.createToken(ts.SyntaxKind.EqualsToken), ts.factory.createCallExpression(
668 ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(storageFuncName),
669 ts.factory.createIdentifier(setFuncName)), undefined, storageValue)));
707 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
709 ts.factory.createToken(ts.SyntaxKind.EqualsToken), ts.factory.createCallExpression(
711 … ts.factory.createStringLiteral(propertyOrAliasName), ts.factory.createStringLiteral(name)])));
724 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
725 createPropertyAccessExpressionWithThis(name), ts.factory.createToken(ts.SyntaxKind.EqualsToken),
726 node.initializer || ts.factory.createIdentifier(COMPONENT_CONSTRUCTOR_UNDEFINED)
740 return ts.factory.createArrowFunction(undefined, undefined, [], undefined,
741 ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), ts.factory.createBlock([
742 ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList(
743 [ts.factory.createVariableDeclaration(jsDialog, undefined, undefined, newExp)],
744 ts.NodeFlags.Let)), ts.factory.createExpressionStatement(ts.factory.createCallExpression(
745 ts.factory.createPropertyAccessExpression(jsDialog,
746 ts.factory.createIdentifier(SET_CONTROLLER_METHOD)), undefined,
747 [ts.factory.createPropertyAccessExpression(ts.factory.createThis(),
748 parent.name as ts.Identifier)])), ts.factory.createExpressionStatement(
754 return createFunction(ts.factory.createIdentifier(BASE_COMPONENT_NAME_PU),
755 ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), ts.factory.createNodeArray([node]));
757 return createFunction(ts.factory.createIdentifier(BASE_COMPONENT_NAME),
758 ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), ts.factory.createNodeArray([node]));
764 const newNode: ts.NewExpression = ts.factory.createNewExpression(node.expression,
782 argumentsArray = [ts.factory.createObjectLiteralExpression([], true)];
786 argumentsArray.unshift(isBuilder ? ts.factory.createBinaryExpression(
787 …ts.factory.createStringLiteral(path.basename(transformLog.sourceFile.fileName, EXTNAME_ETS) + '_'),
788 … ts.factory.createToken(ts.SyntaxKind.PlusToken), ts.factory.createIdentifier(_GENERATE_ID)) :
789 ts.factory.createStringLiteral(componentInfo.id.toString()),
790 isBuilder ? parentConditionalExpression() : ts.factory.createThis());
792 … argumentsArray.unshift(isGlobalBuilder ? parentConditionalExpression() : ts.factory.createThis());
793 argumentsArray.push(ts.factory.createIdentifier(COMPONENT_IF_UNDEFINED),
794 isCutomDialog ? ts.factory.createPrefixUnaryExpression(
796 ts.factory.createNumericLiteral('1')) : ts.factory.createIdentifier(ELMTID),
797 ts.factory.createIdentifier(COMPONENT_PARAMS_LAMBDA_FUNCTION));
800 ts.factory.updateNewExpression(node, node.expression, node.typeArguments, argumentsArray);
803 ts.factory.updateNewExpression(node, node.expression, node.typeArguments, argumentsArray);
811 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
813 ts.factory.createToken(ts.SyntaxKind.EqualsToken), ts.factory.createNewExpression(
814 ts.factory.createIdentifier(functionName), undefined, [parameterNode, ts.factory.createThis(),
815 ts.factory.createStringLiteral(propertyName)])));
819 …return ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(CREATE_CONSTRUCTOR_PA…
820 ts.factory.createIdentifier(propertyName));
824 return ts.factory.createPropertyAccessExpression(ts.factory.createThis(),
825 ts.factory.createIdentifier(propertyName));
844 return ts.factory.createExpressionStatement(ts.factory.createCallExpression(
846 ts.factory.createStringLiteral(propertyOrAliasName),
852 ts.factory.createGetAccessorDeclaration(undefined, undefined, item, [], undefined,
853 ts.factory.createBlock([ts.factory.createReturnStatement(
854 ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(
856 ts.factory.createIdentifier(express)), undefined, []))], true));
863 ts.factory.createSetAccessorDeclaration(undefined, undefined, item,
864 [ts.factory.createParameterDeclaration(undefined, undefined, undefined,
865 ts.factory.createIdentifier(CREATE_NEWVALUE_IDENTIFIER), undefined, type,
866 undefined)], ts.factory.createBlock([ts.factory.createExpressionStatement(
867 ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(
869 ts.factory.createIdentifier(express)), undefined,
870 [ts.factory.createIdentifier(CREATE_NEWVALUE_IDENTIFIER)]))], true));
883 typeNode = typeNode || ts.factory.createKeywordTypeNode(ts.SyntaxKind.AnyKeyword);
1114 return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(
1116 ts.factory.createToken(ts.SyntaxKind.EqualsToken), ts.factory.createNewExpression(
1117 ts.factory.createIdentifier(isSimpleType(type, program) ? OBSERVED_PROPERTY_SIMPLE_PU :
1118 OBSERVED_PROPERTY_OBJECT_PU), undefined, [item.initializer, ts.factory.createThis(),
1119 ts.factory.createStringLiteral(name.escapedText.toString())])));