• Home
  • Raw
  • Download

Lines Matching full:if

79     if (modifiers === undefined) {
87 if (modifier.kind === SyntaxKind.ExportKeyword) {
91 if (modifier.kind === SyntaxKind.DeclareKeyword) {
104 if (isExportAssignment(astNode)) {
105 if (!mCurrentExportNameSet.has(astNode.expression.getText())) {
114 if (!hasExport) {
119 if (astNode.name) {
120 if (!mCurrentExportNameSet.has(astNode.name.getText())) {
128 if (hasDeclare && astNode.declarationList) {
131 if (!mCurrentExportNameSet.has(declarationName)) {
140 if (astNode.name && !mCurrentExportNameSet.has(astNode.name.getText())) {
144 if (astNode.name === undefined) {
146 if (hasDeclare && astNode.declarationList &&
160 if (!astNode) {
164 if (astNode.name !== undefined && !mPropertySet.has(astNode.name.getText())) {
165 if (isStringLiteral(astNode.name)) {
183 if (!checkPropertyNeedVisit(astNode)) {
204 if (!isExpressionStatement(astNode) || !astNode.expression) {
209 if (!isBinaryExpression(expression)) {
214 if (!isElementAccessExpression(left) && !isPropertyAccessExpression(left)) {
218 if ((left.expression.getText() !== 'exports' && !isModuleExports(left)) ||
223 if (isElementAccessExpression(left)) {
224 if (isStringLiteral(left.argumentExpression)) {
229 if (isPropertyAccessExpression(left)) {
230 if (isIdentifier(left.name)) {
235 if (isIdentifier(expression.right)) {
240 if (isClassDeclaration(expression.right) || isClassExpression(expression.right)) {
245 if (isObjectLiteralExpression(expression.right)) {
254 if (isPropertyAccessExpression(astNode)) {
255if (isIdentifier(astNode.expression) && astNode.expression.escapedText.toString() === 'module' &&
273 if (isExportAssignment(astNode)) {
275 if (isBinaryExpression(astNode.expression)) {
276 if (isObjectLiteralExpression(astNode.expression.right)) {
281 if (isClassExpression(astNode.expression.right)) {
290 if (isIdentifier(astNode.expression)) {
291 if (!mCurrentExportNameSet.has(astNode.expression.getText())) {
298 if (isObjectLiteralExpression(astNode.expression)) {
305 if (isExportDeclaration(astNode)) {
306 if (astNode.exportClause) {
307 if (astNode.exportClause.kind === SyntaxKind.NamedExports) {
309 if (!isExportSpecifier(child)) {
313 if (child.propertyName) {
323 if (astNode.exportClause.kind === SyntaxKind.NamespaceExport) {
332 if (!hasExport) {
338 if (astNode.name) {
339 if (!mCurrentExportNameSet.has(astNode.name.getText())) {
348 if (isClassDeclaration(astNode)) {
353 if (isVariableStatement(astNode)) {
355 if (isVariableDeclaration(child) && !mCurrentExportNameSet.has(child.name.getText())) {
378 if ((isClassDeclaration(astNode) || isStructDeclaration(astNode))) {
380 } else if (isEnumDeclaration(astNode)) { // collect export enum structure properties
382 } else if (isVariableDeclaration(astNode)) {
383 if (astNode.initializer) {
384 if (isObjectLiteralExpression(astNode.initializer)) {
386 } else if (isClassExpression(astNode.initializer)) {
391 } else if (isInterfaceDeclaration(astNode)) {
393 } else if (isTypeAliasDeclaration(astNode)) {
395 } else if (isElementAccessExpression(astNode)) {
397 } else if (isObjectLiteralExpression(astNode)) {
399 } else if (isClassExpression(astNode)) {
403 if (nodeName && mCurrentExportNameSet.has(nodeName)) {
440 if (fileName.endsWith('.d.ts') || fileName.endsWith('.d.ets')) {
448 if (scanProjectConfig.mKeepStringProperty) {
471 if (fs.statSync(apiPath).isDirectory()) {
475 if (fs.statSync(filePath).isDirectory()) {
480 if ((apiType !== ApiType.PROJECT) && !projectDependencyExtensions.includes(suffix)) {
484 if (apiType === ApiType.PROJECT && !projectExtensions.includes(suffix)) {
508 // visit component directory if ets
509 if (isEts) {
531 if (matches) {
545 if (fs.lstatSync(projectPath).isFile()) {
546if (projectPath.endsWith('.ets') || projectPath.endsWith('.ts') || projectPath.endsWith('.js')) {
566 if (fs.lstatSync(libPath).isFile()) {
567 if (libPath.endsWith('.ets') || libPath.endsWith('.ts') || libPath.endsWith('.js')) {