File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff 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 ( '../' ) ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments