Skip to content

Commit 288f531

Browse files
committed
added comment in tree.js
1 parent 4607130 commit 288f531

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/parser.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class Parser {
1515
async grabFile(file) {
1616
try {
1717
// const file = await vscode.window.showOpenDialog({ canSelectFolders: true, canSelectFiles: true, canSelectMany: true });
18-
// if(typeof(file) !== 'string'){
1918
if (typeof (file) !== 'string') {
2019
file = path.resolve(file[0].path)
2120
}
@@ -39,9 +38,6 @@ class Parser {
3938
// traverse the ast nodes, passing in node
4039
traverseAST(node) {
4140
if (node.type === 'ImportDeclaration') {
42-
// processedNodes.add(node);
43-
// console.log('JSX Node', node);
44-
4541
// extract file name path
4642
const elementName = node.source.value;
4743
if (elementName.startsWith('./') || elementName.startsWith('../')) {

src/treeTemplates/tree.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const Tree = {
22
id: undefined,
33
fileName: undefined,
44
filePath: undefined,
5+
// children & parentList should be populated with other Tree objects
56
children: [],
67
parentList: [],
78
isClientComponent: false

0 commit comments

Comments
 (0)