Lines Matching refs:temp
727 let temp: any = node.expression;
728 while (temp) {
729 if (ts.isCallExpression(temp) && temp.expression &&
730 ts.isPropertyAccessExpression(temp.expression)) {
733 if (ts.isEtsComponentExpression(temp)) {
734 etsComponentNode = temp;
737 temp = temp.expression;
1848 let temp: any = node.expression;
1849 while (temp && !ts.isIdentifier(temp) && temp.expression) {
1850 temp = temp.expression;
1852 if (temp && temp.parent && (ts.isCallExpression(temp.parent) ||
1853 ts.isEtsComponentExpression(temp.parent)) && ts.isIdentifier(temp)) {
1854 if (temp.getText() === COMPONENT_BUTTON && type !== COMPONENT_POP_FUNCTION) {
1860 if (NEEDPOP_COMPONENT.has(temp.getText())) {
1863 if (checkContainer(temp.getText(), temp.parent)) {
1867 ? ts.factory.createExpressionStatement(createFunction(temp, identifierNode, null))
1868 …: ts.factory.createExpressionStatement(createFunction(temp, identifierNode, checkArguments(temp, t…
1869 res.identifierNode = temp;
1874 function checkArguments(temp: ts.Identifier, type: string): ts.Expression[] {
1876 if (CUSTOM_BUILDER_CONSTRUCTORS.has(temp.escapedText.toString())) {
1877 temp.parent.arguments.forEach(argument => {
1879 newArguments.push(processConditionalBuilder(argument, temp, type));
1880 } else if (isBuilderChangeNode(argument, temp, type)) {
1888 return temp.getText() === 'XComponent' && type === COMPONENT_CREATE_FUNCTION &&
1891 temp.parent.arguments.concat([
1893 ]) : temp.parent.arguments
1942 let temp: any = node.expression;
1952 if (ts.isPropertyAccessExpression(temp)) {
1959 while (temp && ts.isCallExpression(temp) && temp.expression) {
1961 if (temp.expression && (validatePropertyAccessExpressionWithCustomBuilder(temp.expression) ||
1962 validateIdentifierWithCustomBuilder(temp.expression))) {
1964 if (ts.isIdentifier(temp.expression)) {
1965 propertyName = temp.expression.escapedText.toString();
1966 } else if (ts.isPropertyAccessExpression(temp.expression)) {
1967 propertyName = temp.expression.name.escapedText.toString();
1971 temp = processBindPopupBuilder(temp);
1974 temp = processDragStartBuilder(temp, propertyName);
1977 temp = processCustomBuilderProperty(temp, identifierNode, propertyName);
1981 if (ts.isPropertyAccessExpression(temp.expression) &&
1982 temp.expression.name && ts.isIdentifier(temp.expression.name) &&
1983 …(!componentCollection.customComponents.has(temp.expression.name.getText()) || STYLES_ATTRIBUTE.has…
1984 parseRecycleId(temp, temp.expression.name, isRecycleComponent, componentAttrInfo);
1985 addComponentAttr(temp, temp.expression.name, lastStatement, statements, identifierNode, log,
1988 temp = temp.expression.expression;
1990 } else if (ts.isIdentifier(temp.expression)) {
1991 if (!INNER_COMPONENT_NAMES.has(temp.expression.getText()) &&
1992 !GESTURE_TYPE_NAMES.has(temp.expression.getText()) &&
1993 !componentCollection.customComponents.has(temp.expression.getText())) {
1994 parseRecycleId(temp, temp.expression.name, isRecycleComponent, componentAttrInfo);
1995 addComponentAttr(temp, temp.expression, lastStatement, statements, identifierNode, log,
2002 temp = temp.expression;
2437 function verifyComponentId(temp: any, node: ts.Identifier, propName: string,
2440 ts.isStringLiteral(temp.arguments[0])) {
2441 const id: string = temp.arguments[0].text;
2469 function addComponentAttr(temp: any, node: ts.Identifier, lastStatement: any,
2475 verifyComponentId(temp, node, propName, log);
2483 if (!(temp.arguments.length === 1 &&
2484 temp.arguments[0].kind === ts.SyntaxKind.NullKeyword)) {
2491 ts.factory.createIdentifier(GLOBAL_CONTEXT), node, temp.arguments));
2495 parseGesture(temp, propName, statements, log, updateStatements);
2502 pos: temp.getStart()
2514 ? temp.arguments
2516 ...temp.arguments, ts.factory.createIdentifier(ELMTID),
2525 if (temp.arguments.length === 1 && ts.isObjectLiteralExpression(temp.arguments[0])) {
2526 statements.push(createViewStackProcessor(temp, true));
2528 updateStatements.push(createViewStackProcessor(temp, true));
2530 traverseStateStylesAttr(temp, statements, identifierNode, log, updateStatements,
2534 validateStateStyleSyntax(temp, log);
2548 } else if (isDoubleDollarToChange(isStylesAttr, identifierNode, propName, temp)) {
2550 classifyArgumentsNum(temp.arguments, argumentsArr, propName, identifierNode);
2557 temp = loopEtscomponent(temp, isStylesAttr);
2564 createFunction(identifierNode, node, temp.arguments, isAttributeModifier));
2567 !isGestureType(identifierNode) && filterRegularAttrNode(temp.arguments)) {
2646 propName: string, temp: any): boolean {
2650 STYLE_ADD_DOUBLE_DOLLAR.has(propName) && temp.arguments.length && temp.arguments[0] ?
2651 temp.arguments[0].getText().match(/^\$\$(.|\n)+/) !== null
2727 function traverseStateStylesAttr(temp: any, statements: ts.Statement[],
2730 temp.arguments[0].properties.reverse().forEach((item: ts.PropertyAssignment) => {
2763 validateStateStyleSyntax(temp, log);
2833 let temp: any = node.expression;
2834 while (temp && !ts.isIdentifier(temp) && temp.expression) {
2835 temp = temp.expression;
2837 if (temp && temp.parent && ts.isCallExpression(temp.parent) && ts.isIdentifier(temp) &&
2838 GESTURE_TYPE_NAMES.has(temp.escapedText.toString())) {
2840 createFunction(temp, ts.factory.createIdentifier(COMPONENT_POP_FUNCTION), null)));
2841 if (temp.escapedText.toString() === COMPONENT_GESTURE_GROUP) {
2843 parseGestureInterface(temp.parent, gestureStatements, log, [], true);
2845 bindComponentAttr(newNode, temp, newStatements, log, false);
2847 if (temp.parent.arguments && temp.parent.arguments.length) {
2849 argumentArr = ts.factory.createNodeArray([temp.parent.arguments[0]]);
2852 createFunction(temp, ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), argumentArr)));
2854 bindComponentAttr(newNode, temp, newStatements, log, false);
2856 …createFunction(temp, ts.factory.createIdentifier(COMPONENT_CREATE_FUNCTION), temp.parent.arguments…
2878 let temp: any = node.expression;
2880 while (temp) {
2881 if (ts.isIdentifier(temp) && temp.parent && (ts.isCallExpression(temp.parent) ||
2882 ts.isEtsComponentExpression(temp.parent))) {
2883 name = temp.escapedText.toString();
2885 } else if (ts.isPropertyAccessExpression(temp) && temp.name && ts.isIdentifier(temp.name) &&
2886 isCustomAttributes(temp)) {
2887 name = temp.name.escapedText.toString();
2890 temp = temp.expression;
2895 function isCustomAttributes(temp: ts.PropertyAccessExpression): boolean {
2896 if (temp.expression && temp.expression.getText() === THIS) {
2898 …} else if (temp.expression && ts.isIdentifier(temp.expression) && temp.expression.getText() === $$…
2899 builderTypeParameter.params.includes(temp.expression.getText())) {
2902 return !BUILDIN_STYLE_NAMES.has(temp.name.escapedText.toString());
2907 let temp: any = node.expression;
2909 while (temp) {
2910 if (ts.isCallExpression(temp) && temp.expression && ts.isIdentifier(temp.expression)) {
2911 name = temp.expression.escapedText.toString();
2914 temp = temp.expression;
2931 let temp: any = node.expression;
2932 while (temp) {
2933 if (ts.isEtsComponentExpression(temp)) {
2936 temp = temp.expression;
3024 export function validateStateStyleSyntax(temp: any, log: LogInfo[]): void {
3028 pos: temp.getStart()
3105 let temp: any = node.parent;
3106 while (temp && !ts.isEtsComponentExpression(temp) && !ts.isCallExpression(temp)) {
3107 temp = temp.parent;
3109 …if (temp && temp.expression && (temp.expression as ts.Identifier).escapedText.toString() === COMPO…