You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/parser_test/main.rs
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
use clap::Parser;
2
-
usehydroperfox_filepaths::FlexPath;
2
+
userealhydroper_path::FlexPath;
3
3
use std::{env, fs, io};
4
4
use mxmlextrema_as3parser::ns::*;
5
5
@@ -21,13 +21,10 @@ struct Arguments {
21
21
22
22
fnmain() -> io::Result<()>{
23
23
let arguments = Arguments::parse();
24
-
let source_path = FlexPath::from_n_native([env::current_dir().unwrap().to_string_lossy().into_owned().as_ref(), arguments.source_path.as_ref()]).to_string_with_flex_separator();
24
+
let source_path = FlexPath::from_n_native([env::current_dir().unwrap().to_string_lossy().into_owned().as_ref(), arguments.source_path.as_ref()]).to_string();
25
25
26
-
// Canonicalize path
27
-
// let source_path = std::path::Path::new(&source_path).canonicalize().unwrap().to_string_lossy().into_owned();
28
-
29
-
let source_path_ast_json = FlexPath::new_native(&source_path).change_extension(".tree").to_string_with_flex_separator();
30
-
let source_path_diagnostics = FlexPath::new_native(&source_path).change_extension(".diag").to_string_with_flex_separator();
26
+
let source_path_ast_json = FlexPath::new_native(&source_path).change_extension(".tree").to_string();
27
+
let source_path_diagnostics = FlexPath::new_native(&source_path).change_extension(".diag").to_string();
31
28
let source_content = fs::read_to_string(&source_path)?;
32
29
let compilation_unit = CompilationUnit::new(Some(source_path), source_content);
0 commit comments