ts2famix 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyze.js +2 -1
- package/package.json +1 -1
- package/src/analyze.ts +3 -1
package/dist/analyze.js
CHANGED
|
@@ -69,7 +69,8 @@ class Importer {
|
|
|
69
69
|
return famixRep;
|
|
70
70
|
}
|
|
71
71
|
processEntities(project) {
|
|
72
|
-
|
|
72
|
+
const onlyTypeScriptFiles = project.getSourceFiles().filter(f => f.getFilePath().endsWith('.ts'));
|
|
73
|
+
processFunctions.processFiles(onlyTypeScriptFiles);
|
|
73
74
|
const accesses = processFunctions.accessMap;
|
|
74
75
|
const methodsAndFunctionsWithId = processFunctions.methodsAndFunctionsWithId;
|
|
75
76
|
const classes = processFunctions.classes;
|
package/package.json
CHANGED
package/src/analyze.ts
CHANGED
|
@@ -32,6 +32,7 @@ export class Importer {
|
|
|
32
32
|
|
|
33
33
|
// try {
|
|
34
34
|
logger.debug(`famixRepFromPaths: paths: ${paths}`);
|
|
35
|
+
|
|
35
36
|
this.project.addSourceFilesAtPaths(paths);
|
|
36
37
|
|
|
37
38
|
initFamixRep(this.project);
|
|
@@ -51,7 +52,8 @@ export class Importer {
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
private processEntities(project) {
|
|
54
|
-
|
|
55
|
+
const onlyTypeScriptFiles = project.getSourceFiles().filter(f => f.getFilePath().endsWith('.ts'));
|
|
56
|
+
processFunctions.processFiles(onlyTypeScriptFiles);
|
|
55
57
|
const accesses = processFunctions.accessMap;
|
|
56
58
|
const methodsAndFunctionsWithId = processFunctions.methodsAndFunctionsWithId;
|
|
57
59
|
const classes = processFunctions.classes;
|