Lines Matching refs:allComponentNames
175 const allComponentNames: Set<string> = constant
177 checkUISyntax(filePath, allComponentNames, content, log, sourceFile, fileQuery);
391 function checkUISyntax(filePath: string, allComponentNames: Set<string>, content: string,
396 visitAllNode(sourceFile, sourceFile, allComponentNames, log, false, fileQuery);
403 function visitAllNode(node: ts.Node, sourceFileNode: ts.SourceFile, allComponentNames: Set<string>,
448 …node.getChildren().forEach((item: ts.Node) => visitAllNode(item, sourceFileNode, allComponentNames,
480 allComponentNames: Set<string>,
486 checkOneChildComponent(node, allComponentNames, sourceFileNode, log);
487 checkSpecificChildComponent(node, allComponentNames, sourceFileNode, log);
549 function checkOneChildComponent(node: ts.EtsComponentExpression, allComponentNames: Set<string>,
552 if (hasNonSingleChild(node, allComponentNames, isCheckType)) {
563 function hasNonSingleChild(node: ts.EtsComponentExpression, allComponentNames: Set<string>,
580 const childCount: number = getBlockChildrenCount(BlockNode, allComponentNames);
589 function getBlockChildrenCount(blockNode: ts.Block, allComponentNames: Set<string>): number {
599 maxCount += getIfChildrenCount(item, allComponentNames);
608 isComponent(newNode, allComponentNames)) {
621 function isComponent(node: ts.EtsComponentExpression | ts.CallExpression, allComponentNames: Set<st…
623 allComponentNames.has(node.expression.escapedText.toString())) {
637 function getIfChildrenCount(ifNode: ts.IfStatement, allComponentNames: Set<string>): number {
639 Math.max(getStatementCount(ifNode.thenStatement, allComponentNames),
640 getStatementCount(ifNode.elseStatement, allComponentNames));
644 function getStatementCount(node: ts.Node, allComponentNames: Set<string>): number {
649 maxCount = getBlockChildrenCount(node, allComponentNames);
651 maxCount = getIfChildrenCount(node, allComponentNames);
656 !isForEachComponent(node.expression) && isComponent(node.expression, allComponentNames)) {
662 function checkSpecificChildComponent(node: ts.EtsComponentExpression, allComponentNames: Set<string…
664 if (hasNonspecificChild(node, allComponentNames)) {
676 allComponentNames: Set<string>): boolean {
683 isNonspecific = isNonspecificChildBlock(blockNode, specificChildSet, allComponentNames);
692 allComponentNames: Set<string>): boolean {
697 … if (ts.isIfStatement(item) && isNonspecificChildIf(item, specificChildSet, allComponentNames)) {
702 isNonspecificChildForEach(item.expression, specificChildSet, allComponentNames)) {
705 if (ts.isBlock(item) && isNonspecificChildBlock(item, specificChildSet, allComponentNames)) {
712 !isForEachComponent(newNode) && isComponent(newNode, allComponentNames)) {
731 allComponentNames: Set<string>): boolean {
732 return isNonspecificChildIfStatement(node.thenStatement, specificChildSet, allComponentNames) ||
733 isNonspecificChildIfStatement(node.elseStatement, specificChildSet, allComponentNames);
737 allComponentNames: Set<string>): boolean {
746 if (ts.isBlock(body) && isNonspecificChildBlock(body, specificChildSet, allComponentNames)) {
749 if (ts.isIfStatement(body) && isNonspecificChildIf(body, specificChildSet, allComponentNames)) {
753 isNonspecificChildForEach(body, specificChildSet, allComponentNames)) {
757 isComponent(body, allComponentNames) &&
775 allComponentNames: Set<string>): boolean {
779 if (ts.isBlock(node) && isNonspecificChildBlock(node, specificChildSet, allComponentNames)) {
782 if (ts.isIfStatement(node) && isNonspecificChildIf(node, specificChildSet, allComponentNames)) {
787 isNonspecificChildForEach(node.expression, specificChildSet, allComponentNames)) {
791 !isForEachComponent(node.expression) && isComponent(node.expression, allComponentNames) &&