@@ -16,27 +16,6 @@ use std::path::{Path, PathBuf};
16
16
use std:: process:: Command ;
17
17
use std:: time:: Instant ;
18
18
19
- pub fn get_res_path_from_ast ( ast_file : & str ) -> Option < String > {
20
- if let Ok ( lines) = helpers:: read_lines ( ast_file. to_string ( ) ) {
21
- // we skip the first line with is some null characters
22
- // the following lines in the AST are the dependency modules
23
- // we stop when we hit a line that starts with a "/", this is the path of the file.
24
- // this is the point where the dependencies end and the actual AST starts
25
- for line in lines. skip ( 1 ) {
26
- match line {
27
- Ok ( line) => {
28
- let line = line. trim ( ) . to_string ( ) ;
29
- if line. starts_with ( '/' ) {
30
- return Some ( line) ;
31
- }
32
- }
33
- Err ( _) => ( ) ,
34
- }
35
- }
36
- }
37
- return None ;
38
- }
39
-
40
19
pub fn get_interface < ' a > ( module : & ' a Module ) -> & ' a Option < Interface > {
41
20
match & module. source_type {
42
21
SourceType :: SourceFile ( source_file) => & source_file. interface ,
@@ -514,12 +493,7 @@ pub fn parse_packages(
514
493
. map ( |path| helpers:: file_path_to_module_name ( & path, & None ) )
515
494
. collect :: < AHashSet < String > > ( ) ;
516
495
517
- let mlmap = gen_mlmap (
518
- & package,
519
- namespace,
520
- depending_modules,
521
- project_root,
522
- ) ;
496
+ let mlmap = gen_mlmap ( & package, namespace, depending_modules, project_root) ;
523
497
524
498
// mlmap will be compiled in the AST generation step
525
499
// compile_mlmap(&package, namespace, &project_root);
0 commit comments